ArticleslgStudy

mathematics

Conditional variance

Conditional variance is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Conditional variance rather than just read about it. In short: 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.

Key takeaways

  • Conditional variance belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Conditional variance to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Conditional variance from memory before moving on to harder problems.

Reference excerpt

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 X and Y, the conditional variance of Y given X is

Var⁡(Y∣X)=E⁡((Y−E⁡(Y∣X))2|X). The conditional variance measures the uncertainty that remains when E⁡(Y∣X) is used to predict Y. Here, E⁡(Y∣X) denotes the conditional expectation of Y given X. Recall that E⁡(Y∣X) is itself a random variable: it is a function of X, determined up to almost-sure equality. Consequently, Var⁡(Y∣X) is also a random variable and 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 f:ℝ→ℝ 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]. By selecting f(X)=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={x1,x2,…} with positive probability, i.e., it is a discrete random variable, we can introduce 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⁡(Y2|X=x)−E⁡(Y|X=x)2, where recall that E⁡(Z∣X=x) is the conditional expectation of Z given that X=x, which is well-defined for x∈S. An alternative notation for Var⁡(Y|X=x) is VarY∣X(Y|x). Note that here Var⁡(Y|X=x) defines a constant for possible values of x, and in particular, Var⁡(Y|X=x), is not a random variable. The connection of this definition to Var⁡(Y|X) is as follows: Let S be as above and define the function v:S→ℝ as v(x)=Var⁡(Y|X=x). Then, v(X)=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 PY|X be the (regular) conditional distribution PY|X of Y given X, i.e., PY|X:ℬ×ℝ→[0,1] (the intention is that PY|X(U,x)=P(Y∈U|X=x) almost surely over the support of X), we can define Var⁡(Y|X=x)=∫(y−∫y′PY|X(dy′|x))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.

Components of variance The law of total variance says Var⁡(Y)=E⁡(Var⁡(Y∣X))+Var⁡(E⁡(Y∣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 Casella, George; Berger, Roger L. (2002). Statistical Inference (PDF) (Second ed.). Wadsworth. pp. 151–52. ISBN 0-534-24312-6.

Worked examples

Example 1 — a first encounter with Conditional variance

Start with the simplest possible case. Write down what Conditional variance claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Conditional variance before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Conditional variance ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Conditional variance

In research
Conditional variance appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Conditional variance in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Conditional variance is common in secondary-school and first-year university syllabi. It links to neighbouring topics Conditional probability, Probability stubs, Statistical deviation and dispersion, so understanding it makes those chapters shorter.
In everyday life
Look for Conditional variance outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Conditional variance” →

How to study Conditional variance in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Conditional variance means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Conditional variance out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Conditional variance in simple terms?

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.

Why does Conditional variance matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Conditional variance?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Conditional variance.

Tags

  • Conditional probability
  • Probability stubs
  • Statistical deviation and dispersion
  • Statistics stubs
  • Theory of probability distributions

Keep exploring