13.2 Inference for Two Way Tables.  Analyze Two Way Tables Using Chi-Squared Test for Homogeneity and Independence.

Slides:



Advertisements
Similar presentations
Chapter 11 Other Chi-Squared Tests
Advertisements

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;
1 Chi-Squared Distributions Inference for Categorical Data and Multiple Groups.
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)
Inference for Categorical Data Chi-SquareCh.11. Facts about Chi-Square ► Takes only positive values and the graph is skewed to the right ► Test Statistic.
Chapter 26: Comparing Counts. To analyze categorical data, we construct two-way tables and examine the counts of percents of the explanatory and response.
Presentation 12 Chi-Square test.
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.
Chi-Square Distributions
1 Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. Analysis of Categorical Data 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.
HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Section 10.7.
Chapter 11 Chi-Square Procedures 11.3 Chi-Square Test for Independence; Homogeneity of Proportions.
Chi-square test or c2 test
Chi-square test Chi-square test or  2 test Notes: Page Goodness of Fit 2.Independence 3.Homogeneity.
Warm-up Researchers want to cross two yellow- green tobacco plants with genetic makeup (Gg). See the Punnett square below. When the researchers perform.
13.1 Test for Goodness of Fit.  Perform and analyze a chi-squared test for goodness of fit.
Chapter 26 Chi-Square Testing
Chi-Square Procedures Chi-Square Test for Goodness of Fit, Independence of Variables, and Homogeneity of Proportions.
Other Chi-Square Tests
13.1 Test for Goodness of Fit.  Perform and analyze a chi-squared test for goodness of fit.
United Stats Of AMERICA. Unit 7 chapters Jordo, Rob III, Kins and Toph.
Chi-Square Distributions. Recap Analyze data and test hypothesis Type of test depends on: Data available Question we need to answer What do we use to.
Chapter 11 The Chi-Square Test of Association/Independence Target Goal: I can perform a chi-square test for association/independence to determine whether.
FPP 28 Chi-square test. More types of inference for nominal variables Nominal data is categorical with more than two categories Compare observed frequencies.
13.2 Chi-Square Test for Homogeneity & Independence AP Statistics.
Chapter 14: Chi-Square Procedures – Test for Goodness of Fit.
Chapter 11 Chi- Square Test for Homogeneity Target Goal: I can use a chi-square test to compare 3 or more proportions. I can use a chi-square test for.
Test of Homogeneity Lecture 45 Section 14.4 Wed, Apr 19, 2006.
Warm up On slide.
Chi-Square Test James A. Pershing, Ph.D. Indiana University.
Chapter 13 Inference for Tables: Chi-Square Procedures AP Statistics 13 – Chi-Square Tests.
Section 10.2 Independence. Section 10.2 Objectives Use a chi-square distribution to test whether two variables are independent Use a contingency table.
Inference for Distributions of Categorical Variables (C26 BVD)
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.
AGENDA:. AP STAT Ch. 14.: X 2 Tests Goodness of Fit Homogeniety Independence EQ: What are expected values and how are they used to calculate Chi-Square?
11.2 Tests Using Contingency Tables When data can be tabulated in table form in terms of frequencies, several types of hypotheses can be tested by using.
Copyright © 2013, 2009, and 2007, Pearson Education, Inc. Chapter 11 Analyzing the Association Between Categorical Variables Section 11.2 Testing Categorical.
ContentFurther guidance  Hypothesis testing involves making a conjecture (assumption) about some facet of our world, collecting data from a sample,
Test of Homogeneity Lecture 45 Section 14.4 Tue, Apr 12, 2005.
DICE!  You are going to make your own and then we are going to test them (later) to see if they are fair!
Lesson 12 - R Chapter 12 Review. Objectives Summarize the chapter Define the vocabulary used Complete all objectives Successfully answer any of the review.
Section 13.2 Chi-Squared Test of Independence/Association.
Statistics 300: Elementary Statistics Section 11-3.
Chi-Squared Test of Homogeneity Are different populations the same across some characteristic?
Chi-Square Chapter 14. Chi Square Introduction A population can be divided according to gender, age group, type of personality, marital status, religion,
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.
13.2 Inference for Two Way Tables.  Analyze Two Way Tables Using Chi-Squared Test for Homogeneity and Independence.
The Chi-Square Distribution  Chi-square tests for ….. goodness of fit, and independence 1.
Test of Independence Tests the claim that the two variables related. For example: each sample (incident) was classified by the type of crime and the victim.
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.
Chi-Square hypothesis testing
Chi-square test or c2 test
Chapter 12 Tests with Qualitative Data
Chapter 10 Analyzing the Association Between Categorical Variables
Inference for Relationships
Chi-square test or c2 test
Analyzing the Association Between Categorical Variables
Chi-Square Hypothesis Testing PART 3:
Chapter 26 Comparing Counts.
Inference for Two Way Tables
Chi Square Test of Homogeneity
Lecture 46 Section 14.5 Wed, Apr 13, 2005
Presentation transcript:

13.2 Inference for Two Way Tables

 Analyze Two Way Tables Using Chi-Squared Test for Homogeneity and Independence

Goodness of Fit HomogeneityIndependence 1 variable -distribution 2 variables (2 way table) -distribution -proportions 2 variables (2 way table) -association -dependent upon -relationship -influences

 Is there evidence the wheel is unbalanced?  (one variable- prize you get) PrizeTeddy Bear GoldfishT-shirtPoster # of winners

 Is there evidence that proportion of kids who attend regular MGS is different for each grade level. Notice it is a 2-way table with two categorical variables: Grade level and whether you attend MGS FreshmenSophomoreJuniorSenior Attend MGS Does Not Attend MGS

 This is the same thing as a test of homogeneity except the wording of the question will use key words such as association or relationship. We complete the same steps in our calculator, we just use a different name for our test and word our Ho and Ha different.  Is there evidence of a relationship between grade level and kids who attend MGS regularly?

 Expected Counts=  Degrees of freedom (r-1)(c-1) Chi-Squared Test Statistic

 Find the expected counts: First you need to find the row and column totals above. I did the first example-you fill in the rest! ExpectedFreshmenSophomoreJuniorSenior Attend MGS(286*142)/605 =67.13 Does Not Attend MGS ObservedFreshmenSophomoreJuniorSeniorTotal Attend MGS Does Not Attend MGS Total

 Expected counts complete! Now let’s try the quick way. Follow along!  Go to your calculator.  Matrix-Edit-enter [A]  Matrix[A] r x c (so change it to 2 x 4). Then input your observed counts.  Then hit: stat-tests-x² test.  Just hit calculate. It gives you your calculations but we can worry about those later!!  Go back to matrix and hit enter on matrix [B].  When you hit enter again scroll through the matrix and notice your calculator did all the expected counts and they should match what you just did by hand! ExpectedFreshmenSophomoreJuniorSenior Attend MGS(286*142)/605 = Does Not Attend MGS X²-test Observed:[A] Expected: [B] Calculate

 df =(r-1)(c-1) =(2-1)(4-1) =1*3=3 ObservedFreshmenSophomoreJuniorSeniorTotal Attend MGS Does Not Attend MGS Total

 H₀:the proportion of ________ is the SAME as __________  Ha: the proportion of ________ is DIFFERENT than __________  (these are just template sentences, remember whatever the question is asking is your Ha)

 Example 1: Do the boys’ preferences for the following TV programs differ significantly from the girls’ preferences? Use a 5% significance level. HouseGrey’s Anatomy American Idol CSI Boys Girls

 H₀:the boys preference for TV programs is the SAME as the girls  Ha: the boys preference for TV programs is DIFFERENT than the girls  Assumptions: -random sample -all expected counts are ≥ 1 -no more than 20% of the expected counts <5 HouseGrey’s Anatomy American Idol CSI Boys Girls

 Chi-Squared Test (Homogeneity) w/ α=0.05  P(x²>41.08)=  df=3  Since p< α, it is statistically significant. Therefore we reject H₀. There is enough evidence to say the preference of TV programs for boys is different than girls.

 Example 2: The following data is an SRS of 650 patients at a local hospital. Does the effect of aspirin significantly differ from a placebo for these medical conditions? AspirinPlacebo Fatal Heart Attacks 2060 Non-Fatal Heart Attacks Strokes75150

 H₀:the effects of aspirin is the same as the placebo  Ha: the effects of aspirin is different than the placebo  Assumptions: -random sample -all expected counts are ≥ 1 -no more than 20% of the expected counts <5 AspirinPlacebo Fatal Heart Attacks Non-Fatal Heart Attacks Strokes

 Chi-Squared Test (Homogeneity) w/ α=0.05  P(x²>3.70)=  df=2  Since p∡ α, it is not statistically significant. Therefore we do not reject H₀. There is not enough evidence to say the effect of aspirin differs from the placebo.

 H₀: There is no relationship (association) between ________ and ________.  Ha: There is a relationship (association) between ________ and ________.

 Example 3: An SRS of 1000 was taken  Is there a relationship between gender and political parties? RepublicanDemocratIndependent Male Female

 H₀: There is no relationship between gender and political party  Ha: There is a relationship between gender and political party  Assumptions: -random sample -all expected counts are ≥ 1 -no more than 20% of the expected counts <5 RepublicanDemocratIndependent Male Female270 60

 Chi-Squared Test (Independence) w/ α=0.05  P(x²>16.2)=  df=2  Since p< α, it is statistically significant. Therefore we reject H₀. There is enough evidence to say there is a relationship between gender and political party

 Example 4: An SRS of 592 people were taken comparing their hair and eye color. Is there an association between hair color and eye color? BlackBrownRedBlonde Brown Green Blue Hazel

 H₀: There is no association between hair color and eye color  Ha: There is an association between hair color and eye color  Assumptions: -random sample -all expected counts are ≥ 1 -no more than 20% of the expected counts <5 BlackBrownRedBlonde Brown Green Blue Hazel

 Chi-Squared Test (Independence) w/ α=0.05  P(x²>134.98)≈0  df=9  Since p< α, it is statistically significant. Therefore we reject H₀. There is enough evidence to say there is an association between hair color and eye color