Let X1,…,Xn be i.i.d. N(μ,σ2). Why are the sample mean Xˉ and sample variance S2=1n−1∑i(Xi−Xˉ)2 independent, and why is (n−1)S2/σ2∼χn−12? What is Var(S2) for n=5?

Probability and statistics, Sampling distributions
Level L5 Expert. Length Long. Nature Mat Mathematical.

What's being asked

Using an orthogonal change of basis to split Gaussian data into independent pieces.

Key idea

Rotate Z=(X−μ)/σ with an orthogonal matrix whose first row is 1n1⊤. The first new coordinate carries Xˉ; the other n−1 carry exactly the sum of squared deviations.

Steps

  1. Standardise: Zi=(Xi−μ)/σ, so Z∼N(0,In). Then Zˉ=(Xˉ−μ)/σ and ∑i(Zi−Zˉ)2=(n−1)S2/σ2.
  2. Pick an n×n orthogonal matrix Q whose first row is 1n(1,…,1) (complete it by Gram–Schmidt; the Helmert matrix is one choice). Set Y=QZ.
  3. Since Q is orthogonal and Z∼N(0,I), the covariance of Y is QIQ⊤=I. Y is jointly Gaussian, so Y1,…,Yn are independent N(0,1).
  4. The first coordinate is Y1=1n∑iZi=n Zˉ. It depends only on Zˉ.
  5. Orthogonality preserves length: ∑iYi2=∑iZi2. Also ∑iZi2=∑i(Zi−Zˉ)2+nZˉ2. Hence ∑i(Zi−Zˉ)2=∑iZi2−Y12=∑i=2nYi2.
  6. Conclude: the deviation sum depends only on Y2,…,Yn, and Zˉ only on Y1. These are independent. A sum of n−1 independent squared standard normals is χn−12.
  7. Variance: Var(χn−12)=2(n−1) and S2=σ2χn−12/(n−1), so Var(S2)=2σ4n−1. For n=5 this is σ4/2.

Common mistakes

How long your answer should be

One page; 10 minutes.

Last checked on 4 December 2026.

Read this

Previous in Probability and statistics: What is the Cramér–Rao lower bound for an unbiased estimator of a scalar parameter θ, how do you prove it, and how does it show that the sample mean is the best unbiased estimator of a Bernoulli parameter p?
Next in Probability and statistics: For a smooth parametric family pθ, show that DKL(pθ∥pθ+δ)=12I(θ)δ2+O(δ3) for small δ, where I(θ) is the Fisher information. How do you check it for N(μ,σ2) with σ known?