To see if the data give evidence against the null hypothesis of “no relationship,’’ compare the counts in the two-
More chi-
Chi-
The chi-
χ2=∑(observed count − expected count)expected count2
The symbol Σ means “sum over all cells in the table.”
The chi-
(observed count−expected count)2expected count=(14−8)28=368=4.5
EXAMPLE 4 The cocaine study
Here are the observed and expected counts for the cocaine study side by side:
Observed | Expected | |||
Success | Failure | Success | Failure | |
Desipramine | 14 | 10 | 8 | 16 |
Lithium | 6 | 18 | 8 | 16 |
Placebo | 4 | 20 | 8 | 16 |
We can now find the chi-
χ2=(14−8)28+(10−16)216+(6−8)28+(18−16)216+(4−8)28+(20−16)216=4.50+2.25+0.50+0.25+2.00+1.00=10.50
NOW IT’S YOUR TURN
24.2 Video-
Observed | Expected | |||||
A’s and B’s | C’s | D’s and F’s | A’s and B’s | C’s | D’s and F’s | |
Played games | 736 | 450 | 193 | 717.7 | 453.1 | 208.2 |
Never played games | 205 | 144 | 80 | 223.3 | 140.9 | 64.8 |
Find the chi-
24.2 To find the chi-square statistic, we add six terms for the six cells in the two-way table:
X2=(736−717.7)2717.7+(450−453.1)2453.1+(193−208.2)2208.2+(205−223.3)2223.3+(144−140.9)2140.9+(80−64.8)264.8=0.47+0.02+1.11+1.50+0.07+3.57=6.74
Because χ2 measures how far the observed counts are from what would be expected if H0 were true, large values are evidence against H0. Is χ2=10.5 a large value? You know the drill: compare the observed value 10.5 against the sampling distribution that shows how χ2 would vary if the null hypothesis were true. This sampling distribution is not a Normal distribution. It is a right-
The chi-
The sampling distribution of the chi-
The chi-
The chi-
Figure 24.2 shows the density curves for three members of the chi-
EXAMPLE 5 The cocaine study, conclusion
We have seen that desipramine produced markedly more successes and fewer failures than lithium or a placebo. Comparing observed and expected counts gave the chi-
Significance Level α | |||||||
---|---|---|---|---|---|---|---|
df | 0.25 | 0.20 | 0.15 | 0.10 | 0.05 | 0.01 | 0.001 |
1 | 1.32 | 1.64 | 2.07 | 2.71 | 3.84 | 6.63 | 10.83 |
2 | 2.77 | 3.22 | 3.79 | 4.61 | 5.99 | 9.21 | 13.82 |
3 | 4.11 | 4.64 | 5.32 | 6.25 | 7.81 | 11.34 | 16.27 |
4 | 5.39 | 5.99 | 6.74 | 7.78 | 9.49 | 13.28 | 18.47 |
5 | 6.63 | 7.29 | 8.12 | 9.24 | 11.07 | 15.09 | 20.51 |
6 | 7.84 | 8.56 | 9.45 | 10.64 | 12.59 | 16.81 | 22.46 |
7 | 9.04 | 9.80 | 10.75 | 12.02 | 14.07 | 18.48 | 24.32 |
8 | 10.22 | 11.03 | 12.03 | 13.36 | 15.51 | 20.09 | 26.12 |
9 | 11.39 | 12.24 | 13.29 | 14.68 | 16.92 | 21.67 | 27.88 |
The two-
(r − 1)(c −1) = (3 − 1)(2 −1) = (2)(1) = 2
Look in the df = 2 row of Table 24.1. We see that x2 = 10.5 is larger than the critical value 9.21 required for significance at the ɑ = 0.01 level but smaller than the critical value 13.82 for ɑ = 0.001. The cocaine study shows a significant relationship (P<0.01) between treatment and success.
The significance test says only that we have strong evidence of some association between treatment and success. We must look at the two-
NOW IT’S YOUR TURN
24.3 Video-
Observed | Expected | |||||
A’s and B’s | C’s | D’s and F’s | A’s and B’s | C’s | D’s and F’s | |
Played games | 736 | 450 | 193 | 717.7 | 453.1 | 208.2 |
Never played games | 205 | 144 | 80 | 223.3 | 140.9 | 64.8 |
From these counts, we find that the chi-
24.3 To assess the statistical significance, we begin by noting that the two-way table has two rows and two columns. That is, r = 2 and c = 2. The chi-square statistic therefore has degrees of freedom
(r − 1)(c −1) = (2 − 1)(2 − 1) = (1)(1) = 1
Look in the df = 1 row of Table 24.1. We see that X2 = 6.74 is larger than the critical value 3.84 required for significance at the α = 0.05 level. The study shows a significant relationship (P < 0.05) between playing games and average grades.