Misplaced Pages

Conditional variance

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
(Redirected from Scedastic function) Variance of a random variable given value of other variables

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

The conditional variance of a random variable Y given another random variable X is

Var ( Y X ) = E ( ( Y E ( Y X ) ) 2 | X ) . {\displaystyle \operatorname {Var} (Y\mid X)=\operatorname {E} {\Big (}{\big (}Y-\operatorname {E} (Y\mid X){\big )}^{2}\;{\Big |}\;X{\Big )}.}

The conditional variance tells us how much variance is left if we use E ( Y X ) {\displaystyle \operatorname {E} (Y\mid X)} to "predict" Y. Here, as usual, E ( Y X ) {\displaystyle \operatorname {E} (Y\mid X)} stands for the conditional expectation of Y given X, which we may recall, is a random variable itself (a function of X, determined up to probability one). As a result, Var ( Y X ) {\displaystyle \operatorname {Var} (Y\mid X)} itself is a random variable (and is a function of X).

Explanation, relation to least-squares

Main article: least-squares

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 R {\displaystyle f:\mathbb {R} \to \mathbb {R} } measurable,

E [ ( Y f ( X ) ) 2 ] = E [ ( Y E ( Y | X ) + E ( Y | X ) f ( X ) ) 2 ] = E [ E { ( Y E ( Y | X ) + E ( Y | X ) f ( X ) ) 2 | X } ] = E [ Var ( Y | X ) ] + E [ ( E ( Y | X ) f ( X ) ) 2 ] . {\displaystyle {\begin{aligned}\operatorname {E} &=\operatorname {E} \\&=\operatorname {E} \\&=\operatorname {E} +\operatorname {E} \,.\end{aligned}}}

By selecting f ( X ) = E ( Y | X ) {\displaystyle 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 , } {\displaystyle S=\{x_{1},x_{2},\dots \}} with positive probability, i.e., it is a discrete random variable, we can introduce Var ( Y | X = x ) {\displaystyle \operatorname {Var} (Y|X=x)} , the conditional variance of Y given that X=x for any x from S as follows:

Var ( Y | X = x ) = E ( ( Y E ( Y X = x ) ) 2 X = x ) = E ( Y 2 | X = x ) E ( Y | X = x ) 2 , {\displaystyle \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 E ( Z X = x ) {\displaystyle \operatorname {E} (Z\mid X=x)} is the conditional expectation of Z given that X=x, which is well-defined for x S {\displaystyle x\in S} . An alternative notation for Var ( Y | X = x ) {\displaystyle \operatorname {Var} (Y|X=x)} is Var Y X ( Y | x ) . {\displaystyle \operatorname {Var} _{Y\mid X}(Y|x).}

Note that here Var ( Y | X = x ) {\displaystyle \operatorname {Var} (Y|X=x)} defines a constant for possible values of x, and in particular, Var ( Y | X = x ) {\displaystyle \operatorname {Var} (Y|X=x)} , is not a random variable.

The connection of this definition to Var ( Y | X ) {\displaystyle \operatorname {Var} (Y|X)} is as follows: Let S be as above and define the function v : S R {\displaystyle v:S\to \mathbb {R} } as v ( x ) = Var ( Y | X = x ) {\displaystyle v(x)=\operatorname {Var} (Y|X=x)} . Then, v ( X ) = Var ( Y | X ) {\displaystyle 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 {\displaystyle P_{Y|X}} be the (regular) conditional distribution P Y | X {\displaystyle P_{Y|X}} of Y given X, i.e., P Y | X : B × R [ 0 , 1 ] {\displaystyle P_{Y|X}:{\mathcal {B}}\times \mathbb {R} \to } (the intention is that P Y | X ( U , x ) = P ( Y U | X = x ) {\displaystyle P_{Y|X}(U,x)=P(Y\in U|X=x)} almost surely over the support of X), we can define

Var ( Y | X = x ) = ( y y P Y | X ( d y | x ) ) 2 P Y | X ( d y | x ) . {\displaystyle \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

Var ( Y ) = E ( Var ( Y X ) ) + Var ( E ( Y X ) ) . {\displaystyle \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

References

  1. Spanos, Aris (1999). "Conditioning and regression". Probability Theory and Statistical Inference. New York: Cambridge University Press. pp. 339–356 . ISBN 0-521-42408-9.

Further reading


Stub icon

This statistics-related article is a stub. You can help Misplaced Pages by expanding it.

Stub icon

This probability-related article is a stub. You can help Misplaced Pages by expanding it.

Categories: