Warm-up Researchers want to cross two yellow- green tobacco plants with genetic makeup (Gg). See the Punnett square below. When the researchers perform.

Slides:



Advertisements
Similar presentations
Chapter 13: Inference for Tables
Advertisements

Does Background Music Influence What Customers Buy?
Chapter 11 Inference for Distributions of Categorical Data
1 Chi-Squared Distributions Inference for Categorical Data and Multiple Groups.
1-1 Copyright © 2015, 2010, 2007 Pearson Education, Inc. Chapter 25, Slide 1 Chapter 25 Comparing Counts.
Chapter 26: Comparing Counts. To analyze categorical data, we construct two-way tables and examine the counts of percents of the explanatory and response.
Chapter 13: Inference for Tables – Chi-Square Procedures
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.
The table shows a random sample of 100 hikers and the area of hiking preferred. Are hiking area preference and gender independent? Hiking Preference Area.
Analysis of Count Data Chapter 26
Copyright © 2010, 2007, 2004 Pearson Education, Inc. Chapter 26 Comparing Counts.
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.
CHAPTER 26: COMPARING COUNTS OF CATEGORICAL DATA To test claims and make inferences about counts for categorical variables Objective:
11.2 Inference for Relationships. Section 11.2 Inference for Relationships COMPUTE expected counts, conditional distributions, and contributions to the.
Chapter 11: Inference for Distributions of Categorical Data.
Chapter 11: Inference for Distributions of Categorical Data
Chi-square test or c2 test
Chi-square test Chi-square test or  2 test Notes: Page Goodness of Fit 2.Independence 3.Homogeneity.
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.
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 26: Comparing counts of categorical data
Slide 26-1 Copyright © 2004 Pearson Education, Inc.
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.
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 13 Inference for Tables: Chi-Square Procedures AP Statistics 13 – Chi-Square Tests.
Copyright © 2010 Pearson Education, Inc. Slide
Inference for Distributions of Categorical Variables (C26 BVD)
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.
Copyright © 2010 Pearson Education, Inc. Warm Up- Good Morning! If all the values of a data set are the same, all of the following must equal zero except.
+ Chapter 11 Inference for Distributions of Categorical Data 11.1Chi-Square Goodness-of-Fit Tests 11.2Inference for Relationships.
11.2 Tests Using Contingency Tables When data can be tabulated in table form in terms of frequencies, several types of hypotheses can be tested by using.
DICE!  You are going to make your own and then we are going to test them (later) to see if they are fair!
Comparing Counts Chapter 26. Goodness-of-Fit A test of whether the distribution of counts in one categorical variable matches the distribution predicted.
+ Section 11.1 Chi-Square Goodness-of-Fit Tests. + Introduction In the previous chapter, we discussed inference procedures for comparing the proportion.
Section 13.2 Chi-Squared Test of Independence/Association.
Statistics 26 Comparing Counts. Goodness-of-Fit A test of whether the distribution of counts in one categorical variable matches the distribution predicted.
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.
The Chi-Square Distribution  Chi-square tests for ….. goodness of fit, and independence 1.
Comparing Observed Distributions A test comparing the distribution of counts for two or more groups on the same categorical variable is called a chi-square.
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,
 Check the Random, Large Sample Size and Independent conditions before performing a chi-square test  Use a chi-square test for homogeneity to determine.
22. Chi-square test for two-way tables
Objectives (PSLS Chapter 22)
Chi-square test or c2 test
Objectives (BPS chapter 23)
Warm-up Researchers want to cross two yellow-green tobacco plants with genetic makeup (Gg). See the Punnett square below. When the researchers perform.
Chapter 12 Tests with Qualitative Data
22. Chi-square test for two-way tables
Section 13.2 Chi-square Test of Association / Independence
AP Stats Check In Where we’ve been… Chapter 7…Chapter 8…
Chapter 11: Inference for Distributions of Categorical Data
Inference for Relationships
Comparing Proportions for Multiple Populations
11.2 Inference for Relationships
Chapter 13: Chi-Square Procedures
Inference for Distributions of Categorical Data
Chi Square Test of Homogeneity
Presentation transcript:

