Distribution of X^2 When X ~ N(0,1)

Interactive Distribution of X^2 When X ~ N(0,1) graph — click to explore
Click the graph to explore it interactively →
Question: if X follows N(0, 1), what does X^2 follows? I know it is still normal ( because I gain the visual intuition), but how to show it mathematically?
Your visual intuition that the distribution remains "normal" is actually a common misconception. In fact, if X follows a standard normal distribution, its square X^2 follows a Chi-squared distribution with 1 degree of freedom ( \chi^2_1), which looks significantly different from the bell curve.
To see why X^2 cannot be normal, consider two immediate visual contradictions:
  1. Domain: A normal distribution is defined for all real numbers (positive and negative). However, X^2 can never be negative, so its probability density must be zero for all y < 0.
  2. Symmetry: The normal distribution is symmetric around its mean. The distribution of X^2 is highly skewed, with a "spike" (vertical asymptote) at zero.

Mathematical Derivation

To find the distribution of Y = X^2, we use the method of Cumulative Distribution Functions (CDF).
Let X \sim N(0, 1). The PDF of X is \phi(x) = \frac{1}{\sqrt{2\pi}} e^{-x^2/2}. Let Y = X^2. We want to find the CDF F_Y(y) = P(Y \le y).
For y < 0, F_Y(y) = 0 (since a square cannot be negative). For y \ge 0: \begin{align*} F_Y(y) &= P(X^2 \le y) \\ &= P(-\sqrt{y} \le X \le \sqrt{y}) \\ &= \Phi(\sqrt{y}) - \Phi(-\sqrt{y}) \end{align*} where \Phi is the CDF of the standard normal distribution. Using the symmetry property \Phi(-z) = 1 - \Phi(z), we simplify this to: \begin{align*} F_Y(y) &= \Phi(\sqrt{y}) - (1 - \Phi(\sqrt{y})) \\ &= 2\Phi(\sqrt{y}) - 1 \end{align*}
To find the probability density function (PDF) f_Y(y), we differentiate the CDF with respect to y: \begin{align*} f_Y(y) &= \frac{d}{dy} [2\Phi(\sqrt{y}) - 1] \\ &= 2 \phi(\sqrt{y}) \cdot \frac{d}{dy}(\sqrt{y}) \\ &= 2 \phi(\sqrt{y}) \cdot \frac{1}{2\sqrt{y}} \\ &= \frac{\phi(\sqrt{y})}{\sqrt{y}} \end{align*}
Substituting the definition of the standard normal PDF \phi(z): \begin{align*} f_Y(y) &= \frac{1}{\sqrt{y}} \cdot \frac{1}{\sqrt{2\pi}} e^{-(\sqrt{y})^2/2} \\ &= \frac{1}{\sqrt{2\pi y}} e^{-y/2}, \quad \text{for } y > 0 \end{align*}
This resulting function is the PDF of the Chi-squared distribution with 1 degree of freedom.

Visualizing the Transformation

In the provided diagram:
  • The blue curve represents the standard normal distribution X \sim N(0, 1). Note how it is centered at 0 and spreads symmetrically.
  • The red curve represents the distribution of Y = X^2 (the \chi^2_1 distribution). Note how it only exists for y > 0 and shoots toward infinity as y approaches 0.
  • You can move the slider to choose a value x for the random variable X.
  • The black point on the blue curve shows the probability density of x.
  • The orange point on the red curve shows the corresponding probability density of x^2.
Notice that as x moves further from zero in either direction (positive or negative), x^2 moves to the right. Because both +x and -x "map" to the same x^2, the density of the squared distribution accumulates, resulting in the different shape you see.