In short
A random variable assigns a number to each outcome of a chance process, such as the number of cars owned by a randomly chosen household. A discrete random variable has countable values. Its probability distribution lists each value with its probability; every probability is between 0 and 1, and together they add to exactly 1.
What you need to know
- Define a random variable and identify whether it is discrete.
- Construct a probability distribution from a description or from data.
- Check whether a table is a valid probability distribution.
- Calculate probabilities such as P(X ≥ 2) from a distribution.
From outcomes to numbers
Choose a household at random in a city and let X be its number of cars. X is a random variable: its value depends on chance. Before the household is chosen, we cannot know X, but we can describe its possible values and how likely each is.
| x | 0 | 1 | 2 | 3 |
|---|---|---|---|---|
| P(X = x) | 0.10 | 0.40 | 0.35 | 0.15 |
A valid distribution
- Every probability is between 0 and 1.
- The probabilities add to exactly 1: 0.10 + 0.40 + 0.35 + 0.15 = 1.00.
If one probability is missing, find it with the second rule. If a household survey reported P(0) = 0.12, P(1) = 0.45, P(2) = 0.30 and 'three or more' was left blank, then P(3 or more) = 1 − 0.87 = 0.13.
Watch the inequality words
| Words | Symbol | Here |
|---|---|---|
| at least 2 | X ≥ 2 | 0.35 + 0.15 = 0.50 |
| more than 2 | X > 2 | 0.15 |
| at most 1 | X ≤ 1 | 0.10 + 0.40 = 0.50 |
| fewer than 1 | X < 1 | 0.10 |
For a discrete variable, ≥ and > give different answers, because the boundary value itself has positive probability. This is not true for continuous variables such as height, which you will meet with the normal distribution, where any single exact value has probability 0.
Key terms
- Random variable
- A variable whose numerical value is determined by the outcome of a chance process.
- Discrete random variable
- A random variable with countable possible values.
- Probability distribution
- A list of a random variable's possible values and their probabilities.
- Probability histogram
- A graph of a discrete distribution with bar heights equal to probabilities.
Common mistakes
Accepting a 'distribution' whose probabilities don't add to 1.
Check the sum; if it isn't 1, the table is not a valid distribution.
Treating 'at least 2' as 'more than 2'.
'At least 2' includes 2: X ≥ 2.
Using data counts instead of probabilities.
Divide counts by the total to get probabilities that add to 1.
How this topic is tested
- Translate words into an inequality before adding probabilities.
- Show the sum check when asked whether a distribution is valid.
- Define the random variable in words: 'X = the number of cars in a randomly chosen household'.
Practice questions
Original AP-style multiple-choice questions. Pick an answer to see the explanation.
Question 1 · SP 3 · Analyze Data
Using the cars distribution, what is P(X ≤ 1)?
Question 2 · SP 3 · Analyze Data
Which of these is a valid probability distribution?
Question 3 · SP 3 · Analyze Data
A distribution has P(X = 1) = 0.2, P(X = 2) = 0.5 and P(X = 3) = k. What is k?
Question 4 · SP 2 · Collect Data
Which is a discrete random variable?
Question 5 · SP 3 · Analyze Data
For the cars distribution, what is P(X > 2)?
Free-response practice
Write your answer first, then mark it against the scoring guide.
Practices 3 and 4 (short) · 3 points
A bakery records the number of wedding cakes ordered per day. Let X be that number: P(0) = 0.30, P(1) = 0.35, P(2) = 0.20, P(3) = 0.10, P(4) = 0.05.
- (a) Show that this is a valid probability distribution.
- (b) Calculate the probability that at least 2 cakes are ordered on a randomly chosen day.
- (c) Interpret your answer to (b).
Scoring guide: one point for each of the following
Part (a)
- Each probability is between 0 and 1, and 0.30 + 0.35 + 0.20 + 0.10 + 0.05 = 1.
Part (b)
- P(X ≥ 2) = 0.20 + 0.10 + 0.05 = 0.35.
Part (c)
- Over many days, the bakery would get 2 or more wedding cake orders on about 35% of days.
Connected topics
Frequently asked questions
Is a probability distribution the same as a data distribution?
They look alike, but a data distribution describes what happened in a sample; a probability distribution describes the long-run behaviour of a chance process.
Can a random variable be continuous?
Yes, such as height. Continuous variables use density curves like the normal curve (topic 2.11).
Why use capital X?
By convention, X names the random variable and lowercase x names one of its values.