Chi-square = 2.85 Chi-square crit = 5.99 Achievement is unrelated to whether or not a child attended preschool.

Slides:



Advertisements
Similar presentations
Chapter 11 Other Chi-Squared Tests
Advertisements

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 Test.
10.1: Multinomial Experiments Multinomial experiment A probability experiment consisting of a fixed number of trials in which there are more than two possible.
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)
Chi-Square Test.
GOODNESS OF FIT Larson/Farber 4th ed 1 Section 10.1.
Practice Is there a significant (  =.01) relationship between opinions about the death penalty and opinions about the legalization of marijuana? 933.
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)
Science Practice 2: The student can use mathematics appropriately. Science Practice 5: The student can perform data analysis and evaluation of evidence.
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.
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.
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.
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)
Chi Square Test Dr. Asif Rehman.
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.
M & M Statistics: A Chi Square Analysis
Chapter 11: Inference for Distributions of Categorical Data
Seven Steps for Doing 2 1) State the hypothesis 2) Create data table
Chapter Fifteen McGraw-Hill/Irwin
Qualitative data – tests of association
Section 10-1 – Goodness of Fit
Chapter 11: Inference for Distributions of Categorical Data
Elementary Statistics: Picturing The World
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
Chi-Square Test.
Chi-Square - Goodness of Fit
Is a persons’ size related to if they were bullied
X2 = Based on the following results, is the die in
CHAPTER 11 Inference for Distributions of Categorical Data
Chi-Square Test.
Chapter 11: Inference for Distributions of Categorical Data
Assistant prof. Dr. Mayasah A. Sadiq FICMS-FM
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
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 11 Inference for Distributions of Categorical Data
Chapter 26 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
Chapter 11: Inference for Distributions of Categorical Data
CHAPTER 11 Inference for Distributions of Categorical Data
Practice As part of a program to reducing smoking, a national organization ran an advertising campaign to convince people to quit or reduce their smoking.
Chapter 11: Inference for Distributions of Categorical Data
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
CHAPTER 11 Inference for Distributions of Categorical Data
Warm Up A 2009 study investigated whether people can tell the difference between pate, processed meats and gourmet dog food. Researchers used a food processor.
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
Presentation transcript:

Chi-square = 2.85 Chi-square crit = 5.99 Achievement is unrelated to whether or not a child attended preschool.

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 H0: The data do fit the model i.e., the observed data does agree with M&M’s theory H1: 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 = 6 - 1 = 5  = .05 2 critical = 11.07

Step 3: Create the data table

Step 3: Create the data table Add the expected proportion of each category

Step 4: Calculate the Expected Frequencies

Step 4: Calculate the Expected Frequencies Expected Frequency = (proportion)(N)

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

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

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

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

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

2

2

2

2

2

2 15.52

Step 6: Decision Thus, if 2 > than 2critical Reject H0, and accept H1 If 2 < or = to 2critical Fail to reject H0

Step 6: Decision Thus, if 2 > than 2critical 2 = 15.52 2 crit = 11.07 Thus, if 2 > than 2critical Reject H0, and accept H1 If 2 < or = to 2critical Fail to reject H0

Step 7: Put answer into words H1: 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)?

Step 1: State the Hypothesis H0: The data do fit the model i.e., marital status is distributed the same way in the population of female executives as in the general population H1: The data do not fit the model i.e., marital status is not distributed the same way in the population of female executives as in the general population

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

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

Step 3: Create the data table

Step 4: Calculate the Expected Frequencies

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

2 19.42

Step 6: Decision Thus, if 2 > than 2critical Reject H0, and accept H1 If 2 < or = to 2critical Fail to reject H0

Step 6: Decision Thus, if 2 > than 2critical 2 = 19.42 2 crit = 9.49 Thus, if 2 > than 2critical Reject H0, and accept H1 If 2 < or = to 2critical Fail to reject H0

Step 7: Put answer into words H1: The data do not fit the model Marital status is not distributed the same way in the population of female executives as in the general population ( = .05)

Practice Is there a significant ( = .05) relationship between gender and a persons favorite Thanksgiving “side” dish? Each participant reported his or her most favorite dish.

Results Side Dish Gender

Step 1: State the Hypothesis H1: There is a relationship between gender and favorite side dish Gender and favorite side dish are independent of each other

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

Results Side Dish Gender

Step 5: Calculate 2

Step 6: Decision Thus, if 2 > than 2critical Reject H0, and accept H1 If 2 < or = to 2critical Fail to reject H0

Step 6: Decision Thus, if 2 > than 2critical 2 = 13.15 2 crit = 5.99 Thus, if 2 > than 2critical Reject H0, and accept H1 If 2 < or = to 2critical Fail to reject H0

Step 7: Put answer into words H1: There is a relationship between gender and favorite side dish A person’s favorite Thanksgiving side dish is significantly (.05) related to their gender