Linear Transformations of Random Variables (AI HL)

If Y=aX+bY=aX+b, then E(Y)=aE(X)+bE(Y)=aE(X)+b and Var(Y)=a2Var(X)\text{Var}(Y)=a^2\text{Var}(X), so you can find the mean and variance of YY without rebuilding its distribution. The same ideas extend to combining independent variables, where means add or subtract but variances always add. Worked examples show both rules in use. It's part of the broader Probability & Distributions topic.

22 questions on this sub-topic.

Syllabus

CodeSyllabus content
SL4.7Concept of discrete random variables and their probability distributions, given as a table or a formula. Expected value E(X)E(X) for discrete data, and its applications - including that E(X)=0E(X)=0 indicates a fair game where XX is a player's gain.

Official IB source: Mathematics: applications and interpretation subject brief (PDF, ibo.org).

The two rules

This builds on IB syllabus reference SL4.7 - the concept of discrete random variables, their probability distributions, and expected value E(X)E(X). Neither rule below is in the formula booklet, but both follow directly from the definitions of E(X)E(X) and Var(X)=ΣxP(X=x)\text{Var}(X) = \Sigma xP(X=x).

Expected value of aX+baX+b

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

Scale and shift the mean exactly as you scale and shift XX itself.

Variance of aX+baX+b

Var(aX+b)=a2Var(X)\text{Var}(aX+b) = a^2\text{Var}(X)

Adding a constant bb doesn't spread the data out any further, so it drops out entirely; aa gets squared.

Need the full syllabus wording and formula-booklet reference table? See Probability & Distributions. For calculator routines, see the parent topic's GDC guidance.

Key terms

What does a linear transformation do to a random variable?

A linear transformation Y=aX+bY=aX+b multiplies every value of XX by aa and then adds bb. The probabilities stay the same; only the values move.

e.g. If XX takes the values 1,2,31, 2, 3, then Y=2X+1Y=2X+1 takes the values 3,5,73, 5, 7 with the same probabilities.

Why does adding a constant not change the variance?

Adding bb shifts every value by the same amount, so the spread about the mean is unchanged. Variance measures spread, not position.

e.g. If Var(X)=4\text{Var}(X)=4, then Var(X+10)=4\text{Var}(X+10)=4.

How does the standard deviation change under a linear transformation?

The variance is multiplied by a2a^2, so the standard deviation is multiplied by |a||a|. A standard deviation is never negative.

e.g. If XX has standard deviation 33, then Y=−2X+5Y=-2X+5 has standard deviation |−2|×3=6|-2|\times3=6.

What are independent random variables?

Two random variables are independent when the value taken by one does not affect the probabilities of the other. For independent XX and YY, Var(X±Y)=Var(X)+Var(Y)\text{Var}(X\pm Y)=\text{Var}(X)+\text{Var}(Y).

e.g. If independent XX and YY have Var(X)=5\text{Var}(X)=5 and Var(Y)=3\text{Var}(Y)=3, then Var(X−Y)=5+3=8\text{Var}(X-Y)=5+3=8.

Worked examples

1
Medium
No calc
[4 marks]

A discrete random variable XX has E(X)=5E(X) = 5 and Var(X)=4\text{Var}(X) = 4. Let Y=3X−2Y = 3X - 2.

(a) Find E(Y)E(Y).
(b) Find Var(Y)\text{Var}(Y).

Worked solution

(a)   E(Y)=E(3X−2)=3E(X)−2E(Y) = E(3X-2) = 3E(X) - 2 M1
=3(5)−2=13= 3(5) - 2 = 13 A1

(b)   Var(Y)=Var(3X−2)=32Var(X)\text{Var}(Y) = \text{Var}(3X-2) = 3^2\,\text{Var}(X) M1
=9×4=36= 9 \times 4 = 36 A1

M1 E formula A1 E M1 Var formula A1 Var
2
Hard
GDC
[5 marks]

A stall sells items. Revenue RR has E(R)=80E(R) = 80 and Var(R)=25\text{Var}(R) = 25. Costs CC (independent) have E(C)=30E(C) = 30 and Var(C)=9.\text{Var}(C) = 9. Profit P=R−C.P = R - C.

(a) Find E(P).E(P).

(b)(i) Find Var(P).\text{Var}(P).

(b)(ii) Find the standard deviation of profit.

Worked solution

(a) Subtract the means: E(P)=E(R)−E(C)=80−30.E(P) = E(R) - E(C) = 80 - 30. M1
E(P)=50.E(P) = 50. A1

(b)(i) Variances add: Var(P)=Var(R)+Var(C)=25+9.\text{Var}(P) = \text{Var}(R) + \text{Var}(C) = 25 + 9. M1
Var(P)=34.\text{Var}(P) = 34. A1

(b)(ii) The standard deviation is Var(P)=34≈5.83.\sqrt{\text{Var}(P)} = \sqrt{34} \approx 5.83. A1On the GDC. (a) Find E(P). (b)(i) Find Var(P)\text{Var}(P). (b)(ii) Find the standard deviation of profit