Warm-up Researchers want to cross two yellow- green tobacco plants with genetic makeup (Gg). See the Punnett square below. When the researchers perform the experiment, the resulting offspring are 22 green (GG), 50 yellow-green (Gg), and 12 albino (gg) seedlings. Use a chi-square goodness of fit test to assess the validity of the researchers’ genetic model. Gg GGGGg g gg

Section 11.2 The Chi-Squared Test for Homogeneity of Proportions

Review… Recall that there are three types of χ 2 tests: – Goodness of fit test Tests whether a sample distribution matches a hypothesized distribution – Homogeneity of proportions Tests whether p 1 = p 2 = p 3 = … – Association/Independence Tests whether two categorical variables are related Today’s task Tomorrow’s task

Homogeneity of Proportions We’ve already performed hypothesis tests to determine if p 1 = p 2. Which type of test did we use? Now, we’ll look to compare more than two proportions using a χ 2 test statistic. Two-proportion z- test

Example Chronic users of cocaine need the drug to feel pleasure. Perhaps giving cocaine addicts anti- depressants will help them stay off cocaine. A three- year study compared the anti-depressant desipramine with lithium (which was already being used to treat cocaine addiction). A placebo was also used in the experiment. The subjects were 72 chronic users of cocaine. Twenty-four of the subjects were randomly assigned to each of the three treatment groups. The variable of interest is the proportion of users who did not experience a relapse.

The data TreatmentSubjectsNo relapse Desipramine2414 Lithium246 Placebo244

First Step The first step is to arrange the data in a two- way table. This table must account for everyone (so our example would list success and failure). This is called a 3 x 2 table because it has 3 rows and 2 columns. You’ll need to know this to be able to use your calculator for a χ 2 test. What does this remind you of?

The hypotheses… H 0 : p 1 = p 2 = p 3 (Be sure you have defined 1, 2, and 3) H a : Not all of the proportions are equal.

Using your calculator Once you have the two-way table created, you will need to enter the data in Matrix A. – Press 2 nd MATRX. – Choose EDIT. – Hit ENTER. – Type the dimensions of the matrix (3 x 2 in this case). – Enter the data.

Performing the test Once you have the data entered, perform the χ 2 test on your calculator. – Press STAT. – Choose TESTS. – Choose C: χ 2 test – The calculator asks you where you have the observed data. You should always have it in Matrix A so that you don’t have to change this screen. – The calculator calculates the expected counts (yay!) and puts them in Matrix B. IN OTHER WORDS, DON’T CHANGE ANYTHING ON THIS SCREEN!

Information Received You can look at your graph or you can just “calculate”. If you conclude that there ARE differences (reject null hypothesis), you need to look at where the major differences are. View Matrix B to find expected values. Compare these to your observed values. You MUST copy down your expected values!

The assumptions Recall the assumptions for a χ 2 test. – Independent SRSs – All of the expected counts are at least 1. – No more than 20% of the expected counts are less than 5. Since this is step 2, leave space to check your conditions to fill in after you have completed your test in your calculator and note your expected values.

Finishing up the test Recall the 4 steps – State your hypotheses. Define any subscripts! – State your assumptions/conditions. – Name the test statistic and calculate its value. Graph the test statistic. State the p-value in symbols and calculate its value. – State the conclusion in the context of the problem.

Final notes… Degrees of freedom for the homogeneity of proportions: (r – 1)(c – 1)

Example The nonprofit group Public Agenda conducted telephone interviews with 3 randomly selected groups of parents of high school children. There were 202 black parents, 202 Hispanic parents, and 201 white parents. One question asked was, “Are the high schools in your state doing an excellent, good, fair, or poor job, or don’t you know enough to say.” You want to know if there is evidence that there is a difference in response based on race.

Results Black Parents Hispanic Parents White Parents Excellent Good Fair Poor24 Don’t Know222814

Homework Chapter 11 # 27, 29, 31, 38, 40, 42