In
probability theory
Probability theory or probability calculus 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 expre ...
and
statistics
Statistics (from German language, German: ', "description of a State (polity), state, a country") is the discipline that concerns the collection, organization, analysis, interpretation, and presentation of data. In applying statistics to a s ...
, a conditional variance is the
variance
In probability theory and statistics, variance is the expected value of the squared deviation from the mean of a random variable. The standard deviation (SD) is obtained as the square root of the variance. Variance is a measure of dispersion ...
of a
random variable
A random variable (also called random quantity, aleatory variable, or stochastic variable) is a Mathematics, mathematical formalization of a quantity or object which depends on randomness, random events. The term 'random variable' in its mathema ...
given the value(s) of one or more other variables.
Particularly in
econometrics
Econometrics is an application of statistical methods to economic data in order to give empirical content to economic relationships. M. Hashem Pesaran (1987). "Econometrics", '' The New Palgrave: A Dictionary of Economics'', v. 2, p. 8 p. 8 ...
, the conditional variance is also known as the scedastic function or skedastic function.
Conditional variances are important parts of
autoregressive conditional heteroskedasticity
In econometrics, the autoregressive conditional heteroskedasticity (ARCH) model is a statistical model for time series data that describes the variance of the current error term or innovation as a function of the actual sizes of the previous time ...
(ARCH) models.
Definition
The conditional variance of a
random variable
A random variable (also called random quantity, aleatory variable, or stochastic variable) is a Mathematics, mathematical formalization of a quantity or object which depends on randomness, random events. The term 'random variable' in its mathema ...
''Y'' given another random variable ''X'' is
:
The conditional variance tells us how much variance is left if we use
to "predict" ''Y''.
Here, as usual,
stands for the
conditional expectation
In probability theory, the conditional expectation, conditional expected value, or conditional mean of a random variable is its expected value evaluated with respect to the conditional probability distribution. If the random variable can take on ...
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,
itself is a random variable (and is a function of ''X'').
Explanation, relation to 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
measurable,
:
By selecting
, the second, nonnegative term becomes zero, showing the claim.
Here, the second equality used 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 property of conditional expectation, among other names, states that if X is a random ...
.
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
with positive probability, i.e., it is a
discrete 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. The term 'random variable' in its mathematical definition refers ...
, we can introduce
, the conditional variance of ''Y'' given that ''X=x'' for any ''x'' from ''S'' as follows:
:
where recall that
is the
conditional expectation of ''Z'' given that ''X=x'', which is well-defined for
.
An alternative notation for
is
Note that here
defines a constant for possible values of ''x'', and in particular,
, is ''not'' a random variable.
The connection of this definition to
is as follows:
Let ''S'' be as above and define the function
as
. Then,
almost surely
In probability theory, an event is said to happen almost surely (sometimes abbreviated as a.s.) if it happens with probability 1 (with respect to the probability measure). In other words, the set of outcomes on which the event does not occur ha ...
.
Definition using conditional distributions
The "conditional expectation of ''Y'' given ''X=x''" can also be defined more generally
using the
conditional distribution
Conditional (if then) may refer to:
* Causal conditional, if X then Y, where X is a cause of Y
*Conditional probability, the probability of an event A given that another event B
* Conditional proof, in logic: a proof that asserts a conditional, ...
of ''Y'' given ''X'' (this exists in this case, as both here ''X'' and ''Y'' are real-valued).
In particular, letting
be the (regular)
conditional distribution
Conditional (if then) may refer to:
* Causal conditional, if X then Y, where X is a cause of Y
*Conditional probability, the probability of an event A given that another event B
* Conditional proof, in logic: a proof that asserts a conditional, ...
of ''Y'' given ''X'', i.e.,