AP Statistics · Class 11 · Grades 10–12

AP Statistics Class 11: Random Variables & Expected Value — 12 SOMATH Posters, Theory & 60 Practice Questions

The whole AP Statistics random-variables unit in one class. Twelve SOMATH posters walk through what a random variable is, discrete vs. continuous, probability distributions, valid-distribution rules, missing probabilities, expected value, interpreting E(X), decisions and games, variance, standard deviation, transforming a random variable, and combining random variables. Under each poster you’ll find full theory notes and 5 practice questions with click-to-reveal step-by-step solutions — 60 questions total.

How to use this page. Study each poster first, then read the theory notes below it, then work the 5 practice questions. Click Show solution only after you’ve tried a problem. Bring questions to your SOMATH AP Statistics teacher — or book a free 30-minute evaluation at 226 W 79th St.

1. What Is a Random Variable?

SOMATH Class 11 poster — What Is a Random Variable?

Definition

A random variable is a numerical value determined by the outcome of a random process. We usually write it with a capital letter — X, Y, Z — and its individual values with lowercase letters.

Example 1: Roll a fair six-sided die

Let X = the number rolled. The possible values are 1, 2, 3, 4, 5, 6, each equally likely with probability 1/6.

Example 2: Flip 3 coins

Let X = the number of heads. The possible values are 0, 1, 2, 3. Even though the outcome of each flip is unknown, X is a well-defined number every time we do the experiment.

Why we call it "random"

The value depends on chance. Before the experiment we cannot know what X will be — only what values it could take and how likely each value is.

Why it matters

Random variables let us apply arithmetic — sums, averages, comparisons — to random processes. Every AP Statistics topic that follows in this unit (probability distributions, expected value, variance, binomial, geometric, sampling distributions) starts with a random variable.

5 Practice Questions — What Is a Random Variable?

Q1. A spinner shows 1, 2, 3, 4. Let X = the number the spinner lands on. Is X a random variable? What are its possible values?
Solution: Yes. X is a numerical value determined by a random process. Possible values: 1, 2, 3, 4.
Q2. A bag has 3 red and 2 blue marbles. You draw one and let X = 1 if red, 0 if blue. List the possible values of X.
Solution: Possible values: 0 and 1. This is called an indicator random variable.
Q3. You flip a coin 4 times and record the number of tails. Let X = number of tails. What values can X take?
Solution: 0, 1, 2, 3, 4 — any whole number from 0 up to the number of flips.
Q4. True or false: a random variable must be a whole number.
Solution: False. A random variable is any numerical value determined by a random process — it does not have to be a whole number.

Why students often say "true": the first examples we meet are discrete counts (dice, coin flips, absences), and every value in those is a whole number. That’s a feature of those examples, not a requirement.

Counter-examples — random variables that are not whole numbers:
  • Height of a randomly chosen student: 152.3 cm, 152.34 cm, … (continuous)
  • Time to finish a test: 23.4 minutes (continuous)
  • Temperature at 3 p.m.: 72.8°F (continuous)
  • A student’s GPA: 3.75 (discrete, but not a whole number)
  • Your net winnings on the $2 game from Section 6: −$2 or +$3 (discrete, integers here, but expected value E(X) = −$0.50 — also a random variable’s summary, not a whole number)
Rule of thumb: discrete random variables can be listed (often but not always whole numbers — think GPA, shoe size 8.5), and continuous random variables can take any value in an interval (almost never whole numbers). Both are valid random variables.
Q5. A student says “the color of a marble is a random variable.” Is that correct? Why?
Solution: Not quite. A random variable must be numerical. To turn color into a random variable, we’d assign numbers (for example 1 = red, 0 = blue).

2. Discrete vs. Continuous Random Variables

SOMATH Class 11 poster — Discrete vs. Continuous Random Variables

Two kinds of random variables

Every random variable is either discrete or continuous. Which kind it is decides how we write its probability model and how we compute probabilities.

Discrete — you can count

A discrete random variable takes countable values (finite or countably infinite). The possible values can be listed: 0, 1, 2, 3, ….

  • Number on a die: 1, 2, 3, 4, 5, 6
  • Number of heads in 3 coin flips: 0, 1, 2, 3
  • Number of students absent: 0, 1, 2, …
  • Number of goals in a soccer game: 0, 1, 2, …

Continuous — you measure

A continuous random variable can take any value in an interval. The possible values form a continuum — infinitely many values, and between any two you can always find another.

  • Height of a person: 150.5 cm, 150.6 cm, 150.63 cm, …
  • Time to complete a test: 23.4 minutes
  • Temperature: 72.3°F
  • Weight of a package: 1.27 kg

Bar chart vs density curve

Discrete distributions are shown with a bar chart (or histogram): one bar per possible value, height = probability. Continuous distributions are shown with a density curve: probability is area under the curve, not the height at a single point.

Rule of thumb. If the natural question is “How many?” the variable is discrete. If it’s “How much?” the variable is continuous.

5 Practice Questions — Discrete vs. Continuous Random Variables

Q1. Classify as discrete or continuous: number of cars that pass a light in an hour.
Solution: Discrete — you count cars (0, 1, 2, …).
Q2. Classify as discrete or continuous: exact time (in seconds) it takes a runner to finish a race.
Solution: Continuous — time can take any value in an interval (10.24 s, 10.241 s, …).
Q3. Classify as discrete or continuous: number of siblings a student has.
Solution: Discrete — a countable whole number.
Q4. Classify as discrete or continuous: the weight of a randomly selected apple.
Solution: Continuous — weight is measured, not counted.
Q5. A random variable takes values 0, 0.5, 1, 1.5, 2 with given probabilities. Is it discrete or continuous?
Solution: Discrete. The possible values can be listed — they don’t form a continuum.

3. Probability Distribution of a Discrete RV

SOMATH Class 11 poster — Probability Distribution of a Discrete RV

What a probability distribution shows

A probability distribution of a discrete random variable X lists every possible value x together with its probability P(X = x). It answers two questions at once: what values can X take? and how likely is each?

How to build a distribution — four steps

  1. Identify the random variable in words. (“Let X = …”)
  2. List all possible values of X.
  3. Find the probability of each value.
  4. Check that all probabilities add up to 1.

Example 1: Flip 2 fair coins, X = number of heads

Sample space: HH, HT, TH, TT (4 equally likely outcomes). X can be 0, 1, or 2.

x012
P(X = x)1/41/21/4

Example 2: Roll a fair die, X = number rolled

x123456
P(X = x)1/61/61/61/61/61/6

Valid probability distribution rules

  • Each probability must satisfy 0 ≤ P(X = x) ≤ 1.
  • The probabilities must sum to 1: Σ P(X = x) = 1.

5 Practice Questions — Probability Distribution of a Discrete RV

Q1. Roll a fair die. Write the probability distribution of X = number rolled.
Solution: Every value 1–6 has probability 1/6. Distribution: P(X = k) = 1/6 for k = 1, 2, 3, 4, 5, 6.
Q2. Flip 2 fair coins. Let X = number of tails. Write the probability distribution.
Solution: Outcomes: HH, HT, TH, TT. P(X = 0) = 1/4, P(X = 1) = 1/2, P(X = 2) = 1/4.
Q3. A random variable X has distribution P(X = 1) = 0.2, P(X = 2) = 0.5, P(X = 3) = 0.3. Compute P(X ≥ 2).
Solution: P(X ≥ 2) = P(X = 2) + P(X = 3) = 0.5 + 0.3 = 0.8.
Q4. For the same X, compute P(X < 3).
Solution: P(X < 3) = P(X = 1) + P(X = 2) = 0.2 + 0.5 = 0.7.
Q5. List the four steps to build a probability distribution for a discrete random variable.
Solution: (1) Identify the random variable; (2) list all possible values; (3) find the probability of each value; (4) check that the probabilities add to 1.

4. Rules for a Valid Probability Distribution

SOMATH Class 11 poster — Rules for a Valid Probability Distribution

Two rules — both must hold

A discrete probability distribution is valid only when it passes both checks. Miss either one and the table is not a probability distribution.

Rule 1 — each probability is between 0 and 1

0 ≤ P(X = x) ≤ 1 for every value of x. A negative probability is impossible; a probability greater than 1 is impossible.

Rule 2 — the probabilities sum to 1

Σ P(X = x) = 1 summed over every possible value of X. If they sum to more or less than 1, some probability is wrong or a value is missing.

Valid example

x0123
P(X = x)0.100.300.400.20

