Section 10.2 Independence. Section 10.2 Objectives Use a chi-square distribution to test whether two variables are independent Use a contingency table.

Slides:



Advertisements
Similar presentations
CHI-SQUARE(X2) DISTRIBUTION
Advertisements

Testing the Difference Between Means (Large Independent Samples)
Chapter 10 Chi-Square Tests and the F- Distribution 1 Larson/Farber 4th ed.
© 2010 Pearson Prentice Hall. All rights reserved The Chi-Square Test of Independence.
Hypothesis Testing for Variance and Standard Deviation
Testing the Difference Between Means (Small Independent Samples)
11-3 Contingency Tables In this section we consider contingency tables (or two-way frequency tables), which include frequency counts for categorical data.
Chi-Square Tests and the F-Distribution
Presentation 12 Chi-Square test.
Chapter 13 Chi-Square Tests. The chi-square test for Goodness of Fit allows us to determine whether a specified population distribution seems valid. The.
Hypothesis Testing with Two Samples
The table shows a random sample of 100 hikers and the area of hiking preferred. Are hiking area preference and gender independent? Hiking Preference Area.
Copyright © 2015, 2012, and 2009 Pearson Education, Inc. 1 Section 7.3 Hypothesis Testing for the Mean (  Unknown).
Copyright (C) 2002 Houghton Mifflin Company. All rights reserved. 1 Understandable Statistics S eventh Edition By Brase and Brase Prepared by: Lynn Smith.
Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap 11-1 Chapter 11 Chi-Square Tests Business Statistics, A First Course 4 th Edition.
Hypothesis Testing for the Mean (Small Samples)
HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Section 10.7.
Hypothesis Testing for Proportions 1 Section 7.4.
Section 10.3 Comparing Two Variances Larson/Farber 4th ed1.
Section 10.1 Goodness of Fit. Section 10.1 Objectives Use the chi-square distribution to test whether a frequency distribution fits a claimed distribution.
Chapter 11 Chi-Square Procedures 11.3 Chi-Square Test for Independence; Homogeneity of Proportions.
Chapter 9: Non-parametric Tests n Parametric vs Non-parametric n Chi-Square –1 way –2 way.
Hypothesis Testing with Two Samples
10.1: Multinomial Experiments Multinomial experiment A probability experiment consisting of a fixed number of trials in which there are more than two possible.
Chapter 10 Chi-Square Tests and the F-Distribution
Section 7.4 Hypothesis Testing for Proportions Larson/Farber 4th ed.
Chapter Chi-Square Tests and the F-Distribution 1 of © 2012 Pearson Education, Inc. All rights reserved.
Comparing Two Variances
Chi-Square Procedures Chi-Square Test for Goodness of Fit, Independence of Variables, and Homogeneity of Proportions.
Other Chi-Square Tests
Chapter 10 Chi-Square Tests and the F- Distribution 1 Larson/Farber 4th ed.
Chapter 10 Chi-Square Tests and the F-Distribution
Section 8.3 Testing the Difference Between Means (Dependent Samples)
Hypothesis Testing for the Mean (Small Samples)
GOODNESS OF FIT Larson/Farber 4th ed 1 Section 10.1.
Chi Square Classifying yourself as studious or not. YesNoTotal Are they significantly different? YesNoTotal Read ahead Yes.
Business Statistics: A First Course, 5e © 2009 Prentice-Hall, Inc. Chap 11-1 Chapter 11 Chi-Square Tests Business Statistics: A First Course Fifth Edition.
© Copyright McGraw-Hill CHAPTER 11 Other Chi-Square Tests.
Chapter Outline Goodness of Fit test Test of Independence.
The table shows a random sample of 100 hikers and the area of hiking preferred. Are hiking area preference and gender independent? Hiking Preference Area.
11.2 Tests Using Contingency Tables When data can be tabulated in table form in terms of frequencies, several types of hypotheses can be tested by using.
Section 12.2: Tests for Homogeneity and Independence in a Two-Way Table.
Copyright © 2013, 2009, and 2007, Pearson Education, Inc. Chapter 11 Analyzing the Association Between Categorical Variables Section 11.2 Testing Categorical.
ContentFurther guidance  Hypothesis testing involves making a conjecture (assumption) about some facet of our world, collecting data from a sample,
Chapter 14 – 1 Chi-Square Chi-Square as a Statistical Test Statistical Independence Hypothesis Testing with Chi-Square The Assumptions Stating the Research.
1 1 Slide © 2008 Thomson South-Western. All Rights Reserved Chapter 12 Tests of Goodness of Fit and Independence n Goodness of Fit Test: A Multinomial.
Chapter 10 Section 5 Chi-squared Test for a Variance or Standard Deviation.
Statistics 300: Elementary Statistics Section 11-3.
Section 7.4 Hypothesis Testing for Proportions © 2012 Pearson Education, Inc. All rights reserved. 1 of 14.
Section 10.2 Objectives Use a contingency table to find expected frequencies Use a chi-square distribution to test whether two variables are independent.
Section 7.3 Hypothesis Testing for the Mean (Small Samples) © 2012 Pearson Education, Inc. All rights reserved. 1 of 15.
CHI SQUARE DISTRIBUTION. The Chi-Square (  2 ) Distribution The chi-square distribution is the probability distribution of the sum of several independent,
Section 10.1 Goodness of Fit © 2012 Pearson Education, Inc. All rights reserved. 1 of 91.
Section 7.3 Hypothesis Testing for the Mean (Small Samples) © 2012 Pearson Education, Inc. All rights reserved. 1 of 101.
Chapter 10 Chi-Square Tests and the F-Distribution
10 Chapter Chi-Square Tests and the F-Distribution Chapter 10
Chapter 7 Hypothesis Testing with One Sample.
10 Chapter Chi-Square Tests and the F-Distribution Chapter 10
Chapter 11 Chi-Square Tests.
Chapter 7 Hypothesis Testing with One Sample.
10 Chapter Chi-Square Tests and the F-Distribution Chapter 10
Chapter 8 Hypothesis Testing with Two Samples.
Chapter 10 Chi-Square Tests and the F-Distribution
1) A bicycle safety organization claims that fatal bicycle accidents are uniformly distributed throughout the week. The table shows the day of the week.
Elementary Statistics: Picturing The World
Chapter 7 Hypothesis Testing with One Sample.
Testing for Independence
Chapter 10 Analyzing the Association Between Categorical Variables
Chapter 11 Chi-Square Tests.
Chapter 11 Chi-Square Tests.
Presentation transcript:

Section 10.2 Independence

Section 10.2 Objectives Use a chi-square distribution to test whether two variables are independent Use a contingency table to find expected frequencies

Contingency Tables r × c contingency table Shows the observed frequencies for two variables. The observed frequencies are arranged in r rows and c columns. The intersection of a row and a column is called a cell.

Contingency Tables Example: The contingency table shows the number of times a random sample of former smokers tried to quit smoking before they were habit free. They are classified by gender. Number of times tried to quit before habit-free Gender or more Male Female

Finding the Expected Frequency Assuming the two variables are independent, you can use the contingency table to find the expected frequency for each cell. The expected frequency for a cell E r,c in a contingency table is

Example: Finding Expected Frequencies Find the expected frequency for each cell in the contingency table. Assume that the variables, favorite way to eat ice cream and gender, are independent. Number of times tried to quit Gender or more Total Male Female Total marginal totals

Solution: Finding Expected Frequencies Number of times tried to quit Gender or more Total Male Female Total

Solution: Finding Expected Frequencies Number of times tried to quit Gender or more Total Male Female Total

Solution: Finding Expected Frequencies Number of times tried to quit Gender or more Total Male Female Total

Example: Finding Expected Frequencies Find the expected frequency for each cell in the contingency table. Assume that the variables, favorite way to eat ice cream and gender, are independent. Favorite way to eat ice cream Gender CupConeSundaeSandwichOtherTotal Male Female Total marginal totals

