Scribe logoScribeNotes & practice
Sign inStart free
  1. Notes
  2. ›AP Statistics
  3. ›2 Probability, Random Variables and Probability Distributions
  4. ›2.8 Random variables and distributions

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.

  • 4 min read
  • 5 parts
  • 10 questions
  • Draft
Start a Quick 5 on this topic→Jump to the 10 questions
1/5A random variable assigns a number to each outcome
  1. 1A random variable assigns a number to each outcome
  2. 2Random variables are either discrete or continuous
  3. 3A probability distribution lists every value with its probability
  4. 4A valid distribution follows two rules
  5. 5Probabilities of events come from adding or from area
  6. Check your recall
  7. Practice: 10 questions
1

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 XXX. A particular value it can take is written with a lowercase letter, such as xxx.

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.

Common mistake

A random variable is not one fixed number. Before the chance process happens, it can still take several different values.

Key term

random variable

A random variable is a numerical quantity, usually written as a capital letter such as XXX, whose value is set by chance.

Part 1 done

2

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

FeatureDiscreteContinuous
Possible valuesCountable, with gapsEvery value in an interval
Usually found byCountingMeasuring
ExampleHeads in 3 flipsBus travel time
Can the values be listed?YesNo
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.

Part 2 done

Quick check

One question on the part you just read

Easy

Identify which of the following is a random variable.
Show answer and explanation

Answer: C · Worked explanation

The number of heads in 4 flips is a number whose value depends on chance, so it is a random variable. The planned number of flips and the probability 0.5 are fixed numbers that do not change from one set of flips to the next. The printed label is not a numerical value.
3

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 P(X=x)P(X=x)P(X=x) for the probability that XXX takes the value xxx.

Figure 1. Each bar shows one value of the random variable and its probability. The bar heights add to 1.

In this graph, each bar is one value of XXX. 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 3 done

4

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

A store records the number of items XXX a customer buys. For x=1x=1x=1, 2, and 3, the probabilities are 0.35, 0.30, and 0.20. The only other value is x=4x=4x=4. Find P(X=4)P(X=4)P(X=4).
  1. 1
    All probabilities must add to 1, so P(X=4)=1−[P(1)+P(2)+P(3)]P(X=4)=1-\left[P(1)+P(2)+P(3)\right]P(X=4)=1−[P(1)+P(2)+P(3)].
  2. 2
    Add the known probabilities: 0.35+0.30+0.20=0.850.35+0.30+0.20=0.850.35+0.30+0.20=0.85.
  3. 3
    Subtract from 1: 1−0.85=0.151-0.85=0.151−0.85=0.15.

Answer: P(X=4)=0.15P(X=4)=0.15P(X=4)=0.15

Exam tip

Check both rules before you call a table a distribution. A probability of 1.2 or -0.1 breaks the first rule.

Part 4 done

Quick check

One question on the part you just read

Easy

Identify the type of random variable that records the time, in minutes, a customer waits in line.
Show answer and explanation

Answer: B · Worked explanation

A waiting time is measured, and it can take any value in an interval, so it is continuous. Being recorded with a clock does not make a variable discrete, because a clock can show any fraction of a minute. Positive values alone do not make a variable discrete either.
5

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, P(X≥3)=0.20+0.15=0.35P(X\ge3)=0.20+0.15=0.35P(X≥3)=0.20+0.15=0.35.

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 P(X=x)=0P(X=x)=0P(X=x)=0 for a continuous variable, and P(X≤5)P(X\le5)P(X≤5) equals P(X<5)P(X<5)P(X<5).

Common mistake

A probability of 0 for one exact value does not make nearby values impossible. Intervals around it still have positive probability.

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.

Note read

Check your recall[12 marks]

6 written questions. Answer each one in your head or on paper, then open the mark scheme.

  1. 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. 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. 3.Determine[2 marks]

    Determine the value of kkk if YYY takes the values 0, 1, and 2 with probabilities 0.5, 0.3, and kkk.

    Show mark schemeHide mark scheme

    Model answer

    The probabilities must add to 1, so k=1−(0.5+0.3)=0.2k=1-(0.5+0.3)=0.2k=1−(0.5+0.3)=0.2.

    • 1 mark for using the rule that the probabilities add to 1
    • 1 mark for obtaining k=0.2k=0.2k=0.2
  4. 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. 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. 6.Calculate[2 marks]

    Calculate P(Z≥3)P(Z\ge3)P(Z≥3) if ZZZ 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

    P(Z≥3)=P(3)+P(4)=0.3+0.2=0.5P(Z\ge3)=P(3)+P(4)=0.3+0.2=0.5P(Z≥3)=P(3)+P(4)=0.3+0.2=0.5.

    • 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.

3.

Easy[1 mark]

Which condition must the probabilities in a discrete probability distribution satisfy?
Show answer and explanation

Answer: A · Worked explanation

The probabilities of all possible values must add to exactly 1, because one of the values must occur. A total of 100 would describe percentages, not probabilities. Probabilities need not be equal or increasing: the distribution of heads in three flips has unequal probabilities that rise and then fall.
4.

Medium·Find[2 marks]

Find kkk if XXX takes the values 0, 1, 2, and 3 with probabilities 0.15, 0.25, 0.40, and kkk.
Show answer and explanation

Answer: C · Worked explanation

The probabilities add to 1, so k=1−(0.15+0.25+0.40)=1−0.80=0.20k=1-(0.15+0.25+0.40)=1-0.80=0.20k=1−(0.15+0.25+0.40)=1−0.80=0.20. Add the three known probabilities first, then subtract the total from 1. The value 0.80 is the sum of the three known probabilities, not the missing one. Taking k=0.80k=0.80k=0.80 would make the total 1.60, which breaks the rule.
5.

