Skip to content

Tuorui "v1ncent19" Peng

En voyage dans l'espace de Hilbert.

Mathematics & Statistics1 min readEnglish

Indepency between Xˉ\bar{X} and S2S^2

Data is given as D={Xi}i=1n\mathcal{D}=\{X_i\}_{i=1}^n, with XiX_i i.i.d. N(μ,σ2)\sim N(\mu ,\sigma ^2). Two crucial statistics are mean value Xˉ\bar{X} and variance SX2S^2_X:

Xˉ=1ni=1nXiSX2=1n1i=1n(XiXˉ)2\begin{align} \bar{X}=&\dfrac{1}{n}\sum_{i=1}^nX_i\\ S_X^2=&\dfrac{1}{n-1}\sum_{i=1}^n(X_i-\bar{X})^2 \end{align}

Here's the proof for their indepency, which is important for further construction of tests.

Proof:

  1. Stadardization would not change (in)dependency relation. Denote Z=(Z1,,Zn)Z=(Z_1,\ldots,Z_n)' for standardized variable

    Zi=XiμσN(0,1),i=1,2,,nZˉ=1ni=1nZiS2=1n1i=1n(ZiZˉ)2\begin{align} Z_i=&\dfrac{X_i-\mu }{\sigma }\sim N(0,1),\quad \forall i=1,2,\ldots,n\\ \bar{Z}=&\dfrac{1}{n}\sum_{i=1}^nZ_i\\ S^2=&\dfrac{1}{n-1}\sum_{i=1}^n(Z_i-\bar{Z})^2 \end{align}

    i.e. ZNn(0,I)Z\sim N_n(0,I)

  2. Construct a orthonormal linear transformation AA, in which the first row is (1n,,1n)(\frac{1}{\sqrt{n}},\ldots,\frac{1}{\sqrt{n}}), i.e. AA=AA=IA'A=AA'=I, then we could further define Y:=AZY:=AZ. YNn(A0,AIA)=Nn(0,I)Y\sim N_n(A0,A'IA)=N_n(0,I)

  3. Express Zˉ\bar{Z} and S2S^2 in terms of YY:

    nZˉ=1ni=1nZi=Y1(n1)S2=i=1n(ZiZˉ)2=ZZnZˉ2=(AY)(AY)Y12=YYY12=i=2nYi2 ⁣ ⁣ ⁣Y1=nZˉ\begin{align} \sqrt{n}\bar{Z}=&\dfrac{1}{\sqrt{n}}\sum_{i=1}^nZ_i=Y_1\\ (n-1)S^2=&\sum_{i=1}^n(Z_i-\bar{Z})^2=Z'Z-n\bar{Z}^2\\ =&(A'Y)'(A'Y)-Y_1^2=Y'Y-Y_1^2\\ =&\sum_{i=2}^nY_i^2 \perp\!\!\!\perp Y_1=\sqrt{n}\bar{Z} \end{align}
  4. i.e. we have independency between Xˉ\bar{X} and SX2S_X^2: Xˉ ⁣ ⁣ ⁣SX2\bar{X}\perp\!\!\!\perp S_X^2

Comment: Normal distribution is the most important distribution (because CLT indicates that it's the large sample asymptotic distribution). Under such condition we find that mean value and variance are independent.

Further we could obtain their distribution for XiX_i i.i.d. N(μ,σ2)\sim N(\mu ,\sigma ^2):

n(Xˉμ)σN(0,1)(n1)S2σ2χn12\begin{align} &\dfrac{\sqrt{n}(\bar{X}-\mu )}{\sigma }\sim N(0,1)\\ &\dfrac{(n-1)S^2}{\sigma ^2}\sim \chi^2_{n-1} \end{align}

and independency allows we to, e.g. use σ^2=S2\hat{\sigma }^2=S^2 to construct pivot variable like

T=n(Xˉμ)Stn1\begin{align} T=\dfrac{\sqrt{n}(\bar{X}-\mu )}{S}\sim t_{n-1} \end{align}