Used to check whether a set of observed categorical data follows a theoretical distribution such as uniform or Poisson.
H0:Data follow the specified distribution.
H1:Data do not follow the specified distribution.
ν=k−p−1
Here:
- k: number of non-empty classes
- p: number of estimated parameters
χ2=∑Ei(Oi−Ei)2∼χν2