Exam PRandom variablesFree to read
Expectation, variance and moments
E[X] is the centre, Var(X) the spread, and Var(X) = E[X²] − (E[X])² is the identity that turns most exam questions into two sums.
The formulas
- Expectation
- Law of the unconscious statistician
- Variance
- Linear transform
- Survival form
non-negative X
Where it comes from
- Expanding and using linearity gives .
- The shift moves the whole distribution and cannot change spread, which is why it disappears from the variance.
- The survival form comes from swapping the order of integration in .
Worked example
The number of claims filed by a policyholder in a year takes values 0, 1, 2, 3 with probabilities 0.25, 0.35, 0.28, 0.12. Find the variance.
- .
- .
- .
- .
Answer: 0.9371
This answer is recomputed from the site’s own interest-theory and probability functions every time the test suite runs, so the page and the mathematics cannot drift apart.
Memory hooks
- Var = E[X²] − (E[X])². Compute the second moment, never the squared deviations, unless the question hands you deviations.
- Adding a constant never changes a variance; multiplying by a scales it by a².
Traps
- Reporting the standard deviation when the question asked for the variance (or the reverse).
- Applying E[g(X)] = g(E[X]) — true only for linear g.
Related
- Moment generating functions
- Covariance, correlation and sums
- Random variables, CDFs and survival functions
Drill this: the Exam P question bank has original questions on this topic, and today’s free round is open to everyone.