Chi-square test or c2 test

Slides:



Advertisements
Similar presentations
Chi-square test or c2 test
Advertisements

Chapter 26 Comparing Counts
Chapter 11 Other Chi-Squared Tests
Chi-square test Chi-square test or  2 test. Chi-square test countsUsed to test the counts of categorical data ThreeThree types –Goodness of fit (univariate)
 2 test for independence Used with categorical, bivariate data from ONE sample Used to see if the two categorical variables are associated (dependent)
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;
The Analysis of Categorical Data and Goodness of Fit Tests
Chi-square test Chi-square test or  2 test. Chi-square test countsUsed to test the counts of categorical data ThreeThree types –Goodness of fit (univariate)
Ch 15 - Chi-square Nonparametric Methods: Chi-Square Applications
Chi-square Goodness of Fit Test
Does your zodiac sign determine how successful you will be? Fortune magazine collected the zodiac signs of 256 heads of the largest 400 companies. Is there.
Chapter 13 Chi-Square Tests. The chi-square test for Goodness of Fit allows us to determine whether a specified population distribution seems valid. The.
Analysis of Count Data Chapter 26
 2 test for independence Used with categorical, bivariate data from ONE sample Used to see if the two categorical variables are associated (dependent)
Chi-square test Chi-square test or  2 test Notes: Page 217, and your own notebook paper 1.Goodness of Fit 2.Independence 3.Homogeneity.
Astrological Sign and Life Chances By Ted Goertzel Rutgers University, Camden NJ Spring, 2002.
Chi-square test Chi-square test or  2 test. crazy What if we are interested in seeing if my “crazy” dice are considered “fair”? What can I do?
Chapter 11 Chi Square Distribution and goodness of fit.
Chi-square test or c2 test
Chi-square test Chi-square test or  2 test Notes: Page Goodness of Fit 2.Independence 3.Homogeneity.
1-1 Copyright © 2015, 2010, 2007 Pearson Education, Inc. Chapter 25, Slide 1 Chapter 26 Comparing Counts.
Chi-square test Chi-square test or  2 test. crazy What if we are interested in seeing if my “crazy” dice are considered “fair”? What can I do?
Copyright © 2013, 2009, and 2007, Pearson Education, Inc. Chapter 11 Analyzing the Association Between Categorical Variables Section 11.2 Testing Categorical.
Chapter 12 The Analysis of Categorical Data and Goodness of Fit Tests.
Chi squared. A biologist randomly selects 20 fruit flies. All of them are placed in a tube with vinegar on one side and mustard on the other side. Do.
Chi-square test Chi-square test or  2 test. Chi-square test countsUsed to test the counts of categorical data ThreeThree types –Goodness of fit (univariate)
+ Section 11.1 Chi-Square Goodness-of-Fit Tests. + Introduction In the previous chapter, we discussed inference procedures for comparing the proportion.
Chi Square Test for Goodness of Fit Determining if our sample fits the way it should be.
The χ 2 (Chi-Squared) Test. Crazy Dice? You roll a die 60 times and get: 3 ones, 6 twos, 19 threes, 22 fours, 6 fives, and 4 sixes  Is this a fair die?
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.
AP Statistics Tuesday, 05 April 2016 OBJECTIVE TSW (1) identify the conditions to use a chi-square test; (2) examine the chi- square test for independence;
Inference for Tables Chi-Square Tests Chi-Square Test Basics Formula for test statistic: Conditions: Data is from a random sample/event. All individual.
The Chi-Square Distribution  Chi-square tests for ….. goodness of fit, and independence 1.
Section 10.2 Objectives Use a contingency table to find expected frequencies Use a chi-square distribution to test whether two variables are independent.
Analysis of Count Data Chapter 8
Inference for Tables: Chi-Squares procedures (2 more chapters to go!)
Check your understanding: p. 684
Chi-square test or χ2 test
Analysis of Count Data Goodness of fit
Unit 8 Section 7.5.
Chi-square test or c2 test
Chi-squared test or c2 test
Chi-square test or c2 test
Chi-square test or c2 test
Astrology.
Chapter 13 Test for Goodness of Fit
Chi-Squared Goodness of Fit
Chi-square test or c2 test
Chi-square test or c2 test
The Analysis of Categorical Data and Chi-Square Procedures
Lecture 18 Section 8.3 Objectives: Chi-squared distributions
AP Stats Check In Where we’ve been… Chapter 7…Chapter 8…
13.1 The Chi-square Goodness-of-Fit test
Flower Pattern of Solar System Barycentre over Age of Pisces, 53 – 2201 AD © Robert Tulip.
Chapter 10 Analyzing the Association Between Categorical Variables
Contingency Tables: Independence and Homogeneity
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.
Two-Sample Hypothesis Test of Proportions
Analyzing the Association Between Categorical Variables
The Analysis of Categorical Data and Goodness of Fit Tests
The Analysis of Categorical Data and Goodness of Fit Tests
Inference for Tables Chi-Square Tests Ch. 11.
How do you know if the variation in data is the result of random chance or environmental factors? O is the observed value E is the expected value.
The Analysis of Categorical Data and Goodness of Fit Tests
Chi-square test or c2 test
Inference for Distributions of Categorical Data
Presentation transcript:

Chi-square test or c2 test

Chi-square test Used to test the counts of categorical data Three types Goodness of fit (univariate) Independence (bivariate) Homogeneity (univariate with two samples)

c2 distribution – df=3 df=5 df=10

c2 distribution Different df have different curves Skewed right As df increases, curve shifts toward right & becomes more like a normal curve

c2 assumptions SRS – reasonably random sample All expected counts are at least 5. ***Be sure to list expected counts!!

c2 formula

c2 Goodness of fit test Uses univariate data Want to see how well the observed counts “fit” what we expect the counts to be Based on degrees of freedom df = number of categories - 1 Use c2cdf function on the calculator to find p-values

Hypotheses – written in words H0: the observed counts equal the expected counts Ha: the observed counts are not equal to the expected counts Be sure to write in context!

Does your zodiac sign determine how successful you will be Does your zodiac sign determine how successful you will be? Fortune magazine collected the zodiac signs of 256 heads of the largest 400 companies. Is there sufficient evidence to claim that successful people are more likely to be born under some signs than others? Aries 23 Libra 18 Leo 20 Taurus 20 Scorpio 21 Virgo 19 Gemini 18 Sagittarius 19 Aquarius 24 Cancer 23 Capricorn 22 Pisces 29 How many would you expect in each sign if there were no difference between them? I would expect CEOs to be equally born under all signs. So 256/12 = 21.333333 How many degrees of freedom? Since there are 12 signs – df = 12 – 1 = 11

Identify: Chi-Square GOF H0: The number of CEO’s born under each sign is the same. Ha: The number of CEO’s born under each sign is the different. Conditions: Have a random sample of CEO’s All expected counts are greater than 5. (I expect 21.33 CEO’s to be born in each sign.) Calculations: P-value = c2cdf(5.094, 10^99, 11) = .9265 a = .05 Conclusion: Since p-value > a, I fail to reject H0. There is not sufficient evidence to suggest that the CEOs are born under some signs than others.

The community hospital is studying its distribution of patients The community hospital is studying its distribution of patients. A random sample of 317 patients presently in the hospital gave the following information: Type of Patient Old Rate of Occurrence of These Type of Patients Present Number of This Type of Patient in Sample Maternity Ward 20% 65 Cardiac Ward 32% 100 Burn Ward 10% 29 Children’s ward 15% 48 All other wards 23% 75 Using a 5% level of significance, test the claim that the distribution of patients in these wards has not changed.

Identify: Chi-Square GOF H0: The distribution of these patients has not changed. Ha: The distribution of these patients has changed. Conditions: Have a random sample of patients All expected counts are greater than 5. Calculations: (from calculator) X 2 = 0.35 P-value = 0.9860 a = .05 Conclusion: Since p-value > a, I fail to reject H0. There is not sufficient evidence to suggest that the distribution of these patients has changed. Expected Counts Maternity 63.4 Cardiac 101.44 Burn 31.7 Children’s 47.55 All others 72.91