Professional Documents
Culture Documents
STAT202 Project3
STAT202 Project3
13.21
H0: Favorite magazine is independent of type of car owned H1: They’re dependent
Dom 19 22 23 64
26.70 17.19 20.11 64.00
2.2192 1.3468 0.4140 *
Import 54 25 32 111
46.30 29.81 34.89 111.00
1.2795 0.7765 0.2387 *
All 73 47 55 175
73.00 47.00 55.00 175.00
* * * *
You should to obtain the χ2-stat value of 6.275 manually. The values below each observed
frequency are the expected frequency for the cell and the cell’s contribution to the total χ2-stat.
The critical value with 2 DF is 5.991, so the decision rule is to reject H0 is the test stat > 5.991.
Since 6.275 > 5.991 we’d reject H0 and conclude that there is a relation between the type of car
driven and the favorite magazine. You can’t determine the exact p-value from our table, but you
should be able to determine that it is between 0.025 and 0.05.
13.38
Test H0: Recommended action is independent of inspector H1: It’s not independent
A B C All
Major 20 14 13 47
16.92 15.98 14.10 47.00
0.5607 0.2453 0.0858 *
Minor 18 16 23 57
20.52 19.38 17.10 57.00
0.3095 0.5895 2.0357 *
Scrap 16 21 9 46
16.56 15.64 13.80 46.00
0.0189 1.8369 1.6696 *
All 54 51 45 150
54.00 51.00 45.00 150.00
* * * *
Again, you should be able to manually obtain the numerical results, with the exception of the p-
value (you should be able to determine from our table that it is larger than 0.10). The critical
value is 7.79 (reject H0 if test stat > 7.79). Since 7.352 < 7.79, we do not reject H0. We conclude
that the recommended action is not related to the inspector used.