The following are proofs of several characteristics related to the chi-square distribution.
Derivations of the pdf
Derivation of the pdf for one degree of freedom
Let random variable Y be defined as Y = X2 where X has normal distribution with mean 0 and variance 1 (that is X ~ N(0,1)).
Then if
and if


Then
.
Derivation of the pdf for two degrees of freedom
To derive the chi-square distribution with 2 degrees of freedom, there could be several methods.
Here presented is one of them which is based on the distribution with 1 degree of freedom.
let
and
are two independent variables and satisfy that
and
, thus, the
probability density functions of
and
are respectively:
and
Simply, we can derive the joint distribution of
and
:
where
is replaced by
. Further, let
and
, we can get that:
and
or, inversely
and
Since the two variable change policies are symmetric, we take the upper one and multiply the result by 2. The Jacobian determinant can be calculated as:
Now we can change
to
:
where the leading constant 2 is to take both the two variable change policies into account. Finally, we integrate out
to get the distribution of
, i.e.
:
Let
, the equation can be changed to:
So the result is: