Download presentation
Presentation is loading. Please wait.
Published byDamian McCoy Modified over 9 years ago
1
Basic Business Statistics, 11e © 2009 Prentice-Hall, Inc. Chap 10-1 Chapter 2c Two-Sample Tests
2
Basic Business Statistics, 11e © 2009 Prentice-Hall, Inc.. Chap 10-2 Learning Objectives In this chapter, you learn: How to use hypothesis testing for comparing the difference between The means of two independent populations The means of two related populations The proportions of two independent populations
3
Basic Business Statistics, 11e © 2009 Prentice-Hall, Inc.. Chap 10-3 Two-Sample Tests Population Means, Independent Samples Population Means, Related Samples Group 1 vs. Group 2 Same group before vs. after treatment Examples: Population Proportions Proportion 1 vs. Proportion 2
4
Basic Business Statistics, 11e © 2009 Prentice-Hall, Inc.. Chap 10-4 Difference Between Two Means Population means, independent samples Goal: Test hypothesis or form a confidence interval for the difference between two population means, μ 1 – μ 2 The point estimate for the difference is X 1 – X 2 * σ 1 and σ 2 unknown, assumed equal σ 1 and σ 2 unknown, not assumed equal
5
Basic Business Statistics, 11e © 2009 Prentice-Hall, Inc.. Chap 10-5 Difference Between Two Means: Independent Samples Population means, independent samples * Use S p to estimate unknown σ. Use a Pooled-Variance t test. σ 1 and σ 2 unknown, assumed equal σ 1 and σ 2 unknown, not assumed equal Use S 1 and S 2 to estimate unknown σ 1 and σ 2. Use a Separate-variance t test Different data sources Unrelated Independent Sample selected from one population has no effect on the sample selected from the other population
6
Basic Business Statistics, 11e © 2009 Prentice-Hall, Inc.. Chap 10-6 Hypothesis Tests for Two Population Means Lower-tail test: H 0 : μ 1 μ 2 H 1 : μ 1 < μ 2 i.e., H 0 : μ 1 – μ 2 0 H 1 : μ 1 – μ 2 < 0 Upper-tail test: H 0 : μ 1 ≤ μ 2 H 1 : μ 1 > μ 2 i.e., H 0 : μ 1 – μ 2 ≤ 0 H 1 : μ 1 – μ 2 > 0 Two-tail test: H 0 : μ 1 = μ 2 H 1 : μ 1 ≠ μ 2 i.e., H 0 : μ 1 – μ 2 = 0 H 1 : μ 1 – μ 2 ≠ 0 Two Population Means, Independent Samples
7
Basic Business Statistics, 11e © 2009 Prentice-Hall, Inc.. Chap 10-7 Two Population Means, Independent Samples Lower-tail test: H 0 : μ 1 – μ 2 0 H 1 : μ 1 – μ 2 < 0 Upper-tail test: H 0 : μ 1 – μ 2 ≤ 0 H 1 : μ 1 – μ 2 > 0 Two-tail test: H 0 : μ 1 – μ 2 = 0 H 1 : μ 1 – μ 2 ≠ 0 /2 -t -t /2 tt t /2 Reject H 0 if t STAT < -t Reject H 0 if t STAT > t Reject H 0 if t STAT < -t /2 or t STAT > t /2 Hypothesis tests for μ 1 – μ 2
8
Basic Business Statistics, 11e © 2009 Prentice-Hall, Inc.. Chap 10-8 Population means, independent samples Hypothesis tests for µ 1 - µ 2 with σ 1 and σ 2 unknown and assumed equal Assumptions: Samples are randomly and independently drawn Populations are normally distributed or both sample sizes are at least 30 Population variances are unknown but assumed equal * σ 1 and σ 2 unknown, assumed equal σ 1 and σ 2 unknown, not assumed equal
9
Basic Business Statistics, 11e © 2009 Prentice-Hall, Inc.. Chap 10-9 Population means, independent samples The pooled variance is: The test statistic is: Where t STAT has d.f. = (n 1 + n 2 – 2) (continued) * σ 1 and σ 2 unknown, assumed equal σ 1 and σ 2 unknown, not assumed equal Hypothesis tests for µ 1 - µ 2 with σ 1 and σ 2 unknown and assumed equal
10
Basic Business Statistics, 11e © 2009 Prentice-Hall, Inc.. Chap 10-10 Population means, independent samples The confidence interval for μ 1 – μ 2 is: Where t α/2 has d.f. = n 1 + n 2 – 2 * Confidence interval for µ 1 - µ 2 with σ 1 and σ 2 unknown and assumed equal σ 1 and σ 2 unknown, assumed equal σ 1 and σ 2 unknown, not assumed equal
11
Basic Business Statistics, 11e © 2009 Prentice-Hall, Inc.. Chap 10-11 Pooled-Variance t Test Example You are a financial analyst for a brokerage firm. Is there a difference in dividend yield between stocks listed on the NYSE & NASDAQ? You collect the following data: NYSE NASDAQ Number 21 25 Sample mean 3.27 2.53 Sample std dev 1.30 1.16 Assuming both populations are approximately normal with equal variances, is there a difference in mean yield ( = 0.05)?
12
Basic Business Statistics, 11e © 2009 Prentice-Hall, Inc.. Chap 10-12 Pooled-Variance t Test Example: Calculating the Test Statistic The test statistic is: (continued) H0: μ 1 - μ 2 = 0 i.e. (μ 1 = μ 2 ) H1: μ 1 - μ 2 ≠ 0 i.e. (μ 1 ≠ μ 2 )
13
Basic Business Statistics, 11e © 2009 Prentice-Hall, Inc.. Chap 10-13 Pooled-Variance t Test Example: Hypothesis Test Solution H 0 : μ 1 - μ 2 = 0 i.e. (μ 1 = μ 2 ) H 1 : μ 1 - μ 2 ≠ 0 i.e. (μ 1 ≠ μ 2 ) = 0.05 df = 21 + 25 - 2 = 44 Critical Values: t = ± 2.0154 Test Statistic: Decision: Conclusion: Reject H 0 at = 0.05 There is evidence of a difference in means. t 0 2.0154-2.0154.025 Reject H 0.025 2.040
14
Basic Business Statistics, 11e © 2009 Prentice-Hall, Inc.. Chap 10-14 Pooled-Variance t Test Example: Confidence Interval for µ 1 - µ 2 Since we rejected H 0 can we be 95% confident that µ NYSE > µ NASDAQ ? 95% Confidence Interval for µ NYSE - µ NASDAQ Since 0 is less than the entire interval, we can be 95% confident that µ NYSE > µ NASDAQ
15
Basic Business Statistics, 11e © 2009 Prentice-Hall, Inc.. Chap 10-15 Population means, independent samples Hypothesis tests for µ 1 - µ 2 with σ 1 and σ 2 unknown, not assumed equal Assumptions: Samples are randomly and independently drawn Populations are normally distributed or both sample sizes are at least 30 Population variances are unknown and cannot be assumed to be equal * σ 1 and σ 2 unknown, assumed equal σ 1 and σ 2 unknown, not assumed equal
16
Basic Business Statistics, 11e © 2009 Prentice-Hall, Inc.. Chap 10-16 Population means, independent samples (continued) * σ 1 and σ 2 unknown, assumed equal σ 1 and σ 2 unknown, not assumed equal Hypothesis tests for µ 1 - µ 2 with σ 1 and σ 2 unknown and not assumed equal The test statistic is: t STAT has d.f. ν =
17
Basic Business Statistics, 11e © 2009 Prentice-Hall, Inc.. Chap 10-17 Related Populations The Paired Difference Test Tests Means of 2 Related Populations Paired or matched samples Repeated measures (before/after) Use difference between paired values: Eliminates Variation Among Subjects Assumptions: Both Populations Are Normally Distributed Or, if not Normal, use large samples Related samples D i = X 1i - X 2i
18
Basic Business Statistics, 11e © 2009 Prentice-Hall, Inc.. Chap 10-18 Related Populations The Paired Difference Test The i th paired difference is D i, where Related samples D i = X 1i - X 2i The point estimate for the paired difference population mean μ D is D : n is the number of pairs in the paired sample The sample standard deviation is S D (continued)
19
Basic Business Statistics, 11e © 2009 Prentice-Hall, Inc.. Chap 10-19 The test statistic for μ D is: Paired samples Where t STAT has n - 1 d.f. The Paired Difference Test: Finding t STAT
20
Basic Business Statistics, 11e © 2009 Prentice-Hall, Inc.. Chap 10-20 Lower-tail test: H 0 : μ D 0 H 1 : μ D < 0 Upper-tail test: H 0 : μ D ≤ 0 H 1 : μ D > 0 Two-tail test: H 0 : μ D = 0 H 1 : μ D ≠ 0 Paired Samples The Paired Difference Test: Possible Hypotheses /2 -t -t /2 tt t /2 Reject H 0 if t STAT < -t Reject H 0 if t STAT > t Reject H 0 if t STAT < -t or t STAT > t Where t STAT has n - 1 d.f.
21
Basic Business Statistics, 11e © 2009 Prentice-Hall, Inc.. Chap 10-21 The confidence interval for μ D is Paired samples where The Paired Difference Confidence Interval
22
Basic Business Statistics, 11e © 2009 Prentice-Hall, Inc.. Chap 10-22 Assume you send your salespeople to a “customer service” training workshop. Has the training made a difference in the number of complaints? You collect the following data: Paired Difference Test: Example Number of Complaints: (2) - (1) Salesperson Before (1) After (2) Difference, D i C.B. 6 4 - 2 T.F. 20 6 -14 M.H. 3 2 - 1 R.K. 0 0 0 M.O. 4 0 - 4 -21 D = DiDi n = -4.2
23
Basic Business Statistics, 11e © 2009 Prentice-Hall, Inc.. Chap 10-23 Has the training made a difference in the number of complaints (at the 0.01 level)? - 4.2D = H 0 : μ D = 0 H 1 : μ D 0 Test Statistic: t 0.005 = ± 4.604 d.f. = n - 1 = 4 Reject /2 - 4.604 4.604 Decision: Do not reject H 0 (t stat is not in the reject region) Conclusion: There is not a significant change in the number of complaints. Paired Difference Test: Solution Reject /2 - 1.66 =.01
24
Basic Business Statistics, 11e © 2009 Prentice-Hall, Inc.. Chap 10-24 Two Population Proportions Goal: test a hypothesis or form a confidence interval for the difference between two population proportions, π 1 – π 2 The point estimate for the difference is Population proportions Assumptions: n 1 π 1 5, n 1 (1- π 1 ) 5 n 2 π 2 5, n 2 (1- π 2 ) 5
25
Basic Business Statistics, 11e © 2009 Prentice-Hall, Inc.. Chap 10-25 Two Population Proportions Population proportions The pooled estimate for the overall proportion is: where X 1 and X 2 are the number of items of interest in samples 1 and 2 In the null hypothesis we assume the null hypothesis is true, so we assume π 1 = π 2 and pool the two sample estimates
26
Basic Business Statistics, 11e © 2009 Prentice-Hall, Inc.. Chap 10-26 Two Population Proportions Population proportions The test statistic for π 1 – π 2 is a Z statistic: (continued) where
27
Basic Business Statistics, 11e © 2009 Prentice-Hall, Inc.. Chap 10-27 Hypothesis Tests for Two Population Proportions Population proportions Lower-tail test: H 0 : π 1 π 2 H 1 : π 1 < π 2 i.e., H 0 : π 1 – π 2 0 H 1 : π 1 – π 2 < 0 Upper-tail test: H 0 : π 1 ≤ π 2 H 1 : π 1 > π 2 i.e., H 0 : π 1 – π 2 ≤ 0 H 1 : π 1 – π 2 > 0 Two-tail test: H 0 : π 1 = π 2 H 1 : π 1 ≠ π 2 i.e., H 0 : π 1 – π 2 = 0 H 1 : π 1 – π 2 ≠ 0
28
Basic Business Statistics, 11e © 2009 Prentice-Hall, Inc.. Chap 10-28 Hypothesis Tests for Two Population Proportions Population proportions Lower-tail test: H 0 : π 1 – π 2 0 H 1 : π 1 – π 2 < 0 Upper-tail test: H 0 : π 1 – π 2 ≤ 0 H 1 : π 1 – π 2 > 0 Two-tail test: H 0 : π 1 – π 2 = 0 H 1 : π 1 – π 2 ≠ 0 /2 -z -z /2 zz z /2 Reject H 0 if Z STAT < -Z Reject H 0 if Z STAT > Z Reject H 0 if Z STAT < -Z or Z STAT > Z (continued)
29
Basic Business Statistics, 11e © 2009 Prentice-Hall, Inc.. Chap 10-29 Hypothesis Test Example: Two population Proportions Is there a significant difference between the proportion of men and the proportion of women who will vote Yes on Proposition A? In a random sample, 36 of 72 men and 31 of 50 women indicated they would vote Yes Test at the.05 level of significance
30
Basic Business Statistics, 11e © 2009 Prentice-Hall, Inc.. Chap 10-30 The hypothesis test is: H 0 : π 1 – π 2 = 0 (the two proportions are equal) H 1 : π 1 – π 2 ≠ 0 (there is a significant difference between proportions) The sample proportions are: Men: p 1 = 36/72 =.50 Women: p 2 = 31/50 =.62 The pooled estimate for the overall proportion is: Hypothesis Test Example: Two population Proportions (continued)
31
Basic Business Statistics, 11e © 2009 Prentice-Hall, Inc.. Chap 10-31 The test statistic for π 1 – π 2 is: Hypothesis Test Example: Two population Proportions (continued).025 -1.961.96.025 -1.31 Decision: Do not reject H 0 Conclusion: There is not significant evidence of a difference in proportions who will vote yes between men and women. Reject H 0 Critical Values = ±1.96 For =.05
32
Basic Business Statistics, 11e © 2009 Prentice-Hall, Inc.. Chap 10-32 Confidence Interval for Two Population Proportions Population proportions The confidence interval for π 1 – π 2 is:
33
Basic Business Statistics, 11e © 2009 Prentice-Hall, Inc.. Chap 10-33 Chapter Summary Compared two independent samples Performed pooled-variance t test for the difference in two means Performed separate-variance t test for difference in two means Formed confidence intervals for the difference between two means Compared two related samples (paired samples) Performed paired t test for the mean difference Formed confidence intervals for the mean difference
34
Basic Business Statistics, 11e © 2009 Prentice-Hall, Inc.. Chap 10-34 Chapter Summary Compared two population proportions Formed confidence intervals for the difference between two population proportions Performed Z-test for two population proportions (continued)
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.