5.02a–5.02c - Discrete distributions, expectation and variance
Build a finite discrete probability distribution, calculate its expectation and variance, and track what happens when its values are shifted or scaled. These tools turn a list of possible outcomes into a model you can calculate with and criticise.
Constructing a distribution
How can a game paying only , or units average units per play? An average need not be a possible outcome. To understand how that happens, first keep a complete account of the possible values and their probabilities.
You already know
For independent events, multiply probabilities along a sequence. Add probabilities of mutually exclusive ways to obtain the same outcome. A probability lies between and .
A random variable attaches a numerical value to each outcome of a random experiment. A discrete random variable has a finite or countably infinite set of possible values; here, non-standard distributions will be finite. The support is the set of values with positive probability. The letters distinguish the variable from one possible value .
Discrete probability distribution
A discrete probability distribution specifies every possible value of a random variable and its probability . Each probability is non-negative and the probabilities sum to . For example, probabilities on give a distribution; probabilities do not.
A table and a probability function are two ways to give the same information. Values absent from the support have probability zero. A probability function must state its support, otherwise its meaning is incomplete. The non-negativity and total-probability conditions are not listed as a separate result in the formula booklet: learn them.
Worked example 1: collecting equally likely outcomes
Question. Two independent fair coins are tossed. Let be the number of heads. Construct the distribution of .
Plan. List the equally likely sequences, then collect those giving the same number of heads.
Why this step? The values are not equally likely: there are two ways to obtain one head.
Answer.
Check. , with no possible value omitted.
Change just the chance of a head to , keeping two independent tosses. The possible values stay the same; the sequence probabilities change.
Worked example 2: unequal sequence probabilities
Question. Each of two independent tosses has probability of a head. Construct the distribution of the number of heads, giving a probability function.
Plan. Multiply the head and tail probabilities for each sequence and combine the two one-head sequences.
Why this step? Independence allows multiplication within a sequence; the two distinct orders require addition.
Answer. , , , and otherwise.
Check. ; the most likely value is now , as expected from the high head probability.
The list of possible values is separate from the mechanism that makes them likely.
Watch out
Wrong: “There are three possible values, so each has probability .” Equal likelihood needs justification from the experiment. Count or calculate the ways producing each value first.
Try changing only the probability of a head once more.
Expectation as a weighted average
An expectation weights each possible value by how likely it is. A value occurring three times as often contributes three times as much to the long-run average; it does not simply get one vote in an unweighted mean.
For a game paying , or units with probabilities , , , imagine plays with exactly the expected proportions. The total payment would be units, giving units per play. Actual frequencies fluctuate, but repeated independent play makes this weighted average the relevant target.
Expectation
If takes values with probabilities , then
The sum is over the entire support.
In the formula booklet.
The expectation has the same units as . It need not be a possible outcome: is an average payment, not a newly invented fourth prize.
Worked example 3: a mean outside the support
Question. The distribution of is , , . Find .
Plan. Multiply each value by its probability and sum.
Why this step? The probabilities supply the weights; dividing by the number of values would count those weights twice.
Answer. .
Check. The answer lies between and , and slightly above , since the upper value is more likely than the lower one.
Change only the largest value from to ; keep its probability at . The mean increases even though no probability changes.
Worked example 4: changing one possible value
Question. A random variable takes values with probabilities , respectively. Find .
Plan. Use the new value in the weighted sum, leaving the probabilities unchanged.
Why this step? Moving probability upwards by adds to the mean.
Answer. .
Check. , agreeing with the change in the last contribution.
A complete expectation calculation includes values that are negative or zero as well as positive ones.
Watch out
Wrong: . That assumes equal probabilities. Right: .
The next distribution changes the top value once more, so you can see exactly which contribution changes.
Measuring spread with variance
The mean gives a location, while variance measures spread about it. Squaring deviations makes departures on both sides count positively; otherwise positive and negative deviations would cancel.
Variance
For ,
Variance is non-negative and has squared units; the standard deviation is , in the units of .
In the formula booklet.
Both variance expressions describe the same quantity; no proof of the identities is needed here. Notice the different operations in and : square the individual values for the first, and square their weighted average for the second.
Worked example 5: using the second moment
Question. For taking with probabilities , find its variance.
Plan. Calculate , then subtract the square of .
Why this step? A second moment includes location as well as spread; subtracting leaves the spread about the mean.
Answer. .
Check. The direct expression gives .
Change only the top value from to , as before. Recalculate the mean as well: measuring spread about the old mean would answer a different question.
Continue this lesson.
You’re previewing NovaLearn without an account. Create a free account to read the rest.
Create free account