1 / 20

c 2 test for independence

c 2 test for independence. Used with categorical, bivariate data from ONE sample Used to see if the two categorical variables are associated (dependent) or not associated ( independent ). Assumptions & formula remain the same!. Hypotheses – written in words.

Download Presentation

c 2 test for independence

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. c2 test for independence • Used with categorical, bivariate data from ONEsample • Used to see if the two categorical variables are associated (dependent) or not associated (independent)

  2. Assumptions & formula remain the same!

  3. Hypotheses – written in words H0: two variables are independent Ha: two variables are dependent Be sure to write in context!

  4. Example 5: A beef distributor wishes to determine whether there is a relationship between geographic region and cut of meat preferred. If there is no relationship, we will say that beef preference is independent of geographic region. Suppose that, in a random sample of 500 customers, 300 are from the North and 200 from the South. Also, 150 prefer cut A, 275 prefer cut B, and 75 prefer cut C.

  5. If beef preference is independent of geographic region, how would we expect this table to be filled in? 90 60 165 110 45 30

  6. Assuming H0 is true, Expected Counts

  7. Degrees of freedom Or cover up one row & one column & count the number of cells remaining!

  8. Now suppose that in the actual sample of 500 consumers the observed numbers were as follows:  Is there sufficient evidence to suggest that geographic regions and beef preference are not independent? (Is there a difference between the expected and observed counts?)

  9. Assumptions: • Have a random sample of people • All expected counts are greater than 5. • H0: geographic region and beef preference are independentHa: geographic region and beef preference are dependent • P-value = .0021 df = 2 a = .05 • Since p-value < a, I reject H0. There is sufficient evidence to suggest that geographic region and beef preference are dependent. Expected Counts: N S A 90 60 B 165 110 C 45 30

  10. Example 6 : Suppose that residents of a particular city can watch national news on affiliates of 4 different networks: ABC, CBS, PBS and NBC. A researcher wants to know whether there is any relationship between political philosophies (liberal, moderate or conservative) and the network they watch for news. A random sample of 300 viewers was selected, and the results are given below:

  11. Each observation consists of . We would like to test whether there is . 1. State null and alternate hypothesis

  12. ASSUMPTIONS:

  13. 2. Calculate statistics: Expected counts: Degrees of freedom: Use the graphing calculator to calculate P-value.

  14. 3. State conclusion.

  15. c2 test for homogeneity • Used with a single categorical variable from two (or more) independent samples • Used to see if the two populations are the same (homogeneous)

  16. Assumptions & formula remain the same! Expected counts & df are found the same way as test for independence. Only change is the hypotheses!

  17. Hypotheses – written in words H0: the two (or more) distributions are the same Ha: the distributions are different Be sure to write in context!

  18. Separate random samples of 124 consumers and 101 dentists were asked to respond to the following statement: “I favor the use of advertising by dentists to attract new patients.” Possible responses were strongly agree, agree, neutral, disagree, and strongly disagree. The authors were interested in determining whether the two groups – consumers and dentists – differed in their attitudes towards advertising.

  19. Assumptions: • Have 2 random samples. • All expected counts are greater than 5. • H0: the true proportions are the same for both groups. • Ha: the true proportions differ in at least one category • P-value = .000 df = 4 a = .05 • Since p-value < a, I reject H0. There is sufficient evidence to conclude that the true proportion for the 2 groups differ.

  20. From pollingreport.com: CNN/Opinion Research Corporation Poll. June 16, 2010. N=500 adults nationwide. MoE ± 4. "How do you feel about increased drilling for oil and natural gas offshore in U.S. waters? Do you strongly favor, mildly favor, mildly oppose or strongly oppose increased offshore drilling?"

More Related