Medium·Identify[1 mark]

Identify the list of probabilities that could be the distribution of a discrete random variable with four values.
Show answer and explanation

Answer: C · Worked explanation

The list 0.2, 0.3, 0.4, 0.1 has every value between 0 and 1 and adds to exactly 1. The list with 0.6, 0.5, 0.1, and −0.2 also adds to 1, but a negative probability is impossible. The other two lists add to 1.3 and 0.9.
6.

Medium·Calculate[2 marks]

Calculate P(X≥2)P(X\ge2)P(X≥2) if XXX takes the values 0, 1, 2, and 3 with probabilities 0.10, 0.30, 0.35, and 0.25.
Show answer and explanation

Answer: D · Worked explanation

Add the probabilities of the values in the event: P(X≥2)=0.35+0.25=0.60P(X\ge2)=0.35+0.25=0.60P(X≥2)=0.35+0.25=0.60. The event includes both 2 and 3, so both probabilities are needed. The value 0.90 is P(X≥1)P(X\ge1)P(X≥1), which wrongly includes the value 1. The value 0.35 is only P(X=2)P(X=2)P(X=2), and 0.40 is P(X≤1)P(X\le1)P(X≤1).
7.

Medium[1 mark]

A continuous random variable has a density curve. Which statement is correct?
Show answer and explanation

Answer: B · Worked explanation

For a density curve, probability is area, so an interval’s probability is the area under the curve over it. The height of the curve is not a probability. Since single values have probability 0, P(X<3)P(X<3)P(X<3) and P(X≤3)P(X\le3)P(X≤3) are equal, and the exact-value probabilities do not add to 1.
8.

Hard·Identify[2 marks]

Consider three variables: (i) the number of cars passing a corner in one hour, (ii) the exact time a runner needs to finish a race, (iii) the number of red cards in a hand of 5 cards. Identify which are discrete.
Show answer and explanation

Answer: D · Worked explanation

Variables (i) and (iii) are counts with separate whole-number values, so both are discrete. The exact finishing time in (ii) can take any value in an interval, so it is continuous. Rounding a measurement when recording it does not change the type of the variable itself.
9.

Hard·Determine[2 marks]

A continuous random variable has P(X>10)=0.35P(X>10)=0.35P(X>10)=0.35. Determine P(X≥10)P(X\ge10)P(X≥10).
Show answer and explanation

Answer: C · Worked explanation

For a continuous variable, one exact value has area 0, so P(X=10)=0P(X=10)=0P(X=10)=0. Then P(X≥10)=P(X>10)+P(X=10)=0.35+0=0.35P(X\ge10)=P(X>10)+P(X=10)=0.35+0=0.35P(X≥10)=P(X>10)+P(X=10)=0.35+0=0.35. The idea that including 10 raises the probability treats the point 10 as having positive probability. That only happens for discrete variables, not for a density curve.
10.

Hard·Determine[2 marks]

A random variable XXX takes the values 1, 2, 3, and 4 with probabilities kkk, 2k2k2k, 3k3k3k, and 4k4k4k. Determine P(X≥3)P(X\ge3)P(X≥3).
Show answer and explanation

Answer: B · Worked explanation

The probabilities add to 1, so k+2k+3k+4k=10k=1k+2k+3k+4k=10k=1k+2k+3k+4k=10k=1 and k=0.1k=0.1k=0.1. Then P(X≥3)=3k+4k=0.30+0.40=0.70P(X\ge3)=3k+4k=0.30+0.40=0.70P(X≥3)=3k+4k=0.30+0.40=0.70. The value 0.30 is only P(X=3)P(X=3)P(X=3), which leaves out the value 4. The value 0.60 is P(X≤3)P(X\le3)P(X≤3), which includes the wrong values, and 0.40 is only P(X=4)P(X=4)P(X=4). Always solve for kkk first, because every other probability depends on it.

Keep going

Next topic2.9 Parameters of random variablesPrevious topic2.7 Independent events and unions

More in Unit 2 · Probability, Random Variables and Probability Distributions

  1. 2.4Introduction to probabilityNotes · 10 questions
  2. 2.5Mutually exclusive eventsNotes · 10 questions
  3. 2.6Conditional probabilityNotes · 10 questions
  4. 2.7Independent events and unionsNotes · 10 questions
  5. 2.8Random variables and distributionsNotes · 10 questions
  6. 2.9Parameters of random variablesNotes · 10 questions
  7. 2.10Binomial distributionNotes · 10 questions
  8. 2.11The normal distributionNotes · 10 questions
  9. 2.12Sampling distributions and the central limit theoremNotes · 10 questions

All AP Statistics topics →

Draft: written by Scribe and checked automatically, not yet by a subject reviewer.

Practice questions are original, written by Scribe and checked automatically for correctness.

Topic codes follow the official numbering. Not endorsed by College Board or any exam board.

On this page

0/5 read

  1. 1A random variable assigns a number to each outcome
  2. 2Random variables are either discrete or continuous
  3. 3A probability distribution lists every value with its probability
  4. 4A valid distribution follows two rules
  5. 5Probabilities of events come from adding or from area
  6. Check your recall
  7. Practice: 10 questions
All coursesScribeHow it worksPricingPrivacyTerms

Notes and questions are written by Scribe in our own words. Topic codes follow the official course numbering so you can find your place. Not produced or endorsed by the IB, College Board, AQA, OCR, Pearson Edexcel or any exam board.

© 2026 Scribe