Describing χ random variables as the lengths of vectors.
Let X1,X2∼N(0,1) and define Y=X21+X22.
From the definition of a chi-square random variable, we know that Y follows a chi-squared distribution with two degrees of freedom,
Y∼χ22.Now, let’s plot X1+X2 in vector form. As a slight abuse of notation, let →X1=[X10] and →X2=[0X2].
By the Pythagorean Theorem, the length of →X1+→X2 will be √X21+X22. Equivalently, the length is √Y.
This means that the length of a random vector constructed from the sum of two standard normals follows the distribution of the square root of a χ22 random variable. This is also known as a chi-distributed random variable with two degrees of freedom. Let X=[X1X2]. Then,
||X||2∼χ2.More generally, we can think about the sum of d squared stanadard normals. In particular, if
X∼N(0,Id),then
||X||2∼χd.This has the same geometric interpretation but for higher-dimensional “triangles” (simplices with an orthogonal corner): the length of the hypotenuse follows a χd distribution.