Goodness of Fit Test

1 min read Updated Fri Apr 24 2026 07:36:29 GMT+0000 (Coordinated Universal Time)

Used to check whether a set of observed categorical data follows a theoretical distribution such as uniform or Poisson.

Hypotheses

H0:Data follow the specified distribution.H_0 : \text{Data follow the specified distribution.}

H1:Data do not follow the specified distribution.H_1 : \text{Data do not follow the specified distribution.}

Degrees of freedom

ν=kp1\nu = k - p - 1

Here:

  • kk: number of non-empty classes
  • pp: number of estimated parameters

Test Statistic

χ2=(OiEi)2Eiχν2\chi^2 = \sum \frac{(O_i - E_i)^2}{E_i} \quad \sim \chi^2_\nu