St · Statistics & Probability

Let X Be Standard Normal and Y = X²: Expectations and Covariance

Published By the 9to5Science editorial team

At a glance

  1. 1. Identify Y

    Squaring a standard normal gives a chi-square random variable with one degree of freedom.

  2. 2. Condition on Y

    Given Y, X is equally likely to be the positive or negative square root of Y.

  3. 3. Compute expectations

    Use symmetry to find E[X given Y] = 0, while E[Y given X] = X².

  4. 4. Check dependence

    X and Y have covariance zero, but Y is determined by X, so they are dependent.

Let X∼N(0,1)X\sim N(0,1) and define Y=X2Y=X^2. This setup has a useful contrast: the conditional mean of XX given YY is zero, and XX and YY have covariance zero, even though YY is determined by XX and so the variables are dependent.

Distribution and moments of YY

Squaring a standard normal random variable gives a chi-square random variable with one degree of freedom. Its density is

fY(y)=12πye−y/2,y>0.f_Y(y)=\frac{1}{\sqrt{2\pi y}}e^{-y/2},\qquad y>0.

The density is zero for y≤0y\leq 0. Since a standard normal variable has E[X2]=1\mathbb{E}[X^2]=1 and E[X4]=3\mathbb{E}[X^4]=3,

E[Y]=1,Var⁡(Y)=E[X4]−E[X2]2=3−1=2.\mathbb{E}[Y]=1,\qquad \operatorname{Var}(Y)=\mathbb{E}[X^4]-\mathbb{E}[X^2]^2=3-1=2.

Conditional expectations

Because Y=X2Y=X^2, knowing XX tells you YY exactly:

E[Y∣X]=X2.\mathbb{E}[Y\mid X]=X^2.

In the other direction, knowing Y=yY=y tells you that XX is either y\sqrt y or −y-\sqrt y. The standard normal density is symmetric about zero, so these two possibilities have equal conditional probability. Thus, for y>0y>0, the conditional distribution of XX given Y=yY=y puts probability 1/21/2 on each of y\sqrt y and −y-\sqrt y. It follows that

E[X∣Y]=Y+(−Y)2=0.\mathbb{E}[X\mid Y]=\frac{\sqrt Y+(-\sqrt Y)}{2}=0.

This is a statement about a conditional expectation, which is defined up to events of probability zero. Since YY is continuous, the event Y=yY=y itself has probability zero for any single value yy; the conditional distribution above is the usual regular conditional distribution.

The same reasoning also gives

E[X2∣Y]=Y,Var⁡(X∣Y)=Y.\mathbb{E}[X^2\mid Y]=Y, \qquad \operatorname{Var}(X\mid Y)=Y.

More generally, for an integrable function gg,

E[g(X)∣Y]=g(Y)+g(−Y)2.\mathbb{E}[g(X)\mid Y] =\frac{g(\sqrt Y)+g(-\sqrt Y)}{2}.

The conditional expectation keeps the even part of gg and cancels its odd part.

Covariance: zero, but not independence

By definition,

Cov⁡(X,Y)=E[XY]−E[X]E[Y]=E[X3]−(0)(1)=0.\begin{aligned} \operatorname{Cov}(X,Y) &=\mathbb{E}[XY]-\mathbb{E}[X]\mathbb{E}[Y]\\ &=\mathbb{E}[X^3]-(0)(1)\\ &=0. \end{aligned}

The third moment is zero because the standard normal distribution is symmetric and x3x^3 is odd. Both variables have finite, nonzero variance, so their correlation is also zero.

Zero covariance does not imply independence in general. Here dependence is direct: once you know XX, you know Y=X2Y=X^2. For example, the event {∣X∣≤1}\{|X|\leq 1\} is exactly the event {Y≤1}\{Y\leq 1\}. Therefore

P(Y≤1∣∣X∣≤1)=1,\mathbb{P}(Y\leq 1\mid |X|\leq 1)=1,

whereas P(Y≤1)<1\mathbb{P}(Y\leq 1)<1. These events are not independent, confirming that XX and YY are dependent.

Another way to see that the dependence has not disappeared is to compare YY with X2X^2: since they are the same random variable,

Cov⁡(X2,Y)=Var⁡(Y)=2.\operatorname{Cov}(X^2,Y)=\operatorname{Var}(Y)=2.

A concrete conditional example

Suppose you are told that Y=4Y=4. Then XX can only be 22 or −2-2, and symmetry assigns probability 1/21/2 to each. Hence

E[X∣Y=4]=12(2)+12(−2)=0,E[X2∣Y=4]=4.\mathbb{E}[X\mid Y=4]=\tfrac12(2)+\tfrac12(-2)=0, \qquad \mathbb{E}[X^2\mid Y=4]=4.

This illustrates why conditioning on the square does not identify the sign of XX, even though it fixes its magnitude.

Common mistakes

  • Claiming XX and YY are independent because their covariance is zero. Zero covariance captures only linear association; it does not rule out a nonlinear relationship.
  • Writing E[X∣Y]=X\mathbb{E}[X\mid Y]=X. Once you know YY, you know ∣X∣|X|, not its sign. Symmetry makes the conditional mean zero.
  • Confusing E[Y∣X]\mathbb{E}[Y\mid X] with E[Y]\mathbb{E}[Y]. The conditional expectation is X2X^2, while the unconditional expectation is the number 11.

References

  1. Introduction to Probability, Dimitri P. Bertsekas and John N. Tsitsiklis

Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.