TI-84 Plus CE: (a) 2nd mode then type 80 - 30. enter Then (b)(i) 2nd mode then type 25 + 9. enter Then (b)(ii) 2nd mode then type √(25+9) enterCasio fx-CG50: (a) MENU Run-Matrix then type 80 - 30. EXE Then (b)(i) MENU Run-Matrix then type 25 + 9. EXE Then (b)(ii) MENU Run-Matrix then type √(25+9) EXECasio fx-CG100: (a) HOME Calculate then type 80 - 30. EXE Then (b)(i) HOME Calculate then type 25 + 9. EXE Then (b)(ii) HOME Calculate then type √(25+9) EXETI-Nspire CX: (a) home Calculator then type 80 - 30. enter Then (b)(i) home Calculator then type 25 + 9. enter Then (b)(ii) home Calculator then type √(25+9) enterFull GDC guide: Enter a calculation on the home screen Topic page

M1 Subtract means A1 Correct answer of 50 M1 Variances add A1 Correct answer of 34 A1 Correct answer of ≈5.83\approx5.83
3
Easy
No calc
[2 marks]

XX has E(X)=7E(X) = 7.

Find E(4X+3).E(4X + 3).

Worked solution

E(4X+3)=4E(X)+3=4(7)+3E(4X+3) = 4E(X) + 3 = 4(7) + 3 M1
E(4X+3)=31.E(4X+3) = 31. A1

M1 Linearity formula A1 Correct answer of 31

Common mistakes

  • Forgetting to square aa in the variance rule. Var(aX+b)=a2Var(X)\text{Var}(aX+b) = a^2\text{Var}(X), not aVar(X)a\,\text{Var}(X) - a negative aa still gives a positive multiplier once it's squared.
  • Carrying the constant bb into the variance. A constant shift changes where the data is centred but not how spread out it is, so bb simply disappears from Var(aX+b)\text{Var}(aX+b) - writing Var(Y)=a2Var(X)+b\text{Var}(Y) = a^2\text{Var}(X) + b is a very common slip.
  • Subtracting variances when combining independent variables. Even for P=R−CP = R - C, the variances of two independent variables always add: Var(R−C)=Var(R)+Var(C)\text{Var}(R-C) = \text{Var}(R) + \text{Var}(C), never Var(R)−Var(C)\text{Var}(R) - \text{Var}(C).

Using your GDC

Every step below is a real button sequence, not a vague "use your calculator" hint - covering the TI-84 Plus, TI-Nspire, and Casio fx-9860/fx-CG50. Pick your model to filter down to just the steps that apply to you.

Show steps for:
Inverse normal (find the value for a given probability)

The reverse of a normal probability: given a percentage, find the cut-off value (e.g. the mark for the top 10%).

  1. Work out the area to the LEFT of the value you want.
  2. 2nd → VARS (DISTR) → invNorm(area, μ, σ). Newer OS lets you pick the tail.TI-84
  3. menu → Probability → Distributions → Inverse Normal; enter the area, μ and σ.Nspire
  4. Main menu → Statistics → DIST → NORM → InvN; set the tail and enter area, σ, μ.Casio

Tip: invNorm needs the area to the LEFT. For "top 10%", use area = 0.90; for "bottom 25%", use area = 0.25.

Find an unknown mean or standard deviation (normal)

Given a probability and one parameter, work back to the missing μ\mu or σ\sigma - a standard exam twist.

  1. Turn the probability into a zz-value using the inverse normal with μ=0\mu = 0, σ=1\sigma = 1.
  2. invNorm(area-to-left, 0, 1) gives zz; then solve z=(x−μ)/σz = (x-\mu)/\sigma for the unknown.TI-84
  3. Use Inverse Normal with μ=0\mu=0, σ=1\sigma=1 to get zz, then solve the standardising equation for μ\mu or σ\sigma.Nspire
  4. DIST → NORM → InvN with μ=0\mu=0, σ=1\sigma=1 gives zz; substitute into z=(x−μ)/σz=(x-\mu)/\sigma.Casio
  5. If two probabilities are given, form two equations and solve them simultaneously for μ\mu and σ\sigma.

Tip: Always sketch the curve first so you can tell which side of the mean each value should fall on.

See the full GDC guide for more calculator models and topics.

Quick questions

What is E(aX + b) in terms of E(X)?

E(aX+b)=aE(X)+bE(aX+b) = aE(X) + b - scale and shift the mean the same way you scale and shift XX.

What is Var(aX + b) in terms of Var(X)?

Var(aX+b)=a2Var(X)\text{Var}(aX+b) = a^2\text{Var}(X) - the constant bb has no effect on variance, and aa is squared.

Why is the variance multiplied by a squared?

Variance is based on squared distances from the mean. Scaling XX by aa scales each distance by aa and so each squared distance by a2a^2, which is also why a negative aa never gives a negative variance.

How do I find the mean of X - Y?

Subtract the means: E(X−Y)=E(X)−E(Y)E(X-Y)=E(X)-E(Y). If E(X)=12E(X)=12 and E(Y)=5E(Y)=5, then E(X−Y)=7E(X-Y)=7.

Is Var(2X) the same as Var(X + X)?

Yes, because X+X=2XX+X=2X, so both equal 4Var(X)4\text{Var}(X). Adding two independent copies of XX is different and gives 2Var(X)2\text{Var}(X), since the two values can differ.

Ready to practise properly?

22 linear-transformation questions, marked instantly like the real exam.