| Study Guides
Statistics · Unit 4: Random Variables · 14 min read · Updated 2026-05-11

AP Statistics Random Variables — AP Statistics

AP Statistics · Unit 4: Random Variables · 14 min read

1. What is a Random Variable? ★☆☆☆☆ ⏱ 2 min

A random variable (RV) is a function that maps every possible outcome of a random process to a unique numerical value. Converting outcomes to numbers allows us to use mathematical tools to analyze random processes, which is the foundation of all statistical inference. AP Statistics uses the convention: uppercase letters ($X$, $Y$) name the random variable, lowercase letters ($x$, $y$) refer to specific observed values. Following this notation avoids confusion on free-response questions (FRQs).

2. Discrete and Continuous Probability Distributions ★★☆☆☆ ⏱ 3 min

A discrete random variable has a probability distribution that lists every possible value $x$ and its corresponding probability $P(X=x)$. A discrete distribution is valid only if two conditions are met: (1) $0 \leq P(X=x) \leq 1$ for all $x$, and (2) the sum of all probabilities equals 1.

A continuous random variable uses a probability density function (pdf) to describe probability, where the probability of an event is the area under the pdf curve over the interval of interest. A key property: $P(X = x) = 0$ for any single value $x$, so $P(a < X < b) = P(a \leq X \leq b)$ for any $a < b$. The total area under any valid pdf is 1.

Exam tip: On AP FRQs, always explicitly state and verify both validity conditions; skipping one condition will almost always cost you a point.

3. Expected Value and Variance of Discrete Random Variables ★★★☆☆ ⏱ 4 min

The expected value (or mean) of a random variable $X$, denoted $E(X)$ or $\mu_X$, is the long-run average value of $X$ if the random process is repeated infinitely many times. For a discrete random variable, expected value is calculated as:

E(X) = \mu_X = \sum x \cdot P(X=x)

Variance, denoted $Var(X)$ or $\sigma_X^2$, measures the spread of the distribution around the expected value. It is the expected value of the squared deviation from the mean. The most convenient computational formula for variance of a discrete random variable is:

Var(X) = \sigma_X^2 = E(X^2) - [E(X)]^2

Where $E(X^2) = \sum x^2 \cdot P(X=x)$. The standard deviation $\sigma_X = \sqrt{Var(X)}$, which has the same units as the original random variable (unlike variance, which has squared units). AP Statistics does not require manual calculation of $E(X)$ or $Var(X)$ for continuous random variables, but you must know their interpretations.

Exam tip: Always interpret expected value in context on FRQs, even if the question does not explicitly ask for an interpretation; this is a common free point that many students miss.

4. Linear Transformations of Random Variables ★★★☆☆ ⏱ 3 min

A linear transformation converts a random variable $X$ into a new random variable $Y = aX + b$, where $a$ and $b$ are fixed constants. Common examples include unit conversion or adding a fixed fee to a random payout. The rules for mean and variance of $Y$ are:

E(aX + b) = aE(X) + b

Var(aX + b) = a^2 Var(X)

\sigma_{aX + b} = |a| \sigma_X

Intuition: Adding a constant $b$ shifts every value of $X$ by the same amount, so it shifts the mean by $b$ but does not change spread. Multiplying by $a$ scales the mean by $a$, and variance scales by $a^2$ because variance is measured in squared units. These rules hold for all random variables, discrete and continuous.

Exam tip: Never include the constant $b$ in the variance calculation; a common mistake is writing $Var(aX + b) = a^2 Var(X) + b^2$, which is incorrect.

5. Combining Independent Random Variables ★★★★☆ ⏱ 3 min

We often need to find the mean and variance of a sum or difference of two random variables, for example total profit from two locations or difference in wait times between two counters. Linearity of expectation holds for *all* random variables, regardless of independence:

E(X \pm Y) = E(X) \pm E(Y)

For variance, the addition rule only applies if $X$ and $Y$ are independent (the outcome of one does not affect the probability distribution of the other):

Var(X \pm Y) = Var(X) + Var(Y)

Exam tip: When you see a difference of two independent random variables, automatically write the sum of variances before doing any other calculation to avoid the most common mistake on this topic.

Common Pitfalls

Why: Students assume the minus sign from expectation carries over to variance, but variance measures spread, which always increases when combining independent variables.

Why: Students confuse discrete and continuous distribution rules, forgetting that continuous variables have non-zero probability only for intervals.

Why: Students mix up the linear expected value rule with the variance rule.

Why: Students rush through routine problems and forget the second required condition.

Why: Problems don’t always explicitly remind you that independence is required, so students assume the rule works for all random variables.

Quick Reference Cheatsheet

← 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 →