State the hypotheses
H0:the model fits the dataH1:the model does not fit the data The stated model is the null hypothesis for a goodness-of-fit test.
State the Poisson model
X∼Po(3) The value of λ is given, so no degree of freedom is lost for estimation.
Find every expected frequency
E1=7.4681,E2=22.4042,E3=33.6063,E4=33.6063,E5=25.2047,E6=15.1228,E7=12.5877 Each expected frequency is the sample size multiplied by the model probability.
Check that the expected frequencies sum to the observed total
∑E=150.000=150=∑O This confirms that no arithmetic slip has been made.
Check the pooling rule
iminEi=7.4681≥5⇒no pooling Every expected frequency is at least 5, so no classes are combined.
Find the number of degrees of freedom
ν=7−1−0=6 There are 7 classes after pooling and 0 parameters estimated from the data.
Find the contribution of every class
0.0379+0.2580+0.0578+0.0768+0.0251+0.0509+0.0135⇒χcalc2=0.520 The test statistic is the sum of the contributions of the pooled classes.
Add the contributions
χcalc2=0.0379+0.2580+0.0578+0.0768+0.0251+0.0509+0.0135=0.520 This is the value of the test statistic, to 3 decimal places.
Find the critical value
χcrit2=χ0.012(6)=16.812 This is the upper 1\% point of the chi-squared distribution with ν=6.
Compare the statistic with the critical value
0.520≤16.812 H0 is rejected if and only if χcalc2>χcrit2.
Recall the chi-squared test statistic
χcalc2=∑E(O−E)2 Each class contributes E(O−E)2, so the statistic is never negative.
Recall the pooling rule
Ei≥5 for every class used in the test Classes are combined with their neighbour towards the tail until this holds.
Recall the degrees-of-freedom rule for a goodness-of-fit test
Here k is the number of classes AFTER pooling and m the number of parameters estimated from the data.
Recall the degrees-of-freedom rule for a contingency table
ν=(r−1)(c−1) The row and column totals are fixed, which removes r+c−1 degrees of freedom.
Select the correct conclusion in context
do not reject H0; there is insufficient evidence at the 1% level that Po(3) is a poor model for the number of accidents The conclusion must be stated in the context of the question.