A variable is drawn from N(0,1) with probability 0.3 and from N(4,2) (variance 2) with probability 0.7. Use the law of total variance to find its mean and variance. Why is the variance more than the weighted average of the two component variances?

Probability and statistics, Conditional expectation
Level L3 Intermediate. Length Medium. Nature Mat Mathematical.

What's being asked

Applying total variance to a mixture: within-component plus between-component spread.

Key idea

With component label Z: Var(X)=E[Var(X∣Z)]+Var(E[X∣Z]).

Steps

  1. Mean by total expectation: E[X]=0.3×0+0.7×4=2.8.
  2. Within-component term: E[Var(X∣Z)]=0.3×1+0.7×2=1.7.
  3. Between-component term: Var(E[X∣Z])=0.3(0−2.8)2+0.7(4−2.8)2=0.3×7.84+0.7×1.44=2.352+1.008=3.36.
  4. Add: Var(X)=1.7+3.36=5.06.
  5. Explain: the extra 3.36 appears because the component means differ. Even with equal variances, mixing separated clusters spreads the data.
  6. Link to ML: this is the same split as in a Gaussian mixture model, and as the "total = within-class + between-class" scatter in LDA.

Common mistakes

How long your answer should be

Half a page; 4 minutes.

Last checked on 4 December 2026.

Read this

Previous in Probability and statistics: Why is the Bernoulli distribution with parameter θ in the exponential family? What are its natural parameter, sufficient statistic and log-partition function, and why does the derivative of the log-partition function give the mean?
Next in Probability and statistics: Data x1,…,xn are i.i.d. N(μ,σ2) with known σ2 and prior μ∼N(μ0,τ2). What is the posterior of μ, and what is it for μ0=0, τ2=4, σ2=1, n=4, xˉ=2? Why is the MAP estimate a ridge-type shrinkage of xˉ?