Ch 26 – Comparing Counts Day 1 - The Chi-Square Distribution

Slides:



Advertisements
Similar presentations
Chapter 11: Chi – Square Goodness – of – Fit Tests
Advertisements

AP Statistics Tuesday, 15 April 2014 OBJECTIVE TSW (1) identify the conditions to use a chi-square test; (2) examine the chi-square test for independence;
CHAPTER 23: Two Categorical Variables: The Chi-Square Test
Chapter 10 Chi-Square Tests and the F- Distribution 1 Larson/Farber 4th ed.
Chi-square Goodness of Fit Test
More About Significance Tests
HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Section 10.7.
Chapter 11 Inference for Tables: Chi-Square Procedures 11.1 Target Goal:I can compute expected counts, conditional distributions, and contributions to.
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.
© 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.
Chapter 13- Inference For Tables: Chi-square Procedures Section Test for goodness of fit Section Inference for Two-Way tables Presented By:
Chi-Square Test (χ 2 ) χ – greek symbol “chi”. Chi-Square Test (χ 2 ) When is the Chi-Square Test used? The chi-square test is used to determine whether.
+ Section 11.1 Chi-Square Goodness-of-Fit Tests. + Introduction In the previous chapter, we discussed inference procedures for comparing the proportion.
Chapter 10 Section 5 Chi-squared Test for a Variance or Standard Deviation.
Lesson Runs Test for Randomness. Objectives Perform a runs test for randomness Runs tests are used to test whether it is reasonable to conclude.
Section 10.2 Objectives Use a contingency table to find expected frequencies Use a chi-square distribution to test whether two variables are independent.
Chi Square Test of Homogeneity. Are the different types of M&M’s distributed the same across the different colors? PlainPeanutPeanut Butter Crispy Brown7447.
Goodness-of-Fit A test of whether the distribution of counts in one categorical variable matches the distribution predicted by a model is called a goodness-of-fit.
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
Comparing Counts Chi Square Tests Independence.
11.1 Chi-Square Tests for Goodness of Fit
Chi-square test or χ2 test
Other Chi-Square Tests
Chi-Square hypothesis testing
Unit 8 Section 7.5.
Chi-square test or c2 test
10 Chapter Chi-Square Tests and the F-Distribution Chapter 10
Hypothesis Testing Review
Chapter 25 Comparing Counts.
Chapter 12: Inference about a Population Lecture 6b
Testing Goodness of Fit
Section 10-1 – Goodness of Fit
Chapter 11 Goodness-of-Fit and Contingency Tables
Chi-Square Goodness of Fit
Elementary Statistics: Picturing The World
Chapter 7 Hypothesis Testing with One Sample.
AP Stats Check In Where we’ve been… Chapter 7…Chapter 8…
AP Stats Check In Where we’ve been… Chapter 7…Chapter 8…
Reasoning in Psychology Using Statistics
Chapter 11: Inference for Distributions of Categorical Data
Chapter 11: Inference for Distributions of Categorical Data
Chapter 10 Analyzing the Association Between Categorical Variables
Inference for Relationships
Chi-square test or c2 test
Inference for Tables Chi-Square Tests Ch. 11.
The Analysis of Categorical Data and Goodness of Fit Tests
Day 66 Agenda: Quiz Ch 12 & minutes.
Lesson 11 - R Chapter 11 Review:
Chapter 26 Comparing Counts.
Chi-square = 2.85 Chi-square crit = 5.99 Achievement is unrelated to whether or not a child attended preschool.
CHAPTER 11 Inference for Distributions of Categorical Data
Chapter 26 Comparing Counts.
Inference for Tables Chi-Square Tests Ch. 11.
Copyright © Cengage Learning. All rights reserved.
Chapter 26 Comparing Counts Copyright © 2009 Pearson Education, Inc.
CHAPTER 11 Inference for Distributions of Categorical Data
Chapter 26 Comparing Counts.
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
Inference for Distributions of Categorical Data
Testing Claims about a Population Standard Deviation
Presentation transcript:

Ch 26 – Comparing Counts Day 1 - The Chi-Square Distribution Part VII – Exploring and Understanding Data Ch 26 – Comparing Counts Day 1 - The Chi-Square Distribution

The Chi-Square Test The Chi-square test has two uses: Goodness of fit: to determine if data fits a given distribution Independence: to determine if there is a relationship between two categorical variables

The Chi-square test statistic The basic idea behind chi-square is to see if what really happened is significantly different from what you expected to happen The formula for a chi-square test statistic is:

Decisions using Chi-square We use chi-square only for hypothesis tests – no confidence intervals Once we get a test statistic, we use the chi-square table to make a decision as to whether or not to reject H0 The table works in a similar way to the t-table

Goodness of Fit Test A botanist wants to know if a certain insect has a preference in the color of roses it eats. She records the number of insects who infest each color in her study. Red White Yellow Pink 53 71 46 30

Hypotheses For this type of test there are no symbols in the hypotheses, only words The null hypothesis basically states that there is nothing unusual going on In this case: H0: the insects have no color preference Ha: the insects do have a color preference

Type of Test Chi-square test for goodness of fit α = .05 df = 3 For goodness of fit tests: df = # of categories – 1

Conditions for Chi-square Check Random Sample Read the problem – assume, if no description of sample is given All expected counts are ≥ 5 Verify – if no, make a note of this and go on with the test Make sure you show your expected counts somewhere in your problem

Expected Values The expected values are based on your null hypothesis In this problem, if our null hypothesis was true, all cells would have the same value Red White Yellow Pink Observed 53 71 46 30 Expected

Conditions for Chi-square (This problem) Check Random Sample Assume All expected counts are ≥ 5 yes

The test statistic

Conclusion Since p < .05, reject H0. There is enough evidence to conclude that the insects do have a color preference.

Another example… An anatomy teacher hypothesizes that the final grades in her classes are distributed as 10% A’s, 23% B’s, 45% C’s, 14% D’s and 8% F’s. At the end of the semester, a random sample of her students has the following grades. Was her hypothesis correct? A B C D F 4 13 24 7 5

Expected Values 10% A’s, 23% B’s, 45% C’s, 14% D’s and 8% F’s Total in sample = 53 A B C D F Observed 4 13 24 7 5 Expected 5.3 12.19 23.85 7.42 4.24

Χ2 test for goodness of fit, α=.05, df =4 H0: The distribution does fit the teacher’s hypothesis Ha: The distribution doesn’t fit the teacher’s hypothesis Χ2 test for goodness of fit, α=.05, df =4 Condition Check Random Sample All expected counts are ≥ 5 Stated Since p >.05, fail to reject H0. There is not enough evidence to conclude that the teacher’s grades do not fit her hypothesis. No – one count is < 5 this concerns us, but we will proceed

Homework 26-1 GOF WS