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
Does Background Music Influence What Customers Buy?
Advertisements

Chapter 11 Inference for Distributions of Categorical Data
1 Chi-Squared Distributions Inference for Categorical Data and Multiple Groups.
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.
Analysis of Count Data Chapter 26
A random sample of 300 doctoral degree
CHAPTER 26: COMPARING COUNTS OF CATEGORICAL DATA To test claims and make inferences about counts for categorical variables Objective:
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 26: Comparing counts of categorical data
+ 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.
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.
+ Chapter 11 Inference for Distributions of Categorical Data 11.1Chi-Square Goodness-of-Fit Tests 11.2Inference for Relationships.
Section 13.2 Chi-Squared Test of Independence/Association.
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.
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) 
 Check the Random, Large Sample Size and Independent conditions before performing a chi-square test  Use a chi-square test for homogeneity to determine.
Warm up On slide.
Comparing Counts Chi Square Tests Independence.
Chapter 11: Inference for Distributions of Categorical Data
22. Chi-square test for two-way tables
CHAPTER 26 Comparing Counts.
Chapter 11: Inference for Distributions of Categorical Data
Objectives (PSLS Chapter 22)
Chi-square test or c2 test
Objectives (BPS chapter 23)
Chapter 11: Inference for Distributions of Categorical Data
Chapter 12 Tests with Qualitative Data
Chapter 11: Inference for Distributions of Categorical Data
Section 10-1 – Goodness of Fit
1) A bicycle safety organization claims that fatal bicycle accidents are uniformly distributed throughout the week. The table shows the day of the week.
Chapter 11: Inference for Distributions of Categorical Data
Chapter 11 Goodness-of-Fit and Contingency Tables
22. Chi-square test for two-way tables
Chi-Square Goodness of Fit
Section 13.2 Chi-square Test of Association / Independence
AP Stats Check In Where we’ve been… Chapter 7…Chapter 8…
Chi Square Two-way Tables
AP Stats Check In Where we’ve been… Chapter 7…Chapter 8…
13.1 The Chi-square Goodness-of-Fit test
Chapter 11: Inference for Distributions of Categorical Data
Chapter 11: Inference for Distributions of Categorical Data
Contingency Tables: Independence and Homogeneity
Inference for Relationships
Lesson 11 - R Chapter 11 Review:
Chapter 13 Inference for Tables: Chi-Square Procedures
Chapter 11: Inference for Distributions of Categorical Data
Chapter 13: 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
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
Inference for Distributions of Categorical Data
Chapter 26 Comparing Counts.
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
Chapter 11: Inference for Distributions of Categorical Data
Inference for Distributions of Categorical Data
Chi Square Test of Homogeneity
Chapter 11: Inference for Distributions of Categorical Data
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. G g GG Gg gg

The Chi-Squared Test for Homogeneity of Proportions 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 p1 = p2 = p3 = … 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 p1 = p2. 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 Treatment Subjects No relapse Desipramine 24 14 Lithium 6 Placebo 4

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… H0: p1 = p2 = p3 (Be sure you have defined 1, 2, and 3) Ha: 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 2nd 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 12 34 22 Good 69 55 81 Fair 75 61 60 Poor 24 Don’t Know 28 14

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