CHAPTER 11: INFERENCE FOR DISTRIBUTIONS OF CATEGORICAL DATA 11.1 CHI-SQUARE TESTS FOR GOODNESS OF FIT OUTCOME: I WILL STATE APPROPRIATE HYPOTHESES AND.

Slides:



Advertisements
Similar presentations
CHAPTER 23: Two Categorical Variables: The Chi-Square Test
Advertisements

Chapter 11 Inference for Distributions of Categorical Data
Chapter 10 Chi-Square Tests and the F- Distribution 1 Larson/Farber 4th ed.
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.
Chapter 26: Comparing Counts. To analyze categorical data, we construct two-way tables and examine the counts of percents of the explanatory and response.
Chi-square Goodness of Fit Test
Chapter 11: Inference for Distributions of Categorical Data
Chapter 13: Inference for Tables – Chi-Square Procedures
Analysis of Count Data Chapter 26
Lecture Presentation Slides SEVENTH EDITION STATISTICS Moore / McCabe / Craig Introduction to the Practice of Chapter 9 Analysis of Two-Way Tables.
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
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.
Chapter 12: The Analysis of Categorical Data and Goodness- of-Fit Test.
Section 11.1 Chi-Square Goodness-of-Fit Tests
GOODNESS OF FIT Larson/Farber 4th ed 1 Section 10.1.
Warm up On slide.
Statistics: Unlocking the Power of Data Lock 5 STAT 250 Dr. Kari Lock Morgan SECTION 7.1 Testing the distribution of a single categorical variable : χ.
+ Chapter 11 Inference for Distributions of Categorical Data 11.1Chi-Square Goodness-of-Fit Tests 11.2Inference for Relationships.
Chapter 12 The Analysis of Categorical Data and Goodness of Fit Tests.
DICE!  You are going to make your own and then we are going to test them (later) to see if they are fair!
+ Section 11.1 Chi-Square Goodness-of-Fit Tests. + Introduction In the previous chapter, we discussed inference procedures for comparing the proportion.
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.
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.
The Chi-Square Distribution  Chi-square tests for ….. goodness of fit, and independence 1.
AP Stats Check In Where we’ve been… Chapter 7…Chapter 8… Where we are going… Significance Tests!! –Ch 9 Tests about a population proportion –Ch 9Tests.
Section 10.1 Goodness of Fit © 2012 Pearson Education, Inc. All rights reserved. 1 of 91.
Chi Square Test of Homogeneity. Are the different types of M&M’s distributed the same across the different colors? PlainPeanutPeanut Butter Crispy Brown7447.
Check your understanding: p. 684
CHAPTER 11 Inference for Distributions of Categorical Data
Warm up On slide.
CHAPTER 11 Inference for Distributions of Categorical Data
11.1 Chi-Square Tests for Goodness of Fit
Warm Up Check your understanding p. 687 CONDITIONS:
Chapter 11: Inference for Distributions of Categorical Data
Chapter 11: Inference for Distributions of Categorical Data
Elementary Statistics: Picturing The World
Chapter 11: Inference for Distributions of Categorical Data
Chi-Square Goodness-of-Fit Tests
CHAPTER 11 Inference for Distributions of Categorical Data
Chapter 11: Inference for Distributions of Categorical Data
Chapter 11: Inference for Distributions of Categorical Data
Chapter 11: Inference for Distributions of Categorical Data
Chapter 11: Inference for Distributions of Categorical Data
CHAPTER 11 Inference for Distributions of Categorical Data
CHAPTER 11 Inference for Distributions of Categorical Data
Chapter 11: Inference for Distributions of Categorical Data
Chapter 11: Inference for Distributions of Categorical Data
Chapter 11: Inference for Distributions of Categorical Data
Chapter 11: Inference for Distributions of Categorical Data
CHAPTER 11 Inference for Distributions of Categorical Data
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
CHAPTER 11 Inference for Distributions of Categorical Data
Chapter 11 Inference for Distributions of Categorical Data
Chapter 11: Inference for Distributions of Categorical Data
Chapter 11: Inference for Distributions of Categorical Data
Inference for Distributions of Categorical Data
Chapter 11: Inference for Distributions of Categorical Data
Presentation transcript:

CHAPTER 11: INFERENCE FOR DISTRIBUTIONS OF CATEGORICAL DATA 11.1 CHI-SQUARE TESTS FOR GOODNESS OF FIT OUTCOME: I WILL STATE APPROPRIATE HYPOTHESES AND COMPUTE EXPECTED COUNTS, CALCULATE THE CHI-SQUARE STATISTIC, DEGREES OF FREEDOM, AND P-VALUE, ALL FOR A CHI-SQUARE TEST FOR GOODNESS OF FIT.

CANDY ACTIVITY BROWNREDYELLOWGREENORANGEBLUE

LET’S RECAP

CHI-SQUARE GOODNESS OF FIT TEST  Performing one-sample z tests for each color wouldn’t tell us how likely it is to get a random sample of 60 candies with a color distribution that differs as much from the one claimed by the company as this bag does (taking all the colors into consideration at one time).  For that, we need a new kind of significance test, called a chi-square goodness-of-fit test.

CHI SQUARE TEST STATISTIC

MAIN IDEA  The idea of the chi-square goodness-of-fit test is this: we compare the observed counts from our sample with the counts that would be expected if H 0 is true.  The more the observed counts differ from the expected counts, the more evidence we have against the null hypothesis.

OUR CHI-SQUARE STATISTIC

IS THIS VALUE LARGE OR SMALL? LET’S FIND OUT!

CLASS DOTPLOT

DEGREES OF FREEDOM

P-VALUE P df

CALCULATOR

DONE (BREATHE)

CHAPTER 11: INFERENCE FOR DISTRIBUTIONS OF CATEGORICAL DATA 11.1 CHI-SQUARE TESTS FOR GOODNESS OF FIT OUTCOME: I WILL PERFORM A CHI-SQUARE TEST AND CONDUCT A FOLLOW-UP ANALYSIS WHEN THE RESULTS OF A CHI-SQUARE TEST ARE SIGNIFICANT.

CARRYING OUT A CHI-SQUARE TEST  State  Plan  Do  Conclude

STATE - NULL AND ALTERNATIVE HYPOTHESES  Null Hypothesis:  This should state a claim about the distribution of a single categorical variable in the population of interest.  H 0 : The company’s stated color distribution for M&M’S ® Milk Chocolate Candies is correct.  H 0 : p blue = 0.24, p orange = 0.20, p green = 0.16, p yellow = 0.14, p red = 0.13, p brown = 0.13

STATE  Alternative Hypothesis:  This should state that the categorical variable does not have the specified distribution.  H a : The company’s stated color distribution for M&M’S ® Milk Chocolate Candies is not correct.  H a : At least one of the p i ’s is incorrect

PLAN – CONDITIONS

WE HAVE TO BE CAREFUL!  The chi-square test statistic compares observed and expected counts. Don’t try to perform calculations with the observed and expected proportions in each category.  When checking the Large Sample Size condition, be sure to examine the expected counts, not the observed counts.

DO  Calculate the test statistic (Last class)  Calculate the P-value (Last class)

CALCULATOR

EXAMPLE In his book Outliers, Malcolm Gladwell suggests that a hockey player’s birth month has a big influence on his chance to make it to the highest levels of the game. Specifically, since January 1 is the cut-off date for youth leagues in Canada (where many National Hockey League (NHL) players come from), players born in January will be competing against players up to 12 months younger. The older players tend to be bigger, stronger, and more coordinated and hence get more playing time, more coaching, and have a better chance of being successful. To see if birth date is related to success (judged by whether a player makes it into the NHL), a random sample of 80 National Hockey League players from a recent season was selected and their birthdays were recorded. Do these data provide convincing evidence that the birthdays of all NHL players are evenly distributed among the four quarters of the year? BirthdayJan – MarApr – JunJul – SepOct – Dec Number of Players

FIN.