Linear functions of a DRV
Studying this course? Keep your progress in one place.
Key facts
- A linear function changes the values, not the probabilities.
- .
- : the shift has no effect on spread.
- The standard deviation of is times that of .
- To standardise, use and .
What a linear function does
The constant scales every value and shifts it; the probabilities stay the same.
A linear function of a random variable is . The constant scales every value and shifts every value; the probabilities are unchanged.
Typical uses: converting units, profit price number sold fixed cost, and standardising.
For example takes the values with the same probabilities .
| x = 1 | x = 2 | x = 3 | x = 4 | |
|---|---|---|---|---|
| P(X = x) | 0.3 | 0.4 | 0.2 | 0.1 |
| y = 5 − 2x | 3 | 1 | −1 | −3 |
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
and . What values does take?
Expectation of aX + b
The mean is scaled and shifted in exactly the same way as the values.
The proof uses the definition: , since .
Worked example
. Find and .
- 1
.
- 2
.
. What is ?
Variance of aX + b
The variance is multiplied by ; adding does not change the spread.
A shift by does not change the spread, so disappears. Scaling by multiplies the spread by , so the variance is multiplied by and the standard deviation by .
Because , a negative never gives a negative variance: .
- Standard deviation that of
Worked example
. Find and its standard deviation.
- 1
.
- 2
Standard deviation .
. What is ?
Checking and standardising
List the new values with the same probabilities to check; to standardise, choose and giving mean and variance .
You can check with the distribution itself: list with the same probabilities, then compute and . The results must match the formulas.
To standardise, choose and so that and : and .
Use the formulas for speed, and the table method only when asked or as a check.
- Standardised variable
- Result
Worked example
A café sells meals with and ; profit . Find the mean, variance and standard deviation of .
- 1
.
- 2
.
- 3
Standard deviation .
has mean and standard deviation . Which is standardised?
Try an exam question
A café sells meals per day, where and . The daily profit is pounds. Find the mean and standard deviation of .
[4 marks]
- [1].
- [1].
- [1].
- [1]Standard deviation .
That's the notes covered.
Carry on to the next subtopic.
Try a question
Find .
1 mark, marked against the mark scheme
Find .
1 mark, marked against the mark scheme