EXAMPLE 3 Calculating χ2data
Suppose the observed frequencies of browser preference in Table 3 come from a survey taken this year of 200 Internet users.
Browser | Observed frequency |
---|---|
Google Chrome | 80 |
Microsoft Internet Explorer | 62 |
Other | 58 |
Calculate the test statistic χ2data by comparing the observed frequencies from Table 3 with the expected frequencies calculated in Table 2 of Example 2.
Solution
The observed frequencies Oi are found in Table 3, and the expected frequencies are given in Table 2. Table 4 then provides the quantities needed to calculate χ2data. Then
χ2data=∑(Oi-Ei)2Ei≈4+0+3.46=7.46
Category | pi | Oi | Ei | Oi-Ei | (Oi-Ei)2 | (Oi-Ei)2Ei |
---|---|---|---|---|---|---|
Chrome | 0.32 | 80 | 64 | 16 | 256 | (80-64)264=4 |
IE | 0.31 | 62 | 62 | 0 | 0 | (62-62)262=0 |
Other | 0.37 | 58 | 74 | −16 | −256 | (58-74)274≈3.46 |
NOW YOU CAN DO
Exercises 13–18.