842 CHAPTER 39. STATISTICAL TESTS

Example 39.7.3 You have a 2× 2 contingency table, three rows and two columns. Alsothe number in a random sample is 1500. The numbers of observations found in the variouspositions are illustrated in the following.

297 196600 407

Determine whether the underlying contingency table has the property that the eventscould be independent. If the probability is no more than .5 that the events are independent,reject the null hypothesis. Otherwise conclude that the events might be independent.

First, what are the p̂?

p̂1· =493

1500, p̂2· =

10071500

, p̂·1 =897

1500, p̂·2 =

201500

Now find D.

D =

(297−1500

( 4931500

)( 8971500

))2

1500( 493

1500

)( 8971500

) +

(196−1500

( 4931500

)( 201500

))2

1500( 493

1500

)( 201500

)+

(600−1500

( 10071500

)( 8971500

))2

1500( 493

1500

)( 201500

) +

(407−1500

( 10071500

)( 201500

))2

1500( 1007

1500

)( 201500

)D = 7.6237×10−2

This is distributed as X 2 ((4−1)− (2)) = X 2 (1) . From a table or graph, (.1, .248) is onthe graph of the distribution function. Therefore, since D is far smaller than .1, we don’treject the hypothesis that the sets are independent. Not being independent is indicated byD being larger than some number a where the probability that a X 2 (1) random variableis larger than a is very small, but this D is very small, so it is highly probable under thenull hypothesis that X 2 (1) > .1. This does not mean that the sets are independent. Itonly means we don’t reject the possibility that they are. This is termed acceptance ofthe hypothesis but you might fail to have independence even though you accept thehypothesis.

842 CHAPTER 39. STATISTICAL TESTSExample 39.7.3 You have a 2 x 2 contingency table, three rows and two columns. Alsothe number in a random sample is 1500. The numbers of observations found in the variouspositions are illustrated in the following.297 | 196600 | 407Determine whether the underlying contingency table has the property that the eventscould be independent. If the probability is no more than .5 that the events are independent,reject the null hypothesis. Otherwise conclude that the events might be independent.First, what are the p?493, _ 1007, 897 201= 500°? = 1500’?! = 1500°?2 = 500APi.Now find D.iS00)), (196 ~ 1500 (7560) (300)(297 — 1500 (755) (8 (an) 1300 (8) (3)1500 (7505) (7500ee2(600 — 1500 (1305) (i800))° , (407-1500 (1805) (300))”1500 (7595) (500) 1500 (+509) (500)= 7.6237 x 10-7This is distributed as .2°* ((4— 1) — (2)) = 2 (1). From a table or graph, (.1,.248) is onthe graph of the distribution function. Therefore, since D is far smaller than .1, we don’treject the hypothesis that the sets are independent. Not being independent is indicated byD being larger than some number a where the probability that a 27 (1) random variableis larger than a is very small, but this D is very small, so it is highly probable under thenull hypothesis that 27 (1) > .1. This does not mean that the sets are independent. Itonly means we don’t reject the possibility that they are. This is termed acceptance ofthe hypothesis but you might fail to have independence even though you accept thehypothesis.