Download presentation
Presentation is loading. Please wait.
Published byEzra Bradley Modified over 9 years ago
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 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.
2
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.
3
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.
4
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 Samples d = individual difference between the two values of a matched pair µ d = mean value of the differences d for the population of paired data s d = standard deviation of the differences d for the paired sample data
5
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.
6
6 Tests for Matched Pairs H 0 : d = H 1 : d , H 1 : d The goal is to see whether there is a difference. two tails left tail right tail
7
7 t =t = d – µ d sdsd n degrees of freedom df = n – 1 Hypothesis Test Statistic for Matched Pairs: Note: d =0 according to H 0
8
8 P-values and Critical Values Use Table A-3 (t-distribution)
9
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)
10
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:H 0 : d = 0 (original claim) H 1 : d ≠ 0 Step 4:significance level is = 0.05 Step 5:use the student t distribution
11
11 Example: Step 6:find values of d and s d differences are: –1, –1, 4, –2, 1 d = 0.2 and s d = 2.4 now compute the test statistic Table A-3: df = n – 1, area in two tails is 0.05, yields a critical value t = ±2.776
12
12 Example: Step 7:Because the test statistic does not fall in the critical region, we fail to reject the null hypothesis.
13
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.
14
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.
15
15 Confidence Intervals for Matched Pairs where E = t / 2 sdsd n d – E < µ d < d + E Critical values of t α/2 : Use Table A-3 with df = n – 1 degrees of freedom.
16
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, s d = 2.4, n = 5, t a/2 = 2.776 Find the margin of error, E
17
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.
18
18 Enter 1 st sample in list L 1 and 2 nd sample in L 2 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 L 3 Then proceed as if you had just one sample… Dependent samples by TI-83/84
19
19 Section 9-5 Comparing Variation in Two Samples
20
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.
21
21 Important: The first sample must have a larger sample standard deviation s 1 than the second sample, i.e. we must have s 1 ≥ s 2 If this is not so, i.e. if s 1 < s 2, 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.
22
22 Notation for Hypothesis Tests with Two Variances or Standard Deviations s 1 = first (larger) sample st. deviation n 1 = size of the first sample 1 = st. deviation of the first population s 2 n 2 2 are used for the second sample and population
23
23 Tests for Two Variances H 0 : 1 = 2 H 1 : 1 2, H 1 : 1 > 2 Note: H 1 : 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
24
24 Critical Values: Using Table A-5, we obtain critical F values that are determined by the following three values: s1 s1 F = s2 s2 2 2 Test Statistic for Hypothesis Tests with Two Variances 1. The significance level 2. Numerator degrees of freedom = n 1 – 1 3. Denominator degrees of freedom = n 2 – 1 Where s 1 2 is the first (larger) of the two sample variances
25
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
26
26 Density curve of F distribution
27
27 If the two populations do have equal variances, then F = will be close to 1 because and are close in value. s1 s1 2 s 2 2 s1s1 2 s2s2 2 Use of the F Distribution
28
28 If the two populations have radically different variances, then F will be a large number. Remember: the larger sample variance is s 1, so F is either equal to 1 or greater than 1. 2 Use of the F Distribution
29
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
30
30 Critical region is shaded red: there we reject H 0 : 1 = 2
31
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
32
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:
33
33 Example: Step 1:claim of equal standard deviations is equivalent to claim of equal variances Step 2:if the original claim is false, then Step 3: original claim
34
34 Step 4:significance level is 0.05 Example: Step 5:involves two population variances, use F distribution variances 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.
35
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.
36
36 Example: Left tail is not used and need not be shown !
37
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:
38
38 Press STAT and select TESTS Scroll down to 2-SampFTest press ENTER Select Input: Data or Stats. For Stats: Type in s x1 : (1 st sample st. deviation) n 1 : (1 st sample size) s x2 : (2 nd sample st. deviation) n 2 : (2 nd sample size) choose H 1 : 1 ≠ 2 2 (two tails) (left tail) (right tail) Tests about two variances by TI-83/84
39
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.
Similar presentations
© 2024 SlidePlayer.com Inc.
All rights reserved.