Chi-Squared Distribution
📚 Study Notes: Advanced Hypothesis Testing and Key Distributions
Chi-Squared Distribution
The chi-squared distribution arises when summing the squares of independent standard Gaussian random variables. It is fundamental to understanding sample variance and many test statistics.
Definition and Properties
If Z1,Z2,…,Zn are independent N(0,1) random variables, then ∑i=1nZi2 follows a chi-squared distribution with n degrees of freedom, denoted χn2.
The sample variance Sn2=n1∑i=1n(Xi−Xˉ)2 from a Gaussian sample is related to a chi-squared distribution: σ2nSn2∼χn−12 (the n−1 degrees of freedom arise from estimating the mean).
Key takeaway: The parameter “degrees of freedom” equals the number of independent squared standard normals summed. For sample variance, one degree is lost because the sample mean is estimated.
Probability Density Function
The chi-squared PDF has an explicit form that changes with degrees of freedom:
With 1 degree of freedom, it is the distribution of the square of a single standard Gaussian — highly skewed.
As degrees of freedom increase (2, 3, 4 … 10), the distribution becomes flatter and shifts to the right — the expected value equals n, so the mass moves toward infinity as n grows.
Unlike the Gaussian, there is no “standard” chi-squared distribution that can be obtained by simple scaling. Different degrees of freedom require separate quantile tables.
Why It Matters
The chi-squared distribution appears in Wald tests and likelihood ratio tests as the asymptotic distribution of test statistics.
Because it depends on the number of degrees of freedom, tables at the back of books list quantiles for many n values — one row per sample size.
Student t-Distribution
The t-distribution (also called Student’s t) is used when the population variance is unknown and must be estimated from the data. It was developed by William Sealy Gosset (publishing under the pseudonym “Student”) in 1908 while working at the Guinness Brewery.
Definition
Let Z∼N(0,1) and V∼χd2 be independent. Then the random variable
follows a t-distribution with d degrees of freedom.
Connection to Sample Mean
When using the sample variance Sn2 instead of the true σ2, the normalized sample mean follows a t-distribution under Gaussian assumptions:
For a sample X1,…,Xn i.i.d. N(μ,σ2), the statistic
Sn/nXˉn−μ
Key insight: This allows us to perform tests and confidence intervals without knowing σ — the t-distribution accounts for the extra uncertainty from estimating the variance.
Shape and Comparison to Normal
The t-distribution has heavier tails than the standard normal — there is more probability in the extremes because the denominator introduces additional variability.
As d increases, the t-distribution approaches the standard normal. For d≥50, the difference is negligible in practice.
For small d (e.g., d=5), the tails are noticeably thicker, leading to wider confidence intervals for the same level of confidence.
At d=1 (Cauchy distribution), the tails are extremely heavy — rarely used in practice.
Important: The t-distribution is exact only when the underlying data is Gaussian. For non-Gaussian data, the central limit theorem may justify using the normal approximation when the sample size is large (say, n>30), but for small samples the t-distribution should be used with caution.
Wald Test
The Wald test is a general method for testing hypotheses about parameters when the maximum likelihood estimator (MLE) is asymptotically normal.
Setup
We have an i.i.d. sample from a parametric model with d-dimensional parameter θ∈Θ⊆Rd.
Null hypothesis: H0:θ=θ0 versus H1:θ=θ0.
Under regularity conditions, the MLE θ^nMLE satisfies
n(θ^nMLE−θ0)dN(0,I(θ0)−1)
Test Statistic
To obtain a pivotal quantity (distribution free of unknown parameters), we multiply by the square root of the Fisher information:
where Id is the d-dimensional identity matrix.
The Wald test statistic is the squared Euclidean norm of this vector:
Under H0, Tndχd2 (chi-squared with d degrees of freedom).
The test rejects H0 when Tn>qα, where qα is the 1−α quantile of χd2.
Practical note: Often I(θ0) is replaced by I(θ^nMLE) (estimated information) — both are valid asymptotically, similar to using the estimated variance in a z-test.
Geometric Interpretation
The Fisher information matrix acts as a metric that reweights directions in parameter space. A large test statistic indicates that the MLE is far from θ0 in this geometry — directions with low information (high variance) contribute less to the distance.
Likelihood Ratio Test
The likelihood ratio test (LRT) compares the maximized likelihood under the null hypothesis to the maximized likelihood under the alternative (unconstrained).
Motivation
If H0 is true, the likelihood at the constrained MLE (under H0) should be nearly as high as the unconstrained MLE.
If H0 is false, the unconstrained MLE will yield a substantially larger likelihood.
Test Statistic
Let ℓn(θ)=logLn(θ) be the log-likelihood. Define:
θ^nMLE : unconstrained MLE (maximizes ℓn over all θ in the full parameter space).
θ^nc : constrained MLE (maximizes ℓn subject to H0).
The likelihood ratio statistic is
By definition, Tn≥0 (the unconstrained MLE always has log-likelihood at least as high).
Under H0 and regularity conditions, Tndχr2, where r is the difference in dimensionality between the full parameter space and the null subspace.
Degrees of Freedom
If H0 imposes r independent restrictions (e.g., fixing r parameters to specific values), then r is the number of degrees of freedom for the chi-squared limit.
Example: Testing H0:θ2=1,θ3=2 in a 3-dimensional model (free parameter θ1). The full space has dimension 3, the null has dimension 1, so r=3−1=2.
Comparison with Wald Test
For Gaussian linear models, the Wald test and LRT are algebraically equivalent.
In general, they differ but have the same asymptotic chi-squared distribution under H0.
The LRT is often more reliable in finite samples, but the Wald test is easier to compute (requires only the MLE and its asymptotic variance).
Testing Functions of Parameters
Often we want to test hypotheses about a function g(θ) rather than θ itself (e.g., θ1−θ2=0).
Delta Method
If θ^n is an estimator (not necessarily MLE) satisfying
then for a differentiable function g:Rd→Rk (k≪d)
where ∇g is the d×k Jacobian matrix of partial derivatives.
Wald-Type Test for g(θ)
To test H0:g(θ)=0 against H1:g(θ)=0:
The test statistic is
Tn=ng(θ^n)⊤(∇g(θ^n)⊤Σ^∇g(θ^n))−1g(θ^n)Under H0, Tndχk2.
This is a direct generalization of the Wald test for vector-valued functions.
One-dimensional special case: When k=1, this reduces to checking whether ng(θ^n)/∇g(θ^)⊤Σ(θ)∇g(θ^) exceeds a normal quantile (or equivalently, the squared value exceeds χ12 quantile). This is exactly the usual z-test.
Summary Table of Tests
Wald Test: Uses MLE and Fisher information; statistic is quadratic form; asymptotic χd2 under H0 when testing all d parameters.
Likelihood Ratio Test: Uses difference of log-likelihoods; requires both constrained and unconstrained MLE; asymptotic χr2 where r is number of restrictions.
Delta Method Test: For functions g(θ); uses plug-in estimator of asymptotic variance; asymptotic χk2 where k is dimension of g.
All three tests are asymptotically equivalent under the null and local alternatives, but they may differ in finite samples. The choice depends on computational convenience and the specific hypothesis structure.

Ask anything
We've read this whole study set, so questions about it get the best answers.