Statistics · Unit 4: Probability, Random Variables, and Probability Distributions · 14 min read · Updated 2026-05-11
Transforming Random Variables — AP Statistics
AP Statistics · Unit 4: Probability, Random Variables, and Probability Distributions · 14 min read
1. What Is Transforming Random Variables?★★☆☆☆⏱ 2 min
Transforming a random variable means changing every outcome of the original variable by a fixed mathematical function to produce a new, transformed random variable. This technique is extremely common in real-world statistics when we need to convert units, adjust for a fixed baseline measurement, or scale raw data for analysis. For example, if you have a random variable $X$ that measures temperature in degrees Celsius, you can transform it to Fahrenheit with $Y = \frac{9}{5}X + 32$ to get a new random variable $Y$ with its own mean, variance, and distribution shape.
This topic is part of Unit 4, which accounts for 12–15% of the total AP exam score. It appears regularly in both multiple-choice (MCQ) and free-response (FRQ) sections, often combined with other topics like normal distributions or combining random variables. Linear transformations, which take the general form $Y = aX + b$ where $a$ and $b$ are fixed constants, are the primary focus of the AP exam.
2. Effect of Linear Transformations on Expected Value (Mean)★★☆☆☆⏱ 3 min
We can derive this rule from the definition of expected value for discrete random variables:
E(Y) = \sum y_i P(Y=y_i) = \sum (a x_i + b) P(X=x_i) = a \sum x_i P(X=x_i) + b \sum P(X=x_i)
Since $\sum P(X=x_i) = 1$ for any valid probability distribution, this simplifies to the rule we use.
Exam tip: Always write the general formula first to earn method points on FRQs
3. Effect of Linear Transformations on Variance and Standard Deviation★★★☆☆⏱ 3 min
Adding a constant $b$ does not change the spread of the distribution — it only shifts the entire distribution left or right, so all observations stay the same distance apart, and spread remains unchanged. We can derive the variance rule from the definition of variance:
For standard deviation, which is the square root of variance, the rule becomes:
\sigma_Y = |a| \sigma_X
Exam tip: Double-check whether the question asks for variance or standard deviation
4. Linear vs Non-Linear Transformations★★★☆☆⏱ 4 min
All the rules we have covered so far apply only to linear transformations of the form $Y = aX + b$. Non-linear transformations (e.g., $Y = X^2$, $Y = \sqrt{X}$, $Y = \ln(X)$) do not follow these rules. In particular, for any non-linear function $g(X)$, the expected value of the transformation is almost never equal to the transformation of the expected value: $E(g(X)) \neq g(E(X))$.
Common Pitfalls
Why: Students confuse the mean rule with the variance rule, incorrectly carrying over the shift term and forgetting to square the scale factor
Why: Students memorize the linear rule so well they automatically apply it to any transformation without checking the form
Why: Students assume all parts of the transformation affect all statistics, just like the mean
Why: Students mix up the direction of unit conversion
Why: Students think stretching the distribution changes its shape, but this is incorrect