logo

Derivation of the Student's t-Distribution from Independent Normal Distributions and the Chi-Squared Distribution 📂Probability Distribution

Derivation of the Student's t-Distribution from Independent Normal Distributions and the Chi-Squared Distribution

Theorem

Two independent random variables W,VW,V where WN(0,1)W \sim N(0,1) and Vχ2(r)V \sim \chi^{2} (r), then T=WV/rt(r) T = { {W} \over {\sqrt{V/r} } } \sim t(r)


Description

If this theorem is approached solely through statistics, it appears more practical and historically closer to the definition of the t-distribution.

Derivation1

Strategy: Direct deduction through the joint probability density function.

Definition of normal distribution: A continuous probability distribution N(μ,σ2)N \left( \mu,\sigma^{2} \right) with the following probability density function for μR\mu \in \mathbb{R} and σ>0\sigma > 0 is called a normal distribution. f(x)=12πσexp[12(xμσ)2],xR f(x) = {{ 1 } \over { \sqrt{2 \pi} \sigma }} \exp \left[ - {{ 1 } \over { 2 }} \left( {{ x - \mu } \over { \sigma }} \right)^{2} \right] \qquad, x \in \mathbb{R}

Definition of chi-squared distribution: A continuous probability distribution χ2(r)\chi^{2} (r) with the following probability density function for degrees of freedom r>0r > 0 is called a chi-squared distribution. f(x)=1Γ(r/2)2r/2xr/21ex/2,x(0,) f(x) = {{ 1 } \over { \Gamma (r/2) 2^{r/2} }} x^{r/2-1} e^{-x/2} \qquad , x \in (0, \infty)


