Presentation is loading. Please wait.

Presentation is loading. Please wait.

Chapter 26 Part 1 COMPARING COUNTS. Is an observed distribution consistent with what we expect? Are observed differences among several distributions large.

Similar presentations


Presentation on theme: "Chapter 26 Part 1 COMPARING COUNTS. Is an observed distribution consistent with what we expect? Are observed differences among several distributions large."— Presentation transcript:

1 Chapter 26 Part 1 COMPARING COUNTS

2 Is an observed distribution consistent with what we expect? Are observed differences among several distributions large enough to be significant?

3 Right skewed distribution The distribution is less skewed as degrees of freedom increase The mean of the model, or the expected value, is equal to the degrees of freedom

4

5 Would you use a chi-square goodness-of-fit test, a chi-square test of homogeneity, a chi-square test of independence, or some other test? 1)A brokerage firm wants to see whether the type of account a customer has (Silver, Gold, Platinum) affects the type of trades that customer makes (in person, by phone, or by Internet). It collects a random sample of trades made for its customers over the past year and performs a test. 2)That brokerage firm also wants to know if the type of account affects the size of the account (in dollars). It performs a test to see if the mean size of the account is the same for the three account types. 3)The academic research office at a large community college wants to see whether the distribution of courses chosen (Humanities, Social Science, or Science) is different for its residential and nonresidential students. It assembles last semester’s data and performs a test. Chi-square test of independence (one sample, two variables –type of account and type of trades) Other test. Account size is quantitative. Chi-square test of homogeneity (two groups, one variable - Courses)

6

7

8 PlaceboSt John’s WortPosrex Depression returned 242214 No sign of depression 6816 Medical researchers enlisted 90 subjects for an experiment comparing treatments for depression. The subjects were randomly divided into three groups and given pills to take for a period of three months. Unknown to them, one group received a placebo, the second group the “natural” remedy St. John’s Word, and the third group the prescription drug Posrex. After six months, psychologists and physicians evaluated the subjects to see if their depression has returned.

9 Step 1: Hypotheses Step 2: Check Conditions and Model These are counts of categorical data. Subjects were randomly assigned to treatments. Need to check for expected counts to continue. The degrees of freedom = (#rows – 1)(#columns -1)

10 Checking expected counts… PlaceboSt. John’s WortPosrexTotal Depression returned 24221460 No sign of depression 681630 Total30 90 The expected counts if the treatments are equally effective would come from splitting the totals up evenly among the 3 groups. (20) (10) All expected counts are greater than 5, so we can continue with a chi-square test for homogeneity with df=(2-1)(3-1) = 2.

11 Step 3: Mechanics 1.Find expected values 2.Compute residuals 3.Square residuals 4.Divide each by expected value 5.Add components (take the sum) 6.Find d.f. (if not done already) 7.Test hypotheses

12

13 Step 4: Conclusion Because the P-value is low, we reject the null hypothesis. There is strong evidence that the tested treatments are not all equally effective in preventing the recurrence of depression. It appears that people who took the prescription drug Posrex are more likely to remain free of the signs of depression than those who took a placebo or the natural remedy St. John’s wort.

14 Assignment:  Due Today - Ch 26 HW Pt 1 - Page 642 #2-4  Chapter 26 Quiz April 30 (In Class)


Download ppt "Chapter 26 Part 1 COMPARING COUNTS. Is an observed distribution consistent with what we expect? Are observed differences among several distributions large."

Similar presentations


Ads by Google