| Study Guides
College Board · cb-statistics · AP Statistics · Probability and Random Variables · 18 min read · Updated 2026-05-07

Probability and Random Variables — AP Statistics Stats Study Guide

For: AP Statistics candidates sitting AP Statistics.

Covers: Basic probability rules, conditional probability and independence, discrete and continuous random variables, mean and standard deviation of random variables, and binomial/geometric probability distributions.

You should already know: Algebra 2, basic probability intuition.

A note on the practice questions: All worked questions in the "Practice Questions" section below are original problems written by us in the AP Statistics style for educational use. They are not reproductions of past College Board papers and may differ in wording, numerical values, or context. Use them to practise the technique; cross-check with official College Board mark schemes for grading conventions.


1. What Is Probability and Random Variables?

Probability is the mathematical framework for quantifying uncertainty in random events, while random variables assign numerical values to outcomes of these random processes, forming the core of all statistical inference in the AP Statistics curriculum. Standard notation uses for the probability of event , and capital letters (, ) to represent random variables, with lowercase letters (, ) for observed values of those variables. This unit makes up 10-20% of your total AP Statistics exam score, per the official CED, and underpins all later topics including sampling distributions, confidence intervals, and hypothesis testing.

2. Basic probability rules

All probability calculations follow a set of universal rules, built on the definition of a sample space , the set of all possible outcomes of a random process, and events, which are subsets of that sample space:

  1. Probability range: for any event , where 0 represents an impossible event and 1 represents a certain event.
  2. Complement rule: The probability of an event not occurring is , where is the complement of event .
  3. General addition rule: For any two events and , the probability of either event occurring is , where is the intersection of and (both events occurring).
  4. Mutually exclusive addition rule: If and cannot occur at the same time (no overlapping outcomes), , so .
  5. Total probability rule: The sum of probabilities for all outcomes in the sample space equals 1.

Worked example

You roll a fair 6-sided die. Event = rolling an even number, Event = rolling a number greater than or equal to 4. Calculate .

  1. Sample space , each outcome has probability
  2. ,
  3. Overlap
  4. Apply general addition rule: , or

Examiners frequently test the general addition rule, so never assume events are mutually exclusive unless explicitly stated.

3. Conditional probability and independence

Conditional probability is the probability of an event occurring given that another event has already happened, written (read "probability of A given B"). The formula is derived by restricting the sample space to only outcomes where is true:

Two events are independent if the occurrence of one does not change the probability of the other occurring. All three of the following conditions are equivalent, and any can be used to verify independence on the exam:

Worked example

A survey of 100 high school students finds 60 play soccer, 35 play basketball, and 20 play both sports. a) What is the probability a student plays basketball given they play soccer? b) Are playing soccer and playing basketball independent events? Justify your answer.

  1. Part a:
  2. Part b: Test the independence condition , which is not equal to . The events are not independent.

Always show the full calculation when verifying independence on free response questions; stating the result without work will lose points.

4. Random variables — discrete and continuous

A random variable (RV) is a variable that takes numerical values based on the outcome of a random process. There are two core categories of random variables tested on the AP exam:

  1. Discrete random variables: Take a countable set of distinct values (e.g., number of heads in 10 coin flips, number of customers entering a store in an hour). They are described by a probability mass function (PMF) , where the sum of all values equals 1, and each is between 0 and 1.
  2. Continuous random variables: Take all values in an interval of real numbers (e.g., height of a randomly selected student, time to finish an exam). They are described by a probability density function (PDF), where the area under the PDF over an interval gives the probability of the RV falling in that interval. For any single value , , since there is no area over a single point. The total area under the entire PDF equals 1.

Worked example

Classify each random variable as discrete or continuous: a) Number of correct answers on a 50-question multiple choice test b) Weight of a randomly chosen bag of chips c) Number of rain days in a month Solution: a) Discrete (countable values 0 to 50), b) Continuous (can take any value in a range, measured to infinite precision), c) Discrete (countable whole number values)

A common exam trap asks for the probability of a continuous RV taking a single value; the correct answer is always 0.

5. Mean and SD of a random variable

The mean of a random variable, also called the expected value or , is the long-run average value of the RV if the random process is repeated infinitely many times. For discrete RVs, it is calculated by weighting each possible value by its probability:

Variance measures the spread of the RV around its mean, calculated as the average squared deviation from the mean: A faster alternative formula for variance, recommended for exam use, is , where .

Standard deviation is the square root of variance, and has the same units as the original random variable, making it easier to interpret than variance:

Worked example

A discrete RV has the following PMF: ; ; . Calculate , , and .

6. Binomial and geometric distributions

The binomial and geometric distributions are the two most commonly tested discrete probability distributions on the AP Statistics exam, each applying to specific random process scenarios:

Binomial distribution

A random variable follows a binomial distribution if the process meets the BIN conditions:

  • B: Binary outcomes (each trial is either a success or failure)
  • I: Independent trials (outcome of one trial does not affect others)
  • N: Fixed number of trials
  • P: Constant probability of success on each trial

For a binomial RV, the probability of exactly successes in trials is: where is the combination of items taken at a time. The mean and variance of a binomial RV are:

Geometric distribution

A random variable follows a geometric distribution if the process counts the number of trials until the first success, meeting the same binary, independent, and constant conditions as the binomial, but with no fixed number of trials. The probability the first success occurs on the th trial is: The mean and variance of a geometric RV are:

Worked example

You flip a fair coin ( for heads) repeatedly. a) What is the probability you get exactly 3 heads in 5 flips? b) What is the probability the first head appears on the 4th flip?

  1. Part a: :
  2. Part b: :

Always explicitly state the conditions for your chosen distribution when answering free response questions to earn full credit.

7. Common Pitfalls (and how to avoid them)

  • Pitfall 1: Forgetting to subtract the intersection in the general addition rule, leading to probabilities greater than 1. Why it happens: Students incorrectly assume all events are mutually exclusive. Correct move: Always use the general addition rule unless you are explicitly told events cannot overlap.
  • Pitfall 2: Calculating as instead of . Why it happens: Students mix up the order of conditional probability and forget the restriction to the sample space of the given event. Correct move: Write the conditional probability formula explicitly before plugging in any numbers, and label which event is the "given" first.
  • Pitfall 3: Assigning a non-zero probability to a single value of a continuous random variable. Why it happens: Students apply discrete RV rules to continuous RVs. Correct move: For continuous RVs, only calculate probability over intervals, and state if asked for a single point probability.
  • Pitfall 4: Using the binomial distribution for problems counting trials until the first success. Why it happens: Students focus only on binary outcomes and independent trials, missing the fixed number of trials requirement for binomial distributions. Correct move: Ask: "Am I counting successes in a fixed number of trials (binomial) or trials until the first success (geometric)?"
  • Pitfall 5: Using the sample mean formula for expected value of a random variable. Why it happens: Students confuse descriptive statistics means with probability expected values. Correct move: Weight each RV value by its probability, only use the sample mean formula for observed data sets with equal weight for each observation.

8. Practice Questions (AP Statistics Style)

Question 1

A local coffee shop finds that 30% of customers buy a pastry, 40% buy a coffee, and 20% buy both. a) What is the probability a randomly selected customer buys a pastry or a coffee? b) What is the probability a customer buys coffee given they bought a pastry? c) Are buying a pastry and buying coffee independent events? Justify your answer.

Solution 1

a) Use the general addition rule: , or 50% b) Conditional probability: , or c) Test independence: , which is not equal to . The events are not independent.


Question 2

A discrete random variable represents the number of hours a student spends studying per week, with PMF: ; ; ; . a) Calculate the expected number of study hours per week. b) Calculate the standard deviation of study hours.

Solution 2

a) hours b) hours


Question 3

A student guesses randomly on a 10-question multiple choice test, where each question has 4 options, only one correct. a) What is the probability the student gets exactly 3 questions correct? b) What is the probability the student gets at least 1 question correct? c) What is the expected number of correct answers?

Solution 3

This is a binomial distribution: trials, probability of a correct guess, independent trials, binary outcomes. a) , or 25% b) Use the complement rule: , or 94.4% c) Expected value: correct answers

9. Quick Reference Cheatsheet

Category Formulas and Rules
Basic Probability


if mutually exclusive
Conditional Probability & Independence $P(A
Discrete Random Variables

Binomial Distribution ()
,
Geometric Distribution ()
,
Continuous Random Variables for all single values
Probability = area under PDF over interval

10. What's Next

This unit is the foundational building block for all remaining content in the AP Statistics curriculum. Next, you will apply these probability rules to sampling distributions, which describe how sample statistics (like sample mean or sample proportion) vary across repeated samples, and form the basis for confidence intervals and hypothesis testing, which make up 30-40% of your total exam score. Understanding random variables and their distributions will also help you interpret the results of statistical studies, a key skill for the investigative task in the free response section of the AP Stats exam.

If you have any questions about probability rules, distributions, or how to apply these concepts to exam questions, you can ask Ollie at any time for personalized explanations, worked examples, or extra practice problems. Head to the homepage, to access more AP Statistics study guides, practice tests, and AI tutoring support tailored to your learning needs.

← Back to topic

Stuck on a specific question?
Snap a photo or paste your problem — Ollie (our AI tutor) walks through it step-by-step with diagrams.
Try Ollie free →