HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Section 10.7.

Slides:



Advertisements
Similar presentations
15- 1 Chapter Fifteen McGraw-Hill/Irwin © 2005 The McGraw-Hill Companies, Inc., All Rights Reserved.
Advertisements

Chi Squared Tests. Introduction Two statistical techniques are presented. Both are used to analyze nominal data. –A goodness-of-fit test for a multinomial.
Multinomial Experiments Goodness of Fit Tests We have just seen an example of comparing two proportions. For that analysis, we used the normal distribution.
Copyright ©2006 Brooks/Cole, a division of Thomson Learning, Inc. More About Categorical Variables Chapter 15.
© 2010 Pearson Prentice Hall. All rights reserved The Chi-Square Test of Independence.
Chapter 16 Chi Squared Tests.
Chi-Square Tests and the F-Distribution
HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Section 5.2.
Presentation 12 Chi-Square test.
1 Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. Analysis of Categorical Data 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.
Copyright (C) 2002 Houghton Mifflin Company. All rights reserved. 1 Understandable Statistics S eventh Edition By Brase and Brase Prepared by: Lynn Smith.
HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Section 10.4.
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.
HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Section 10.3.
HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Section 10.2.
Copyright © 2013, 2010 and 2007 Pearson Education, Inc. Chapter Inference on Categorical Data 12.
HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Section 10.6.
Chapter 11: Applications of Chi-Square. Count or Frequency Data Many problems for which the data is categorized and the results shown by way of counts.
HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Section 12.4.
Copyright © 2010, 2007, 2004 Pearson Education, Inc. 1.. Section 11-2 Goodness of Fit.
Copyright © 2009 Cengage Learning 15.1 Chapter 16 Chi-Squared Tests.
Copyright © 2009 Pearson Education, Inc LEARNING GOAL Interpret and carry out hypothesis tests for independence of variables with data organized.
HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Section 8.2.
A Course In Business Statistics 4th © 2006 Prentice-Hall, Inc. Chap 9-1 A Course In Business Statistics 4 th Edition Chapter 9 Estimation and Hypothesis.
Chi-Square Procedures Chi-Square Test for Goodness of Fit, Independence of Variables, and Homogeneity of Proportions.
Copyright (C) 2002 Houghton Mifflin Company. All rights reserved. 1 Understandable Statistics S eventh Edition By Brase and Brase Prepared by: Lynn Smith.
Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc Chapter 16 Chi-Squared Tests.
HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Example 10.17:
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 © 2010 Pearson Education, Inc. Slide
Section 10.2 Independence. Section 10.2 Objectives Use a chi-square distribution to test whether two variables are independent Use a contingency table.
Chap 11-1 Copyright ©2013 Pearson Education, Inc. publishing as Prentice Hall Chapter 11 Chi-Square Tests Business Statistics: A First Course 6 th Edition.
HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Section 10.3.
HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Chapter 10.
HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Section 12.1.
HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Section 12.3.
CHAPTER INTRODUCTORY CHI-SQUARE TEST Objectives:- Concerning with the methods of analyzing the categorical data In chi-square test, there are 2 methods.
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 © Cengage Learning. All rights reserved. Chi-Square and F Distributions 10.
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.
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,
HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Section 8.3.
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.
HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Section 10.5.
Chi-Square Chapter 14. Chi Square Introduction A population can be divided according to gender, age group, type of personality, marital status, religion,
Chi-Två Test Kapitel 6. Introduction Two statistical techniques are presented, to analyze nominal data. –A goodness-of-fit test for the multinomial experiment.
Section 10.2 Objectives Use a contingency table to find expected frequencies Use a chi-square distribution to test whether two variables are independent.
Copyright © 2009 Pearson Education, Inc LEARNING GOAL Interpret and carry out hypothesis tests for independence of variables with data organized.
Section 10.1 Goodness of Fit © 2012 Pearson Education, Inc. All rights reserved. 1 of 91.
The  2 (chi-squared) test for independence. One way of finding out is to perform a  2 (chi-squared) test for independence. We might want to find out.
Hypothesis Testing – Two Population Variances
Test of independence: Contingency Table
Chi-Square hypothesis testing
Chi-square test or c2 test
Hypothesis Testing for Means (Small Samples)
10 Chapter Chi-Square Tests and the F-Distribution Chapter 10
Chapter Fifteen McGraw-Hill/Irwin
Testing a Claim About a Mean:  Not Known
Hypothesis Testing for Population Means (s Unknown)
Chapter 12 Tests with Qualitative Data
1) A bicycle safety organization claims that fatal bicycle accidents are uniformly distributed throughout the week. The table shows the day of the week.
Consider this table: The Χ2 Test of Independence
Contingency Tables: Independence and Homogeneity
Inference on Categorical Data
The 2 (chi-squared) test for independence
CHI SQUARE TEST OF INDEPENDENCE
Presentation transcript:

HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Section 10.7 Chi-Square Test for Association

HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Objectives o Perform a chi-square test for association.

HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Chi-Square Test for Association Null and Alternative Hypotheses for a Chi ‑ Square Test for Association

HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Chi-Square Test for Association Expected Value of a Frequency in a Contingency Table The expected value of the frequency for the i th possible outcome in a contingency table is given by where n is the sample size.

HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Chi-Square Test for Association Test Statistic for a Chi-Square Test for Association The test statistic for a chi ‑ square test for association is given by where O i is the observed frequency for the i th possible outcome and E i is the expected frequency for the i th possible outcome.

HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Chi-Square Test for Association Degrees of Freedom in a Chi-Square Test for Association In a chi ‑ square test for association, the number of degrees of freedom for the chi ‑ square distribution of the test statistic is given by df = (R – 1)  (C − 1) where R is the number of rows of data in the contingency table (not including the row of totals) and C is the number of columns of data in the contingency table (not including the column of totals).

HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Chi-Square Test for Association Rejection Region for Chi ‑ Square Tests for Association Reject the null hypothesis, H 0, if:

HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Example 10.32: Performing a Chi-Square Test for Association Suppose that the following data were collected in a poll of 13,660 randomly selected voters during the 2008 presidential election campaign. Is there evidence at the 0.05 level to say that gender and voting choice were related for this election? Observed Sample of 13,660 Voters ObamaMcCainOtherTotal Male Female Total ,660

HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Example 10.32: Performing a Chi-Square Test for Association (cont.) Solution Step 1:State the null and alternative hypotheses. We let the null hypothesis be that gender and voting preference are independent of one another.

HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Example 10.32: Performing a Chi-Square Test for Association (cont.) Step 2:Determine which distribution to use for the test statistic, and state the level of significance. We wish to determine if there is an association between gender and voting preference. Since we are told that we can safely assume that the necessary conditions have been met for the examples in this section, we will use the chi ‑ square test statistic to test for this association. We are told that the level of significance is  = 0.05.

HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Example 10.32: Performing a Chi-Square Test for Association (cont.) Step 3:Gather data and calculate the necessary sample statistics. Before we begin to calculate the test statistic, we must calculate the expected value for each cell in the contingency table.

HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Example 10.32: Performing a Chi-Square Test for Association (cont.) Let’s calculate the  2 -test statistic.

HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Example 10.32: Performing a Chi-Square Test for Association (cont.) Step 4:Draw a conclusion and interpret the decision. The number of degrees of freedom for this test is df = (2 – 1)  (3 – 1) = 2 and  = Using the table, we find that the critical value is  = Comparing the test statistic to the critical value, we have > 5.991, so  2 ≥  , and thus we must reject the null hypothesis. In other words, at the 0.05 level of significance, we can conclude that gender and voting choice were related for the 2008 presidential election.

HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Example 10.33: Performing a Chi-Square Test for Association Using a TI ‑ 83/84 Plus Calculator A local hairdresser is curious about whether there is a relationship between hair color and the combination of gender and marital status among his clients. He collects data from a random sample of his clients and records the data in the following contingency table.

HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Example 10.33: Performing a Chi-Square Test for Association Using a TI ‑ 83/84 Plus Calculator (cont.) Based on these data, is there enough evidence at the 0.10 level of significance to say that there is a relationship between a person’s hair color and the combination of gender and marital status for this hairdresser’s clients? Observed Sample of 232 Clients BlondeBrownRedBlackTotal Single Women Married Women Single Men Married Men Total

HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Example 10.33: Performing a Chi-Square Test for Association Using a TI ‑ 83/84 Plus Calculator (cont.) Solution For this example, we will use a TI ‑ 83/84 Plus calculator to calculate the test statistic and draw our conclusion. As we saw in previous sections when using technology, we must begin by doing the first few steps by hand.

HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Example 10.33: Performing a Chi-Square Test for Association Using a TI ‑ 83/84 Plus Calculator (cont.) Step 1:State the null and alternative hypotheses. As always in a test for association, the null hypothesis is that the two variables, hair color and the combination of gender and marital status in this example, are independent.

HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Example 10.33: Performing a Chi-Square Test for Association Using a TI ‑ 83/84 Plus Calculator (cont.) Step 2:Determine which distribution to use for the test statistic, and state the level of significance. We wish to determine if there is an association between hair color and the combination of gender and marital status. Since we have been told that we can safely assume that the necessary criteria are met for the examples in this section, we will use the chi ‑ square test statistic to test for this association. We are given a level of significance of  = 0.10.

HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Example 10.33: Performing a Chi-Square Test for Association Using a TI ‑ 83/84 Plus Calculator (cont.) Step 3:Gather data and calculate the necessary sample statistics. The data have been gathered and presented in the form of a contingency table. When using a TI ‑ 83/84 Plus calculator, you do not have to calculate the expected values as you would if you were performing a chi ‑ square test for association by hand.

HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Example 10.33: Performing a Chi-Square Test for Association Using a TI ‑ 83/84 Plus Calculator (cont.) To use a TI-83/84 Plus calculator, start by entering the table of observed values into the calculator in the form of a matrix. Press and then to access the MATRIX menu. Scroll over to EDIT and choose option 1:[A], which is the name of the first matrix. Now you need to enter the size of the matrix in the form of (Number of Rows)  x (Number of Columns).

HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Example 10.33: Performing a Chi-Square Test for Association Using a TI ‑ 83/84 Plus Calculator (cont.) It is important to know that when using the calculator, you should not enter the total row or column! For our table of observed values, there are 4 rows and 4 columns (omitting the totals), so the size of the matrix is 4 × 4. Now enter the data from the table, as shown in the screenshot.

HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Example 10.33: Performing a Chi-Square Test for Association Using a TI ‑ 83/84 Plus Calculator (cont.) Next press and scroll to TESTS. Choose option C:  2 -Test. We must then enter the name of the matrix containing the observed values and the name of the matrix where we want the expected values to be calculated. The TI-83/84 Plus calculates the expected values for the given matrix of observed values, and stores them in the matrix that you specify.

HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Example 10.33: Performing a Chi-Square Test for Association Using a TI ‑ 83/84 Plus Calculator (cont.) If the names of the matrices you wish to use are not the ones indicated, press and then to access the MATRIX menu. Then choose the name of the matrix needed. The default options of [A] for Observed and [B] for Expected are correct for our example. To run the test, scroll down to select Calculate and then press.

HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Example 10.33: Performing a Chi-Square Test for Association Using a TI ‑ 83/84 Plus Calculator (cont.) The output screen, shown above on the right, displays the test statistic,  2 ≈ 7.520, the p ‑ value, which is approximately , and the number of degrees of freedom, df = 9.

HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Example 10.33: Performing a Chi-Square Test for Association Using a TI ‑ 83/84 Plus Calculator (cont.) After running the test, we can view the matrix of expected values calculated by the TI ‑ 83/84 Plus. Press and then to access the MATRIX menu. Then scroll over to EDIT and choose option 2:[B]. The matrix of expected values is shown in the screenshot.

HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Example 10.33: Performing a Chi-Square Test for Association Using a TI ‑ 83/84 Plus Calculator (cont.) Step 4:Draw a conclusion and interpret the decision. Instead of using a rejection region, the calculator reported a p ‑ value of approximately , so we can compare that to the level of significance,  = Since p ‑ value > , we fail to reject the null hypothesis. Thus, there is not enough evidence at this level of significance to conclude that there is an association between hair color and the combination of gender and marital status for this hairdresser’s clients.