Practice Is there a significant (  =.01) relationship between opinions about the death penalty and opinions about the legalization of marijuana? 933.

Slides:



Advertisements
Similar presentations
Multinomial Experiments Goodness of Fit Tests We have just seen an example of comparing two proportions. For that analysis, we used the normal distribution.
Advertisements

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.
CHAPTER 11 Inference for Distributions of Categorical Data
Making Inferences for Associations Between Categorical Variables: Chi Square Chapter 12 Reading Assignment pp ; 485.
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 Goodness of Fit Test
Chi-Square Test A fundamental problem in genetics is determining whether the experimentally determined data fits the results expected from theory (i.e.
Copyright © Cengage Learning. All rights reserved. 11 Applications of Chi-Square.
Hypothesis Testing:.
Analysis of Count Data Chapter 26
Chapter 26: Comparing Counts AP Statistics. Comparing Counts In this chapter, we will be performing hypothesis tests on categorical data In previous chapters,
Copyright © 2013 Pearson Education, Inc. All rights reserved Chapter 10 Inferring Population Means.
13.1 Goodness of Fit Test AP Statistics. Chi-Square Distributions The chi-square distributions are a family of distributions that take on only positive.
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.
Chapter 11: Inference for Distributions of Categorical Data Section 11.1 Chi-Square Goodness-of-Fit Tests.
Chi-Square Test.
Chapter 10 Chi-Square Tests and the F-Distribution
GOODNESS OF FIT Larson/Farber 4th ed 1 Section 10.1.
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?
Dan Piett STAT West Virginia University Lecture 12.
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)
Copyright © 2013, 2009, and 2007, Pearson Education, Inc. Chapter 11 Analyzing the Association Between Categorical Variables Section 11.2 Testing Categorical.
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.
CHAPTER 11: INFERENCE FOR DISTRIBUTIONS OF CATEGORICAL DATA 11.1 CHI-SQUARE TESTS FOR GOODNESS OF FIT OUTCOME: I WILL STATE APPROPRIATE HYPOTHESES AND.
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.
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)
Check your understanding: p. 684
CHAPTER 11 Inference for Distributions of Categorical Data
CHAPTER 11 Inference for Distributions of Categorical Data
11.1 Chi-Square Tests for Goodness of Fit
Ch 26 – Comparing Counts Day 1 - The Chi-Square Distribution
Seven Steps for Doing 2 1) State the hypothesis 2) Create data table
INTRODUCTORY STATISTICS FOR CRIMINAL JUSTICE
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.
Section 10-1 – Goodness of Fit
Chi-Square Goodness of Fit
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
Practice I think it is colder in Philadelphia than in Anaheim ( = .10). To test this, I got temperatures from these two places on the Internet.
Practice Which is more likely: at least one ace with 4 throws of a fair die or at least one double ace in 24 throws of two fair dice? This is known as.
CHAPTER 11 Inference for Distributions of Categorical Data
Chi-Square Test.
Analyzing the Association Between Categorical Variables
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
Practice Which is more likely: at least one ace with 4 throws of a fair die or at least one double ace in 24 throws of two fair dice? This is known as.
CHAPTER 11 Inference for Distributions of Categorical Data
Inference for Distributions of Categorical Data
Presentation transcript:

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 it 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 (p >.01) related with their opinion about the legalization of marijuana

Effect Size Chi-Square tests are null hypothesis tests Tells you nothing about the “size” of the effect Phi (Ø) –Can be interpreted as a correlation coefficient.

Phi Use with 2x2 tables N = sample size

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 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

Phi Use with 2x2 tables

Bullied Example Ever Bullied

22

Phi Use with 2x2 tables

Practice –Page 170 #6.10 –How strong is the relationship?

Results English ADD X 2 = 5.38 X 2 crit = 3.83

Phi Use with 2x2 tables

Practice In the 1930’s 650 boys participated in the Cambridge-Somerville Youth Study. Half of the participants were randomly assigned to a delinquency-prevention pogrom and the other half to a control group. At the end of the study, police records were examined for evidence of delinquency. In the prevention program 114 boys had a police record and in the control group 101 boys had a police record. Analyze the data and write a conclusion.

Chi Square = 1.17 Chi Square observed = 3.84 Phi =.04 –Note the results go in the opposite direction that was expected!

 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 it 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)?

Step 1: State the Hypothesis H 0 : 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 H 1: 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 = = 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

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 = 9.49

Step 7: Put it answer into words H 1: 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 In the past you have had a 20% success rate at getting someone to accept a date from you. What is the probability that at least 2 of the next 10 people you ask out will accept?

Practice p zero will accept =.11 p one will accept =.27 p zero OR one will accept =.38 p two or more will accept = =.62

Practice IQ –Mean = 100 –SD = 15 What is the probability that the stranger you just bumped into on the street has an IQ between 95 and 110?

Step 1: Sketch out question -3  -2  -1   1  2  3  ?

Step 2: Calculate Z scores for both values Z = (X -  ) /  Z = ( ) / 15 = -.33 Z = ( ) / 15 =.67

Step 3: Look up Z scores -3  -2  -1   1  2  3 

Step 4: Add together the two values -3  -2  -1   1  2  3 

Practice A professor would like to determine if there has been a change in grading practices over the years. In the past, the overall grade distribution was 14% As, 26% Bs, 31% Cs, 19% Ds, and 10% Fs. A sample of 200 students this years had the following grades

Practice A = 32 B = 61 C = 64 D = 31 F = 12 Do the data indicate a significant change in the grade distribution? Test at the.05 level.

Step 1: State the Hypothesis H 0 : The data do fit the model –i.e., the grades are distributed the same H 1: The data do not fit the model –i.e., the grades are not distributed the same

Practice A = 3228 B = 6152 C = 6462 D = 3138 F = 1220 Chi square = 6.68 Critical Chi square (4) = 9.49

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 = 6.68  2 crit = 9.49

Step 7 H 0 : The data do fit the model –i.e., the grades are distributed the same There is no evidence that the grades have changed

Practice An early hypothesis of schizophrenia was that it has a simple genetic cause. In accordance with the theory 25% of the offspring of a selected group of parents would be expected to be diagnosed as schizophrenic. Suppose that of 140 offspring, 19.3% were schizophrenic. Test this theory.

Goodness of fit chi-square Make sure you compute the Chi square with the frequencies. Chi square = Observed = 3.84 These data are consistent with the theory!

Practice In 1693, Samuel Pepys asked Isaac Newton whether it is more likely to get at least one ace in 6 rolls of a die or at least two aces in 12 rolls of a die. This problems is known a Pepys' problem.

Binomial Distribution Aces p p =.67

Binomial Distribution Aces p p =.62

Practice In 1693, Samuel Pepys asked Isaac Newton whether it is more likely to get at least one ace in 6 rolls of a die or at least two aces in 12 rolls of a die. This problems is known a Pepys' problem. It is more likely to get at least one ace in 6 rolls of a die!

Practice Which is more likely: at least one ace with 4 throws of a fair die or at least one double ace in 24 throws of two fair dice? This is known as DeMere's problem, named after Chevalier De Mere. Blaise Pascal later solved this problem.

Binomial Distribution p =.482 of zero aces =.518 at least one ace will occur

Binomial Distribution p =.508 of zero double aces =.492 at least one double ace will occur

Practice Which is more likely: at least one ace with 4 throws of a fair die or at least one double ace in 24 throws of two fair dice? This is known as DeMere's problem, named after Chevalier De Mere. More likely at least one ace with 4 throws will occur