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 skedastic function.[1] Conditional variances are important parts of autoregressive conditional heteroskedasticity (ARCH) models.
The conditional variance of a random variable Y given another random variable X is
\operatorname{Var}(Y\midX)=\operatorname{E}((Y-\operatorname{E}(Y\midX))2 | X).
The conditional variance tells us how much variance is left if we use
\operatorname{E}(Y\midX)
\operatorname{E}(Y\midX)
\operatorname{Var}(Y\midX)
Recall that variance is the expected squared deviation between a random variable (say, Y) and its expected value. The expected value can be thought of as a reasonable prediction of the outcomes of the random experiment (in particular, the expected value is the best constant prediction when predictions are assessed by expected squared prediction error). Thus, one interpretation of variance is that it gives the smallest possible expected squared prediction error. If we have the knowledge of another random variable (X) that we can use to predict Y, we can potentially use this knowledge to reduce the expected squared error. As it turns out, the best prediction of Y given X is the conditional expectation. In particular, for any
f:R\toR
\begin{align} \operatorname{E}[(Y-f(X))2] &=\operatorname{E}[(Y-\operatorname{E}(Y|X)+\operatorname{E}(Y|X)-f(X))2]\\ &=\operatorname{E}[\operatorname{E}\{(Y-\operatorname{E}(Y|X)+\operatorname{E}(Y|X)-f(X))2|X\}]\\ &=\operatorname{E}[\operatorname{Var}(Y|X)]+\operatorname{E}[(\operatorname{E}(Y|X)-f(X))2]. \end{align}
By selecting
f(X)=\operatorname{E}(Y|X)
When X takes on countable many values
S=\{x1,x2,...\}
\operatorname{Var}(Y|X=x)
\operatorname{Var}(Y|X=x)=\operatorname{E}((Y-\operatorname{E}(Y\midX=x))2\midX=x)=\operatorname{E}(Y2|X=x)-\operatorname{E}(Y|X=x)2,
where recall that
\operatorname{E}(Z\midX=x)
x\inS
\operatorname{Var}(Y|X=x)
\operatorname{Var}Y\mid(Y|x).
Note that here
\operatorname{Var}(Y|X=x)
\operatorname{Var}(Y|X=x)
The connection of this definition to
\operatorname{Var}(Y|X)
v:S\toR
v(x)=\operatorname{Var}(Y|X=x)
v(X)=\operatorname{Var}(Y|X)
The "conditional expectation of Y given X=x" can also be defined more generallyusing the conditional distribution of Y given X (this exists in this case, as both here X and Y are real-valued).
In particular, letting
PY|X
PY|X
PY|X:l{B} x R\to[0,1]
PY|X(U,x)=P(Y\inU|X=x)
\operatorname{Var}(Y|X=x)=\int\left(y-\inty'PY|X(dy'|x)\right)2PY|X(dy|x).
This can, of course, be specialized to when Y is discrete itself (replacing the integrals with sums), and also when the conditional density of Y given X=x with respect to some underlying distribution exists.
The law of total variance says
\operatorname{Var}(Y)=\operatorname{E}(\operatorname{Var}(Y\midX))+\operatorname{Var}(\operatorname{E}(Y\midX)).
In words: the variance of Y is the sum of the expected conditional variance of Y given X and the variance of the conditional expectation of Y given X. The first term captures the variation left after "using X to predict Y", while the second term captures the variation due to the mean of the prediction of Y due to the randomness of X.