Lecture 8 Estimation and Hypothesis Testing for Two Population Parameters.

Slides:



Advertisements
Similar presentations
Section 9.3 Inferences About Two Means (Independent)
Advertisements

Business and Economics 9th Edition
Statistics for Managers Using Microsoft Excel, 5e © 2008 Prentice-Hall, Inc.Chap 10-1 Statistics for Managers Using Microsoft® Excel 5th Edition Chapter.
Chapter 10 Two-Sample Tests
Chapter 8 Estimation: Additional Topics
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Statistics for Business and Economics 7 th Edition Chapter 10 Hypothesis Testing:
Chapter 10 Two-Sample Tests
Pengujian Hipotesis Beda Nilai Tengah Pertemuan 20 Matakuliah: I0134/Metode Statistika Tahun: 2007.
Statistics for Business and Economics Chapter 7 Inferences Based on Two Samples: Confidence Intervals & Tests of Hypotheses.
© 2002 Prentice-Hall, Inc.Chap 8-1 Statistics for Managers using Microsoft Excel 3 rd Edition Chapter 8 Two Sample Tests with Numerical Data.
Chap 11-1 Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chapter 11 Hypothesis Testing II Statistics for Business and Economics.
Chapter Goals After completing this chapter, you should be able to:
Business Statistics: A Decision-Making Approach, 6e © 2005 Prentice-Hall, Inc. Chap 9-1 Introduction to Statistics Chapter 10 Estimation and Hypothesis.
Chapter Topics Comparing Two Independent Samples:
1/45 Chapter 11 Hypothesis Testing II EF 507 QUANTITATIVE METHODS FOR ECONOMICS AND FINANCE FALL 2008.
Chap 9-1 Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chapter 9 Estimation: Additional Topics Statistics for Business and Economics.
A Decision-Making Approach
Business Statistics: A Decision-Making Approach, 7e © 2008 Prentice-Hall, Inc. Chap 10-1 Business Statistics: A Decision-Making Approach 7 th Edition Chapter.
T-Tests Lecture: Nov. 6, 2002.
© 2002 Prentice-Hall, Inc.Chap 8-1 Statistics for Managers using Microsoft Excel 3 rd Edition Kafla 8 Próf fyrir tvö úrtök (Ekki þýtt)
© 2004 Prentice-Hall, Inc.Chap 10-1 Basic Business Statistics (9 th Edition) Chapter 10 Two-Sample Tests with Numerical Data.
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 9-1 Chapter 9 Two Sample Tests Statistics for Managers Using Microsoft.
Basic Business Statistics (9th Edition)
Chapter 10, sections 1 and 4 Two-sample Hypothesis Testing Test hypotheses for the difference between two independent population means ( standard deviations.
Hypothesis Testing :The Difference between two population mean :
1/49 EF 507 QUANTITATIVE METHODS FOR ECONOMICS AND FINANCE FALL 2008 Chapter 9 Estimation: Additional Topics.
Basic Business Statistics, 10e © 2006 Prentice-Hall, Inc. Chap 10-1 Chapter 10 Two-Sample Tests Basic Business Statistics 10 th Edition.
Two Sample Tests Ho Ho Ha Ha TEST FOR EQUAL VARIANCES
Hypothesis Testing – Two Samples
8 - 1 © 2003 Pearson Prentice Hall Chi-Square (  2 ) Test of Variance.
Chapter 9 Hypothesis Testing and Estimation for Two Population Parameters.
Business Statistics: A Decision-Making Approach, 6e © 2005 Prentice-Hall, Inc. Chap th & 7 th Lesson Hypothesis Testing for Two Population Parameters.
Chapter 10 Two-Sample Tests and One-Way ANOVA
Basic Business Statistics, 11e © 2009 Prentice-Hall, Inc. Chap 10-1 Chapter 2c Two-Sample Tests.
10-1 Copyright ©2011 Pearson Education, Inc. publishing as Prentice Hall Chapter 10 Two-Sample Tests Statistics for Managers using Microsoft Excel 6 th.
Pengujian Hipotesis Dua Populasi By. Nurvita Arumsari, Ssi, MSi.
Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap 10-1 Chapter 10 Two-Sample Tests and One-Way ANOVA Business Statistics, A First.
A Course In Business Statistics 4th © 2006 Prentice-Hall, Inc. Chap 9-1 A Course In Business Statistics 4 th Edition Chapter 9 Estimation and Hypothesis.
Industrial Statistics 2
Chap 9-1 Two-Sample Tests. Chap 9-2 Two Sample Tests Population Means, Independent Samples Means, Related Samples Population Variances Group 1 vs. independent.
1 Chapter 9 Inferences from Two Samples 9.2 Inferences About Two Proportions 9.3 Inferences About Two Means (Independent) 9.4 Inferences About Two Means.
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Statistics for Business and Economics 8 th Edition Chapter 10 Hypothesis Testing:
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 9-1 Chapter 9 Two-Sample Tests Statistics for Managers Using Microsoft.
© Copyright McGraw-Hill 2000
Chapter 10 Statistical Inferences Based on Two Samples Statistics for Business (Env) 1.
Business Statistics: A First Course (3rd Edition)
6.1 - One Sample One Sample  Mean μ, Variance σ 2, Proportion π Two Samples Two Samples  Means, Variances, Proportions μ 1 vs. μ 2.
Business Statistics, 4e, by Ken Black. © 2003 John Wiley & Sons Business Statistics, 4e by Ken Black Chapter 10 Statistical Inferences about Two.
Comparing Sample Means
Copyright © 2016, 2013, 2010 Pearson Education, Inc. Chapter 10, Slide 1 Two-Sample Tests and One-Way ANOVA Chapter 10.
AP Statistics. Chap 13-1 Chapter 13 Estimation and Hypothesis Testing for Two Population Parameters.
Statistics for Managers Using Microsoft Excel, 5e © 2008 Prentice-Hall, Inc.Chap 10-1 Statistics for Managers Using Microsoft® Excel 5th Edition Chapter.
10-1 Copyright ©2011 Pearson Education, Inc. publishing as Prentice Hall Chapter 10 Two-Sample Tests Statistics for Managers using Microsoft Excel 6 th.
8-1 Copyright © 2014, 2011, and 2008 Pearson Education, Inc.
Chapter 9 Estimation: Additional Topics
Chapter 10 Two-Sample Tests and One-Way ANOVA.
Statistics for Managers using Microsoft Excel 3rd Edition
Chapter 11 Hypothesis Testing II
Chapter 10 Two Sample Tests
Estimation & Hypothesis Testing for Two Population Parameters
Chapter 11 Hypothesis Testing II
Chapter 10 Two-Sample Tests.
Chapter 10 Two-Sample Tests and One-Way ANOVA.
Hypothesis Tests for a Population Mean in Practice
Data Mining 2016/2017 Fall MIS 331 Chapter 2 Sampliing Distribution
Inferences on Two Samples Summary
Chapter 8 Estimation: Additional Topics
Chapter 10 Two-Sample Tests
Chapter 9 Estimation: Additional Topics
Presentation transcript:

Lecture 8 Estimation and Hypothesis Testing for Two Population Parameters

Lecture Goals After completing this chapter, you should be able to: Test hypotheses or form interval estimates for –two independent population means Standard deviations known Standard deviations unknown –two means from paired samples –the difference between two population proportions

Estimation for Two Populations Estimating two population values Population means, independent samples Paired samples Group 1 vs. independent Group 2 Same group before vs. after treatment Examples:

Difference Between Two Means Population means, independent samples σ 1 and σ 2 known σ 1 and σ 2 unknown, n 1 and n 2  30 σ 1 and σ 2 unknown, n 1 or n 2 < 30 Goal: Form a confidence interval for the difference between two population means, μ 1 – μ 2 The point estimate for the difference is x 1 – x 2 *

Independent Samples Population means, independent samples σ 1 and σ 2 known σ 1 and σ 2 unknown, n 1 and n 2  30 σ 1 and σ 2 unknown, n 1 or n 2 < 30 Different data sources –Unrelated –Independent Sample selected from one population has no effect on the sample selected from the other population Use the difference between 2 sample means Use z test or pooled variance t test *

Population means, independent samples σ 1 and σ 2 known σ 1 and σ 2 unknown, n 1 and n 2  30 σ 1 and σ 2 unknown, n 1 or n 2 < 30 σ 1 and σ 2 known Assumptions:  Samples are randomly and independently drawn  population distributions are normal or both sample sizes are  30  Population standard deviations are known *

Population means, independent samples σ 1 and σ 2 known σ 1 and σ 2 unknown, n 1 and n 2  30 σ 1 and σ 2 unknown, n 1 or n 2 < 30 …and the standard error of x 1 – x 2 is When σ 1 and σ 2 are known and both populations are normal or both sample sizes are at least 30, the test statistic is a z-value… (continued) σ 1 and σ 2 known *

Population means, independent samples σ 1 and σ 2 known σ 1 and σ 2 unknown, n 1 and n 2  30 σ 1 and σ 2 unknown, n 1 or n 2 < 30 The confidence interval for μ 1 – μ 2 is: σ 1 and σ 2 known (continued) *

Population means, independent samples σ 1 and σ 2 known σ 1 and σ 2 unknown, n 1 and n 2  30 σ 1 and σ 2 unknown, n 1 or n 2 < 30 σ 1 and σ 2 unknown, large samples Assumptions:  Samples are randomly and independently drawn  both sample sizes are  30  Population standard deviations are unknown *

Population means, independent samples σ 1 and σ 2 known σ 1 and σ 2 unknown, n 1 and n 2  30 σ 1 and σ 2 unknown, n 1 or n 2 < 30 σ 1 and σ 2 unknown, large samples Forming interval estimates:  use sample standard deviation s to estimate σ  the test statistic is a z value (continued) *

Population means, independent samples σ 1 and σ 2 known σ 1 and σ 2 unknown, n 1 and n 2  30 σ 1 and σ 2 unknown, n 1 or n 2 < 30 The confidence interval for μ 1 – μ 2 is: σ 1 and σ 2 unknown, large samples (continued) *

Population means, independent samples σ 1 and σ 2 known σ 1 and σ 2 unknown, n 1 and n 2  30 σ 1 and σ 2 unknown, n 1 or n 2 < 30 σ 1 and σ 2 unknown, small samples Assumptions:  populations are normally distributed  the populations have equal variances  samples are independent *

Population means, independent samples σ 1 and σ 2 known σ 1 and σ 2 unknown, n 1 and n 2  30 σ 1 and σ 2 unknown, n 1 or n 2 < 30 σ 1 and σ 2 unknown, small samples Forming interval estimates:  The population variances are assumed equal, so use the two sample standard deviations and pool them to estimate σ  the test statistic is a t value with (n 1 + n 2 – 2) degrees of freedom (continued) *

Population means, independent samples σ 1 and σ 2 known σ 1 and σ 2 unknown, n 1 and n 2  30 σ 1 and σ 2 unknown, n 1 or n 2 < 30 σ 1 and σ 2 unknown, small samples The pooled standard deviation is (continued) *

Population means, independent samples σ 1 and σ 2 known σ 1 and σ 2 unknown, n 1 and n 2  30 σ 1 and σ 2 unknown, n 1 or n 2 < 30 The confidence interval for μ 1 – μ 2 is: σ 1 and σ 2 unknown, small samples (continued) Where t  /2 has (n 1 + n 2 – 2) d.f., and *

Paired Samples 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 Paired samples d = x 1 - x 2

Paired Differences The i th paired difference is d i, where Paired samples d i = x 1i - x 2i The point estimate for the population mean paired difference is d : The sample standard deviation is n is the number of pairs in the paired sample

Paired Differences The confidence interval for d is Paired samples Where t  /2 has n - 1 d.f. and s d is: (continued) n is the number of pairs in the paired sample

Hypothesis Tests for the Difference Between Two Means Testing Hypotheses about μ 1 – μ 2 Use the same situations discussed already: –Standard deviations known or unknown –Sample sizes  30 or not  30

Hypothesis Tests for Two Population Proportions Lower tail test: H 0 : μ 1  μ 2 H A : μ 1 < μ 2 i.e., H 0 : μ 1 – μ 2  0 H A : μ 1 – μ 2 < 0 Upper tail test: H 0 : μ 1 ≤ μ 2 H A : μ 1 > μ 2 i.e., H 0 : μ 1 – μ 2 ≤ 0 H A : μ 1 – μ 2 > 0 Two-tailed test: H 0 : μ 1 = μ 2 H A : μ 1 ≠ μ 2 i.e., H 0 : μ 1 – μ 2 = 0 H A : μ 1 – μ 2 ≠ 0 Two Population Means, Independent Samples

Hypothesis tests for μ 1 – μ 2 Population means, independent samples σ 1 and σ 2 known σ 1 and σ 2 unknown, n 1 and n 2  30 σ 1 and σ 2 unknown, n 1 or n 2 < 30 Use a z test statistic Use s to estimate unknown σ, approximate with a z test statistic Use s to estimate unknown σ, use a t test statistic and pooled standard deviation

Population means, independent samples σ 1 and σ 2 known σ 1 and σ 2 unknown, n 1 and n 2  30 σ 1 and σ 2 unknown, n 1 or n 2 < 30 The test statistic for μ 1 – μ 2 is: σ 1 and σ 2 known *

Population means, independent samples σ 1 and σ 2 known σ 1 and σ 2 unknown, n 1 and n 2  30 σ 1 and σ 2 unknown, n 1 or n 2 < 30 σ 1 and σ 2 unknown, large samples The test statistic for μ 1 – μ 2 is: *

Population means, independent samples σ 1 and σ 2 known σ 1 and σ 2 unknown, n 1 and n 2  30 σ 1 and σ 2 unknown, n 1 or n 2 < 30 σ 1 and σ 2 unknown, small samples Where t  /2 has (n 1 + n 2 – 2) d.f., and The test statistic for μ 1 – μ 2 is: *

Two Population Means, Independent Samples Lower tail test: H 0 : μ 1 – μ 2  0 H A : μ 1 – μ 2 < 0 Upper tail test: H 0 : μ 1 – μ 2 ≤ 0 H A : μ 1 – μ 2 > 0 Two-tailed test: H 0 : μ 1 – μ 2 = 0 H A : μ 1 – μ 2 ≠ 0  /2  -z  -z  /2 zz z  /2 Reject H 0 if z < -z  Reject H 0 if z > z  Reject H 0 if z < -z  /2  or z > z  /2 Hypothesis tests for μ 1 – μ 2

Pooled s p t Test: Example You want to know is there a difference in the number of patients visiting dental departments of two hospitals ? You collect the following data: Hospital 1 Hospital 2 Number Sample mean Sample std dev Assuming equal variances, is there a difference in average patients (  = 0.05)?

Calculating the Test Statistic The test statistic is:

Solution H 0 : μ 1 - μ 2 = 0 i.e. (μ 1 = μ 2 ) H A : μ 1 - μ 2 ≠ 0 i.e. (μ 1 ≠ μ 2 )  = 0.05 df = = 44 Critical Values: t = ± Test Statistic: Decision: Conclusion: Reject H 0 at  = 0.05 There is evidence of a difference in means. t Reject H

The test statistic for d is Paired samples Where t  /2 has n - 1 d.f. and s d is: n is the number of pairs in the paired sample Hypothesis Testing for Paired Samples

Lower tail test: H 0 : μ d  0 H A : μ d < 0 Upper tail test: H 0 : μ d ≤ 0 H A : μ d > 0 Two-tailed test: H 0 : μ d = 0 H A : μ d ≠ 0 Paired Samples Hypothesis Testing for Paired Samples  /2  -t  -t  /2 tt t  /2 Reject H 0 if t < -t  Reject H 0 if t > t  Reject H 0 if t < -t   or t > t  Where t has n - 1 d.f. (continued)

 Assume you send your dentistry employees to a “customer service” training workshop. Is the training effective? You collect the following data: Paired Samples Example Number of Complaints: (2) - (1) Employee Before (1) After (2) Difference, d i C.B T.F M.H R.K M.O d =  didi n = -4.2

 Has the training made a difference in the number of complaints (at the 0.01 level)? - 4.2d = H 0 : μ d = 0 H A :  μ d  0 Test Statistic: Critical Value = ± d.f. = n - 1 = 4 Reject  / 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 Samples: Solution Reject  /  =.01

Two Sample Tests in EXCEL For independent samples: Independent sample Z test with variances known: –Tools | data analysis | z-test: two sample for means Independent sample Z test with large sample –Tools | data analysis | z-test: two sample for means –If the population variances are unknown, use sample variances For paired samples (t test): –Tools | data analysis… | t-test: paired two sample for means

Summary Compared two independent samples –Formed confidence intervals for the differences between two means –Performed Z test for the differences in two means –Performed t test for the differences in two means Compared two related samples (paired samples) –Formed confidence intervals for the paired difference –Performed paired sample t tests for the mean difference