Discrete Random Variables — AP Statistics Study Guide
For: AP Statistics candidates sitting AP Statistics.
Covers: Definition of discrete random variables, probability mass functions, expected value (mean), variance, linear transformations, and combining independent discrete random variables, aligned to AP Statistics CED learning objectives.
You should already know: Basic probability rules for sample spaces. Summation notation for finite calculations. Basic properties of mean and standard deviation for data.
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 / Cambridge / IB papers and may differ in wording, numerical values, or context. Use them to practise the technique; cross-check with official mark schemes for grading conventions.
1. What Is Discrete Random Variables?
A discrete random variable (DRV) is a variable that takes on a countable number of distinct values, where each value has an associated probability of occurring. Unlike continuous random variables (which take uncountably infinite values over an interval, like time spent waiting in line), DRVs can be listed one by one: common examples include the number of heads in 10 coin flips, the number of customers arriving at a store in an hour, or the number of defective items in a production batch.
Notation convention per AP Statistics uses capital letters (e.g., , ) for the random variable itself, and lowercase letters (e.g., , ) for specific observed values of the variable. According to the AP Statistics CED, this topic and its related subtopics make up approximately 10-15% of Unit 4’s exam weight, and DRV questions appear on both the multiple-choice (MCQ) and free-response (FRQ) sections of the exam. DRVs are the foundation for all common probability distributions tested on the AP exam, including binomial and geometric distributions, which are special cases of discrete random variables. Any question involving counting distinct outcomes will rely on the rules and properties covered here.
2. Probability Distributions for Discrete Random Variables
A probability distribution (specifically called a probability mass function, or PMF, for discrete variables) describes all possible values of a DRV and the probability that the variable takes each value. For a DRV , the PMF is written , and it must satisfy two non-negotiable requirements: (1) for all possible , and (2) the sum of all over all possible equals 1, or .
We can represent a DRV distribution as a table, a histogram, or a list of outcomes and probabilities. A cumulative distribution function (CDF) gives the probability that is less than or equal to a specific value: . The CDF simplifies calculating probabilities for ranges of outcomes: .
Worked Example
A student organization sells up to 5 snack bags per person at a campus event. Let = the number of snack bags bought by a randomly selected person. The partial probability distribution is given below:
| 1 | 2 | 3 | 4 | 5 | |
|---|---|---|---|---|---|
| 0.21 | 0.28 | 0.19 | ? | 0.08 |
(a) Find the missing probability for ; (b) Calculate .
- By the fundamental rule of probability distributions, the sum of all probabilities must equal 1. Let :
- Sum the known probabilities: . This gives , so .
- For part (b), includes the values (since 5 is not less than 5).
- Sum the probabilities for these values: , so .
Exam tip: Always circle the inequality sign in the problem before calculating interval probabilities. AP questions frequently test the distinction between (does not include ) and (does include ).
3. Expected Value and Variance of a Discrete Random Variable
The expected value (or mean) of a discrete random variable , written , is the long-run average value of we would expect to observe if we repeated the random process infinitely many times. The formula for expected value is:
Variance, written , measures the spread of the distribution, or the average squared deviation of from its mean. The definition formula is , but a more calculation-friendly equivalent formula (used on nearly all AP exam problems) is:
The standard deviation is the square root of the variance, and it measures spread in the original units of , unlike variance which is in squared units.
Worked Example
Using the snack bag distribution from the previous example (), calculate the expected value, variance, and standard deviation of .
- Calculate expected value:
- Calculate for the variance formula:
- Calculate variance:
- Calculate standard deviation: .
Exam tip: On FRQs, you will often need to interpret expected value or standard deviation in context. Always frame it as a long-run average, not a prediction for a single outcome: for this example, "Over many randomly selected people, the average number of snack bags bought is about 2.7."
4. Linear Transformations of Discrete Random Variables
A linear transformation changes a random variable into a new random variable , where and are fixed constants. This occurs constantly in real-world problems: common examples include unit conversion (e.g., changing from dollars to cents, where ) or adding a fixed fee to a variable payout.
The rules for expected value and variance after linear transformation always hold, regardless of whether is discrete or continuous:
- Expected value:
- Variance:
The constant does not affect variance because adding shifts all values of by the same amount, so the spread of the distribution does not change. Only scaling by changes spread, and since variance is in squared units, we square .
Worked Example
The student organization makes 0.50 donation from every person who buys at least one snack bag. Let be the total profit the organization gets from a randomly selected person. Using the previous distribution of (, ), find the expected value and standard deviation of .
- Write the transformation relating to : Total profit = 0.50 fixed donation, so .
- Calculate expected value using the linear transformation rule:
- Calculate variance, remembering to square the coefficient :
- Calculate standard deviation: .
Exam tip: The most common mistake here is forgetting to square when calculating variance. Write the formula on your paper before plugging in values to avoid this error.
5. Combining Independent Discrete Random Variables
We often want to find the expected value and variance of the sum or difference of two discrete random variables. Two random variables and are independent if knowing the value of one does not change the probability distribution of the other.
The rules for combining random variables are:
- For any constants , . This rule always holds, even if and are dependent.
- For independent and , . This rule only works for independent variables, and variances always add, even when we take the difference of two variables. For , this gives .
Worked Example
At the campus event, there are two separate check-in lines. Let be the number of snack bags bought per person in the first line, and be the number per person in the second line. and are independent, and both have the same distribution as before (, ). Let , the difference in mean snack bags bought between the two lines. Find the expected value and variance of .
- Expected value of a difference is the difference of expected values: This makes sense: there is no systematic difference between the two lines, so the expected difference is 0.
- Since and are independent, we add the variances even for a difference:
- The standard deviation of is .
Exam tip: Never subtract variances when calculating . The square of is always 1, so variances add regardless of whether you add or subtract the random variables.
6. Common Pitfalls (and how to avoid them)
- Wrong move: Calculating as . Why: Students incorrectly extend the expected value rule (difference of expectations is expectation of differences) to variance. Correct move: Always square the coefficient for variance; for , coefficients are 1 and -1, both square to 1, so add variances.
- Wrong move: Forgetting to square when calculating . Why: Expected value uses to the first power, so students carry this over to variance by mistake. Correct move: Write the variance formula explicitly before plugging in numbers to confirm you squared .
- Wrong move: Including in when calculating interval probabilities. Why: Students rush and do not read inequality signs carefully. Correct move: Circle the inequality in the problem, then explicitly list all included values before summing probabilities.
- Wrong move: Interpreting expected value as "the most likely value of ". Why: Students confuse the long-run average (expected value) with the mode (most common outcome). Correct move: Always interpret expected value as the long-run average of many repeated observations of the random variable.
- Wrong move: Applying the variance addition rule to dependent random variables. Why: Students assume independence automatically if it is not explicitly stated. Correct move: Never add variances unless the problem explicitly states the random variables are independent.
- Wrong move: Guessing a missing probability instead of using the total probability rule. Why: Students forget the fundamental requirement that all probabilities sum to 1. Correct move: Any time you have a missing probability in a discrete PMF, use to solve for it.
7. Practice Questions (AP Statistics Style)
Question 1 (Multiple Choice)
Let be a discrete random variable with and . Let . What are and ? A) , B) , C) , D) ,
Worked Solution: We use the linear transformation rules for discrete random variables. First, for expected value: . Here, , , and , so . For variance: , so . This matches option B. Correct answer: .
Question 2 (Free Response)
A coffee shop sells 1, 2, 3, or 4 lattes to a drive-thru customer. Let be the number of lattes bought by a randomly selected customer. The probability distribution of is given below:
| 1 | 2 | 3 | 4 | |
|---|---|---|---|---|
| 0.4 | 0.3 | 0.2 | 0.1 |
(a) Find . (b) Calculate the expected value and standard deviation of . (c) The coffee shop charges 1 service fee for any drive-thru order. Let be the total cost for a randomly selected customer's order. Find the expected value and standard deviation of .
Worked Solution: (a) includes and , so .
(b) Calculate expected value: Calculate Variance: Standard deviation:
(c) Total cost follows the transformation . Expected value: dollars. Variance: Standard deviation: dollars.
Question 3 (Application / Real-World Style)
A ecologist studying pollinators counts the number of monarch butterflies observed in a 10-minute survey of a milkweed patch. Let be the number of monarchs observed in a random 10-minute survey, with the following probability distribution:
| (monarchs) | 0 | 1 | 2 | 3 |
|---|---|---|---|---|
| 0.52 | 0.28 | 0.14 | 0.06 |
Two independent 10-minute surveys are conducted on different days. Let be the total number of monarchs observed across the two surveys. Find the expected value and standard deviation of , and interpret the expected value in context.
Worked Solution: First, calculate the expected value and variance of for one survey: Let = number of monarchs in first survey, = number in second survey, so . For independent surveys: Interpretation: Over many pairs of independent 10-minute surveys, the average total number of monarchs observed per pair of surveys is approximately 1.48.
8. Quick Reference Cheatsheet
| Category | Formula | Notes |
|---|---|---|
| PMF Total Probability Rule | Always holds; use to solve for missing probabilities | |
| Expected Value (Mean) | Interpreted as the long-run average value of | |
| Variance (Computational Form) | Easier to calculate than the deviation formula for exams | |
| Linear Transformation (EV) | Always holds; no independence required | |
| Linear Transformation (Variance) | Adding a constant does not change spread | |
| Combined EV (any RVs) | Always holds, even for dependent random variables | |
| Combined Variance (independent RVs) | Add variances even when calculating |
9. What's Next
Discrete random variables are the foundation for the specific discrete probability distributions you will study next in Unit 4: binomial random variables and geometric random variables, both of which are special cases of discrete random variables with their own simplified rules for expected value and variance. Without mastering the general rules for expected value, variance, linear transformations, and combining independent random variables covered here, you will not be able to correctly apply the rules for these specific distributions, which are heavily tested on the AP exam. Beyond Unit 4, the rules for combining random variables also extend to sampling distributions, which are the foundation for statistical inference (confidence intervals and hypothesis testing) in Units 5–8. This means a strong understanding of discrete random variables is critical for almost half of the AP Statistics exam content.
Binomial Random Variables Geometric Random Variables Sampling Distributions