X2 = X2 Test of Independence P-Value =

Slides:



Advertisements
Similar presentations
Chapter 11 Other Chi-Squared Tests
Advertisements

 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;
By Josh Spiezle, Emy Chinen, Emily Lopez, Reid Beloff.
Copyright ©2011 Brooks/Cole, Cengage Learning More about Inference for Categorical Variables Chapter 15 1.
Copyright ©2006 Brooks/Cole, a division of Thomson Learning, Inc. More About Categorical Variables Chapter 15.
Chapter 26: Comparing Counts. To analyze categorical data, we construct two-way tables and examine the counts of percents of the explanatory and response.
WARM UP Pick the 4 papers from back of room and then check your answer to 12 (d-i)
Analysis of Count Data Chapter 26
Test of Independence. The chi squared test statistic and test procedure can also be used to investigate association between 2 categorical variables in.
Chapter 14: Chi-Square Procedures – Test for Goodness of Fit.
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.
Tara Levine, Bridget Sanelli, Madeline Stenken Block 3 AP Statistics.
Section 12.2: Tests for Homogeneity and Independence in a Two-Way Table.
+ Section 11.1 Chi-Square Goodness-of-Fit Tests. + Introduction In the previous chapter, we discussed inference procedures for comparing the proportion.
WARM – UP: The Math club and the Spanish club traditionally are composed of a similar distribution of class level. A random sample of this year’s math.
13.2 Inference for Two Way Tables.  Analyze Two Way Tables Using Chi-Squared Test for Homogeneity and Independence.
Goodness-of-Fit and Contingency Tables Chapter 11.
Chi Square Procedures Chapter 14. Chi-Square Goodness-of-Fit Tests Section 14.1.
 Check the Random, Large Sample Size and Independent conditions before performing a chi-square test  Use a chi-square test for homogeneity to determine.
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
CHAPTER 11 Inference for Distributions of Categorical Data
Ch 26 – Comparing Counts Day 1 - The Chi-Square Distribution
CHAPTER 26 Comparing Counts.
Chi-Square hypothesis testing
Presentation 12 Chi-Square test.
Chi-square test or c2 test
5.1 INTRODUCTORY CHI-SQUARE TEST
Chi-squared test or c2 test
Chi-Square X2.
X2 = M T W F P-Value = CONDITIONS
Chi-square test or c2 test
Chapter 5 Hypothesis Testing
The Analysis of Categorical Data and Chi-Square Procedures
Seven Steps for Doing 2 1) State the hypothesis 2) Create data table
AP Stats Check In Where we’ve been… Chapter 7…Chapter 8…
Does ones regional location have an affect on their Political affiliation? To begin to investigate this situation data from 177 random voters was analyzed.
Inference for Relationships
AP Stats Check In Where we’ve been… Chapter 7…Chapter 8…
Chi-Square - Goodness of Fit
Is a persons’ size related to if they were bullied
13.1 The Chi-square Goodness-of-Fit test
Goodness of Fit Test - Chi-Squared Distribution
Contingency Tables and Association
Chapter 11: Inference for Distributions of Categorical Data
Chapter 10 Analyzing the Association Between Categorical Variables
The Table Categorization
X2 = Based on the following results, is the die in
CHAPTER 11 Inference for Distributions of Categorical Data
Inference for Relationships
Chi-square test or c2 test
The Analysis of Categorical Data and Goodness of Fit Tests
Location and Party affiliation
Lesson 11 - R Chapter 11 Review:
WELCOME BACK! days From: Tuesday, January 3, 2017
The Analysis of Categorical Data and Goodness of Fit Tests
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 11 Inference for Distributions of Categorical Data
The Analysis of Categorical Data and Goodness of Fit Tests
Chapter 26 Comparing Counts.
The Analysis of Categorical Data and 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
Inference for Distributions of Categorical Data
Chi Square Test of Homogeneity
Presentation transcript:

