E(aX + b) and Var(aX + b) — scaling and shifting one variable
“
use, in the course of solving problems, the results that E(aX + b) = aE(X) + b and Var(aX + b) = a²Var(X).
Plenty of quantities are just a fixed rule applied to a random variable you already understand: a total cost built from a fixed fee plus a rate per unit, a temperature converted from one scale to another, a price converted into another currency. If is a random variable and for constants and , the mean and variance of follow directly from those of , with no new distribution to build:
The syllabus does not ask you to prove these, but the reason they take this shape is short — and knowing it means you can rebuild either formula if you forget it. Adding the constant shifts every possible value of up by — so the average shifts up by too, but the gaps between values are unchanged, so the spread (variance) is completely unaffected by . Scaling by stretches every value, and every gap between values, by a factor of — so the mean scales by , but since variance is built from squared deviations, the spread scales by , not .
The constant b vanishes from the variance
This is the single most common slip in the whole topic: shifts the mean but never appears in the variance at all — not as , not as . Only the multiplier affects the spread, and it does so as .
If X is normal, so is aX + b
The two rules above work for any random variable — they say nothing about its shape. But when happens to be normal, there is a bonus: is normal too, with exactly the mean and variance those rules give.
That matters because a mean and a variance on their own cannot produce a probability — you need the shape as well. This is the one-variable version of §03's result, and the reasoning there is the same, applied to two variables at once.
Substituting into both formulas, piece by piece
A taxi charges a fixed $2.50 plus $3 per kilometre travelled. The distance travelled on a randomly chosen journey, km, has mean and variance . Find the mean and variance of the total fare, .
Show full working
- 1
Step 1 — identify and in . Here (the rate per km) and (the fixed charge).
Getting a and b the right way round is the whole question. The rate per kilometre multiplies the random distance, so it is a; the fixed charge is paid whatever happens, so it is b.
- 2
Step 2 — find , substituting into the mean formula.
- 3
Step 3 — evaluate.
- 4
Step 4 — find , substituting into the variance formula.
The fixed charge b = 2.5 plays no part in this step at all — only a is squared.
- 5
Step 5 — evaluate.
, .
Find E(Y) and Var(Y) as two entirely separate calculations — the constant b enters only the mean formula, and only the multiplier a (squared) enters the variance formula.
A linear transformation of a normal variable
The mass, in kilograms, of chemical produced per day by a factory is modelled by the random variable . The income generated by chemical is $2.50 per kilogram. Find the mean and variance of the daily income generated by chemical .
Show full working
- 1
Step 1 — write the income as a linear transformation of . Income , so and (no fixed fee here).
There is no fixed fee here, so b = 0. Write it down anyway — it is what tells you nothing gets added on at the end.
- 2
Step 2 — find the mean income.
- 3
Step 3 — evaluate.
- 4
Step 4 — find the variance of the income, squaring the multiplier.
- 5
Step 5 — evaluate.
- 6
Step 6 — name the distribution of the income. is normal, so is normal too, carrying the mean and variance just found:
Worth writing even though this part asks only for a mean and a variance — it is what makes a follow-on part such as 'find the probability the income exceeds 30 dollars' answerable at all.
Mean income $25.75, variance (in $); the income is distributed .
Combining with a distribution's own mean/variance formula first
The random variable has the distribution . Find .
Show full working
- 1
Step 1 — find first, using the binomial variance formula (§5.4), since it isn't given directly.
The question gives you a distribution, not a variance. Var(X) has to be produced from B(400, 0.01) first; the linear rule cannot start until it exists.
- 2
Step 2 — evaluate.
- 3
Step 3 — identify in . Here ; the constant will not appear in the variance at all.
- 4
Step 4 — substitute into .
- 5
Step 5 — evaluate.
.
When Var(X) isn't given directly, find it first using whatever distribution X actually has — the linear-transformation rule only ever needs Var(X) as an input, however that number was obtained.
Writing , or
exactly — the additive constant never appears in the variance
A constant shift moves every value by the same amount, so it can't change how spread out those values are relative to each other.
Using , forgetting to square the multiplier
Square before multiplying:
Variance is built from squared deviations, so any linear scaling of X carries through as the square of that scale factor.
The same idea, drawn as a graph
Once a random variable's probability density function has a graph (§6.3), these two rules have a picture: adding slides the whole graph sideways without changing its shape or height; scaling by stretches it horizontally by a factor of and, to keep the total area under the curve equal to , shrinks its height by the same factor. Cambridge sets exactly this as a sketching question — "sketch the density of " — once §6.3 has introduced what that density graph actually is. Keep the E/Var rules from this section in mind; §6.3 comes back to them for the picture.
Your turn
- 1
A random variable has mean and variance . Find and .
Stuck? Show hint
E(aX+b) = aE(X)+b uses both a and b; Var(aX+b) = a²Var(X) uses only a, squared.
Show solution
- 1
Step 1 — identify and . Comparing with gives and .
The minus sign belongs to b. Writing b = −3, rather than thinking 'subtract 3', is what keeps the sign right when it is substituted.
- 2
Step 2 — substitute into the mean formula.
- 3
Step 3 — evaluate.
- 4
Step 4 — substitute into the variance formula, which uses only .
The −3 is not written anywhere in this line. That is the rule, not an oversight.
- 5
Step 5 — evaluate.
Answer, .
- 1
- 23 marks
A company converts a measured temperature (in an internal sensor unit, mean , variance ) to degrees Celsius using . Find the mean and standard deviation of .
Stuck? Show hint
Find E(C) and Var(C) separately, then take a square root for the standard deviation.
Show solution
- 1
Step 1 — identify and in . Here and .
- 2
Step 2 — find the mean.
- 3
Step 3 — find the variance, squaring .
0.5 squared is 0.25, not 0.5. A multiplier below 1 shrinks the spread by more than it shrinks the mean.
- 4
Step 4 — the question asks for the standard deviation, so square-root the variance.
Read the last line of the question again before answering. Quoting the variance where a standard deviation was asked for throws away the final mark.
Answer, standard deviation of .
- 1
The rest of this note
Can you do all of these?
The additive constant b never appears in Var(aX+b) — only the multiplier a, squared
Var(aX+bY) = a²Var(X) + b²Var(Y) needs independence — and adds variances even for a difference
Distinguish 'n independent copies summed' (variance × n) from 'one copy scaled by n' (variance × n²) — the means agree, the variances never do
Convert a standard deviation to a variance before combining — mark schemes reject any SD/variance mix
Rearrange any inequality between two variables (e.g. L < 3S) onto one side before reading off a and b
A linear combination is normal only when every variable in it is independent AND individually normal
The sum of independent Poisson variables is Poisson, with parameter equal to the sum of the individual parameters
State the new distribution N(mean, variance) or Po(λ) as its own explicit step before standardising or substituting further
When a question says 'stating a necessary assumption', write the independence assumption out in words — it carries its own mark
Put every Poisson rate on the interval the question asks about BEFORE adding the parameters — never scale the combined λ afterwards
'Differ by more than k' is P(D > k) + P(D < −k) added — not twice one tail, unless E(D) = 0
The total of n independent copies has standard deviation σ√n, never σn