AP Statistics · Unit 2 · Topic 2.8

    2.8 Introduction to Random Variables and Probability Distributions

    Reviewed by P V Satish, Senior Faculty of Science and Academic Consultant · PG Life Sciences, PGD Biotechnology · 20+ years teaching NEET and AP · Special interest in biotechnology, biochemistry and the basics of physics
    Updated

    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.

    Probability distribution of X = number of cars per household
    x0123
    P(X = x)0.100.400.350.15
    A probability histogram: each bar's height is a probability.

    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

    Translating words into inequalities
    WordsSymbolHere
    at least 2X ≥ 20.35 + 0.15 = 0.50
    more than 2X > 20.15
    at most 1X ≤ 10.10 + 0.40 = 0.50
    fewer than 1X < 10.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.

    1. Question 1 · SP 3 · Analyze Data

      Using the cars distribution, what is P(X ≤ 1)?

    2. Question 2 · SP 3 · Analyze Data

      Which of these is a valid probability distribution?

    3. 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?

    4. Question 4 · SP 2 · Collect Data

      Which is a discrete random variable?

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

    1. (a) Show that this is a valid probability distribution.
    2. (b) Calculate the probability that at least 2 cakes are ordered on a randomly chosen day.
    3. (c) Interpret your answer to (b).

    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.

    How this shows up on the exam42 multiple-choice questions and 4 free-response questions of 10 points. See what each one asks you to do.Full-length AP Statistics practice examsUnit 2 is one of 5 units on the exam. Two timed exams in the 2027 format (42 MCQ + 4 FRQ), with explanations, scoring guides and an estimated 1–5 score. $14.99 · try 5 questions free.

    Free Unit 2 cheat sheet

    Every topic in Unit 2: Probability, Random Variables, and Probability Distributions on a few printable pages: the core idea, key terms, the two traps students fall into and what the exam asks.

    We'll use your email to tell you when new AP Statistics practice material is ready. No spam, and we'll delete it if you ask.

    Free Unit 2 practice test: 60 questions with explanations

    All topics in Unit 2: Probability, Random Variables, and Probability Distributions

    1. 2.1 Tabular and Graphical Representations for the Distributions of Two Categorical Variables
    2. 2.2 Summary Statistics for Two Categorical Variables
    3. 2.3 Estimating Probabilities Using Simulation
    4. 2.4 Introduction to Probability
    5. 2.5 Mutually Exclusive Events
    6. 2.6 Conditional Probability
    7. 2.7 Independent Events and Unions of Events
    8. 2.8 Introduction to Random Variables and Probability Distributions
    9. 2.9 Parameters of Random Variables
    10. 2.10 The Binomial Distribution
    11. 2.11 The Normal Distribution
    12. 2.12 Sampling Distributions and the Central Limit Theorem

    Other units in AP Statistics

    AP® is a trademark registered by College Board, which is not affiliated with, and does not endorse, this website.