copyright © 2010 pearson education, inc. slide 25 - 1

15
Slide 25 - 1 Copyright © 2010 Pearson Education, Inc.

Upload: john-ohara

Post on 27-Mar-2015

228 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: Copyright © 2010 Pearson Education, Inc. Slide 25 - 1

Slide 25 - 1Copyright © 2010 Pearson Education, Inc.

Page 2: Copyright © 2010 Pearson Education, Inc. Slide 25 - 1

Slide 25 - 2Copyright © 2010 Pearson Education, Inc.

Solution: C

Page 3: Copyright © 2010 Pearson Education, Inc. Slide 25 - 1

Copyright © 2010 Pearson Education, Inc.

Chapter 25Paired Samples and Blocks

Page 4: Copyright © 2010 Pearson Education, Inc. Slide 25 - 1

Slide 25 - 4Copyright © 2010 Pearson Education, Inc.

Paired Data

Data are paired when the observations are collected in pairs or the observations in one group are naturally related to observations in the other group.

Paired data arise in a number of ways. Perhaps the most common is to compare subjects with themselves before and after a treatment. When pairs arise from an experiment, the pairing is a

type of blocking. When they arise from an observational study, it is a

form of matching. Once we know the data are paired, we can examine the

pairwise differences. Because it is the differences we care about, we treat

them as if they were the data and ignore the original two sets of data.

Page 5: Copyright © 2010 Pearson Education, Inc. Slide 25 - 1

Slide 25 - 5Copyright © 2010 Pearson Education, Inc.

Paired Data (cont.)

Now that we have only one set of data to consider, we can return to the simple one-sample t-test.

Mechanically, a paired t-test is just a one-sample t-test for the means of the pairwise differences. The sample size is the number of pairs.

Page 6: Copyright © 2010 Pearson Education, Inc. Slide 25 - 1

Slide 25 - 6Copyright © 2010 Pearson Education, Inc.

Assumptions and Conditions Paired Data Assumption:

Paired data Assumption: The data must be paired. Independence Assumption:

Independence Assumption: The differences must be independent of each other.

Randomization Condition: Randomness can arise in many ways. What we want to know usually focuses our attention on where the randomness should be.

10% Condition: When a sample is obviously small, we may not explicitly check this condition.

Normal Population Assumption: We need to assume that the population of differences follows a Normal model. Nearly Normal Condition: Check this with a histogram

or Normal probability plot of the differences.

Page 7: Copyright © 2010 Pearson Education, Inc. Slide 25 - 1

Slide 25 - 7Copyright © 2010 Pearson Education, Inc.

The Paired t-Test

When the conditions are met, we are ready to test whether the paired differences differ significantly from zero.

We test the hypothesis H0: d = 0, where the d’s are the pairwise differences and 0 is almost always 0.

Page 8: Copyright © 2010 Pearson Education, Inc. Slide 25 - 1

Slide 25 - 8Copyright © 2010 Pearson Education, Inc.

The Paired t-Test (cont.) We use the statistic

where n is the number of pairs.

is the ordinary standard error for the

mean applied to the differences.

When the conditions are met and the null hypothesis is true, this statistic follows a Student’s t-model on n – 1 degrees of freedom, so we can use that model to obtain a P-value.

0

1n

dt

SE d

dsSE dn

Page 9: Copyright © 2010 Pearson Education, Inc. Slide 25 - 1

Slide 25 - 9Copyright © 2010 Pearson Education, Inc.

Confidence Intervals for Matched Pairs When the conditions are met, we are ready to find

the confidence interval for the mean of the paired differences.

The confidence interval is

where the standard error of the mean difference is

The critical value t* depends on the particular confidence level, C, that you specify and on the degrees of freedom, n – 1, which is based on the number of pairs, n.

dsSE dn

1nd t SE d

Page 10: Copyright © 2010 Pearson Education, Inc. Slide 25 - 1

Slide 25 - 10Copyright © 2010 Pearson Education, Inc.

Blocking

Consider estimating the mean difference in age between husbands and wives.

The following display is worthless. It does no good to compare all the wives as a group with all the husbands—we care about the paired differences.

Page 11: Copyright © 2010 Pearson Education, Inc. Slide 25 - 1

Slide 25 - 11Copyright © 2010 Pearson Education, Inc.

Blocking (cont.) In this case, we have paired data—each husband

is paired with his respective wife. The display we are interested in is the difference in ages:

Page 12: Copyright © 2010 Pearson Education, Inc. Slide 25 - 1

Slide 25 - 12Copyright © 2010 Pearson Education, Inc.

Blocking (cont.)

Pairing removes the extra variation that we saw in the side-by-side boxplots and allows us to concentrate on the variation associated with the difference in age for each pair.

A paired design is an example of blocking.

Page 13: Copyright © 2010 Pearson Education, Inc. Slide 25 - 1

Slide 25 - 13Copyright © 2010 Pearson Education, Inc.

Example: Do flexible schedules reduce the demand for resources? The Lake County, Illinois Health Department experimented with a flexible four-day workweek. For a year, the department recorded the mileage driven by 11 field workers on an ordinary 5-day workweek. Then it changed to a flexible four-day workweek and recorded the mileage for another year. Why are these data paired?

Name 5-day mileage

4-day mileage

Jeff 2798 2914

Betty 7724 6112

Roger 7505 6177

Tom 838 1102

Aimee 4592 3281

Greg 8107 4997

Larry G. 1228 1695

Tad 8718 6606

Larry M. 1097 1063

Leslie 8089 6392

Lee 3807 3362

Page 14: Copyright © 2010 Pearson Education, Inc. Slide 25 - 1

Slide 25 - 14Copyright © 2010 Pearson Education, Inc.

Example: Is it okay to use these data to test whether the new schedule changed the amount of driving?

Example: Is there evidence that a four-day workweek would change how many miles workers drive?

Example: By how much, on average, might a change in workweek schedule reduce the amount driven by workers?

Page 15: Copyright © 2010 Pearson Education, Inc. Slide 25 - 1

Slide 25 - 15Copyright © 2010 Pearson Education, Inc.

Homework: Pg. 587 1-15 (13 & 15 compute formulas by hand and check with calculator)

(Day 2) Pg. 587 17-23 (watch out! They mix different types of problems from chpt. 23, 24 and 25! On problem 19 ignore what is in (). On 21 eliminate the outlier, 23b, eliminate car #4 as an outlier.)