Since the probability density functions of W,VW,V f1,f2f_{1} , f_{2} are given as f1(w):=12πew2/2f2(v)=1Γ(r2)2r2vr21ev2 f_1 (w) := { {1} \over {\sqrt{2 \pi }} } e ^{- w^{2} / 2} \\ \displaystyle f_2 (v) ={ 1 \over { \Gamma ({r \over 2}) 2^{r \over 2} } } v^{ {r \over 2} - 1 } e^{-{{v} \over 2}} the joint probability density function of WW and VV hh for wRw \in \mathbb{R} and v(0,)v \in (0,\infty) is as follows: h(w,v)=12πew2/21Γ(r2)2r2vr21ev2 h(w,v) = { {1} \over {\sqrt{2 \pi }} } e ^{- w^{2} / 2} { 1 \over { \Gamma ({r \over 2}) 2^{r \over 2} } } v^{ {r \over 2} - 1 } e^{-{{v} \over 2}} Now, if T:=WV/r\displaystyle T := { {W} \over {\sqrt{V/r} } } and U:=VU := V, then w=tu/rw = t\sqrt{u} / \sqrt{r} and v=uv = u, therefore J=ur0t2ur1=ur \left| J \right| = \begin{vmatrix} {{\sqrt{u}} \over {\sqrt{r}}} & 0 \\ {{t} \over {2 \sqrt{ur}}} & 1 \end{vmatrix} = \sqrt{{{ u } \over { r }}} Thus, the joint probability density function of T,UT, U is g(t,u)=h(wv/r,u)J=12πΓ(r/2)2r/2ur/21exp{u2(1+t2r)}ur \begin{align*} g(t,u) =& h({ {w} \over {\sqrt{v/r} } },u) |J| \\ =& { {1} \over {\sqrt{2 \pi } \Gamma (r/2) 2^{r/2} } } u^{r/2 -1} \exp \left\{ -{{u} \over {2} } \left( 1 + { {t^2} \over {r} } \right) \right\} { {\sqrt{u} } \over {\sqrt{r} } } \end{align*} The marginal probability density function of TT is g(t)=g(t,u)du=012πrΓ(r/2)2r/2u(r+1)/21exp{u2(1+t2r)}du \begin{align*} g(t) =& \int_{-\infty}^{\infty} g(t,u) du \\ =& \int_{0}^{\infty} { {1} \over {\sqrt{2 \pi r} \Gamma (r/2) 2^{r/2} } } u^{(r+1)/2 -1} \exp \left\{ -{{u} \over {2} } \left( 1 + { {t^2} \over {r} } \right) \right\} du \end{align*} Substituting with z:=u2(1+t2r)\displaystyle z := {{u} \over {2}} \left( 1 + {{t^2} \over {r}} \right) gives g(t)=012πrΓ(r/2)2r/2(2z1+t2/r)(r+1)/21ez(21+t2/r)dz=1πrΓ(r/2)0122r/2z(r+1)/21(21+t2/r)(r+1)/21ez(21+t2/r)dz=1πrΓ(r/2)012(r+1)/2z(r+1)/21(21+t2/r)(r+1)/2ezdz=1πrΓ(r/2)0z(r+1)/21(11+t2/r)(r+1)/2ezΓ((r+1)/2)Γ((r+1)/2)dz=Γ((r+1)/2)πrΓ(r/2)(11+t2/r)(r+1)/201Γ((r+1)/2)z(r+1)/21ezdz=Γ((r+1)/2)πrΓ(r/2)(11+t2/r)(r+1)/21 \begin{align*} g(t) =& \int_{0}^{\infty} { {1} \over {\sqrt{2 \pi r} \Gamma (r/2) 2^{r/2} } } \left( { {2z} \over {1 + t^2 / r} }\right)^{(r+1)/2-1} e^{-z} \left( { {2} \over {1+ t^2 / r} } \right) dz \\ =& { {1} \over {\sqrt{\pi r} \Gamma (r/2) } } \int_{0}^{\infty} {{ 1 } \over { \sqrt{2} 2^{r/2} }}z^{(r+1)/2-1} \left( { {2} \over {1 + t^2 / r} }\right)^{(r+1)/2-1} e^{-z} \left( { {2} \over {1+ t^2 / r} } \right) dz \\ =& { {1} \over {\sqrt{\pi r} \Gamma (r/2) } } \int_{0}^{\infty} {{ 1 } \over { 2^{(r+1)/2} }}z^{(r+1)/2-1} \left( { {2} \over {1 + t^2 / r} }\right)^{(r+1)/2} e^{-z} dz \\ =& { {1} \over {\sqrt{\pi r} \Gamma (r/2) } } \int_{0}^{\infty}z^{(r+1)/2-1} \left( { {1} \over {1 + t^2 / r} }\right)^{(r+1)/2} e^{-z} {{ \Gamma \left( (r+1)/2 \right) } \over { \Gamma \left( (r+1)/2 \right) }} dz \\ =& { {\Gamma \left( (r+1)/2 \right)} \over {\sqrt{\pi r} \Gamma (r/2) } } \left( { {1} \over {1 + t^2 / r} }\right)^{(r+1)/2} \int_{0}^{\infty} {{ 1 } \over { \Gamma \left( (r+1)/2 \right) }} z^{(r+1)/2-1} e^{-z} dz \\ =& { {\Gamma \left( (r+1)/2 \right)} \over {\sqrt{\pi r} \Gamma (r/2) } } \left( { {1} \over {1 + t^2 / r} }\right)^{(r+1)/2} \cdot 1 \end{align*} The integrand becomes the probability density function of the gamma distribution Γ(r+12,1)\Gamma \left( {{ r + 1 } \over { 2 }} , 1 \right) , avoiding complex calculations. Upon simplification, g(t)=Γ((r+1)/2)πrΓ(r/2)1(1+t2/r)(r+1)/2 g(t) = {{\Gamma ( (r+1)/2 ) } \over { \sqrt{\pi r} \Gamma (r/2) }} { {1} \over {(1 + t^{2} / r)^{(r+1)/2} } } This is the probability density function of the t-distribution with degrees of freedom rr. T=WV/rt(r) T = { {W} \over {\sqrt{V/r} } } \sim t(r)


  1. Hogg et al. (2013). Introduction to Mathematical Statistcs(7th Edition): 191-192. ↩︎