Lesson 4.5 · Probability, Random Variables and Distributions
Discrete random variables
Instead of asking about one event at a time, you often want the whole picture: every value a random outcome can take and how likely each value is. A random variable turns the outcomes of a chance process into numbers, and its probability distribution lists those numbers with their probabilities.
Random variables
Definition
Random variable
A random variable takes numerical values that describe the outcomes of a random process. Its probability distribution gives each possible value and its probability.
Random variables are written with capital letters like and . For example, if you flip a coin 3 times, let = the number of heads. Then can be or .
There are two kinds:
- A discrete random variable takes a countable set of separate values, such as . Counts are discrete: number of heads, number of cars per household, number of defective items.
- A continuous random variable can take any value in an interval, such as height, time or weight. Probabilities for continuous variables are areas under a density curve, like the normal curve from Unit 1. The probability of any single exact value is .
This lesson focuses on discrete random variables.
Building a probability distribution
Worked example: Number of heads in three flips
Flip a fair coin 3 times and let = number of heads. Find the probability distribution of .
Solution. The 8 equally likely outcomes are
HHH, HHT, HTH, THH, HTT, THT, TTH, TTT.
Count heads in each: one outcome has 3 heads, three have 2, three have 1 and one has 0.
| 0 | 1 | 2 | 3 | |
|---|---|---|---|---|
| 1/8 | 3/8 | 3/8 | 1/8 |
The probabilities add to .
A probability histogram displays the distribution. Each bar sits over one value of , and its height is that value's probability.
You describe a probability distribution the same way you describe data: shape, center and variability. This one is symmetric with center . In the next lesson you'll measure its center and spread with a mean and standard deviation.
Valid distributions
Rules for a discrete probability distribution
- Every probability is between and .
- The probabilities add up to exactly .
These rules let you find a missing probability: subtract the known probabilities from .
Finding probabilities from a distribution
To find the probability of a range of values, add the probabilities of the values in the range. Pay close attention to the inequality: for a discrete variable, includes , but does not.
Worked example: Cars per household
Let = the number of cars owned by a randomly selected household in a town.
| 0 | 1 | 2 | 3 | 4 | |
|---|---|---|---|---|---|
| 0.08 | 0.32 | 0.38 | 0.16 | 0.06 |
Find (a) , (b) , (c) .
Solution.
(a) .
(b) .
(c) The values 1 and 2 satisfy : .
For (a) you could also use the complement: .
Worked example: Difference of two dice
Roll two fair dice and let = the larger number minus the smaller (so for doubles). Find the distribution of and .
Solution. Of the 36 outcomes, count how many give each difference. A difference of can happen in ordered ways with the first die larger, and the same number with the second die larger.
| 0 | 1 | 2 | 3 | 4 | 5 | |
|---|---|---|---|---|---|---|
| 6/36 | 10/36 | 8/36 | 6/36 | 4/36 | 2/36 |
The numerators add to 36. Then
This distribution is skewed right.
Common mistake
The most common mistake is including or excluding an endpoint by accident. Write out the values that satisfy the inequality before adding. "At most 2" means ; "fewer than 2" means ; "at least 2" means ; "more than 2" means .
Practice
The random variable has the distribution below. Find the missing probability .
| 0 | 1 | 2 | 3 | 4 | |
|---|---|---|---|---|---|
| 0.10 | 0.25 | 0.30 | ? | 0.15 |
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
For the distribution in the previous problem, find .
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
For the same distribution, find .
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Which table gives a valid probability distribution?
Which random variable is continuous?
Roll two fair dice and let = the number of sixes. Find . Give an exact fraction or a decimal rounded to 3 places.
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
The probability histogram shows the distribution of , the number of pets in a randomly chosen household in a neighborhood. Find .
Enter a number. Fractions like 3/4 and sqrt(2) are OK.