10.1: Two-Way Tables and the Chi-Square Test Statistics Chap 10:Inference for Tables and Means.

Slides:



Advertisements
Similar presentations
The Analysis of Categorical Data and Goodness of Fit Tests
Advertisements

CHAPTER 23: Two Categorical Variables: The Chi-Square Test
CHAPTER 23: Two Categorical Variables The Chi-Square Test ESSENTIAL STATISTICS Second Edition David S. Moore, William I. Notz, and Michael A. Fligner Lecture.
Chapter 11 Inference for Distributions of Categorical Data
Chapter 13: Inference for Tables
Chapter 13: Inference for Distributions of Categorical Data
CHAPTER 11 Inference for Distributions of Categorical Data
Chapter 26: Comparing Counts. To analyze categorical data, we construct two-way tables and examine the counts of percents of the explanatory and response.
+ The Practice of Statistics, 4 th edition – For AP* STARNES, YATES, MOORE Chapter 11: Inference for Distributions of Categorical Data Section 11.2 Inference.
Example 5: Biologists wish to cross pairs of tobacco plants having genetic makeup Gg, indicating that each plant has one dominant gene (G) and one recessive.
Analysis of Count Data Chapter 26
Lecture Presentation Slides SEVENTH EDITION STATISTICS Moore / McCabe / Craig Introduction to the Practice of Chapter 9 Analysis of Two-Way Tables.
Goodness-of-Fit Tests and Categorical Data Analysis
A random sample of 300 doctoral degree
Analysis of Count Data Chapter 14  Goodness of fit  Formulas and models for two-way tables - tests for independence - tests of homogeneity.
AP STATISTICS Section 4.2 Relationships between Categorical Variables.
1 Desipramine is an antidepressant affecting the brain chemicals that may become unbalanced and cause depression. It was tested for recovery from cocaine.
Analysis of Count Data Chapter 26  Goodness of fit  Formulas and models for two-way tables - tests for independence - tests of homogeneity.
11.2 Inference for Relationships. Section 11.2 Inference for Relationships COMPUTE expected counts, conditional distributions, and contributions to the.
Lecture 9 Chapter 22. Tests for two-way tables. Objectives The chi-square test for two-way tables (Award: NHST Test for Independence)  Two-way tables.
Chapter 11 Inference for Tables: Chi-Square Procedures 11.1 Target Goal:I can compute expected counts, conditional distributions, and contributions to.
Chapter 12: The Analysis of Categorical Data and Goodness- of-Fit Test.
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.
Analysis of Two-Way tables Ch 9
+ Chi Square Test Homogeneity or Independence( Association)
Chi-Square Analysis Test of Homogeneity. Sometimes we compare samples of different populations for certain characteristics. This data is often presented.
Analysis of two-way tables - Inference for two-way tables IPS chapter 9.1 © 2006 W.H. Freeman and Company.
Analysis of two-way tables - Inference for two-way tables IPS chapter 9.2 © 2006 W.H. Freeman and Company.
Data Analysis for Two-Way Tables. The Basics Two-way table of counts Organizes data about 2 categorical variables Row variables run across the table Column.
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.
+ The Practice of Statistics, 4 th edition – For AP* STARNES, YATES, MOORE Chapter 11: Inference for Distributions of Categorical Data Section 11.2 Inference.
Stat1510: Statistical Thinking and Concepts Two Way Tables.
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.
Lecture 9 Chapter 22. Tests for two-way tables. Objectives (PSLS Chapter 22) The chi-square test for two-way tables (Award: NHST Test for Independence)[B.
AP STATISTICS LESSON (DAY 1) INFERENCE FOR TWO – WAY TABLES.
+ Chapter 11 Inference for Distributions of Categorical Data 11.1Chi-Square Goodness-of-Fit Tests 11.2Inference for Relationships.
Section 12.2: Tests for Homogeneity and Independence in a Two-Way Table.
Lecture PowerPoint Slides Basic Practice of Statistics 7 th Edition.
CHAPTER 6: Two-Way Tables*
+ Section 11.1 Chi-Square Goodness-of-Fit Tests. + Introduction In the previous chapter, we discussed inference procedures for comparing the proportion.
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.
Inference of 2-way Tables. Review… New Stuff: 2-Way Tables  Looking for Significant difference across 2 variables instead of just 1 (hence, 2-way) 
11/12 9. Inference for Two-Way Tables. Cocaine addiction Cocaine produces short-term feelings of physical and mental well being. To maintain the effect,
+ The Practice of Statistics, 4 th edition – For AP* STARNES, YATES, MOORE Chapter 11: Inference for Distributions of Categorical Data Section 11.2 Inference.
Chi Square Test of Homogeneity. Are the different types of M&M’s distributed the same across the different colors? PlainPeanutPeanut Butter Crispy Brown7447.
Chapter 11: Inference for Distributions of Categorical Data
Objectives (PSLS Chapter 22)
Two-Way Tables and The Chi-Square Test*
X2 = M T W F P-Value = CONDITIONS
Chapter 11: Inference for Distributions of Categorical Data
Data Analysis for Two-Way Tables
The Analysis of Categorical Data and Chi-Square Procedures
AP STATISTICS LESSON 4 – 3 ( DAY 1 )
AP Stats Check In Where we’ve been… Chapter 7…Chapter 8…
Contingency Tables and Association
Two Categorical Variables: The Chi-Square Test
The Table Categorization
The Analysis of Categorical Data and Goodness of Fit Tests
The Analysis of Categorical Data and Goodness of Fit Tests
Section 4-3 Relations in Categorical Data
Chapter 13: 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 11: Inference for Distributions of Categorical Data
The Analysis of Categorical Data and Goodness of Fit Tests
11.2 Inference for Relationships
Chapter 11: Inference for Distributions of Categorical Data
Relations in Categorical Data
Chapter 13: Chi-Square Procedures
Presentation transcript:

10.1: Two-Way Tables and the Chi-Square Test Statistics Chap 10:Inference for Tables and Means

Two-Way Tables We use two-way tables to examine the relationship between two categorical variables. A categorical variable places an individual into one of several groups or categories.

Two-Way Tables Row Variable Column Variable Purdue University Faculty FemaleMaleTotal Assistant Professors Associate Professors Full Professors Total

Two-Way Tables Frequency counts Purdue University Faculty FemaleMaleTotal Assistant Professors Associate Professors Full Professors Total Joint frequencies: Entries in the body of the table Marginal frequencies: Entries in the “Total” row or column

Two-Way Tables Relative frequencies Purdue University Faculty FemaleMaleTotal Assistant Professors Associate Professors Full Professors Total Conditional frequencies:The relative frequencies in the body of the table

Two-Way Tables Relative frequencies for rows Purdue University Faculty FemaleMaleTotal Assistant Professors Associate Professors Full Professors Total

Two-Way Tables Relative frequencies for columns Purdue University Faculty FemaleMaleTotal Assistant Professors Associate Professors Full Professors Total1.000

Simpson’s Paradox An association or comparison that holds for all of several groups can disappear or even reverse direction when the data are combined to form a single group.

Simpson’s Paradox University Admissions MaleFemaleTotal Admit Deny Total8060 Frequency counts University Admissions MaleFemaleTotal Admit Deny Total1.00 Relative frequencies

Simpson’s Paradox Engineering Admissions MaleFemaleTotal Admit Deny Total Frequency counts English Admissions MaleFemaleTotal Admit51015 Deny Total204060

Simpson’s Paradox Engineering Admissions MaleFemaleTotal Admit0.50 Deny0.50 Total1.00 Relative frequencies English Admissions MaleFemaleTotal Admit0.25 Deny0.75 Total1.00

Activity 10.1: Sports Preference Freq Counts BasketballFootballSoccerOtherTotal Girls Boys Total

Activity 10.1: Sports Preference Rel Freq BasketballFootballSoccerOtherTotal Girls Boys Total

Exercises p : 10.1, 10.3, 10.5

Example 10.4: Treating Cocaine Addiction Frequency counts GroupTreatmentSuccessFailureTotal 1Desipramine Lithium Placebo42024 Total244872

Expected Counts

Exercises p : 10.6, 10.8, 10.10

Exercise p : 10.6, 10.8, 10.10

Chi-square Statistic

Example 10.5: The Cocaine Study ObservedExpected TreatmentSuccessFailureSuccessFailure Desipramine Lithium Placebo420816

Chi-square Statistic

The Chi-square Distributions

Figure 10.2 The density curves for three members of the chi-square family of distributions. The sampling distributions of chi-square statistics belong to this family.

The Chi-square Distributions

Example 10.6: The Cocaine Study, Conclusion ObservedExpected TreatmentSuccessFailureSuccessFailure Desipramine Lithium Placebo420816

Exercises p 566: 10.11, 10.13, 10.15

Using the chi-square test You can safely use the chi-square test when no more than 20% of the expected counts are less than 5 and all individual expected counts are 1 or greater.

Example 10.7: Do angry people have more heart disease? Anger Score LowModerateHigh Sample size CHD count CHD percent1.7%2.3%4.3%

Example 10.7: Do angry people have more heart disease? Anger Score LowModerateHighTotal CHD No CHD Total

Example 10.7: Do angry people have more heart disease? ObservedExpected LowModerateHighLowModerateHigh CHD No CHD

Exercises p 571: 10.16, 10.18, 10.20

Application 10.1: Matching Products with Markets: A Study in Economics p 571

Return of the M&M’s Color Observed (O) Expected (E) Blue(.24)( )= Orange(.20) Green(.16) Yellow(.14) Red(.13) Brown(.13) Total

Exercises p 571: 10.16, 10.18, 10.20

Exercises p : 10.22, 10.26

Exercise: Preventing domestic violence A study conducted in Charlotte, NC, tested the effectiveness of three police responses to spousal abuse: (1) advise and possibly separate the couple, (2) issue a citation to the offender, and (3) arrest the offender. Police officers were trained to recognize eligible cases. When presented with an eligible case, a police officer called the dispatcher, who would randomly select one of the three available treatments to be administered. There were 650 cases in the study. Each case was classified according to whether the abuser was subsequently arrested within 6 months of the original incident.

Exercise: Preventing domestic violence No subsequent arrest Subsequent arrest Advise and separate18725 Citation18143 Arrest17539 Is there sufficient evidence from this study to conclude that the treatment imposed on an abuser is related to the likelihood of the abuser’s subsequent arrest? Give appropriate evidence to support our position.