1 section 9-4 two means: matched pairs in this section we deal with dependent samples. in other...

39
1 Section 9-4 Two Means: Matched Pairs In this section we deal with dependent samples. In other words, there is some relationship between the two samples so that each value in one sample is paired (naturally matched or coupled) with a corresponding value in the other sample. So the two samples can be treated as matched pairs of values.

Upload: ezra-bradley

Post on 03-Jan-2016

216 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: 1 Section 9-4 Two Means: Matched Pairs In this section we deal with dependent samples. In other words, there is some relationship between the two samples

1

Section 9-4 Two Means:

Matched Pairs

In this section we deal with dependent samples. In other words, there is some relationship between the two samples so that each value in one sample is paired (naturally matched or coupled) with a corresponding value in the other sample.

So the two samples can be treated as matched pairs of values.

Page 2: 1 Section 9-4 Two Means: Matched Pairs In this section we deal with dependent samples. In other words, there is some relationship between the two samples

2

Examples:

• Blood pressure of patients before they are given medicine and after they take it.

• Predicted temperature (by Weather Forecast) and the actual temperature.

• Heights of selected people in the morning and their heights by night time.

• Test scores of selected students in Calculus-I and their scores in Calculus-II.

Page 3: 1 Section 9-4 Two Means: Matched Pairs In this section we deal with dependent samples. In other words, there is some relationship between the two samples

3

Example:

First sample: weights of 5 students in April

Second sample: their weights in September

These weights make 5 matched pairs

Third line: differences between April weights and September weights (net change in weight for each student, separately)

In our calculations we only use differences d, not the values in the two samples.

Page 4: 1 Section 9-4 Two Means: Matched Pairs In this section we deal with dependent samples. In other words, there is some relationship between the two samples

4

n = number of pairs of data.

d = mean value of the differences d for the paired sample data (equal to the

mean of the x – y values)

Notation for Dependent Samplesd = individual difference between the two values of a matched pair

µd = mean value of the differences d for the population of paired data

sd = standard deviation of the differences d for the paired sample data

Page 5: 1 Section 9-4 Two Means: Matched Pairs In this section we deal with dependent samples. In other words, there is some relationship between the two samples

5

Requirements

1. The sample data are dependent (make matched pairs).

2. Either or both of these conditions is satisfied: The number of pairs of sample data is large (n > 30) or the pairs of values have differences that are from a population that is approximately normal.

Page 6: 1 Section 9-4 Two Means: Matched Pairs In this section we deal with dependent samples. In other words, there is some relationship between the two samples

6

Tests for Matched Pairs

H0: d =

H1: d

, H1: d < , H1:

d>

The goal is to see whether there is a difference.

two tails left tail right tail

Page 7: 1 Section 9-4 Two Means: Matched Pairs In this section we deal with dependent samples. In other words, there is some relationship between the two samples

7

t = d – µdsd

n

degrees of freedom df = n – 1

Hypothesis Test Statistic for Matched Pairs:

Note: d

=0 according to H0

Page 8: 1 Section 9-4 Two Means: Matched Pairs In this section we deal with dependent samples. In other words, there is some relationship between the two samples

8

P-values and

Critical Values

Use Table A-3 (t-distribution)

Page 9: 1 Section 9-4 Two Means: Matched Pairs In this section we deal with dependent samples. In other words, there is some relationship between the two samples

9

Example:

Use a 0.05 significance level to test the claim that for the population of students, the mean change in weight from September to April is 0 kg

(so there is no change, on the average)

Page 10: 1 Section 9-4 Two Means: Matched Pairs In this section we deal with dependent samples. In other words, there is some relationship between the two samples

10

Example:

Weight gained = April weight – Sept. weight

d denotes the mean of the “April – Sept.” differences in weight; the claim is d = 0 kg

Step 1: claim is d = 0

Step 2: If original claim is not true, we have d ≠ 0

Step 3: H0: d = 0 (original claim)H1: d ≠ 0

Step 4: significance level is = 0.05

Step 5: use the student t distribution

Page 11: 1 Section 9-4 Two Means: Matched Pairs In this section we deal with dependent samples. In other words, there is some relationship between the two samples

11

Example:

Step 6: find values of d and sd

differences are: –1, –1, 4, –2, 1d = 0.2 and sd = 2.4now compute the test statistic

Table A-3: df = n – 1, area in two tails is 0.05, yields a critical value t = ±2.776

t d dsdn

0.2 0

2.4

5

0.186

Page 12: 1 Section 9-4 Two Means: Matched Pairs In this section we deal with dependent samples. In other words, there is some relationship between the two samples

12

Example:

Step 7: Because the test statistic does not fall in the critical region, we fail to reject the null hypothesis.

Page 13: 1 Section 9-4 Two Means: Matched Pairs In this section we deal with dependent samples. In other words, there is some relationship between the two samples