All four values are in [0, 1] and 0.10 + 0.30 + 0.40 + 0.20 = 1.00. Valid.

Invalid example

x0123
P(X = x)0.200.500.40−0.10

P(X = 3) = −0.10 is not between 0 and 1, so Rule 1 is violated on the spot.

The poster then adds the four numbers as written — 0.20 + 0.50 + 0.40 + (−0.10) = 1.00 — only to make one narrow point: even if the four cells happen to add to 1, the negative entry still kills the distribution.

What really happens if you ignore the negative entry. Take the three non-negative rows only: 0.20 + 0.50 + 0.40 = 1.10 > 1. So Rule 2 is broken too — the “real” probabilities already sum to more than 1 before the negative row is even considered.

Check Rule 1 first. A negative or above-1 probability makes the table invalid on the spot — you don’t even need to check the sum. And be careful when a “fix-up” negative number is used to force the total to 1: the non-negative entries alone often already break Rule 2.

5 Practice Questions — Rules for a Valid Probability Distribution

Q1. Is this a valid distribution? x: 0, 1, 2; P: 0.3, 0.5, 0.2.
Solution: 0.3 + 0.5 + 0.2 = 1.0 and each is in [0, 1]. Valid.
Q2. Is this a valid distribution? x: 1, 2, 3; P: 0.4, 0.5, 0.2.
Solution: Sum = 1.1 ≠ 1. Not valid — violates Rule 2.
Q3. Is this a valid distribution? x: 0, 1, 2, 3; P: 0.25, 0.25, 0.25, 0.25.
Solution: Sum = 1.00 and each is in [0, 1]. Valid (uniform on 4 values).
Q4. Is this a valid distribution? x: 1, 2, 3, 4; P: 0.3, 0.3, −0.1, 0.5.
Solution: Not valid — P(X = 3) = −0.1 violates Rule 1, even though the sum is 1.0.
Q5. What are the two rules for a valid discrete probability distribution?
Solution: (1) Each probability satisfies 0 ≤ P(X = x) ≤ 1. (2) The probabilities sum to 1: Σ P(X = x) = 1.

5. Finding Missing Probabilities

SOMATH Class 11 poster — Finding Missing Probabilities

Idea

The probabilities in a distribution must sum to 1. If one probability is missing, use that fact to solve for it: Σ P(X = x) = 1.

Method (three steps)

  1. Set up the equation Σ P(X = x) = 1 with the missing probability as an unknown.
  2. Add the known probabilities.
  3. Solve for the missing probability.

Example 1: Find P(X = 2)

x0123
P(X = x)0.200.30?0.10

0.20 + 0.30 + P(X = 2) + 0.10 = 1  ⇒  0.60 + P(X = 2) = 1  ⇒  P(X = 2) = 0.40.

Example 2: Find P(Y = 4)

y1234
P(Y = y)0.150.250.35?

0.15 + 0.25 + 0.35 + P(Y = 4) = 1  ⇒  0.75 + P(Y = 4) = 1  ⇒  P(Y = 4) = 0.25.

Sanity check. After you fill in the missing value, add the whole column. If it isn’t exactly 1, the table has more than one error.

5 Practice Questions — Finding Missing Probabilities

Q1. x: 0, 1, 2, 3; P: 0.1, 0.4, ?, 0.2. Find P(X = 2).
Solution: 0.1 + 0.4 + P + 0.2 = 1 ⇒ P = 1 − 0.7 = 0.3.
Q2. y: 1, 2, 3; P: 0.15, ?, 0.55. Find P(Y = 2).
Solution: 0.15 + P + 0.55 = 1 ⇒ P = 1 − 0.70 = 0.30.
Q3. x: 0, 1, 2, 3, 4; P: 0.05, 0.15, 0.30, ?, 0.10. Find P(X = 3).
Solution: Sum of known = 0.60. P = 1 − 0.60 = 0.40.
Q4. A student solves and gets a missing probability of −0.05. What went wrong?
Solution: The sum of the given probabilities is already greater than 1, so the table is inconsistent. Check the given values — at least one is wrong.
Q5. z: 1, 2, 3, 4; P: 0.2, 0.2, ?, ?. If P(Z = 3) = 2·P(Z = 4), find both missing values.
Solution: Let P(Z = 4) = p. Then P(Z = 3) = 2p. Sum: 0.2 + 0.2 + 2p + p = 1 ⇒ 3p = 0.6 ⇒ p = 0.2. So P(Z = 3) = 0.4, P(Z = 4) = 0.2.

