Exam PApplicationsFree to read

Mixtures and the law of total probability in practice

A population made of sub-populations is a mixture: probabilities average with the mixing weights, but variances do not.

The formulas

Mixed density
f(x)=∑kwkfk(x),∑kwk=1f(x) = \sum_k w_k f_k(x), \qquad \sum_k w_k = 1
Mixed mean
E[X]=∑kwkμkE[X] = \sum_k w_k \mu_k
Mixed second moment
E[X2]=∑kwk(σk2+μk2)E[X^{2}] = \sum_k w_k\left(\sigma_k^{2} + \mu_k^{2}\right)
Variance
Var⁡(X)=∑kwk(σk2+μk2)−(∑kwkμk)2\operatorname{Var}(X) = \sum_k w_k\left(\sigma_k^{2}+\mu_k^{2}\right) - \left(\sum_k w_k\mu_k\right)^{2}

Where it comes from

  1. A mixture is a two-stage experiment: pick the sub-population, then draw from it - which is exactly the setting of the law of total probability.
  2. Expectation is linear, so means mix linearly; the SQUARE of the mean does not, which is why the variance picks up a between-group term.
  3. This is the conditional variance decomposition written for a discrete mixing variable.

Worked example

A book of policies is 50% low risk, 30% standard and 20% high risk with annual claim probabilities 2%, 5% and 11%. What proportion of policyholders claims in a year?

  1. By the law of total probability, average the class claim rates with the class weights.
  2. P=0.5(0.02)+0.3(0.05)+0.2(0.11)P = 0.5(0.02) + 0.3(0.05) + 0.2(0.11).
  3. P=0.010+0.015+0.022P = 0.010 + 0.015 + 0.022.
  4. P=0.047P = 0.047, so 4.7% of policyholders claim in a year.

Answer: 0.047

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

  • Means mix; variances do not. The extra term is the spread of the group means themselves.
  • A mixture of exponentials is NOT exponential - its tail is heavier than any of its components.

Traps

  • Averaging the component variances and calling that the mixture's variance.
  • Mixing densities but forgetting the weights must sum to 1.

Related

Drill this: the Exam P question bank has original questions on this topic, and today’s free round is open to everyone.