Mean and variance of a CRV
Studying this course? Keep your progress in one place.
Key facts
- over the range where is non-zero.
- , with .
- and .
- , and in general .
Mean of a continuous random variable
Integrate over the range where is non-zero.
For a discrete variable . For a continuous variable the sum becomes an integral:
Only integrate over the interval where is non-zero. If is symmetric, the mean is the line of symmetry, which saves integration.
For on : .
on . Find .
Variance and standard deviation
Find , then subtract the square of the mean.
First find . Then:
Variance is never negative; a negative value means a mistake in or .
Continuing the example: , so and the standard deviation is .
- Variance
- Standard deviation
Worked example
on , where . Find .
- 1
.
- 2
.
and . Find .
Linear functions of a random variable
The mean is scaled and shifted; the variance is multiplied by and the shift has no effect.
For constants and :
Adding shifts every value, so it changes the mean but not the spread. Multiplying by scales the spread by , so the variance is multiplied by . A negative never gives a negative variance.
Worked example
and . Find and for .
- 1
Here and .
- 2
.
- 3
.
How does compare with ?
Expectation of a function of X
Integrate ; you cannot just put into .
For any function : .
For example and .
You cannot substitute into : in general . For the variance of a function of a random variable, use .
Worked example
on . Find .
- 1
.
- 2
.
- 3
.
- 4
.
Worked example
on . Find .
- 1
.
- 2
.
- 3
Multiply by 5.
For we found and . Is ?
Try an exam question
A continuous random variable has probability density function for , and otherwise. Find and .
[5 marks]
- [1].
- [1].
- [1].
- [1].
- [1].
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