5.4 - Discrete random variables
A random experiment can have many outcomes but only a few possible numerical scores. In this first part of 5.4, you will collect those scores into a probability distribution, calculate their long-run mean and variance, and recover unknown probabilities from the distribution's summaries.
A probability distribution
If two balls are drawn from a bag, the number of red balls can be , or . Are these three scores equally likely? The answer depends on how many physical selections produce each score, rather than just how many scores are possible.
Discrete random variable
A random variable assigns a numerical value to each outcome of a random experiment. It is discrete when its possible values form a finite or countable list. Use a capital letter such as X for the variable and a lower-case letter such as for one possible value. Thus is the probability of that value.
A discrete variable need not take only non-negative integers: a game's net gain might be pounds. A measurement allowed to take any real value in an interval is not discrete; it will need a different kind of probability model later.
A probability distribution table lists each possible value once, together with its probability. Several elementary outcomes may contribute to the same value. Add those disjoint outcome probabilities before writing the table entry.
Valid discrete probabilities
For all possible values , put . A valid distribution has
Values outside the listed possible values have probability zero. The sum includes all possible values.
Not in the formula booklet: learn these probability conditions.
For example, entries do not form a complete distribution because their sum is only . A missing probability can be found by subtracting the others from , but every resulting probability must also be non-negative.
Worked example 1: counting the values of X
Question. A bag contains three red and two blue balls. Two are selected at random without replacement. X is the number of red balls selected. Draw up the probability distribution table for X.
Plan. Count equally likely pairs and group them by how many red balls they contain.
There are pairs. For , both balls must be blue; for , choose one of each colour; for , both must be red.
| Favourable pairs | |||
Answer. The distribution is , , .
Check. The probabilities are non-negative and sum to . Counting ordered red-red pairs instead gives out of , again .
Add one red ball while keeping two blue balls and the same two-ball selection rule. The possible scores stay the same, but their probabilities change.
Worked example 2: the same values with different probabilities
Question. A bag now contains four red and two blue balls. Two are selected at random without replacement, and X is the number of red balls selected. Draw up its probability distribution table.
Plan. Repeat the grouping with equally likely pairs.
Answer. The probabilities for are , respectively.
Check. They sum to . Counting ordered red-red pairs instead gives , higher than the previous , as expected after adding a red ball.
The opening question is answered: the three possible scores need not be equally likely. A distribution describes how the probability is shared among them.
Watch out
The values are values of X, not three equally likely elementary outcomes. Do not assign to each without checking the experiment. A table must also include possible endpoint values, even if one is unlikely.
Construct a fresh distribution from a new bag.
Expectation
Imagine a game paying a prize of , or pounds with probabilities . Over many plays, about half the prizes are zero, three tenths are pounds, and one fifth are pounds. The average prize tends towards pounds.
This is a probability-weighted mean, just as a frequency-table mean weights values by their frequencies. The difference is that a distribution describes the model before observing the outcomes, rather than summarising a particular dataset.
Expectation
The expectation or expected value is the probability-weighted mean of a random variable. It describes the long-run average under repeated independent repetitions of the same experiment, not a guaranteed result on one occasion. It need not be a possible value of X or its most likely value.
For the game, pounds is not even an available prize, and the most likely prize is zero. Neither fact contradicts the expected value.
Expectation of a discrete random variable
If X takes values with probabilities ,
Multiply each value by its own probability, then add. For the finite distributions here, all terms are listed in the table.
In the formula booklet.
An expected net gain must include any fixed cost. Subtracting a cost from every prize changes the mean by , because .
Worked example 3: expected prize and net gain
Question. A game pays a prize Y of , or pounds with probabilities , respectively. It costs pounds to play. Find the expected prize and expected net gain per play.
Plan. Calculate the weighted mean prize, then subtract the fixed playing cost.
Answer. Expected prize pounds; expected net gain pounds, meaning a long-run average loss of pence per play.
Check. The actual net gains are . Their weighted mean is , confirming the cost adjustment.
Change only the largest prize from to pounds. Its probability remains , so the expected prize should increase by pounds.
Continue this lesson.
You’re previewing NovaLearn without an account. Create a free account to read the rest.
Create free account