Combining random variables
A bag holds six apples, a lift carries ten people, a recipe adds three ingredients. Each amount varies, and the total varies too. This page gives the rules for the mean and variance of scaled, added and subtracted random variables, and shows how sums and means of normal variables stay normal.
1What you need to know
Tick these off as you go. By the end of the page you should be able to do all of them without notes.
- Use and AHL 4.14
- Find the expected value of a linear combination of random variablesAHL 4.14
- Find the variance of a linear combination of independent random variablesAHL 4.14
- Tell the difference between and AHL 4.14
- Find unbiased estimates of and from a sampleAHL 4.14
- Use the fact that linear combinations of independent normal variables are normal, including AHL 4.15
2Notes & worked examples
Each idea is followed by a worked example. Try the question yourself first, then reveal the solution one step at a time.
Means behave exactly as you would expect: the mean of a total is the total of the means. Variances are different. Scaling by multiplies the variance by , and when independent quantities are added or subtracted, their variances add: more things that vary means more variation, whichever way round you combine them.
2.1 Linear transformation of one variable
Adding shifts every value, so it changes the mean but not the spread. The standard deviation is multiplied by .
2.2 Linear combinations of several variables
The variance rule needs the variables to be independent. Note the plus signs: .
Be careful to tell apart two separate observations and one observation doubled. If and are two independent apples, . If one apple is counted twice, : doubling one value doubles its error too, while two separate errors partly cancel.
2.3 Combinations of normal variables
Any linear combination of independent normal random variables is itself normal. So once you have the mean and variance from 3.2, you can find probabilities with the normal distribution on the GDC.
In particular, the mean of a random sample of size from is normal: . Bigger samples give means that are more tightly grouped around .
2.4 Unbiased estimates
We rarely know and . From a sample, is an unbiased estimate of : on average it is right. For the variance, dividing by tends to underestimate, so we use . The GDC gives as sx; square it for the variance estimate.
On the TI-Nspire, menu → Statistics → Stat Calculations → One-Variable Statistics gives , sx () and σx (). Square sx for an unbiased estimate of the variance. For normal probabilities use normCdf(lower, upper, μ, σ), entering the standard deviation , not the variance.
3Explore it
X ~ N(10, 2²). The navy curve is the sum of n independent copies, X₁ + … + Xₙ. The red dashed curve is n times one copy, nX. Both have mean 10n, but the variances are nσ² and n²σ².
4Common mistakes & exam tips
Common mistakes
- Writing . Variances always add for independent variables.
- Using (variance ) for the total of six different items, instead of (variance ).
- Forgetting to square : .
- Entering the variance instead of the standard deviation into normCdf.
- Quoting (σx) as the unbiased estimate of .
Exam tips
- Define the new variable in words or symbols first, for example .
- For "which is bigger" questions, use a difference: .
- "Unbiased estimate of the variance" needs , not .
- State the independence assumption when you add variances.
5Practice
Fluency questions build the basics. Problem-solving questions make you think about which method to use.
6Exam-style questions
Original questions in the style of the IB Maths AI HL exam, with full markschemes. Your GDC is allowed throughout: use it, but write down what you entered and what it gave you. Give yourself about 1 minute per mark.
The random variable has and . , and are independent observations of .
- (a)Find and .[2]
- (b)Find and .[2]
- (c)Find and , and explain why they are different.[2]
| (a) | |
| A1 | |
| A1 | |
| (b) | |
| A1 | |
| A1 | |
| (c) | |
| and | A1 |
| three independent values partly cancel out; triples a single value, so its variation is tripled too | R1 |
A random sample of 12 bags of rice is weighed. The masses, grams, give and .
- (a)Find an unbiased estimate of the population mean.[1]
- (b)Find an unbiased estimate of the population variance.[3]
- (c)State what is meant by an unbiased estimate.[1]
| (a) | |
| g | A1 |
| (b) | |
| (M1)(A1) | |
| A1 | |
| (c) | |
| its expected value equals the population parameter (on average it gives the true value) | R1 |
The masses of adults using a lift are normally distributed with mean 78 kg and standard deviation 12 kg. The lift has a safety limit of 800 kg.
- (a)Ten adults enter the lift. Find the probability that their total mass exceeds the limit.[3]
- (b)Nine adults enter the lift with luggage whose mass is normally distributed with mean 60 kg and standard deviation 5 kg. Find the probability that the total mass exceeds the limit.[3]
- (c)Find the probability that the mean mass of the ten adults in part (a) is more than 85 kg.[2]
- (d)Two adults are chosen at random. Find the probability that their masses differ by more than 20 kg.[2]
| (a) | |
| (M1)(A1) | |
| A1 | |
| (b) | |
| mean , variance | (M1)(A1) |
| A1 | |
| (c) | |
| (M1) | |
| A1 | |
| (d) | |
| , | (M1) |
| A1 | |
7Check yourself
Six quick questions, marked instantly. Aim for 6/6 before moving on. Fractions like 3/2 are accepted.
8Past-paper practice
Once you are scoring well above, try these real IB Maths AI HL questions on this topic. Your school or teacher will have the papers.
| Paper | Question | Focus | Difficulty |
|---|---|---|---|
| May 2022 · TZ2 · Paper 1 | Q12 | Weights of male and female cuttlefish: normal distributions and errors | ★★☆ |
| May 2025 · TZ2 · Paper 1 | Q6 | Unbiased estimate of a variance, then a confidence interval | ★☆☆ |
| May 2021 · TZ2 · Paper 1 | Q10 | Unbiased estimates from and | ★★☆ |
| May 2023 · TZ2 · Paper 1 | Q15 | Unbiased estimates of the mean from a sample of coffee packets | ★★☆ |