6. Expected Value — The Mean of a Random Variable

SOMATH Class 11 poster — Expected Value — The Mean of a Random Variable

What expected value is

The expected value of a random variable is the long-run average outcome if we repeat the random process many times. It is also called the mean of the random variable, μX.

Formula

μX = E(X) = Σ x · P(X = x)

Multiply each possible value by its probability, then add up the products.

Example 1: Fair six-sided die

x123456
P(X = x)1/61/61/61/61/61/6

E(X) = 1(1/6) + 2(1/6) + 3(1/6) + 4(1/6) + 5(1/6) + 6(1/6) = 21/6 = 3.5.

You cannot roll a 3.5, but if you roll a die a million times, the average of the results is very close to 3.5.

Example 2: A $2 game

The game costs $2 to play. You win $5 with probability 0.3 and win $0 with probability 0.7. Let X be your net winnings in dollars.

x−23
P(X = x)0.70.3

E(X) = (−2)(0.7) + 3(0.3) = −1.4 + 0.9 = −$0.50. In the long run you expect to lose $0.50 per play.

Key takeaways

  • Expected value is the long-run average outcome.
  • Use E(X) = Σ x · P(X = x).
  • It does not have to be a value X can actually take (e.g. 3.5 on a die).
  • It can represent an average gain, loss, cost, or number of successes.

5 Practice Questions — Expected Value — The Mean of a Random Variable

Q1. x: 0, 1, 2; P: 0.2, 0.5, 0.3. Find E(X).
Solution: E(X) = 0(0.2) + 1(0.5) + 2(0.3) = 0 + 0.5 + 0.6 = 1.1.
Q2. A spinner has values 1, 2, 5 with probabilities 0.5, 0.3, 0.2. Find E(X).
Solution: E(X) = 1(0.5) + 2(0.3) + 5(0.2) = 0.5 + 0.6 + 1.0 = 2.1.
Q3. A game pays $10 with probability 0.1 and $0 with probability 0.9. The ticket costs $2. What is your expected net gain?
Solution: Net values: +$8 (win) or −$2 (lose). E = 8(0.1) + (−2)(0.9) = 0.8 − 1.8 = −$1.00. Expect to lose $1 per play.
Q4. A random variable takes values 100, 200, 300 with probabilities 0.5, 0.3, 0.2. Find E(X).
Solution: E(X) = 100(0.5) + 200(0.3) + 300(0.2) = 50 + 60 + 60 = 170.
Q5. An insurance policy pays $500 with probability 0.02 and $0 with probability 0.98. What is the fair (break-even) premium?
Solution: E(payout) = 500(0.02) + 0(0.98) = $10. The break-even premium is $10 (before insurer expenses/profit).

7. Interpreting Expected Value

SOMATH Class 11 poster — Interpreting Expected Value

What expected value really means

Expected value is the weighted average of all possible outcomes, weighted by their probabilities. It tells us what to expect on average over many repetitions — not what to expect on a single trial.

Example: 3 fair coin flips, X = number of heads

x0123
P(X = x)1/83/83/81/8

E(X) = 0(1/8) + 1(3/8) + 2(3/8) + 3(1/8) = 12/8 = 1.5.

What does 1.5 heads mean?

You cannot actually get 1.5 heads in one set of 3 flips (you get 0, 1, 2, or 3). But if you repeat the “flip 3 coins” experiment many times, the average number of heads per set will be very close to 1.5.

Three important points

  1. Expected value is the long-run average outcome — not the most likely value.
  2. It is a weighted average: more likely outcomes pull the answer more.
  3. It does not have to be a possible outcome. 1.5 heads, 3.5 on a die, and −$0.50 on a game are all valid expected values you can never actually observe on one trial.
Common mistake. Students hear “expected” and think most likely. They’re not the same. The most likely number of heads in 3 flips is 1 or 2 (both have probability 3/8), but the expected value is 1.5.

5 Practice Questions — Interpreting Expected Value

