00:01
For this problem, we want to do a chi -squared test for independence, where our null hypothesis is that the month and the number of flu vaccines distributed are independent, and the alternative hypothesis that the two factors are dependent.
00:27
So our test statistic, the titular chi -squared statistic, is equal to the sum over all of the categories, so sum from i equals 1 up to k, of the observed frequency for that category, oi, minus the expected frequency, ei, squared, divided by the expected frequency.
00:48
Now we have that our expected frequencies, or our theorized proportions, oh actually i do need to correct myself here, we're doing a chi -squared test, but actually we're not doing a test for independence, we're doing a goodness of fit test.
01:05
So, pardon me.
01:06
Under our null hypothesis, we have that the proportions are equal to 0 .21, 0 .3, 0 .17, and 0 .32, and then the alternative hypothesis would be that the proportions are not the hypothesized proportions.
01:32
So what i'll do next is jump over into excel, just to make the calculation a little bit quicker here.
01:38
Alright, so i'll copy down the expected, or actually, what i'll do here is i'll calculate out the expected frequencies as i'm going along here.
01:48
We have 0 .21 times 80 for september, we'd expect 0 .3 times 80 for october, expect 0 .17 times 80 for november, and we'd expect 0 .32 times 80 for other.
02:02
Now that we have the expected frequencies, we have the observed frequencies, we just copy down from the table.
02:08
Oops, going the wrong direction there.
02:11
So we have 6, 10, 15, and 49...