AP Statistics · Unit 2 · Probability, Random Variables and Probability Distributions
2.8 Random variables and distributions
Define a random variable, classify it as discrete or continuous, and describe its probability distribution.
1/5A random variable assigns a number to each outcome
Part 1 of 5: A random variable assigns a number to each outcome
Flip a coin three times and count the heads. The count could be 0, 1, 2, or 3, and you cannot know it in advance. Chance decides which value you get.
A random variable is a variable whose numerical value depends on the outcome of a chance process. We name it with a capital letter, such as . A particular value it can take is written with a lowercase letter, such as .
The sum of two dice is a random variable. So is the number of customers who enter a store in one hour. Each one turns a chance outcome into a number.
Key term
random variable
A random variable is a numerical quantity, usually written as a capital letter such as , whose value is set by chance.
Part 2 of 5: Random variables are either discrete or continuous
Now that you can name a random variable, sort it by the kind of values it takes. A discrete random variable takes a countable set of separate values, usually found by counting. The number of heads in three flips is discrete.
A continuous random variable can take any value in an interval, usually found by measuring. The time a bus takes to arrive is continuous. Between any two possible times, another time always fits.
Discrete and continuous random variables compared
- Feature
- Possible values
- Discrete
- Countable, with gaps
- Continuous
- Every value in an interval
- Feature
- Usually found by
- Discrete
- Counting
- Continuous
- Measuring
- Feature
- Example
- Discrete
- Heads in 3 flips
- Continuous
- Bus travel time
- Feature
- Can the values be listed?
- Discrete
- Yes
- Continuous
- No
Sorting the variable first matters because the two types are described in different ways.
Key terms · tap one for its definition
discrete random variable
A discrete random variable is a random variable whose possible values form a countable set, such as 0, 1, 2, and so on.
continuous random variable
A continuous random variable is a random variable that can take every value in an interval, so its values cannot be listed.

Quick check
One question on the part you just read
Easy
Show answer and explanation
Answer: C · Worked explanation
Part 3 of 5: A probability distribution lists every value with its probability
Knowing the type of variable is only the start. We also need to know how likely each value is.
The probability distribution of a random variable gives its possible values and the probability of each one. For a discrete variable, a table or a bar graph can show it. We write for the probability that takes the value .
In this graph, each bar is one value of . Its height is the probability of that value. Taller bars mark values that are more likely.
Key term
probability distribution
A probability distribution is the complete list of a random variable’s possible values with their probabilities, which must add to 1.
Part 4 of 5: A valid distribution follows two rules
Not every list of numbers can be a probability distribution. A forecaster, for example, cannot give chances that total 110%. Two rules must both hold.
- Every probability is between 0 and 1, inclusive.
- The probabilities of all possible values add to exactly 1.
Small rounding differences, such as a total of 0.999, are acceptable. If one probability is missing, subtract the known probabilities from 1.
Worked example
Find a missing probability
- All probabilities must add to 1, so .
- Add the known probabilities: .
- Subtract from 1: .
Answer:

Quick check
One question on the part you just read
Easy
Show answer and explanation
Answer: B · Worked explanation
Part 5 of 5: Probabilities of events come from adding or from area
Once you have a distribution, you can answer questions about groups of values. For a discrete variable, add the probabilities of the values in the event. In the store example, .
A continuous variable works differently. Its distribution is a density curve, a smooth curve on or above the horizontal axis with total area 1. The probability of an interval is the area under the curve over that interval.
A single exact value has no width, so its area is 0. Therefore for a continuous variable, and equals .
Key term
density curve
A density curve is a curve on or above the horizontal axis with total area 1, whose area over an interval gives that interval’s probability.
Check your recall[12 marks]
6 written questions. Answer each one in your head or on paper, then open the mark scheme.
- 1.Identify[1 mark]
Identify whether the number of text messages a student receives in one day is a discrete or a continuous random variable.
Show mark schemeHide mark scheme
Model answer
It is discrete, because the number of messages is counted and takes separate whole-number values.
- 1 mark for stating that it is discrete, because the values are counted whole numbers
- 2.Describe[2 marks]
Describe two differences between a discrete random variable and a continuous random variable.
Show mark schemeHide mark scheme
Model answer
A discrete variable has a countable set of separate values, usually from counting. A continuous variable can take every value in an interval, usually from measuring, so its values cannot be listed.
- 1 mark for stating that a discrete variable has countable, separate values while a continuous variable takes every value in an interval
- 1 mark for giving a second difference, such as counting versus measuring or whether the values can be listed
- 3.Determine[2 marks]
Determine the value of if takes the values 0, 1, and 2 with probabilities 0.5, 0.3, and .
Show mark schemeHide mark scheme
Model answer
The probabilities must add to 1, so .
- 1 mark for using the rule that the probabilities add to 1
- 1 mark for obtaining
- 4.Explain[2 marks]
Explain why probabilities of 0.4, 0.5, and 0.3 cannot form the distribution of a discrete random variable.
Show mark schemeHide mark scheme
Model answer
The probabilities add to 1.2. The probabilities of all possible values must add to exactly 1.
- 1 mark for finding that the total is 1.2
- 1 mark for stating that the total must be exactly 1
- 5.Explain[3 marks]
Explain why a continuous random variable has probability 0 of taking one exact value, yet an interval can have positive probability.
Show mark schemeHide mark scheme
Model answer
Probability is the area under the density curve. One exact value has no width, so its area is 0. An interval has width, so the area over it is positive.
- 1 mark for stating that probability is the area under the density curve
- 1 mark for explaining that a single value has no width, so zero area
- 1 mark for explaining that an interval has width, so positive area
- 6.Calculate[2 marks]
Calculate if takes the values 1, 2, 3, and 4 with probabilities 0.1, 0.4, 0.3, and 0.2.
Show mark schemeHide mark scheme
Model answer
.
- 1 mark for adding the probabilities for 3 and 4
- 1 mark for obtaining 0.5

Practice this topic
10 quick-fire multiple-choice questions, easy to hard. Tap an answer to see if you're right and the worked explanation. (The written questions with mark schemes are under “Check your recall” above.)
0 right0 of 10 answered
Includes the 2 quick checks in the note above.
Easy[1 mark]
Show answer and explanation
Answer: A · Worked explanation
MediumFind[2 marks]
Show answer and explanation
Answer: C · Worked explanation
MediumIdentify[1 mark]
Show answer and explanation
Answer: C · Worked explanation
MediumCalculate[2 marks]
Show answer and explanation
Answer: D · Worked explanation
Medium[1 mark]
Show answer and explanation
Answer: B · Worked explanation
HardIdentify[2 marks]
Show answer and explanation
Answer: D · Worked explanation
HardDetermine[2 marks]
Show answer and explanation
Answer: C · Worked explanation
HardDetermine[2 marks]
Show answer and explanation
Answer: B · Worked explanation