Q1. A student computes E(X) = 2.7 for the number of heads in 4 flips. Is 2.7 a possible outcome?
Solution: No — you can only observe 0, 1, 2, 3, or 4 heads. But over many sets of 4 flips, the average number of heads is 2.7.
Q2. What is the difference between the expected value and the most likely value of a random variable?
Solution: Expected value is the weighted average of all outcomes (each weighted by probability). Most likely = the value with the highest probability. They can be different (and often are).
Q3. A shop’s daily profit has E(X) = $450. On a random day, will they earn exactly $450?
Solution: Not necessarily. Any single day’s profit could be higher or lower. Over many days, the average will be close to $450.
Q4. For X = number of heads in 3 fair coin flips, we found E(X) = 1.5. Explain in one sentence what 1.5 means.
Solution: If you repeat the “flip 3 coins” experiment many times, the average number of heads per set of 3 flips will be about 1.5.
Q5. True or false: E(X) is always one of the possible values of X.
Solution: False. E(X) can be any real number in the range of X, including non-attainable values like 3.5 on a die or 1.5 heads in 3 flips.

8. Expected Value in Games and Decisions

SOMATH Class 11 poster — Expected Value in Games and Decisions

Why expected value matters for decisions

Expected value gives us a single number to compare two random options — an insurance policy vs. going uninsured, playing a game vs. sitting out, choosing route A vs. route B. Whichever choice has the better expected value is, on average, the better long-run decision.

How to interpret the sign

  • Positive expected value: favorable — a long-run gain or profit.
  • Negative expected value: unfavorable — a long-run loss or extra cost.
  • To choose between two options, compute E(X) for each and pick the better one.

Example 1: Carnival game

It costs $2 to play. Win $10 with probability 0.15, or $0 with probability 0.85. Net outcome X:

x (net dollars)8−2
P(X = x)0.150.85

E(X) = 8(0.15) + (−2)(0.85) = 1.20 − 1.70 = −$0.50 per play. The game is not favorable — over many plays you lose $0.50 each time.

Example 2: Buying shipping insurance

A package has a 5% chance of being lost (which would cost you $80). Insurance costs $3.

  • Option A — No insurance: E(cost) = 80(0.05) + 0(0.95) = $4.00.
  • Option B — Buy insurance: guaranteed cost = $3.00.

$3 < $4, so buying insurance is the better expected-value decision.

Note. Expected value is a long-run guide. On any single shipment you might feel silly paying $3 for insurance you didn’t need, or you might be very glad you did.

5 Practice Questions — Expected Value in Games and Decisions

Q1. Game A: win $5 with prob 0.3, lose $2 with prob 0.7. Compute E(X) and decide if it’s favorable.
Solution: E(X) = 5(0.3) + (−2)(0.7) = 1.5 − 1.4 = $0.10. Positive — slightly favorable in the long run.
Q2. Game B: win $10 with prob 0.15, lose $3 with prob 0.85. Compute E(X) and decide.
Solution: E(X) = 10(0.15) + (−3)(0.85) = 1.5 − 2.55 = −$1.05. Negative — unfavorable, don’t play.
Q3. A phone has a 3% chance of breaking (costing $400 to repair). Warranty costs $20. Should you buy it (by expected value)?
Solution: E(no warranty cost) = 400(0.03) = $12. With warranty guaranteed cost is $20. $12 < $20, so by expected value skip the warranty.
Q4. Now suppose the phone has a 10% chance of breaking. Redo the decision.
Solution: E(no warranty cost) = 400(0.10) = $40. $40 > $20, so buy the warranty.
Q5. Two commutes: A always takes 30 min. B takes 20 min with prob 0.6 and 45 min with prob 0.4. Which has the shorter expected time?
Solution: E(B) = 20(0.6) + 45(0.4) = 12 + 18 = 30 min. Same expected time as A, but B has more variability. On expected value alone, they’re tied.

9. Variance of a Random Variable

SOMATH Class 11 poster — Variance of a Random Variable

What variance measures

Variance measures how much the possible values of a random variable typically vary around its expected value. It is the expected value of the squared distance from the mean.

Formula

σX2 = Σ (x − μX)2 · P(X = x)

Method (three steps)

  1. Find the mean μX = E(X).
  2. For each value, compute (x − μX)2 · P(X = x).
  3. Add all the terms.

Example: Fair six-sided die

μ = 3.5.

xP(X = x)x − μ(x − μ)²(x − μ)² P(X = x)
11/6−2.56.251.0417
21/6−1.52.250.3750
31/6−0.50.250.0417
41/60.50.250.0417
51/61.52.250.3750
61/62.56.251.0417

