Chi-square Goodness of Fit Test

Slides:



Advertisements
Similar presentations
Chi-square Test of Independence Presentation 10.2.
Advertisements

Chi square.  Non-parametric test that’s useful when your sample violates the assumptions about normality required by other tests ◦ All other tests we’ve.
Chi- square goodness of fit. Is your die fair—1 more time. Roll your die 120 times. Write down the number of each roll. Example:
CHAPTER 23: Two Categorical Variables: The Chi-Square Test
Chapter 11 Inference for Distributions of Categorical Data
Chapter 10 Chi-Square Tests and the F- Distribution 1 Larson/Farber 4th ed.
© 2010 Pearson Prentice Hall. All rights reserved The Chi-Square Goodness-of-Fit Test.
© 2010 Pearson Prentice Hall. All rights reserved The Chi-Square Test of Independence.
Warm-up 1) The first 115 Kentucky Derby winners by color of horse were as follows: roan 1; gray, 4; chestnut, 36; bay, 53; dark bay, 17; and black, 4.
CHAPTER 11 Inference for Distributions of Categorical Data
Introduction to Chi-Square Procedures March 11, 2010.
Ch 15 - Chi-square Nonparametric Methods: Chi-Square Applications
AP Statistics: Chapter 20
11-2 Goodness-of-Fit In this section, we consider sample data consisting of observed frequency counts arranged in a single row or column (called a one-way.
Chi-Square Test.
Significance Tests for Proportions Presentation 9.2.
Significance Tests and Two Proportions
Chapter 13: Inference for Tables – Chi-Square Procedures
Chapter 26: Comparing Counts AP Statistics. Comparing Counts In this chapter, we will be performing hypothesis tests on categorical data In previous chapters,
13.1 Goodness of Fit Test AP Statistics. Chi-Square Distributions The chi-square distributions are a family of distributions that take on only positive.
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: Inference for Distributions of Categorical Data.
Chapter 11: Inference for Distributions of Categorical Data
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 11 Inference for Tables: Chi-Square Procedures 11.1 Target Goal:I can compute expected counts, conditional distributions, and contributions to.
The Practice of Statistics, 5th Edition Starnes, Tabor, Yates, Moore Bedford Freeman Worth Publishers CHAPTER 11 Inference for Distributions of Categorical.
Chapter 11: Inference for Distributions of Categorical Data Section 11.1 Chi-Square Goodness-of-Fit Tests.
Chi-Square Procedures Chi-Square Test for Goodness of Fit, Independence of Variables, and Homogeneity of Proportions.
Chapter 10 Chi-Square Tests and the F-Distribution
GOODNESS OF FIT Larson/Farber 4th ed 1 Section 10.1.
Section 10.2 Independence. Section 10.2 Objectives Use a chi-square distribution to test whether two variables are independent Use a contingency table.
Comparing Counts.  A test of whether the distribution of counts in one categorical variable matches the distribution predicted by a model is called a.
1 Chapter 10. Section 10.1 and 10.2 Triola, Elementary Statistics, Eighth Edition. Copyright Addison Wesley Longman M ARIO F. T RIOLA E IGHTH E DITION.
AP Process Test of Significance for Population Proportion.
Testing Claims about a Population Proportion Objective: Test a claim about a population proportion.
Inference for Tables Catapult Discovery Question: –How does a cat land (feet, side, nose/face)? –Write your predictions in percent. Collect data for.
By.  Are the proportions of colors of each M&M stated by the M&M company true proportions?
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.
Chi-Square Goodness of Fit Test. In general, the chi-square test statistic is of the form If the computed test statistic is large, then the observed and.
+ Section 11.1 Chi-Square Goodness-of-Fit Tests. + Introduction In the previous chapter, we discussed inference procedures for comparing the proportion.
Copyright © 2010, 2007, 2004 Pearson Education, Inc Lecture Slides Elementary Statistics Eleventh Edition and the Triola Statistics Series by.
HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Section 10.5.
11.1 Chi-Square Tests for Goodness of Fit Objectives SWBAT: STATE appropriate hypotheses and COMPUTE expected counts for a chi- square test for goodness.
Hypothesis Tests Hypothesis Tests Large Sample 1- Proportion z-test.
Chapter 14 Inference for Distribution of Categorical Variables: Chi-Squared Procedures.
CHAPTER 11: INFERENCE FOR DISTRIBUTIONS OF CATEGORICAL DATA 11.1 CHI-SQUARE TESTS FOR GOODNESS OF FIT OUTCOME: I WILL STATE APPROPRIATE HYPOTHESES AND.
Chapter 11: Categorical Data n Chi-square goodness of fit test allows us to examine a single distribution of a categorical variable in a population. n.
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.
Check your understanding: p. 684
CHAPTER 11 Inference for Distributions of Categorical Data
CHAPTER 11 Inference for Distributions of Categorical Data
11.1 Chi-Square Tests for Goodness of Fit
Testing a Claim About a Mean:  Known
Section 10-1 – Goodness of Fit
Elementary Statistics: Picturing The World
Chi Square Two-way Tables
Chapter 11: Inference for Distributions of Categorical Data
CHAPTER 11 Inference for Distributions of Categorical Data
Inference for Tables Chi-Square Tests Ch. 11.
CHAPTER 11 Inference for Distributions of Categorical Data
CHAPTER 11 Inference for Distributions of Categorical Data
Inference for Tables Chi-Square Tests Ch. 11.
CHAPTER 11 Inference for Distributions of Categorical Data
Inference for Distributions of Categorical Data
Chapter 26 Part 2 Comparing Counts.
CHAPTER 11 Inference for Distributions of Categorical Data
CHAPTER 11 Inference for Distributions of Categorical Data
CHAPTER 11 Inference for Distributions of Categorical Data
Presentation transcript:

Chi-square Goodness of Fit Test Presentation 10.1

Another Significance Test for Proportions But this time we want to test multiple proportions. Hypothesis tests can also be performed with one proportion to obtain evidence about the truth about a population.

M&Ms Again The Mars Company claims the color distribution at right. A sample from a king size bag found a distribution that did not exactly follow the one at right. Is our sample bag enough evidence to dispute the Mars Company’s claim about the distribution of colors? The chi-square test can determine this.

Chi-square Goodness of Fit Test Formulas The null and alternate hypotheses are always the same with a Goodness of Fit Test. Null Hypothesis Alternate Hypothesis Test Statistic (that symbol is called “Chi-squared”) O is the observed count for each category and E is the expected count for each category. Instead of a normal or t distribution, we now have a chi-squared distribution

Supposed (expected) count for our bag M&Ms Example Look at the data of the 86 candies in our king size bag Color Brown Yellow Red Blue Orange Green Observed in our bag 12 10 8 25 14 19 Supposed (expected) % 13% 14% 24% 20% 16% Supposed (expected) count for our bag (.13)86 = 11.18 (.14)86 = 12.04 (.24)86 = 20.64 (.20)86 = 17.2 (.16)86 = 13.76

Conditions for the Goodness of Fit Test None of the observed counts should be less than 1 No more than 20% of the counts should be less than 5 These are simple checks to make sure that the sample size is sufficient.

M&Ms Example Check the conditions Since all counts are greater than 5, we are ok to conduct the test Our counts were 12, 10, 8, 25, 14, 19. Write Hypotheses (these are always the same!) Null: Ho: Observed = Expected That is, what we observed should be the same as what we expected (what the Mars company advertises) Alternate: Ha: Observed ≠ Expected That is, the color distribution is just too different from what is advertised to be attributed to random chance.

M&Ms Example Calculations (this takes a bit of work) Color Brown Yellow Red Blue Orange Green Observed 12 10 8 25 14 19 Expected 11.18 12.04 20.64 17.2 13.76 (O-E)2 (12-11.18)2= 0.6724 (10-12.04)2= 4.1616 (8-11.18)2= 10.1124 (25-20.64)2= 19.0096 (14-17.2)2= 10.24 (19-13.76)2= 27.4576 (O-E)2/E 0.0601 0.3456 0.9045 0.9210 0.5953 1.9955 Then, add them up!

M&Ms Example Finish calculations We have 6 categories so our degrees of freedom: 6 – 1 = 5. Then use X2cdf(4.822,999,5) to find the p-value With a p-value so high we fail to reject the null. There is not sufficient evidence to suggest that the color distribution in our bag is different from what is advertised.

Chi-square Goodness of Fit Test This concludes this presentation.