Linear functions of a DRV

Linear functions of a DRV

Spec SA5 · AQA A-Level Further Maths: Revision notes

Studying this course? Keep your progress in one place.

Key facts

  • A linear function Y=aX+bY=aX+b changes the values, not the probabilities.
  • E(aX+b)=aE(X)+bE(aX+b)=aE(X)+b.
  • Var(aX+b)=a2Var(X)\mathrm{Var}(aX+b)=a^2\mathrm{Var}(X): the shift bb has no effect on spread.
  • The standard deviation of aX+baX+b is ∣a∣|a| times that of XX.
  • To standardise, use a=1σa=\frac1\sigma and b=−μσb=-\frac\mu\sigma.

What a linear function does

The constant aa scales every value and bb shifts it; the probabilities stay the same.

A linear function of a random variable is Y=aX+bY=aX+b. The constant aa scales every value and bb shifts every value; the probabilities are unchanged.

Typical uses: converting units, profit == price ×\times number sold −- fixed cost, and standardising.

For example Y=5−2XY=5-2X takes the values 3,1,−1,−33,1,-1,-3 with the same probabilities 0.3,0.4,0.2,0.10.3,0.4,0.2,0.1.

00.10.20.30.4y = −3 (x = 4)y = −1 (x = 3)y = 1 (x = 2)y = 3 (x = 1)Value of YP(Y = y)
Y = 5 − 2X: each value is scaled and shifted, but each keeps its original probability.

x = 1

P(X = x):
0.3
y = 5 − 2x:
3

x = 2

P(X = x):
0.4
y = 5 − 2x:
1

x = 3

P(X = x):
0.2
y = 5 − 2x:
−1

x = 4

P(X = x):
0.1
y = 5 − 2x:
−3

X=0,1,2X=0,1,2 and Y=3X+1Y=3X+1. What values does YY take?

Expectation of aX + b

The mean is scaled and shifted in exactly the same way as the values.

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

The proof uses the definition: E(aX+b)=∑(axi+b)pi=a∑xipi+b∑pi=aE(X)+bE(aX+b)=\sum(ax_i+b)p_i=a\sum x_ip_i+b\sum p_i=aE(X)+b, since ∑pi=1\sum p_i=1.

−1−0.500.511.522.533.54E(Y) = 0.8E(X) = 2.1
  • E(aX+b)E(aX+b)aE(X)+baE(X)+b

Worked example

E(X)=5E(X)=5. Find E(3X+2)E(3X+2) and E(2−4X)E(2-4X).

E(X)=4E(X)=4. What is E(5−2X)E(5-2X)?

Variance of aX + b

The variance is multiplied by a2a^2; adding bb does not change the spread.

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

A shift by bb does not change the spread, so bb disappears. Scaling by aa multiplies the spread by ∣a∣|a|, so the variance is multiplied by a2a^2 and the standard deviation by ∣a∣|a|.

Because a2≥0a^2\ge0, a negative aa never gives a negative variance: Var(2−4X)=(−4)2Var(X)=16Var(X)\mathrm{Var}(2-4X)=(-4)^2\mathrm{Var}(X)=16\mathrm{Var}(X).

0123Var(X)Var(Y) = 4 Var(X)Variance
For X with P = 0.3, 0.4, 0.2, 0.1 on 1 to 4, Var(X) = 0.89. Y = 5 − 2X has variance (−2)² × 0.89 = 3.56.
  • Var(aX+b)\mathrm{Var}(aX+b)a2Var(X)a^2\mathrm{Var}(X)
  • Standard deviation∣a∣×|a|\times that of XX

Worked example

Var(X)=4\mathrm{Var}(X)=4. Find Var(3X+2)\mathrm{Var}(3X+2) and its standard deviation.

Var(X)=3\mathrm{Var}(X)=3. What is Var(4−2X)\mathrm{Var}(4-2X)?

Checking and standardising

List the new values with the same probabilities to check; to standardise, choose aa and bb giving mean 00 and variance 11.

You can check with the distribution itself: list y=ax+by=ax+b with the same probabilities, then compute E(Y)E(Y) and Var(Y)=E(Y2)−[E(Y)]2\mathrm{Var}(Y)=E(Y^2)-[E(Y)]^2. The results must match the formulas.

To standardise, choose aa and bb so that E(Y)=0E(Y)=0 and Var(Y)=1\mathrm{Var}(Y)=1: a=1σa=\frac1\sigma and b=−μσb=-\frac\mu\sigma.

Use the formulas for speed, and the table method only when asked or as a check.

−4−22468100.10.20.30.4xyZ peakX: mean 5, sd 2Z: mean 0, sd 1
Standardising shifts and rescales: X with mean 5 and sd 2 becomes Z with mean 0 and sd 1 (continuous shape shown for illustration).
  • Standardised variableY=X−μσY=\dfrac{X-\mu}{\sigma}
  • ResultE(Y)=0, Var(Y)=1E(Y)=0,\ \mathrm{Var}(Y)=1

Worked example

A café sells XX meals with E(X)=8.5E(X)=8.5 and Var(X)=2.25\mathrm{Var}(X)=2.25; profit T=6X−20T=6X-20. Find the mean, variance and standard deviation of TT.

XX has mean 1010 and standard deviation 22. Which Y=aX+bY=aX+b is standardised?

Try an exam question

A café sells XX meals per day, where E(X)=8.5E(X)=8.5 and Var(X)=2.25\mathrm{Var}(X)=2.25. The daily profit is T=6X−20T=6X-20 pounds. Find the mean and standard deviation of TT.

[4 marks]

That's the notes covered.

Carry on to the next subtopic.

Try a question

Find E(Y)E(Y).

1 mark, marked against the mark scheme

Revision notes