1 / 13

STA291

STA291. Statistical Methods Lecture 26. Chi-Square Test of Independence. The table below shows the importance of personal appearance for several age groups. Are Age and Appearance independent, or is there a relationship?. Chi-Square Test of Independence.

azana
Télécharger la présentation

STA291

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. STA291 Statistical Methods Lecture 26

  2. Chi-Square Test of Independence The table below shows the importance of personal appearance for several age groups. Are Age and Appearance independent, or is there a relationship?

  3. Chi-Square Test of Independence A stacked barchart suggests a relationship: Test for independence using a chi-square test of independence.

  4. Chi-Square Test of Independence • The test is mechanically equivalent to the test for homogeneity, but with some differences in how we think about the data and the results: • Homogeneity Test: one variable (Card Type) measured on two or more populations (Mailings). • Independence Test: Two variables (Appearance and Age) measured on a single population. • We ask the question “Are the variables independent?” rather than “Are the groups homogeneous?” This subtle distinction is important when drawing conclusions.

  5. Chi-Square Test of Independence Assumptions and Conditions • Counted Data Condition – Data must be counts • Independence Assumption – Counts need to be independent from each other. Check for randomization • Randomization Condition – Random sample needed • Sample Size Assumption – There must be enough data so check the following condition. • Expected Cell Frequency Condition – Expect at least 5 individuals per cell.

  6. Chi-Square Test of Independence Example : Automobile Manufacturers Consumer Reports uses surveys to measure reliability in automobiles. Annually they release survey results about problems that consumers have had with vehicles in the past 12 months and the origin of manufacturer. Is consumer satisfaction related to country of origin? State the hypotheses. Find the test statistic. Given the p-value, state your conclusion.

  7. Chi-Square Test of Independence Example : Automobile Manufacturers

  8. Chi-Square Test of Independence Example : Automobile Manufacturers Consumer Reports uses surveys to measure reliability in automobiles. Annually they release survey results about problems that consumers have had with vehicles in the past 12 months and the origin of manufacturer. Is consumer satisfaction related to country of origin? State the hypotheses. Find the test statistic. Given p-value = 0.231, state your conclusion. There is not enough evidence to conclude there is an association between vehicle problems and origin of vehicle.

  9. Chi-Square Test of Independence For the Appearance and Age example, we reject the null hypothesis that the variables are independent. So, it may be of interest to know how differently two age groups (teens and 30-something adults) select the “very important” category (Appearance response 6 or 7). Construct a confidence interval for the true difference in proportions…

  10. Don’t use chi-square methods unless you have counts. • Beware large samples! With a sufficiently large sample size, a chi-square test can always reject the null hypothesis. • Don’t say that one variable “depends” on the other just because they’re not independent.

  11. Goodness-of-Fit Tests The Chi-Square Calculation Find the expected values. These come from the null hypothesis value. Compute the residuals, Square the residuals, Compute the components. Find for each cell. Find the sum of the components, Find the degrees of freedom Test the hypothesis, finding the p-value or comparing the test statistic from 5 to the appropriate critical value.

  12. Comparing Chi-Square Tests

  13. Looking back • Recognize when a chi-square test of goodness of fit, homogeneity, or independence is appropriate. • Assumptions—same! • Mechanics—same! • Interpretation—(slightly) different!

More Related