Mean and variance of continuous random variables
Studying this course? Keep your progress in one place.
Key facts
- Variance is : always subtract the squared mean.
- The mean is over the range where .
- For any function, , and .
- The median and percentiles come from the cumulative distribution function: .
- Compare mean, median and mode to describe skew, and justify it with the values.
Mean, variance and spread
Integrate for the mean, then use for the variance.
The expected value is , integrated only where . First find .
The variance is and the standard deviation is its positive square root.
- Mean
- Variance
Worked example
on . Find and .
- 1
.
- 2
.
- 3
.
For a density with and , what is ?
Expectation of a function
Integrate the function against the density: .
This covers , and .
For a linear function, and .
In general E(g(X)) is not .
- Any function
- Linear change
Worked example
With on , find .
- 1
Put : .
- 2
Simplify: .
If , what is ?
Mode, median and percentiles
The mode is where is greatest; the median and percentiles come from solving equal to a probability.
The mode is where is greatest. Solve , but also check the end points. For on the mode is the end point .
The cumulative distribution function is . The median has and the th percentile has .
Worked example
for . Find the 90th percentile.
- 1
Build .
- 2
Set : , so .
For on , . What is the median?
Skewness
Compare the mean, median and mode: their order tells you the direction of skew.
Skewness describes asymmetry. Always justify the description with the values.
- Positive skew: mean median mode, with a long tail to the right.
- Negative skew: mean median mode, with a long tail to the left.
- Zero skew: mean median mode, as for a symmetrical density.
Positive skew
- Mean > median > mode
- Long tail on the right
Negative skew
- Mean < median < mode
- Long tail on the left
Zero skew
- Mean = median = mode
- Symmetrical
A distribution has mean 5.2, median 4.8 and mode 4.1. What is the skew?
Assessing a model
Compare the model's mean, spread and range with the data, then give a judgement in context.
A density can be used to model a real quantity. Compare the model's mean, variance, median and percentiles with the data's, and check the range.
A good model agrees closely with the sample mean and variance and does not rule out values that actually occur. Always finish with a judgement.
- 1
Compare the mean
model against sample
- 2
Compare the spread
variance or range
- 3
Check the range
are observed values possible?
- 4
Judge
suitable or not, in context
Example: a model with mean and variance against a sample with mean and variance fits the average behaviour. If for but is observed, it is unsuitable for the upper tail.
A model has for , but a value of is observed. Is the model suitable?
Try an exam question
The continuous random variable has probability density function for , and otherwise. Find and .
[4 marks]
- [1] set up.
- [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