Step 3.
a) $\lambda$ is the mean of the data i.e.
\[\lambda = \frac{0 \times \var{a}+1\times \var{b}+2\times\var{c}+3\times\var{d}+4\times\var{f}+5\times \var{t}}{\var{thismany}} = \var{v}\] to 2 decimal places.
b) This is the value of $\lambda$ we use to calculate the probabilities, to 3 decimal places, assuming that the data is from a Poisson distribution with this parameter.
For example, $ \displaystyle P(X=2)=\frac{e^{-\lambda}\lambda^2}{2!}=\frac{e^{-\var{v}}\times \var{v}^2}{2}=\var{x[2]}$
to 3 decimal places.
The next table shows the values to 3 decimal places you should have obtained:
$P(X=0)$ |
$\var{x[0]}$ |
$P(X=1)$ |
$\var{x[1]}$ |
$P(X=2)$ |
$\var{x[2]}$ |
$P(X=3)$ |
$\var{x[3]}$ |
$P(X=4)$ |
$\var{x[4]}$ |
$P(X \gt 4)$ |
$\var{x5}$ |
c) Using this probability then the expected number of occurences of 2 calls in a minute is \[P(X=2) \times \var{thismany} = \var{x[2]}\times \var{thismany}=\var{ex[2]}\] to 2 decimal places.
In the same way we find all the expected frequencies assuming that it is a Poisson distribution with parameter $\lambda=\var{v}$.
The following table shows the actual observed frequencies and the expected frequencies, to 2 decimal places, under this assumption.
No. of Calls (X) Observed | Expected Frequency | 103 | 108.37 |
116 | 112.98 |
66 | 58.64 |
16 | 20.26 |
6 | 5.22 |
0 | 1.54 |
The expected frequencies in the last 2 categories need to be pooled as the expected frequency for the last category is less than 5.
Hence we obtain the following table used to calculate the test statistic:
No. of Calls (X) Observed | Expected Frequency | 103 | 108.37 |
116 | 112.98 |
66 | 58.64 |
16 | 20.26 |
6 | 6.76 |
We now use the last table to calculate the $\chi^2$ statistic to see if there is a reasonable match between the observed and expected frequencies.
We have:
\[\chi ^ 2 = \simplify[all,!collectNumbers]{({a} -{ex[0]}) ^ 2 / {ex[0]} + ({b} -{ex[1]}) ^ 2 / {ex[1]} + ({c} -{ex[2]}) ^ 2 / {ex[2]} + ({dp} -{ep4}) ^ 2 / {ep4} + {z} * (({fp} -{ep5}) ^ 2 / {ep5}) = {ch}}\] to 2 decimal places.
Step 4:
The degrees of freedom is given by: $\nu=\;$no. of pooled categories $- 2 =\var{6-few+1}-2=\var{5-few}$
(We have to take away $2$ from the number of pooled categories as we have estimated the parameter $\lambda$ .)
The following are the critical values for $\nu=\var{5-few}$:
p-Value | 10% | 5% | 1% | Critical Value | 6.25 | 7.82 | 11.34 |
Comparing these values with the the test statistic we see that the $p$-value is greater than 10%.
Step 5: Conclusion
Hence there is no evidence against and so we retain the null hypothesis that the number of calls per minute follows a Poisson distribution.