7.8 Full information statistics (Cont’d)

Two full-information statistics can be defined as χ2=Ny(pyπ^y)2π^y and G2=2Nypypyπ^y

Both statistics are χ2 distributed. The associated degrees of freedom is equal to the number of response patterns - the number of parameters - 1.

  • H0: The model fits data well
  • H1: The model does not fit data well

Exercise: write your own function to calculate these two statistics.