Seven Steps for Doing  2 1) State the hypothesis 2) Create data table 3) Find  2 critical 4) Calculate the expected frequencies 5) Calculate  2 6)

Slides:



Advertisements
Similar presentations
Chapter 11 Other Chi-Squared Tests
Advertisements

15- 1 Chapter Fifteen McGraw-Hill/Irwin © 2005 The McGraw-Hill Companies, Inc., All Rights Reserved.
CHAPTER 23: Two Categorical Variables: The Chi-Square Test
Chapter 11 Inference for Distributions of Categorical Data
Chapter 10 Chi-Square Tests and the F- Distribution 1 Larson/Farber 4th ed.
Copyright ©2011 Brooks/Cole, Cengage Learning More about Inference for Categorical Variables Chapter 15 1.
CHAPTER 11 Inference for Distributions of Categorical Data
Introduction to Chi-Square Procedures March 11, 2010.
Chi-square Test of Independence
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 Test.
Chi-Square Test A fundamental problem in genetics is determining whether the experimentally determined data fits the results expected from theory (i.e.
1 Chapter 20 Two Categorical Variables: The Chi-Square Test.
Analysis of Count Data Chapter 26
HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Section 10.7.
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.
10.1: Multinomial Experiments Multinomial experiment A probability experiment consisting of a fixed number of trials in which there are more than two possible.
Chapter 11 Inference for Tables: Chi-Square Procedures 11.1 Target Goal:I can compute expected counts, conditional distributions, and contributions to.
Seven Steps for Doing  2 1) State the hypothesis 2) Create data table 3) Find  2 critical 4) Calculate the expected frequencies 5) Calculate  2 6)
The Practice of Statistics, 5th Edition Starnes, Tabor, Yates, Moore Bedford Freeman Worth Publishers CHAPTER 11 Inference for Distributions of Categorical.
Chi-Square Test.
GOODNESS OF FIT Larson/Farber 4th ed 1 Section 10.1.
CHI SQUARE TESTS.
Chi-Square Test ( 2 ) Chi-Square Test (  2 ) Used when dependent variable is counts within categories Used when DV has two or more mutually exclusive.
Warm up On slide.
Chapter Outline Goodness of Fit test Test of Independence.
Remember Playing perfect black jack – the probability of winning a hand is.498 What is the probability that you will win 8 of the next 10 games of blackjack?
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.
Practice Is there a significant (  =.01) relationship between opinions about the death penalty and opinions about the legalization of marijuana? 933.
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?
12/23/2015Slide 1 The chi-square test of independence is one of the most frequently used hypothesis tests in the social sciences because it can be used.
Section 12.2: Tests for Homogeneity and Independence in a Two-Way Table.
By: Avni Choksi and Brittany Nguyen
Lesson 12 - R Chapter 12 Review. Objectives Summarize the chapter Define the vocabulary used Complete all objectives Successfully answer any of the review.
Bullied as a child? Are you tall or short? 6’ 4” 5’ 10” 4’ 2’ 4”
+ Section 11.1 Chi-Square Goodness-of-Fit Tests. + Introduction In the previous chapter, we discussed inference procedures for comparing the proportion.
Statistics 300: Elementary Statistics Section 11-3.
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.
Chi-Square Chapter 14. Chi Square Introduction A population can be divided according to gender, age group, type of personality, marital status, religion,
Chi-square Test of Independence. The chi-square test of independence is probably the most frequently used hypothesis test in the social sciences. In this.
Practice You recently finished giving 5 Villanova students the MMPI paranoia measure. Determine if Villanova students’ paranoia score is significantly.
Practice Is there a significant (  =.01) relationship between opinions about the death penalty and opinions about the legalization of marijuana? 933.
The Chi-Square Distribution  Chi-square tests for ….. goodness of fit, and independence 1.
Goodness-of-Fit and Contingency Tables Chapter 11.
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.
Seven Steps for Doing  2 1) State the hypothesis 2) Create data table 3) Find  2 critical 4) Calculate the expected frequencies 5) Calculate  2 6)
Check your understanding: p. 684
Chi-Square Test.
Test of independence: Contingency Table
Seven Steps for Doing 2 1) State the hypothesis 2) Create data table
Extra Brownie Points! Lottery To Win: choose the 5 winnings numbers from 1 to 49 AND Choose the "Powerball" number from 1 to 42 What is the probability.
Chapter Fifteen McGraw-Hill/Irwin
Qualitative data – tests of association
Section 10-1 – Goodness of Fit
Chi-Square Test.
Seven Steps for Doing 2 1) State the hypothesis 2) Create data table
Is a persons’ size related to if they were bullied
Inferential Statistics and Probability a Holistic Approach
Chi-Square Test.
Chi-Square - Goodness of Fit
Is a persons’ size related to if they were bullied
Chi-Square Test.
Assistant prof. Dr. Mayasah A. Sadiq FICMS-FM
Chi-square = 2.85 Chi-square crit = 5.99 Achievement is unrelated to whether or not a child attended preschool.
Chi-squared tests Goodness of fit: Does the actual frequency distribution of some data agree with an assumption? Test of Independence: Are two characteristics.
Chapter 26 Comparing Counts.
Inference for Distributions of Categorical Data
Presentation transcript:

Seven Steps for Doing  2 1) State the hypothesis 2) Create data table 3) Find  2 critical 4) Calculate the expected frequencies 5) Calculate  2 6) Decision 7) Put answer into words