Solution: Finding Expected Frequencies Favorite way to eat ice cream Gender CupConeSundaeSandwichOtherTotal Male Female Total

Solution: Finding Expected Frequencies Favorite way to eat ice cream Gender CupConeSundaeSandwichOtherTotal Male Female Total

Solution: Finding Expected Frequencies Favorite way to eat ice cream Gender CupConeSundaeSandwichOtherTotal Male Female Total

Chi-Square Independence Test Chi-square independence test Used to test the independence of two variables. Can determine whether the occurrence of one variable affects the probability of the occurrence of the other variable.

Chi-Square Independence Test For the chi-square independence test to be used, the following must be true. 1.The observed frequencies must be obtained by using a random sample. 2.Each expected frequency must be greater than or equal to 5.

Chi-Square Independence Test If these conditions are satisfied, then the sampling distribution for the chi-square independence test is approximated by a chi-square distribution with (r – 1)(c – 1) degrees of freedom, where r and c are the number of rows and columns, respectively, of a contingency table. The test statistic for the chi-square independence test is where O represents the observed frequencies and E represents the expected frequencies. The test is always a right-tailed test.

Chi - Square Independence Test 1.Identify the claim. State the null and alternative hypotheses. 2.Specify the level of significance. 3.Determine the degrees of freedom. 4.Determine the critical value. State H 0 and H a. Identify α. Use Table 6 in Appendix B. d.f. = (r – 1)(c – 1) In WordsIn Symbols

Chi - Square Independence Test If χ 2 is in the rejection region, reject H 0. Otherwise, fail to reject H 0. 5.Determine the rejection region. 6.Calculate the test statistic. 7.Make a decision to reject or fail to reject the null hypothesis. 8.Interpret the decision in the context of the original claim. In WordsIn Symbols

Example: Performing a χ 2 Independence Test Using the gender/favorite way to eat ice cream contingency table, can you conclude that the adults favorite ways to eat ice cream are related to gender? Use α = Expected frequencies are shown in parentheses. Favorite way to eat ice cream Gender CupConeSundaeSandwichOtherTotal Male 600 (550.91) 288 (342.55) 204 (209.45) 24 (24) 84 (73.09) 1200 Female 410 (459.09) 340 (285.45) 180 (174.55) 20 (20) 50 (60.91) 1000 Total

Solution: Performing a Goodness of Fit Test H 0 : H a : α = d.f. = Rejection Region Test Statistic: Decision: 0.01 (2 – 1)(5 – 1) = 4 The adults’ favorite ways to eat ice cream are independent of gender. The adults’ favorite ways to eat ice cream are dependent on gender. (Claim)

Solution: Performing a Goodness of Fit Test OE(O-E)(O-E) 2 (O-E) 2 /E =

Solution: Performing a Goodness of Fit Test H 0 : H a : α = d.f. = Rejection Region Test Statistic: Decision: 0.01 (2 – 1)(5 – 1) = 4 The adults’ favorite ways to eat ice cream are independent of gender. The adults’ favorite ways to eat ice cream are dependent on gender. (Claim) χ 2 ≈ There is enough evidence at the 1% level of significance to conclude that the adults’ favorite ways to eat ice cream and gender are dependent. Reject H 0

Section 10.2 Summary Used a contingency table to find expected frequencies Used a chi-square distribution to test whether two variables are independent

Contingency Tables Example: The contingency table shows the results of a random sample of 2200 adults classified by their favorite way to eat ice cream and gender. Favorite way to eat ice cream Gender CupConeSundaeSandwichOther Male Female

Solution: Performing a Goodness of Fit Test

Example: Performing a χ 2 Independence Test Using the gender/times to quit contingency table, can you conclude that the number of times they tried to quit are related to gender? Use α = Expected frequencies are shown in parentheses.