Chi-squared asymptotic approximation (source code)

= Chi-squared asymptotic approximation

A <Chi-squared asymptotic approximation> uses a <Chi-squared distribution> as the limiting null law of a statistic. In a regular identifiable fixed-dimensional model, <Wilks theorem> gives $2(\ell(\widehat\theta)-\ell(\widehat\theta_0))\Longrightarrow\chi_q^2$ for $q$ smooth <independent> null restrictions, provided the true parameter is an interior point and the usual differentiability and information conditions hold. This is a limit as <Sample size> grows, not an exact finite-sample identity.

For a fully specified <multinomial distribution>[multinomial model] with a fixed number $r$ of categories and <probabilities> $p_j>0$, <Pearson chi-squared test>[Pearson's statistic] is
$$
X_n^2=\sum_{j=1}^r\frac{(N_j-np_j)^2}{np_j}\Longrightarrow\chi_{r-1}^2.
$$
The constraint $\sum_jN_j=n$ removes one Gaussian degree of freedom. Its usual fixed-category assumptions make all expected counts $np_j$ grow. Growing dimension or persistent rare counts require separate approximation analysis; merely choosing chi-squared critical values does not supply it.

Some Gaussian models instead yield an exact chi-squared law. If $X_i$ are <independent and identically distributed>[iid] $N(\mu_0,\sigma^2)$ with known $\sigma>0$, then $n(\overline X-\mu_0)^2/\sigma^2\sim\chi_1^2$ for every $n$. Parameter boundaries can lead to a <Chi-bar-squared distribution> or another limit rather than the regular Wilks law. The model and null geometry determine which calibration is justified.