Sum: σX2 = 1.0417 + 0.3750 + 0.0417 + 0.0417 + 0.3750 + 1.0417 = 2.9167.

Comparing two games with the same mean

Game A pays +$10 or −$10 with equal probability. Game B pays +$2 or −$2 with equal probability. Both have E(X) = 0, but Game A has variance 100 and Game B has variance 4. Same expected value, very different risk.

Key facts

  • Variance is always nonnegative.
  • Larger variance → more spread out, less predictable.
  • Smaller variance → more concentrated near the mean.

5 Practice Questions — Variance of a Random Variable

Q1. x: 0, 1, 2; P: 0.2, 0.5, 0.3. Compute E(X), then Var(X).
Solution: μ = 1.1. Deviations squared: (0−1.1)² = 1.21, (1−1.1)² = 0.01, (2−1.1)² = 0.81. Var = 1.21(0.2) + 0.01(0.5) + 0.81(0.3) = 0.242 + 0.005 + 0.243 = 0.49.
Q2. A random variable is constant (always equals 5). What is its variance?
Solution: 0. There is no variation from the mean.
Q3. Game A pays ±$10 with equal probability. Game B pays ±$2 with equal probability. Which has the larger variance and why?
Solution: Both means are 0. Var(A) = 100, Var(B) = 4. Game A is more spread out.
Q4. Can variance be negative?
Solution: No. It is a sum of squared deviations weighted by non-negative probabilities, so it is always ≥ 0.
Q5. x: 1, 3; P: 0.5, 0.5. Compute Var(X).
Solution: μ = 2. Deviations squared: 1 and 1. Var = 1(0.5) + 1(0.5) = 1.

10. Standard Deviation of a Random Variable

SOMATH Class 11 poster — Standard Deviation of a Random Variable

What standard deviation measures

The standard deviation is the square root of the variance. It measures the typical distance between the values of the random variable and its expected value — in the same units as the variable itself.

Formula

σX = √(σX2)

Why we need it in addition to variance

Variance is in squared units (dollars squared, points squared) and is hard to interpret directly. Standard deviation puts the answer back in the original units, so it’s the number we actually report.

Example 1: Fair six-sided die

From the previous section, σX2 = 2.9167. So σX = √2.9167 ≈ 1.71. On average, an individual roll differs from the mean 3.5 by about 1.71.

Example 2: Number of heads in 3 fair coin flips

μY = 1.5.

yP(Y = y)(y − μ)²(y − μ)² P(Y = y)
01/82.250.2813
13/80.250.0938
23/80.250.0938
31/82.250.2813

σY2 = 0.75, so σY = √0.75 ≈ 0.87 heads.

Key takeaways

  • σX = √(σX2) — same units as the variable.
  • Larger σ means more variability; smaller means less.
  • Always nonnegative.

5 Practice Questions — Standard Deviation of a Random Variable

Q1. Var(X) = 16. Find σX.
Solution: σX = √16 = 4.
Q2. Var(X) = 0.49. Find σX.
Solution: σX = √0.49 = 0.7.
Q3. Standard deviation is 2.5. Find variance.
Solution: Var = 2.52 = 6.25.
Q4. For X = number of heads in 3 fair coin flips, Var(X) = 0.75. Find σX.
Solution: σX = √0.75 ≈ 0.87 heads.
Q5. Why do we report standard deviation more often than variance in practice?
Solution: Because standard deviation is in the same units as the variable itself (dollars, minutes, cm), so it’s directly interpretable. Variance is in squared units.

11. Transforming Random Variables

SOMATH Class 11 poster — Transforming Random Variables

What happens when you shift or scale a random variable?

If we add or multiply a random variable by constants, the mean and standard deviation change in a very predictable way. Set Y = a + bX. Then:

μY = a + b·μX    and    σY = |b|·σX

The variance scales by b2: σY2 = b2 · σX2.

Adding a constant (a shift)

Adding a constant slides every outcome up or down by the same amount. The mean shifts by a, and the standard deviation does not change — the spread is unchanged.

Multiplying by a constant (a scale)

Multiplying by b stretches or shrinks every outcome. The mean is multiplied by b, and the standard deviation is multiplied by |b| (we use absolute value because standard deviation is always nonnegative).

