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

Slides:



Advertisements
Similar presentations
Section 10.2 Hypothesis Testing for Means (Small Samples) HAWKES LEARNING SYSTEMS math courseware specialists Copyright © 2008 by Hawkes Learning Systems/Quant.
Advertisements

Chapter 10 Chi-Square Tests and the F- Distribution 1 Larson/Farber 4th ed.
Chapter 16 Chi Squared Tests.
CHAPTER 11: CHI-SQUARE TESTS.
Chapter 9 Hypothesis Testing.
Goodness of Fit Test for Proportions of Multinomial Population Chi-square distribution Hypotheses test/Goodness of fit test.
The Chi-square Statistic. Goodness of fit 0 This test is used to decide whether there is any difference between the observed (experimental) value and.
Copyright © Cengage Learning. All rights reserved. 11 Applications of Chi-Square.
HAWKES LEARNING SYSTEMS math courseware specialists Copyright © 2010 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Chapter 14 Analysis.
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.
HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Section 6.4.
HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Section 10.4.
HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Section 10.2.
Section Copyright © 2014, 2012, 2010 Pearson Education, Inc. Lecture Slides Elementary Statistics Twelfth Edition and the Triola Statistics Series.
Copyright © 2013, 2010 and 2007 Pearson Education, Inc. Chapter Inference on the Least-Squares Regression Model and Multiple Regression 14.
EDRS 6208 Analysis and Interpretation of Data Non Parametric Tests
HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Section 10.1.
HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Section 10.7.
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.
Section 10.3 Hypothesis Testing for Means (Large Samples) HAWKES LEARNING SYSTEMS math courseware specialists Copyright © 2008 by Hawkes Learning Systems/Quant.
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: Applications of Chi-Square. Count or Frequency Data Many problems for which the data is categorized and the results shown by way of counts.
Copyright © 2010, 2007, 2004 Pearson Education, Inc Chapter 11 Goodness of Fit Test (section 11.2)
Copyright © 2010, 2007, 2004 Pearson Education, Inc. 1.. Section 11-2 Goodness of Fit.
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 8.2.
Section 10.4 Hypothesis Testing for Population Proportions HAWKES LEARNING SYSTEMS math courseware specialists Copyright © 2008 by Hawkes Learning Systems/Quant.
Copyright © 2013, 2010 and 2007 Pearson Education, Inc. Section Inference about Two Means: Independent Samples 11.3.
HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Chapter 8.
Section 10.2 Hypothesis Testing for Means (Small Samples) HAWKES LEARNING SYSTEMS math courseware specialists Copyright © 2008 by Hawkes Learning Systems/Quant.
Chapter 10 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. Example 10.17:
GOODNESS OF FIT Larson/Farber 4th ed 1 Section 10.1.
The Practice of Statistics Third Edition Chapter (13.1) 14.1: Chi-square Test for Goodness of Fit Copyright © 2008 by W. H. Freeman & Company Daniel S.
Section 10.2 Independence. Section 10.2 Objectives Use a chi-square distribution to test whether two variables are independent Use a contingency table.
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.
1 1 Slide © 2009 Thomson South-Western. All Rights Reserved Slides by JOHN LOUCKS St. Edward’s University.
HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Section 6.3.
Copyright © 2013, 2009, and 2007, Pearson Education, Inc. Chapter 11 Analyzing the Association Between Categorical Variables Section 11.2 Testing Categorical.
Section Copyright © 2014, 2012, 2010 Pearson Education, Inc. Lecture Slides Elementary Statistics Twelfth Edition and the Triola Statistics Series.
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.
Copyright © Cengage Learning. All rights reserved. 12 Analysis of Variance.
HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Section 10.5.
Chapter 14 Inference for Distribution of Categorical Variables: Chi-Squared Procedures.
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 10.1 Goodness of Fit © 2012 Pearson Education, Inc. All rights reserved. 1 of 91.
Hypothesis Testing – Two Means(Small, Independent Samples)
10 Chapter Chi-Square Tests and the F-Distribution Chapter 10
Hypothesis Testing – Two Population Variances
Chi-square test or c2 test
Hypothesis Testing for Means (Small Samples)
Chapter 7 Hypothesis Testing with One Sample.
CHAPTER 11 CHI-SQUARE TESTS
Testing a Claim About a Mean:  Not Known
Hypothesis Testing for Population Means (s Unknown)
Chapter 12 Tests with Qualitative Data
Section 10-1 – Goodness of Fit
Elementary Statistics: Picturing The World
Elementary Statistics
AP Stats Check In Where we’ve been… Chapter 7…Chapter 8…
Elementary Statistics: Picturing The World
Elementary Statistics: Picturing The World
CHAPTER 11 CHI-SQUARE TESTS
Copyright © Cengage Learning. All rights reserved.
Presentation transcript:

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

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 goodness of fit.

HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Chi-Square Test for Goodness of Fit Null and Alternative Hypotheses for a Chi ‑ Square Test for Goodness of Fit When the theoretical probabilities for the various outcomes are all the same, the null and alternative hypotheses for a chi ‑ square test for goodness of fit are as follows.

HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Chi-Square Test for Goodness of Fit Null and Alternative Hypotheses for a Chi ‑ Square Test for Goodness of Fit (cont.) If the theoretical probabilities for the various outcomes are not all the same, each probability must be stated in the null hypothesis, so in that case, the hypotheses are as follows.

HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Chi-Square Test for Goodness of Fit Null and Alternative Hypotheses for a Chi ‑ Square Test for Goodness of Fit (cont.) k is the number of possible outcomes for each trial.

HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Chi-Square Test for Goodness of Fit Test Statistic for a Chi-Square Test for Goodness of Fit The test statistic for a chi ‑ square test for goodness of fit 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 Goodness of Fit Degrees of Freedom in a Chi-Square Test for Goodness of Fit In a chi ‑ square test for goodness of fit, the number of degrees of freedom for the chi ‑ square distribution of the test statistic is given by df = k −1 where k is the number of possible outcomes for each trial.

HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Chi-Square Test for Goodness of Fit Rejection Region for a Chi ‑ Square Test for Goodness of Fit 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.30: Performing a Chi-Square Test for Goodness of Fit A local bank wants to evaluate the usage of its ATM. Currently the bank manager assumes that the ATM is used consistently throughout the week, including weekends. She decides to use statistical inference with a 0.05 level of significance to test a customer’s claim that the ATM is much busier on some days of the week than it is on other days. During a randomly selected week, the bank recorded the number of times the ATM was used on each day.

HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Example 10.30: Performing a Chi-Square Test for Goodness of Fit (cont.) ATM Usage Number of Times Used Monday38 Tuesday33 Wednesday41 Thursday25 Friday22 Saturday38 Sunday45 The results are listed in the following table.

HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Example 10.30: Performing a Chi-Square Test for Goodness of Fit (cont.) Solution Step 1:State the null and alternative hypotheses. When stating the hypotheses to be tested, we take the null hypothesis to be that the proportions of customers are the same for every day of the week.

HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Example 10.30: Performing a Chi-Square Test for Goodness of Fit (cont.) Mathematically, we can write the null and alternative hypotheses as follows.

HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Example 10.30: Performing a Chi-Square Test for Goodness of Fit (cont.) Step 2:Determine which distribution to use for the test statistic, and state the level of significance. We are looking to see whether the observed values of ATM usage match the expected values for ATM usage at the bank. Remember that we can safely assume that the necessary conditions are met for examples in this section, so the chi ‑ square test for goodness of fit is the appropriate choice for this scenario. Note that the level of significance given in the problem is  = 0.05.

HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Example 10.30: Performing a Chi-Square Test for Goodness of Fit (cont.) Step 3:Gather data and calculate the necessary sample statistics. Before we begin to calculate the test statistic, let’s calculate the expected value for each day of the week. Since we are assuming that the number of times the ATM is used does not vary for each day, then the probability will be the same for every day, so the expected number of customers for each day of the week is calculated as follows.

HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Example 10.30: Performing a Chi-Square Test for Goodness of Fit (cont.) Note that n = = 242 (the total number of times the ATM was used).

HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Example 10.30: Performing a Chi-Square Test for Goodness of Fit (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.30: Performing a Chi-Square Test for Goodness of Fit (cont.) Step 4:Draw a conclusion and interpret the decision. The number of degrees of freedom for the chi ‑ square distribution for this test is df = 7 – 1 = 6, and  = Using the table, we find that the critical value is

HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Example 10.30: Performing a Chi-Square Test for Goodness of Fit (cont.)

HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Example 10.30: Performing a Chi-Square Test for Goodness of Fit (cont.) Comparing the test statistic to the critical value, we have < so and thus we must fail to reject the null hypothesis. In other words, at the 0.05 level of significance, there is not sufficient evidence to support the customer’s claim that the ATM is used significantly more on any particular day of the week.

HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Example 10.31: Performing a Chi-Square Test for Goodness of Fit Using a TI ‑ 84 Plus Calculator A local fast-food restaurant serves buffalo wings. The restaurant’s managers notice that they normally sell the following proportions of flavors for their wings: 20% Spicy Garlic, 50% Classic Medium, 10% Teriyaki, 10% Hot BBQ, and 10% Asian Zing. After running a campaign to promote their nontraditional specialty wings, they want to know if the campaign has made an impact. The results after 10 days are listed in the following table.

HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Example 10.31: Performing a Chi-Square Test for Goodness of Fit Using a TI ‑ 84 Plus Calculator (cont.) Is there sufficient evidence at the 0.05 level of significance to say that the promotional campaign has made any difference in the proportions of flavors sold? Buffalo Wing Sales Number Sold Spicy Garlic251 Classic Medium630 Teriyaki115 Hot BBQ141 Asian Zing121

HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Example 10.31: Performing a Chi-Square Test for Goodness of Fit Using a TI ‑ 84 Plus Calculator (cont.) Solution Step 1:State the null and alternative hypotheses. The null hypothesis here is that the proportions of the flavors sold are the same as they were before the promotional campaign and the alternative is that they are different. To write this mathematically, we need to state the theoretical probabilities for the five different flavors sold.

HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Example 10.31: Performing a Chi-Square Test for Goodness of Fit Using a TI ‑ 84 Plus Calculator (cont.) Let p 1, p 2, p 3, p 4, and p 5 be the probabilities for Spicy Garlic, Classic Medium, Teriyaki, Hot BBQ, and Asian Zing, respectively. Then we have the following. Therefore, the null and alternative hypotheses are stated as follows.

HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Example 10.31: Performing a Chi-Square Test for Goodness of Fit Using a TI ‑ 84 Plus Calculator (cont.) Step 2:Determine which distribution to use for the test statistic, and state the level of significance. We are evaluating whether the observed proportions of wing flavors sold match the expected proportions for the five flavors. Remember that we can safely assume that the conditions are met for examples in this section, so the chi ‑ square test for goodness of fit is again the appropriate choice. Note that the level of significance given in the problem is  = 0.05.

HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Example 10.31: Performing a Chi-Square Test for Goodness of Fit Using a TI ‑ 84 Plus Calculator (cont.) Step 3:Gather data and calculate the necessary sample statistics. Next, in order to calculate the  2 -test statistic for the data given, let’s begin by calculating the expected value of the number of orders for each flavor since they are not all the same. Here, n = = 1258 (the total number of orders of wings sold).

HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Example 10.31: Performing a Chi-Square Test for Goodness of Fit Using a TI ‑ 84 Plus Calculator (cont.)

HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Example 10.31: Performing a Chi-Square Test for Goodness of Fit Using a TI ‑ 84 Plus Calculator (cont.) Some TI ‑ 84 Plus calculators can calculate the  2 -test statistic as well as the p ‑ value for a chi ‑ square test for goodness of fit. Begin by pressing and then choose option 1:Edit. Enter the observed values in L1 and the expected values in L2, 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.31: Performing a Chi-Square Test for Goodness of Fit Using a TI ‑ 84 Plus Calculator (cont.) Next, press, scroll to TESTS, and then choose option D:   GOF ‑ Test. The calculator will prompt you for the following: Observed, Expected, and df, as shown in the screenshot on the left below. Enter L1 for Observed since that is the list where you entered the observed values. Enter L2 for Expected and enter the number of degrees of freedom for df. The number of degrees of freedom for this test is df = 5 – 1 = 4, so enter 4 for df. Finally, select Calculate and press.

HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Example 10.31: Performing a Chi-Square Test for Goodness of Fit Using a TI ‑ 84 Plus Calculator (cont.) The output screen, shown above on the right, displays the  2 -test statistic and the p ‑ value, and reiterates the number of degrees of freedom that was entered.

HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Example 10.31: Performing a Chi-Square Test for Goodness of Fit Using a TI ‑ 84 Plus Calculator (cont.) Step 4:Draw a conclusion and interpret the decision. We see that  2 ≈ 2950.and the p ‑ value ≈ This p ‑ value can be compared to the level of significance,  = 0.05, to draw a conclusion. Remember that if p ‑ value ≤ , then the conclusion is to reject the null hypothesis. In this case, p ‑ value > , so the conclusion is to fail to reject the null hypothesis.

HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Example 10.31: Performing a Chi-Square Test for Goodness of Fit Using a TI ‑ 84 Plus Calculator (cont.) In other words, the evidence does not support the claim that the proportions of wing flavors sold have changed. The restaurant cannot say that the promotional campaign has made any difference based on this evidence.