Conditional variance
≈ 4 min read
Names in other languages
No names in other languages are held for this entry yet.
Article bodies are English and are not machine-translated. A name in another language is not a translation of the article.
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. Conditional variances are important parts of autoregressive conditional heteroskedasticity (ARCH) models.
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. Conditional variances are important parts of autoregressive conditional heteroskedasticity (ARCH) models. ==Definition== Given two random variables and , the conditional variance of given is \operatorname{Var}(Y\mid X) = \operatorname{E}\Big(\big(Y - \operatorname{E}(Y\mid X)\big)^{2}\;\Big|\; X\Big). The conditional variance measures the uncertainty that remains when \operatorname{E}(Y\mid X) is used to predict . Here, \operatorname{E}(Y\mid X) denotes the conditional expectation of given . Recall that \operatorname{E}(Y\mid X) is itself a random variable: it is a function of , determined up to almost-sure equality. Consequently, \operatorname{Var}(Y\mid X) is also a random variable and a function of . &= \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) , the second, nonnegative term becomes zero, showing the claim. Here, the second equality used the law of total expectation. We also see that the expected conditional variance of Y given X shows up as the irreducible error of predicting Y given only the knowledge of X. ==Special cases, variations== ===Conditioning on discrete random variables=== When X takes on countable many values S = \{x_1,x_2,\dots\} with positive probability, i.e., it is a discrete random variable, we can introduce \operatorname{Var}(Y|X=x) , the conditional variance of Y given that X=x for any x from S as follows: \operatorname{Var}(Y|X=x) = \operatorname{E}((Y - \operatorname{E}(Y\mid X=x))^{2}\mid X=x)=\operatorname{E}(Y^2|X=x)-\operatorname{E}(Y|X=x)^2, where recall that \operatorname{E}(Z\mid X=x) is the conditional expectation of Z given that X=x, which is well-defined for x\in S . An alternative notation for \operatorname{Var}(Y|X=x) is \operatorname{Var}_{Y\mid X}(Y|x). Note that here \operatorname{Var}(Y|X=x) defines a constant for possible values of x, and in particular, \operatorname{Var}(Y|X=x) , is not a random variable. The connection of this definition to \operatorname{Var}(Y|X) is as follows: Let S be as above and define the function v: S \to \mathbb{R} as v(x) = \operatorname{Var}(Y|X=x) . Then, v(X) = \operatorname{Var}(Y|X) almost surely. ===Definition using conditional distributions=== The "conditional expectation of Y given X=x" can also be defined more generally using the conditional distribution of Y given X (this exists in this case, as both here X and Y are real-valued). In particular, letting P_{Y|X} be the (regular) conditional distribution P_{Y|X} of Y given X, i.e., P_{Y|X}:\mathcal{B} \times \mathbb{R}\to [0,1] (the intention is that P_{Y|X}(U,x) = P(Y\in U|X=x) almost surely over the support of X), we can define \operatorname{Var}(Y|X=x) = \int \left(y- \int y' P_{Y|X}(dy'|x)\right)^2 P_{Y|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. ==Components of variance== The law of total variance says \operatorname{Var}(Y) = \operatorname{E}(\operatorname{Var}(Y\mid X))+\operatorname{Var}(\operatorname{E}(Y\mid X)). 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. ==See also== Mixed model Random effects model ==References== ==Further reading==
Text derived from https://en.wikipedia.org/w/index.php?oldid=1377104095 under CC BY-SA 4.0; modifications have been made.