Example With whom do you find it easiest to make friends? Subjects were either male and female. Possible responses were: “opposite sex”, “same sex”, or “no difference” Is there a significant (.05) relationship between the gender of the subject and their response?

Results

Step 1: State the Hypothesis H 1: There is a relationship between gender and with whom a person finds it easiest to make friends H 0 :Gender and with whom a person finds it easiest to make friends are independent of each other

Step 2: Create the Data Table Add “total” columns and rows

Step 3: Find  2 critical df = (R - 1)(C - 1) df = (2 - 1)(3 - 1) = 2  =.05  2 critical = 5.99

Step 4: Calculate the Expected Frequencies

Step 5: Calculate  2 O = observed frequency E = expected frequency

22

22

22

22

22 8.5

Step 6: Decision Thus, if  2 > than  2 critical –Reject H 0, and accept H 1 If  2 < or = to  2 critical –Fail to reject H 0

Step 6: Decision Thus, if  2 > than  2 criticalThus, if  2 > than  2 critical –Reject H 0, and accept H 1 If  2 < or = to  2 critical –Fail to reject H 0  2 = 8.5  2 crit = 5.99

Step 7: Put answer into words H 1: There is a relationship between gender and with whom a person finds it easiest to make friends A persons gender is significantly (.05) related with whom it is easiest to make friends.

Practice Is there a significant (  =.01) relationship between opinions about the death penalty and opinions about the legalization of marijuana? 933 Subjects responded yes or no to: “Do you favor the death penalty for persons convicted of murder?” “Do you think the use of marijuana should be made legal?”

Results Marijuana ? Death Penalty ?

Step 1: State the Hypothesis H 1: There is a relationship between opinions about the death penalty and the legalization of marijuana H 0 :Opinions about the death penalty and the legalization of marijuana are independent of each other

Step 2: Create the Data Table Marijuana ? Death Penalty ?

Step 3: Find  2 critical df = (R - 1)(C - 1) df = (2 - 1)(2 - 1) = 1  =.01  2 critical = 6.64

Step 4: Calculate the Expected Frequencies Marijuana ? Death Penalty ?

Step 5: Calculate  2

Step 6: Decision Thus, if  2 > than  2 critical –Reject H 0, and accept H 1 If  2 < or = to  2 critical –Fail to reject H 0

Step 6: Decision Thus, if  2 > than  2 critical –Reject H 0, and accept H 1 If  2 < or = to  2 criticalIf  2 < or = to  2 critical –Fail to reject H 0  2 = 3.91  2 crit = 6.64

Step 7: Put answer into words H 0 :Opinions about the death penalty and the legalization of marijuana are independent of each other A persons opinion about the death penalty is not significantly (.01) related with their opinion about the legalization of marijuana

 2 as a test for goodness of fit So far.... The expected frequencies that we have calculated come from the data They test rather or not two variables are related

 2 as a test for goodness of fit But what if: You have a theory or hypothesis that the frequencies should occur in a particular manner?

Example M&Ms claim that of their candies: 30% are brown 20% are red 20% are yellow 10% are blue 10% are orange 10% are green

Example Based on genetic theory you hypothesize that in the population: 45% have brown eyes 35% have blue eyes 20% have another eye color

To solve you use the same basic steps as before (slightly different order) 1) State the hypothesis 2) Find  2 critical 3) Create data table 4) Calculate the expected frequencies 5) Calculate  2 6) Decision 7) Put answer into words

Example M&Ms claim that of their candies: 30% are brown 20% are red 20% are yellow 10% are blue 10% are orange 10% are green

Example Four 1-pound bags of plain M&Ms are purchased Each M&Ms is counted and categorized according to its color Question: Is M&Ms “theory” about the colors of M&Ms correct?

Step 1: State the Hypothesis H 0 : The data do fit the model –i.e., the observed data does agree with M&M’s theory H 1: The data do not fit the model –i.e., the observed data does not agree with M&M’s theory –NOTE: These are backwards from what you have done before

Step 2: Find  2 critical df = number of categories - 1

Step 2: Find  2 critical df = number of categories - 1 df = = 5  =.05  2 critical = 11.07

Step 3: Create the data table

Add the expected proportion of each category

Step 4: Calculate the Expected Frequencies

Expected Frequency = (proportion)(N)

Step 4: Calculate the Expected Frequencies Expected Frequency = (.30)(2081) =

Step 4: Calculate the Expected Frequencies Expected Frequency = (.20)(2081) =

Step 4: Calculate the Expected Frequencies Expected Frequency = (.20)(2081) =

Step 4: Calculate the Expected Frequencies Expected Frequency = (.10)(2081) =

Step 5: Calculate  2 O = observed frequency E = expected frequency

22

22

22

22

22

2

Step 6: Decision Thus, if  2 > than  2 critical –Reject H 0, and accept H 1 If  2 < or = to  2 critical –Fail to reject H 0

Step 6: Decision Thus, if  2 > than  2 criticalThus, if  2 > than  2 critical –Reject H 0, and accept H 1 If  2 < or = to  2 critical –Fail to reject H 0  2 =  2 crit = 11.07

Step 7: Put answer into words H 1: The data do not fit the model M&M’s color “theory” did not significantly (.05) fit the data

Practice Among women in the general population under the age of 40: 60% are married 23% are single 4% are separated 12% are divorced 1% are widowed

Practice You sample 200 female executives under the age of 40 Question: Is marital status distributed the same way in the population of female executives as in the general population (  =.05)?