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.
2 solved sample questions
From the free samples in the question bank, solved in full. They never rotate and they are never gated.
- Exam PExpectation, variance and momentsCoreA random variable has and . Find the variance.
Solution
- The computational formula is .
- .
- .
- , so the standard deviation is 3. Never subtract from directly - the square matters.
Trap. Reporting the standard deviation 3, or subtracting 4 from 25 to get 21.
- Exam PExpectation, variance and momentsStretchA non-negative variable has survival function for . Find .
Solution
- For a non-negative variable, - usually much faster than integrating .
- .
- .
- The survival-function route avoids differentiating to get the density at all.
Trap. Differentiating S to get f and then integrating xf(x) - correct but twice the work.
Drill this topic: Expectation, variance and moments has 18 questions, 2 of them solved free on that page, and the full question bank has 400. The drills are part of Premium. Every free sample and today’s mixed round stay free.