13

Example:

We conclude that there is sufficient evidence to support the claim that for the population of students, the mean change in weight from September to April is equal to 0 kg.

Page 14: 1 Section 9-4 Two Means: Matched Pairs In this section we deal with dependent samples. In other words, there is some relationship between the two samples

14

Example:

The P-value method:

Using technology, we can find the P-value of 0.8605. (Using Table A-3 with the test statistic of t = 0.186 and 4 degrees of freedom, we can determine that the P-value is greater than 0.20.) We again fail to reject the null hypothesis, because the P-value is greater than the significance level of = 0.05.

Page 15: 1 Section 9-4 Two Means: Matched Pairs In this section we deal with dependent samples. In other words, there is some relationship between the two samples

15

Confidence Intervals for Matched Pairs

where E = t/2sdn

d – E < µd < d + E

Critical values of tα/2 : Use Table A-3 with

df = n – 1 degrees of freedom.

Page 16: 1 Section 9-4 Two Means: Matched Pairs In this section we deal with dependent samples. In other words, there is some relationship between the two samples

16

Example:

Construct a 95% confidence interval estimate of d , which is the mean of the “April–September” weight differences of college students in their freshman year.

= 0.2, sd = 2.4, n = 5, ta/2 = 2.776

Find the margin of error, E

d

E t 2

sdn

2.7762.4

53.0

Page 17: 1 Section 9-4 Two Means: Matched Pairs In this section we deal with dependent samples. In other words, there is some relationship between the two samples

17

Example:

Construct the confidence interval:

We have 95% confidence that the limits of ─2.8 kg and 3.2 kg contain the true value of the mean weight change from September to April.

d E d d E0.2 3.0 d 0.2 3.0

2.8 d 3.2

Page 18: 1 Section 9-4 Two Means: Matched Pairs In this section we deal with dependent samples. In other words, there is some relationship between the two samples

18

• Enter 1st sample in list L1 and 2nd sample in L2

• Clear screen, type L1─L2→L3 (use STO key)• Press STAT and select TESTS• Scroll down to T-Test for hypotheses testing• or to TInterval for confidence intervals

• Select Input: Data (not Stats) and use list L3

• Then proceed as if you had just one sample…

Dependent samples by TI-83/84

Page 19: 1 Section 9-4 Two Means: Matched Pairs In this section we deal with dependent samples. In other words, there is some relationship between the two samples

19

Section 9-5

Comparing Variation in Two Samples

Page 20: 1 Section 9-4 Two Means: Matched Pairs In this section we deal with dependent samples. In other words, there is some relationship between the two samples

20

Requirements

1. The two populations are independent.

2. The two samples are random samples.

3. The two populations are each normally distributed.

The last requirement is strict.

Page 21: 1 Section 9-4 Two Means: Matched Pairs In this section we deal with dependent samples. In other words, there is some relationship between the two samples

21

Important:

• The first sample must have a larger sample standard deviation s1 than the second sample, i.e. we must have

s1 ≥ s2

• If this is not so, i.e. if s1 < s2 , then we will need to switch the indices 1 and 2, i.e. we need to label the second sample (and population) as first, and the first as second.

Page 22: 1 Section 9-4 Two Means: Matched Pairs In this section we deal with dependent samples. In other words, there is some relationship between the two samples

22

Notation for Hypothesis Tests with Two Variances or Standard Deviations

s1 = first (larger) sample st. deviation

n1 = size of the first sample

1 = st. deviation of the first population

s2 n2 2 are used for the second sample and population

Page 23: 1 Section 9-4 Two Means: Matched Pairs In this section we deal with dependent samples. In other words, there is some relationship between the two samples

23

Tests for Two Variances

H0: 1 =

2

H1: 1

2 , H1:

1>

2

Note: H1: 1<

2 is not considered.

Note: no numerical values for 1 or

2 are

claimed in the hypotheses.

The goal is to compare the two population variances (or standard deviations)

two tails right tail

Page 24: 1 Section 9-4 Two Means: Matched Pairs In this section we deal with dependent samples. In other words, there is some relationship between the two samples

24

Critical Values: Using Table A-5, we obtain critical F values that are determined by the following three values:

s1F = s2

2

2

Test Statistic for Hypothesis Tests with Two Variances

1. The significance level

2. Numerator degrees of freedom = n1 – 1

3. Denominator degrees of freedom = n2 – 1

Where s12 is the first (larger) of

the two sample variances

Page 25: 1 Section 9-4 Two Means: Matched Pairs In this section we deal with dependent samples. In other words, there is some relationship between the two samples

25

• The F distribution is not symmetric.

• Values of the F distribution cannot be negative, i.e. F ≥ 0.

• The exact shape of the F distribution depends on the two different degrees of freedom (numerator df and denominator df)

Properties of the F Distribution

