IB Mathematics: Applications and Interpretation · Topic 4 · Statistics and probability
4.14 Linear combinations of random variables
Calculate the mean and variance of linear combinations of independent random variables and interpret the results in context.
1/6A linear transformation scales and shifts the mean
- A linear transformation scales and shifts the mean
- Scaling squares the variance and shifting leaves it alone
- Independent variables add their means and their variances
- The same two rules cover differences and general combinations
- Combinations of normal variables are also normal
- Averaging reduces variance, and assumptions must be checked
- Check your recall
- Practice: 10 questions
Part 1 of 6: A linear transformation scales and shifts the mean
A plumber charges a call-out fee plus a fixed rate for each hour. If the job time varies randomly, so does the bill. The bill is built from the time by multiplying and adding.
Let be a random variable, and let and be constants. Then is a linear transformation of . Its expected value follows the same rule as ordinary data: .
The mean is scaled by and shifted by . This rule always holds. For example, take a mean time of 3 hours, a rate of 40 per hour and a fee of 25. The mean bill is .
Key term
linear transformation
A linear transformation of a random variable is the variable , where and are constants.
Part 2 of 6: Scaling squares the variance and shifting leaves it alone
Now consider the spread. Adding a constant moves every value by the same amount, so the spread is unchanged. Multiplying by stretches the values, so the standard deviation is multiplied by .
Variance is the square of the standard deviation, so it is multiplied by . This gives .
Worked example
Cost of a delivery
- Mean: .
- Variance: .
- Standard deviation: .
Answer: euros, and the standard deviation is 6 euros.
The constant 5 changed the mean but had no effect on the variance.

Quick check
One question on the part you just read
Easy
Show answer and explanation
Answer: A · Worked explanation
Part 3 of 6: Independent variables add their means and their variances
Many quantities are sums, such as the total mass of two parcels. Now two random variables and are involved. They are independent random variables if the value of one does not affect the probabilities of the other.
The mean of a sum is always the sum of the means: . This holds whether or not and are independent.
The variance rule needs independence. When it holds, . Add variances, not standard deviations. Take a square root afterwards to find a standard deviation.
Key term
independent random variables
Independent random variables are variables for which the value taken by one does not change the probabilities of values taken by the other.
Part 4 of 6: The same two rules cover differences and general combinations
A linear combination of and has the form , where and are constants. A difference such as is the case and .
For independent variables, and . Because is positive, subtracting a variable still adds variance. The spread of a difference is at least as large as the spread of either part.
Rules for combining variables
- Quantity
- Rule
- Condition
- Always
- Quantity
- Rule
- Condition
- Always
- Quantity
- Rule
- Condition
- Always
- Quantity
- Rule
- Condition
- , independent
Worked example
Two bags compared with one bag doubled
- Variance of one bag: .
- For : and , so the standard deviation is .
- For : and , so the standard deviation is .
Answer: Both have mean , but has standard deviation and has .
Key term
linear combination
A linear combination of random variables and is an expression , where and are constants.

Quick check
One question on the part you just read
Easy
Show answer and explanation
Answer: C · Worked explanation
Part 5 of 6: Combinations of normal variables are also normal
Now suppose each variable follows a normal distribution. A linear combination of independent normal variables is itself normal. Its mean and variance come from the rules already found. The same result holds for sums of several independent normal variables, such as the total time of three tasks.
If and are independent, then is normal. Its mean is and its variance is .
Worked example
Comparing two runners
- Let . Then .
- , so the standard deviation is 2.5.
- B is slower when . Standardise: .
- .
Answer: The probability that B is slower than A is .
Interpretation matters. Here means B is slower, so the probability describes how often that happens across many races.
Part 6 of 6: Averaging reduces variance, and assumptions must be checked
A result is useful only when its meaning is stated. The mean gives the typical value of the combination. The standard deviation gives its typical spread. Quote both in the units of the context.
Averaging shows the effect clearly. The mean of independent copies of has mean and variance . An average is therefore steadier than a single value.
Check the assumptions before relying on an answer. Independence may fail, for example, when two journey times share the same traffic jam. In that case the variance rule for sums does not apply.
Check your recall[15 marks]
6 written questions. Answer each one in your head or on paper, then open the mark scheme.
- 1.State[2 marks]
State the formulae for and , where and are constants.
Show mark schemeHide mark scheme
Model answer
and .
- 1 mark for writing
- 1 mark for writing
- 2.Calculate[3 marks]
The random variable has mean 8 and variance 5. Let . Calculate and .
Show mark schemeHide mark scheme
Model answer
. .
- 1 mark for using to obtain 20
- 1 mark for using
- 1 mark for obtaining
- 3.Explain[2 marks]
Explain why, for independent and , the variance of is the sum and not their difference.
Show mark schemeHide mark scheme
Model answer
The coefficient of is -1, and variance is multiplied by the square of the coefficient. Since , the variance of is added.
- 1 mark for stating that variance is multiplied by the square of the coefficient
- 1 mark for stating that , so is added
- 4.Determine[3 marks]
The independent variables and have , , and . Determine the mean and standard deviation of .
Show mark schemeHide mark scheme
Model answer
Mean: . Variance: . Standard deviation: .
- 1 mark for obtaining a mean of 25
- 1 mark for obtaining a variance of 25 using and
- 1 mark for obtaining a standard deviation of 5
- 5.Distinguish[3 marks]
Distinguish between and , where and are independent copies of .
Show mark schemeHide mark scheme
Model answer
Both have mean . For , one value is doubled and . For , two separate values are added and the variance is , which is smaller.
- 1 mark for stating that both have the same mean
- 1 mark for stating that
- 1 mark for stating that
- 6.Deduce[2 marks]
The independent variables and are given. Deduce the distribution of .
Show mark schemeHide mark scheme
Model answer
The mean is and the variance is , so .
- 1 mark for obtaining a mean of 20
- 1 mark for obtaining a variance of 41 and stating the normal distribution

Practice this topic
10 quick-fire multiple-choice questions, easy to hard. Tap an answer to see if you're right and the worked explanation. (The written questions with mark schemes are under “Check your recall” above.)
0 right0 of 10 answered
Includes the 2 quick checks in the note above.
EasyIdentify[1 mark]
Show answer and explanation
Answer: B · Worked explanation
MediumCalculate[1 mark]
Show answer and explanation
Answer: D · Worked explanation
MediumCalculate[2 marks]
Show answer and explanation
Answer: A · Worked explanation
MediumCalculate[2 marks]
Show answer and explanation
Answer: B · Worked explanation
MediumDetermine[1 mark]
Show answer and explanation
Answer: C · Worked explanation
HardCalculate[2 marks]
Show answer and explanation
Answer: B · Worked explanation
HardCalculate[2 marks]
Show answer and explanation
Answer: D · Worked explanation
HardCalculate[2 marks]
Show answer and explanation
Answer: B · Worked explanation