X2 = 8.751 X2 Test of Independence P-Value = WARM-UP: To Examine whether the grades on the AP Statistics Fall Exam were independent of what class period you are in, a SRS of 70 students were selected. A B C F 1st Period 5 2 4 4rd Period 12 1 6th Period 16 8 3 7.5 3.4 3.0 2.1 10.8 4.9 4.3 14.6 6.6 5.8 4.0 X2 Test of Independence H0: Test Grades and Class Period are independent. Ha: The Grade you earn on the Test is associated to what class period you are in. P-Value = X2cdf (8.75, E99, 6) = 0.1881 X2 = 8.751 Since the P-Value is NOT less than α = 0.05 you will Fail to reject H0. There is no evidence to conclude that Test Grades and Class Period are related. SRS - Stated √ All Expected Counts are 5 or greater. X PWC

Homework check

The Chi-Square Test for Homogeneity A test comparing the distribution of counts for TWO or MORE Populations on the ONE categorical variable. -GOF tests only one Population on only ONE categorical variable. -Homogeneity represents Multiple GOF tests. df = (#Rows – 1) x (#Cols. – 1) H0: The distribution of the one variable is equivalent among the populations Ha: The distribution of the one variable is NOT equivalent among the populations

NOTE: The Chi-Square Tests for Homogeneity and for Independence are performed exactly the same way! P-Value = X2cdf (X2, E99, df)

X2 = 4.967 X2 Test of Homogeneity P-Value = EXAMPLE: Is the Distribution of colors in a package of PLAIN M&M’s statistically equivalent to the Distribution of colors in a package of PEANUT M&M’s? A random package of plain and peanut M&M’s are selected and analyzed. 3.39 4.06 2.71 6.10 0.68 1.61 1.94 1.29 2.90 0.32 Brown Blue Orange Green Red Yellow PLAIN 4 3 2 7 5 PEANUT 1 X2 Test of Homogeneity H0: The Distribution of colors in the Plain Packet of M&M’s is equivalent to that of the Peanut M&M’s. Ha: The Distribution of colors in the Plain Packet of M&M’s is NOT equivalent to that of the Peanut M&M’s. P-Value = X2cdf (4.967, E99, 5) = 0.4200 X2 = 4.967

X2 = 4.967 X2 Test of Homogeneity P-Value = EXAMPLE: Is the Distribution of colors in a package of PLAIN M&M’s statistically equivalent to the Distribution of colors in a package of PEANUT M&M’s? A random package of plain and peanut M&M’s are selected and analyzed. 3.39 4.06 2.71 6.10 0.68 1.61 1.94 1.29 2.90 0.32 Brown Blue Orange Green Red Yellow PLAIN 4 3 2 7 5 PEANUT 1 X2 Test of Homogeneity H0: The Distribution of colors in the Plain Packet of M&M’s is equivalent to that of the Peanut M&M’s. Ha: The Distribution of colors in the Plain Packet of M&M’s is NOT equivalent to that of the Peanut M&M’s. P-Value = X2cdf (4.967, E99, 3) = 0.4200 X2 = 4.967 CONDITIONS SRS - Stated √ All Expected Counts are 5 or greater. X Since the P-Value is NOT less than α = 0.05 fail to reject H0. No evidence that the Distributions are NOT equivalent. Although the results are uncertain.

Not sufficiently prepared Sufficiently prepared How well do YOU feel JJ Pearce High School is preparing you for the Real World (College and/or job Post High School)? Not at all prepared A Not sufficiently prepared B Sufficiently prepared C Very well prepared D Male Female Is the Distribution of School Readiness attitudes statistically equivalent among each gender?

Not sufficiently prepared Sufficiently prepared X2 Test of Homogeneity How well do YOU feel JJ Pearce High School is preparing you for the Real World (College and/or job Post High School)? Not at all prepared A Not sufficiently prepared B Sufficiently prepared C Very well prepared D Male Female H0: The Distribution of Readiness Attitudes are equivalent among each gender. Ha: The Distribution of Readiness Attitudes are NOT equivalent among each gender. X2 = ______ P-Value = ________

X2 = 8.75 X2 Test of HOMOGENEITY WARM-UP: Examine whether the distribution of grades is equivalent for each period of AP Statistics. A B C F 1st Period 5 2 4 4rd Period 12 1 6th Period 16 8 3 7.5 3.4 3.0 2.1 10.8 4.9 4.3 14.6 6.6 5.8 4.0 X2 Test of HOMOGENEITY H0: The distribution of A,B,C, and F’s in all three periods is spread equivalently. Ha: The distribution of A,B,C, and F’s in all three periods is NOT spread equivalently. X2 = 8.75 P-Value = X2cdf (8.75, E99, 6) = .1881 Since the P-Value is NOT less than α = 0.05 we fail to reject H0. There is no evidence to conclude that Test Grades are NOT distributed equally among the 3 classes. SRS - Stated X All Expected Counts are 1 or greater. √ No more than 20% of the Expected Counts are less than 5. X

Homework: Page 630: #15 omit h, 16, 17, & 20

Homework: Page 630: 17, 20, 21

An SRS of 120 voters from AR and an SRS of 115 voters from TX was taken to determine whether there was a significant difference in how people, as of that moment, would vote with regards to Clinton. 33.19 42.28 22.98 21.45 31.81 40.62 22.02 20.55 Definitely Would Mostly Likely Probably would Not Definitely Would Not Arkansas 35 45 28 12 Texas 30 38 17 X2 Test of Homogeneity H0: The Distribution of how people would vote today in the State of Arkansas is equal to that of Texas. Ha: The Distribution of how people would vote today in the State of Arkansas is NOT equal to that of Texas. P-Value = X2cdf (11.277, E99, 3) = 0.0103 X2 = 11.277 Since the P-Value is less than α = 0.05 the data IS significant . REJECT H0 . Support is different between AR and TX. SRS – stated All Expected Counts are 5 or greater.

#18 Medical researchers followed an SRS of 6272 Swedish men for 30 years to see if there was an association between the amount of fish in their diet and Prostate Cancer. Is there any evidence of such an association? Fish Consumption Total Subjects Prostate Cancer Never 124 14 Small part of diet 2621 201 Moderate part 2978 209 Large part 549 42 9.21 114.79 194.74 2426.26 221.26 2756.74 40.79 508.21 NO Prostate Cancer 14 110 201 2420 209 2769 42 507 H0: There is NO relationship between fish consumption and the development of Prostate Cancer. Ha: There is relationship between fish consumption and the development of Prostate Cancer. X2 Test of Independence P-Value = X2cdf (3.677, E99, 3) = 0.2985 X2 = 3.677

WARM – UP Medical researchers followed 6272 Swedish men for 30 years to see if there was an association between the amount of fish in their diet and Prostate Cancer. Is there any evidence of such an association? Fish Consumption Total Subjects Prostate Cancer Never 124 14 Small part of diet 2621 201 Moderate part 2978 209 Large part 549 42 9.21 114.79 194.74 2426.26 221.26 2756.74 40.79 508.21 NO Prostate Cancer 14 110 201 2420 209 2769 42 507 H0: There is NO relationship between fish consumption and the development of Prostate Cancer. Ha: There is relationship between fish consumption and the development of Prostate Cancer. X2 Test of Independence P-Value = X2cdf (3.677, E99, 3) = 0.2985 X2 = 3.677 CONDITIONS SRS - Stated √ All Expected Counts are 1 or greater. √ No more than 20% of the Expected Counts are less than 5. √ Since the P-Value is NOT less than α = 0.05 there is NO evidence to reject H0. There is NO relationship between fish consumption and Prostate Cancer.

WARM – UP Does ones regional location have an affect on their Political affiliation? To begin to investigate this situation data from 177 voters was analyzed. Political Affiliation Democrat Republican West 39 27 Northeast 35 15 Southeast 17 44 33.93 0.591 32.07 Location 25.71 0.700 24.29 a.) Find the Proportion of Democrats in each region. b.) Make a Bar Chart for the Prop. c.) Find the Expected Values for each cell. 31.36 0.279 29.64 0 50 100 % of Dem. N NW SE Regional Location