Lably
Skip to content

Law of total variance

Theorem in probability theory

  • 3 min read
  • 4 chapters

Related on Lably

Through Random variable, Variance and Linear regression

Formally, if X and Y are random variables on the same probability space, and Y has finite variance, then:

Var⁡(Y)=E⁡[Var⁡(Y∣X)]+Var(E⁡[Y∣X]).

This identity is also known as the variance decomposition formula, the conditional variance formula, the law of iterated variances, or colloquially as Eve’s law, in parallel to the “Adam’s law” naming for the law of total expectation.

In actuarial science (particularly in credibility theory), the two terms E⁡[Var⁡(Y∣X)] and Var⁡(E⁡[Y∣X]) are called the expected value of the process variance (EVPV) and the variance of the hypothetical means (VHM) respectively.

Explanation

Let Y be a random variable and X another random variable on the same probability space. The law of total variance can be understood by noting:

  1. Var⁡(Y∣X) measures how much Y varies around its conditional mean E⁡[Y∣X].
  2. Taking the expectation of this conditional variance across all values of X gives E⁡[Var⁡(Y∣X)], often termed the “unexplained” or within-group part.
  3. The variance of the conditional mean, Var⁡(E⁡[Y∣X]), measures how much these conditional means differ (i.e. the “explained” or between-group part).

Adding these components yields the total variance Var⁡(Y), mirroring how analysis of variance partitions variation.

Sign in to keep reading

3 more chapters are free with a Lably account.

More in Statistics