Mean, variance, mode, median and quartiles
Studying this course? Keep your progress in one place.
Key facts
- and .
- The mode is where is greatest.
- The median solves .
- Quartiles solve and .
- Median above mean means negative skew; below means positive skew.
Mean and variance
Integrate for the mean and for , then subtract .
For a continuous random variable with pdf , the mean is and . In practice, integrate only over the interval where is not 0.
The variance is .
- E(X)
- Var(X)
Worked example
on . Find and .
- 1
.
- 2
.
- 3
.
and . What is ?
The mode
The mode is where the pdf is greatest: a turning point, or an end of the interval.
The mode is the value of at which is greatest. If has a turning point inside the interval, solve and check it is a maximum. If is increasing (or decreasing) throughout, the mode is at an end of the interval.
For , at and . At , , so the mode is .
on . What is the mode?
The median
The median is the value with half the probability below it: .
The median satisfies , equivalently . Find first, then solve for .
- Median m
Worked example
on . Find the median.
- 1
for .
- 2
Set : .
- 3
, and must lie in .
What equation defines the median ?
Quartiles and skew
The lower and upper quartiles solve and ; compare mean and median for skew.
The lower quartile and upper quartile satisfy and . The interquartile range is . For : , , so the interquartile range is .
For on the mean is and the median is . The median is above the mean: negative skew, a longer tail on the left.
on . What is ?
Try an exam question
The continuous random variable has pdf for , and otherwise. Find the median of .
[4 marks]
- [1].
- [1]The median satisfies .
- [1], so .
- [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