17
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 G GG Gg g Gg gg

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

Embed Size (px)

Citation preview

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

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

G GG Gg

g Gg gg

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

Section 11.2

The Chi-Squared Test for Homogeneity of Proportions

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

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

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

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

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

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.

Page 6: 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 data

Treatment Subjects No relapse

Desipramine 24 14

Lithium 24 6

Placebo 24 4

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

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?

Page 8: 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 hypotheses…

H0: p1 = p2 = p3 (Be sure you have defined 1, 2, and 3)

Ha: Not all of the proportions are equal.

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

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.

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

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!

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

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!

Page 12: 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 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.

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

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.

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

Final notes…

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

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

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.

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

Results

Black Parents

Hispanic Parents

White Parents

Excellent 12 34 22

Good 69 55 81

Fair 75 61 60

Poor 24 24 24

Don’t Know 22 28 14

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

Homework

Chapter 11

# 27, 29, 31, 38, 40, 42