In
probability theory
Probability theory is the branch of mathematics concerned with probability. Although there are several different probability interpretations, probability theory treats the concept in a rigorous mathematical manner by expressing it through a set o ...
, the law of total variance or variance decomposition formula or conditional variance formulas or law of iterated variances also known as Eve's law, states that if
and
are
random variable
A random variable (also called random quantity, aleatory variable, or stochastic variable) is a mathematical formalization of a quantity or object which depends on random events. It is a mapping or a function from possible outcomes (e.g., the po ...
s on the same
probability space
In probability theory, a probability space or a probability triple (\Omega, \mathcal, P) is a mathematical construct that provides a formal model of a random process or "experiment". For example, one can define a probability space which models t ...
, and the
variance
In probability theory and statistics, variance is the expectation of the squared deviation of a random variable from its population mean or sample mean. Variance is a measure of dispersion, meaning it is a measure of how far a set of numbers ...
of
is finite, then
In language perhaps better known to statisticians than to probability theorists, the two terms are the "unexplained" and the "explained" components of the variance respectively (cf.
fraction of variance unexplained
In statistics, the fraction of variance unexplained (FVU) in the context of a regression task is the fraction of variance of the regressand (dependent variable) ''Y'' which cannot be explained, i.e., which is not correctly predicted, by the e ...
,
explained variation In statistics, explained variation measures the proportion to which a mathematical model accounts for the variation (dispersion) of a given data set. Often, variation is quantified as variance; then, the more specific term explained variance can be ...
). In
actuarial science, specifically
credibility theory
Credibility theory is a form of statistical inference used to forecast an uncertain future event developed by Thomas Bayes. It is employed to combine multiple estimates into a summary estimate that takes into account information on the accuracy o ...
, the first component is called the expected value of the process variance (EVPV) and the second is called the variance of the hypothetical means (VHM).
These two components are also the source of the term "Eve's law", from the initials EV VE for "expectation of variance" and "variance of expectation".
Formulation
There is a general variance decomposition formula for
components (see below).
[Bowsher, C.G. and P.S. Swain, Identifying sources of variation and the flow of information in biochemical networks, PNAS May 15, 2012 109 (20) E1320-E1328.] For example, with two conditioning random variables:
which follows from the law of total conditional variance:
Note that the
conditional expected value
In probability theory, the conditional expectation, conditional expected value, or conditional mean of a random variable is its expected value – the value it would take “on average” over an arbitrarily large number of occurrences – given ...
is a random variable in its own right, whose value depends on the value of
Notice that the conditional expected value of
given the
is a function of
(this is where adherence to the conventional and rigidly case-sensitive notation of probability theory becomes important!). If we write
then the random variable
is just
Similar comments apply to the
conditional variance In probability theory and statistics, a conditional variance is the variance of a random variable given the value(s) of one or more other variables.
Particularly in econometrics, the conditional variance is also known as the scedastic function or ...
.
One special case, (similar to the
law of total expectation
The proposition in probability theory known as the law of total expectation, the law of iterated expectations (LIE), Adam's law, the tower rule, and the smoothing theorem, among other names, states that if X is a random variable whose expected v ...
) states that if
is a partition of the whole outcome space, that is, these events are mutually exclusive and exhaustive, then
In this formula, the first component is the expectation of the conditional variance; the other two components are the variance of the conditional expectation.
Proof
The law of total variance can be proved using the
law of total expectation
The proposition in probability theory known as the law of total expectation, the law of iterated expectations (LIE), Adam's law, the tower rule, and the smoothing theorem, among other names, states that if X is a random variable whose expected v ...
.
[Neil A. Weiss, ''A Course in Probability'', Addison–Wesley, 2005, pages 380–383.] First,
from the definition of variance. Again, from the definition of variance, and applying the law of total expectation, we have
Now we rewrite the conditional second moment of
in terms of its variance and first moment, and apply the law of total expectation on the right hand side:
Since the expectation of a sum is the sum of expectations, the terms can now be regrouped:
Finally, we recognize the terms in the second set of parentheses as the variance of the conditional expectation