AP STATISTICS LESSON 13 -2 (DAY 1) INFERENCE FOR TWO – WAY TABLES.

Slides:



Advertisements
Similar presentations
CHAPTER 23: Two Categorical Variables The Chi-Square Test ESSENTIAL STATISTICS Second Edition David S. Moore, William I. Notz, and Michael A. Fligner Lecture.
Advertisements

Chapter 13: Inference for Tables
Copyright ©2011 Brooks/Cole, Cengage Learning More about Inference for Categorical Variables Chapter 15 1.
1 Chi-Squared Distributions Inference for Categorical Data and Multiple Groups.
Chapter 26: Comparing Counts
Analysis of Two-Way Tables Inference for Two-Way Tables IPS Chapter 9.1 © 2009 W.H. Freeman and Company.
Chapter 26: Comparing Counts. To analyze categorical data, we construct two-way tables and examine the counts of percents of the explanatory and response.
1 Chapter 20 Two Categorical Variables: The Chi-Square Test.
+ The Practice of Statistics, 4 th edition – For AP* STARNES, YATES, MOORE Chapter 11: Inference for Distributions of Categorical Data Section 11.2 Inference.
Analysis of Two-Way Tables
Analysis of Count Data Chapter 26
Goodness-of-Fit Tests and Categorical Data Analysis
A random sample of 300 doctoral degree
Analysis of two-way tables - Formulas and models for two-way tables - Goodness of fit IPS chapters 9.3 and 9.4 © 2006 W.H. Freeman and Company.
1 Desipramine is an antidepressant affecting the brain chemicals that may become unbalanced and cause depression. It was tested for recovery from cocaine.
11.2 Inference for Relationships. Section 11.2 Inference for Relationships COMPUTE expected counts, conditional distributions, and contributions to the.
Analysis of two-way tables - Formulas and models for two-way tables - Goodness of fit IPS chapters 9.3 and 9.4 © 2006 W.H. Freeman and Company.
Warm-up Researchers want to cross two yellow- green tobacco plants with genetic makeup (Gg). See the Punnett square below. When the researchers perform.
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 26 Chi-Square Testing
CHAPTER 11 SECTION 2 Inference for Relationships.
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.
BPS - 5th Ed. Chapter 221 Two Categorical Variables: The Chi-Square Test.
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.
CHAPTER 23: Two Categorical Variables The Chi-Square Test ESSENTIAL STATISTICS Second Edition David S. Moore, William I. Notz, and Michael A. Fligner Lecture.
Statistical Significance for a two-way table Inference for a two-way table We often gather data and arrange them in a two-way table to see if two categorical.
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.
+ Chapter 11 Inference for Distributions of Categorical Data 11.1Chi-Square Goodness-of-Fit Tests 11.2Inference for Relationships.
Lesson Inference for Two-Way Tables. Knowledge Objectives Explain what is mean by a two-way table. Define the chi-square (χ 2 ) statistic. Identify.
Lecture PowerPoint Slides Basic Practice of Statistics 7 th Edition.
Chapter 13- Inference For Tables: Chi-square Procedures Section Test for goodness of fit Section Inference for Two-Way tables Presented By:
Lecture PowerPoint Slides Basic Practice of Statistics 7 th Edition.
The Practice of Statistics, 5th Edition Starnes, Tabor, Yates, Moore Bedford Freeman Worth Publishers CHAPTER 11 Inference for Distributions of Categorical.
Chapter 13 Section 2. Chi-Square Test 1.Null hypothesis – written in words 2.Alternative hypothesis – written in words – always “different” 3.Alpha level.
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.
Class Seven Turn In: Chapter 18: 32, 34, 36 Chapter 19: 26, 34, 44 Quiz 3 For Class Eight: Chapter 20: 18, 20, 24 Chapter 22: 34, 36 Read Chapters 23 &
Chi Square Procedures Chapter 14. Chi-Square Goodness-of-Fit Tests Section 14.1.
AP Stats Check In Where we’ve been… Chapter 7…Chapter 8… Where we are going… Significance Tests!! –Ch 9 Tests about a population proportion –Ch 9Tests.
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,
Chapter 12 Lesson 12.2b Comparing Two Populations or Treatments 12.2: Test for Homogeneity and Independence in a Two-way Table.
 Check the Random, Large Sample Size and Independent conditions before performing a chi-square test  Use a chi-square test for homogeneity to determine.
+ 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.
Objectives (BPS chapter 23)
Introduction The two-sample z procedures of Chapter 10 allow us to compare the proportions of successes in two populations or for two treatments. What.
Two-Way Tables and The Chi-Square Test*
CHAPTER 11 Inference for Distributions of Categorical Data
Section 13.2 Chi-square Test of Association / Independence
Chapter 11: Inference for Distributions of Categorical Data
CHAPTER 11 Inference for Distributions of Categorical Data
Inference for Relationships
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
Inference for Two Way Tables
CHAPTER 11 Inference for Distributions of Categorical Data
Comparing Proportions for Multiple Populations
CHAPTER 11 Inference for Distributions of Categorical Data
11.2 Inference for Relationships
CHAPTER 11 Inference for Distributions of Categorical Data
CHAPTER 11 Inference for Distributions of Categorical Data
Chapter 13: Chi-Square Procedures
Presentation transcript:

AP STATISTICS LESSON (DAY 1) INFERENCE FOR TWO – WAY TABLES

ESSENTIAL QUESTION: How is Chi-square Used to Test for Homogeneity of Populations? Objectives: To create two-way tables. To use techniques to test data for homogeneity of populations.

Inference for Two-way Tables We want to compare more than two groups. The test we will use starts by presenting the data in a new way, as a two-way table. Two-way tables have more general uses than comparing the proportions of success in several groups. They describe relationships between any two categorical variables.

Example 13.4 Page 744 Treating Cocaine Addiction The subjects were 72 chronic users of cocaine who wanted to break their drug habit. Twenty-four of the subjects were randomly assigned to each treatment.

The Problem of Multiple Comparisons Call the population proportions of successes in the three groups p 1, p 2, p 3. Test H o : p 1 = p 2 to see if the success rate of desipramine differs from that of lithium. Test H o : p 1 = p 2 to see if the success rate of desipramine differs the placebo. Test H o : p 1 = p 3 to see if the success rate of lithium differs the placebo. The weakness of doing three tests is that we get three P-values.

Statistical Methods for Dealing with Many Comparisons Usually Have Two Parts 1.An overall test to see if there is good evidence of any differences among the parameters that we want to compare. 2.A detailed follow-up analysis to decide which of the parameters differ and to estimate how large the differences are. The overall test is one with which we are familiar – the chi-square test – but in this new setting it will be used for comparing several population proportions.

Two-way Tables The first step in the overall test for comparing several proportions is to arrange the data in a two- way table that gives counts for both successes and failures. This is a 3 x 2 table because it has 3 rows and 2 columns. A table with r rows and c columns is an r x c table. Relapse NOYES Desipramine1410 Lithium618 Placebo420

Two-way Tables (continued…) The table shows the relationship between two categorical variables. The explanatory variable is the treatment (one of three drugs). The response variable is success (no relapse) or failure ( relapse). The two-way table gives the counts for all 6 combinations of values of these variables. Each of the 6 counts occupies a cell of the table.

Expected Counts We want to test the null hypothesis that there are no differences among the proportions of successes for addicts given the three treatments: H 0 : p 1 = p 2 = p 3 The alternative hypothesis is that there is some difference, that not all three proportions are equal: H a : not all of p 1, p 2, p 3 are equal The alternative hypothesis is no longer one-sided or two-sided. It is many-sided, because it allows any relationship other than all three equal.

Expected Counts (continued…) The expected count in any cell of a two-way table when H o is true is expected count = row total x column total table total

Example 13.5 Page 747 Free Throws If we have n independent trials and the probability f a success oneach trila is p, we expect np successes. If we draw and SRS of n individuals from a population in whiich the proportion of successes is p, we expect np successes in the sample.

Example 13.6 Page 748 Comparing Observed and Expected Counts ObservedExpected NoYesNoYes Desipramine Lithium Placebo420816