Random Variables and Their Combinations

AP Statistics · Unit 2 — Probability, Random Variables, and Probability Distributions

Key takeaway

From the May 2027 exam, combining and transforming random variables ($X\pm Y$, $a+bX$) is no longer tested. The mean and standard deviation of a single discrete random variable are still tested.

Mean and variance of a discrete random variable

$$\mu_X=\sum x_iP(x_i),\qquad \sigma_X^2=\sum\left(x_i-\mu_X\right)^2P(x_i)$$

Combining random variables

Means always add:

$$\mu_{X\pm Y}=\mu_X\pm\mu_Y$$

Variances add only when $X$ and $Y$ are independent, and they add even for a difference:

$$\sigma^2_{X\pm Y}=\sigma_X^2+\sigma_Y^2$$

The plus sign in the variance of a difference is the single most-tested detail here: subtracting two random quantities makes the result more variable, not less.

For a linear transform: $\mu_{a+bX}=a+b\mu_X$ and $\sigma_{a+bX}=\left|b\right|\sigma_X$.

Worked example: the difference of two independent variables

$X$ has $\mu=50,\sigma=6$; $Y$ has $\mu=42,\sigma=8$; they are independent. Find the mean and standard deviation of $X-Y$.

Solution

Mean: $\mu_{X-Y}=50-42=8$.

Variances add: $\sigma^2_{X-Y}=6^2+8^2=36+64=100$.

Standard deviation: $\sigma_{X-Y}=\sqrt{100}=10$.

Note that $10$ is larger than both $6$ and $8$ — matching the intuition that “subtracting piles the variability together”. Anyone who takes $8-6=2$ falls into the central trap.

Common mistake

Variances can be added only when the two variables are independent. Exams often give two clearly related variables (heights of father and son) and ask for the standard deviation of the difference — the correct answer is cannot be computed from the given information.

Key takeaway

Means add/subtract normally. Variances always add. Never add standard deviations directly.

← Conditional Probability and Tree Diagrams · All AP Statistics lessons · Practice AP Statistics questions (free, instant scoring) · Binomial and Geometric Distributions →