Page 26: 1 Section 9-4 Two Means: Matched Pairs In this section we deal with dependent samples. In other words, there is some relationship between the two samples

26

Density curve of F distribution

Page 27: 1 Section 9-4 Two Means: Matched Pairs In this section we deal with dependent samples. In other words, there is some relationship between the two samples

27

If the two populations do have equal

variances, then F = will be close to 1

because and are close in value. s1

2 s22

s12

s22

Use of the F Distribution

Page 28: 1 Section 9-4 Two Means: Matched Pairs In this section we deal with dependent samples. In other words, there is some relationship between the two samples

28

If the two populations have radically different variances, then F will be a large number.

Remember: the larger sample variance is s1 , so F is either equal to 1 or greater than 1.

2

Use of the F Distribution

Page 29: 1 Section 9-4 Two Means: Matched Pairs In this section we deal with dependent samples. In other words, there is some relationship between the two samples

29

Consequently, a value of F near 1 will be evidence in favor of the conclusion that 1 = 2 .

2 2

But a large value of F will be evidence against the conclusion of equality of the population variances.

Conclusions from the F Distribution

Page 30: 1 Section 9-4 Two Means: Matched Pairs In this section we deal with dependent samples. In other words, there is some relationship between the two samples

30

Critical region is shaded red: there we reject H0: 1=2

Page 31: 1 Section 9-4 Two Means: Matched Pairs In this section we deal with dependent samples. In other words, there is some relationship between the two samples

31

To find a critical F value corresponding to a 0.05 significance level, refer to Table A-5 and use the right-tail area of 0.025 or 0.05, depending on the type of test:

Finding Critical F Values

Two-tailed test: use 0.025 in right tail

Right-tailed test: use 0.05 in right tail

Page 32: 1 Section 9-4 Two Means: Matched Pairs In this section we deal with dependent samples. In other words, there is some relationship between the two samples

32

Below are sample weights (in g) of quarters made before 1964 and weights of quarters made after 1964. When designing coin vending machines, we must consider the standard deviations of pre-1964 quarters and post-1964 quarters. Use a 0.05 significance level to test the claim that the weights of pre-1964 quarters and the weights of post-1964 quarters are from populations with the same standard deviation.

Example:

Page 33: 1 Section 9-4 Two Means: Matched Pairs In this section we deal with dependent samples. In other words, there is some relationship between the two samples

33

Example:

Step 1: claim of equal standard deviations is equivalent to claim of equal variances

12 2

2

Step 2: if the original claim is false, then

12 2

2

Step 3: H0 : 12 2

2

H1 : 12 2

2

original claim

Page 34: 1 Section 9-4 Two Means: Matched Pairs In this section we deal with dependent samples. In other words, there is some relationship between the two samples

34

Step 4: significance level is 0.05Example:

Step 5: involves two population variances, use F distribution variances

2 212 22

0.087001.9729

0.016194

sF

s

Step 6: calculate the test statistic

For the critical values in this two-tailed test, refer to Table A-5 for the area of 0.025 in the right tail. The critical value is 1.8752.

Page 35: 1 Section 9-4 Two Means: Matched Pairs In this section we deal with dependent samples. In other words, there is some relationship between the two samples

35

Example:

Step 7: The test statistic F = 1.9729 does fall within the critical region, so we reject the null hypothesis of equal variances. There is sufficient evidence to warrant rejection of the claim of equal standard deviations.

Page 36: 1 Section 9-4 Two Means: Matched Pairs In this section we deal with dependent samples. In other words, there is some relationship between the two samples

36

Example:

Left tail is not used and need not be shown !

Page 37: 1 Section 9-4 Two Means: Matched Pairs In this section we deal with dependent samples. In other words, there is some relationship between the two samples

37

There is sufficient evidence to warrant rejection of the claim that the two standard deviations are equal.

The variation among weights of quarters made after 1964 is significantly different from the variation among weights of quarters made before 1964.

Conclusion:

Page 38: 1 Section 9-4 Two Means: Matched Pairs In this section we deal with dependent samples. In other words, there is some relationship between the two samples

38

• Press STAT and select TESTS• Scroll down to 2-SampFTest press ENTER• Select Input: Data or Stats. For Stats:

• Type in sx1: (1st sample st. deviation)

• n1: (1st sample size)

• sx2: (2nd sample st. deviation)

• n2: (2nd sample size)

choose H1: 1 ≠2 <2 >2

(two tails) (left tail) (right tail)

Tests about two variances by TI-83/84

Page 39: 1 Section 9-4 Two Means: Matched Pairs In this section we deal with dependent samples. In other words, there is some relationship between the two samples

39

Tests about two variances (continued)

• Press on Calculate• Read the test statistic F=…• and the P-value p=…• Note: the calculator does not require the first

sample variance be larger than the second. It can handle both left-tailed and right-tailed tests.