Example 1: Adding a constant

Fair die: μX = 3.5, σX ≈ 1.71. Let Y = X + 4. Then μY = 4 + 3.5 = 7.5, and σY = 1 · 1.71 = 1.71.

Example 2: Multiplying by a constant

Same die. Let Y = 2X. Then μY = 2(3.5) = 7.0, and σY = 2(1.71) = 3.42.

Big idea. Adding a constant moves the center. Multiplying by a constant changes both the center and the spread. Neither operation changes the shape of the distribution.

5 Practice Questions — Transforming Random Variables

Q1. μX = 10, σX = 3. Let Y = X + 7. Find μY and σY.
Solution: μY = 7 + 10 = 17. σY = 3 (unchanged by shift).
Q2. μX = 10, σX = 3. Let Y = 4X. Find μY and σY.
Solution: μY = 4(10) = 40. σY = |4|(3) = 12.
Q3. μX = 20, σX = 5. Let Y = 3 + 2X. Find μY and σY.
Solution: μY = 3 + 2(20) = 43. σY = |2|(5) = 10.
Q4. μX = 50, σX = 8. Let Y = −X + 100. Find μY and σY.
Solution: μY = 100 + (−1)(50) = 50. σY = |−1|(8) = 8.
Q5. A student computes σY = −6 after multiplying by −2. Why is that wrong?
Solution: Standard deviation is always nonnegative. The rule uses |b|, not b: σY = |−2|·σX = 2·σX, which is positive.

12. Combining Random Variables

SOMATH Class 11 poster — Combining Random Variables

Sums and differences of random variables

We often want to know the mean and standard deviation of a combination of random variables — the total of two dice, the difference of two test scores, the total time of two independent tasks. The rules for the mean are simple; the rules for standard deviation depend on whether the variables are independent.

Mean of a linear combination (always true)

For Z = aX + bY with any constants a and b:

μZ = a·μX + b·μY

Special cases: μX+Y = μX + μY and μX−Y = μX − μY.

Variance rule (only if independent)

If X and Y are independent, the variances add, even for a difference:

σZ2 = a2σX2 + b2σY2

So σZ = √(a2σX2 + b2σY2). Note that standard deviations do NOT add — you must square first.

Example 1: Sum of two independent dice

Each die: μ = 3.5, σ ≈ 1.71. For Z = X + Y: μZ = 7 and σZ = √(1.712 + 1.712) = √5.8336 ≈ 2.42.

Example 2: Difference of two independent dice

Same dice. For Z = X − Y: μZ = 3.5 − 3.5 = 0, but variances still add: σZ = √(1.712 + 1.712) ≈ 2.42.

What if X and Y are NOT independent?

Include the covariance term: σZ2 = a2σX2 + b2σY2 + 2ab σXY. Positive covariance increases the variance of a sum; negative covariance decreases it.

Test-day rule. Means always add or subtract. Variances only add if the variables are independent — and even for differences, variances still add (they never subtract).

5 Practice Questions — Combining Random Variables

Q1. μX = 10, μY = 4. Find μX+Y and μX−Y.
Solution: μX+Y = 14. μX−Y = 6. Means always add or subtract.
Q2. σX = 3, σY = 4, X and Y independent. Find σX+Y.
Solution: σX+Y = √(32 + 42) = √25 = 5.
Q3. σX = 3, σY = 4, X and Y independent. Find σX−Y.
Solution: Variances still ADD for a difference: σX−Y = √(9 + 16) = 5 (same as sum).
Q4. Two independent fair dice. Find the mean and standard deviation of their sum.
Solution: Each die: μ = 3.5, σ ≈ 1.71. Sum: μ = 7, σ = √(1.712 + 1.712) ≈ 2.42.
Q5. A student writes σX+Y = σX + σY for independent X, Y. Correct?
Solution: No. Variances add, standard deviations do NOT. Use σX+Y = √(σX2 + σY2).

Enroll in SOMATH AP Statistics

Small groups of up to 6 students, taught by real teachers on the Upper West Side. Covers the full College Board AP Statistics syllabus, with free-response drills graded on the AP rubric — including the investigative task.

See the full AP Statistics course → · Book a free 30-minute evaluation · call (646) 668-6151 · 226 W 79th St, New York, NY 10024.

Related SOMATH classes and posts