Hypothesis Testing – Two Samples

Slides:



Advertisements
Similar presentations
© 2002 Prentice-Hall, Inc.Chap 10-1 Statistics for Managers using Microsoft Excel 3 rd Edition Chapter 10 Tests for Two or More Samples with Categorical.
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.
Pengujian Hipotesis Varians dan Kesamaan Varians Pertemuan 22 Matakuliah: I0134/Metode Statistika Tahun: 2007.
© 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.
© 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)
Chapter 11 Hypothesis Tests and Estimation for Population Variances
© 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.
© 2011 Pearson Education, Inc. Statistics for Business and Economics Chapter 7 Inferences Based on Two Samples: Confidence Intervals & Tests of Hypotheses.
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.
© 2004 Prentice-Hall, Inc.Chap 12-1 Basic Business Statistics (9 th Edition) Chapter 12 Tests for Two or More Samples with Categorical Data.
Business Statistics: A Decision-Making Approach, 7e © 2008 Prentice-Hall, Inc. Chap 11-1 Business Statistics: A Decision-Making Approach 7 th Edition Chapter.
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.
Business Statistics: A Decision-Making Approach, 6e © 2005 Prentice-Hall, Inc. Chap th Lesson Hypothesis Tests for One and Two Population Variances.
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.
Chapter 10 Statistical Inferences Based on Two Samples Statistics for Business (Env) 1.
Chap 10-1 A Course In Business Statistics, 4th © 2006 Prentice-Hall, Inc. A Course In Business Statistics 4 th Edition Chapter 10 Hypothesis Tests for.
Business Statistics: A First Course (3rd Edition)
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.
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.
Lecture 8 Estimation and Hypothesis Testing for Two Population Parameters.
10-1 Copyright ©2011 Pearson Education, Inc. publishing as Prentice Hall Chapter 10 Two-Sample Tests Statistics for Managers using Microsoft Excel 6 th.
9 - 1 © 2003 Pearson Prentice Hall F-Test for Two Variances 1.Tests for Differences in 2 Population Variances 2.Assumptions Both Populations Are Normally.
8 - 1 © 1998 Prentice-Hall, Inc. Statistics for Managers Using Microsoft Excel, 1/e Statistics for Managers Using Microsoft Excel Two-Sample & c-Sample.
8-1 Copyright © 2014, 2011, and 2008 Pearson Education, Inc.
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.
Data Mining 2016/2017 Fall MIS 331 Chapter 2 Sampliing Distribution
Chapter 10 Two-Sample Tests and One-Way ANOVA.
Statistics for Business and Economics
Data Mining 2016/2017 Fall MIS 331 Chapter 2 Sampliing Distribution
Chapter 11 Hypothesis Tests and Estimation for Population Variances
Chapter 10 Hypothesis Tests for One and Two Population Variances
Chapter 10 Two-Sample Tests
Presentation transcript:

Hypothesis Testing – Two Samples Chapters 12 & 13

Chapter Topics Comparing Two Independent Samples Independent samples Z test for the difference in two means Pooled-variance t test for the difference in two means F Test for the Difference in Two Variances Comparing Two Related Samples Paired-sample Z test for the mean difference Paired-sample t test for the mean difference Two-sample Z test for population proportions Independent and Dependent Samples

Comparing Two Independent Samples Different Data Sources Unrelated Independent Sample selected from one population has no effect or bearing on the sample selected from the other population Use the Difference between 2 Sample Means Use Z Test or t Test for Independent Samples

Independent Sample Z Test (Variances Known) Assumptions Samples are randomly and independently drawn from normal distributions Population variances are known Test Statistic

t Test for Independent Samples (Variances Unknown) Assumptions Both populations are normally distributed Samples are randomly and independently drawn Population variances are unknown but assumed equal If both populations are not normal, need large sample sizes

Developing the t Test for Independent Samples Setting Up the Hypotheses H0: m 1 = m 2 H1: m 1 ¹ m 2 H0: m 1 -m 2 = 0 H1: m 1 - m 2 ¹ 0 Two Tail OR H0: m 1 £ m 2 H1: m 1 > m 2 H0: m 1 - m 2 £ 0 H1: m 1 - m 2 > 0 Right Tail OR H0: m 1 ³ m 2 H0: m 1 - m 2 ³ 0 H1: m 1 - m 2 < 0 Left Tail OR H1: m 1 < m 2

Developing the t Test for Independent Samples (continued) Calculate the Pooled Sample Variance as an Estimate of the Common Population Variance

Developing the t Test for Independent Samples (continued) Compute the Sample Statistic Hypothesized difference

t Test for Independent Samples: Example You’re a financial analyst for Charles Schwab. Is there a difference in average 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 equal variances, is there a difference in average yield (a = 0.05)? © 1984-1994 T/Maker Co.

Calculating the Test Statistic

Solution .025 .025 t H0: m1 - m2 = 0 i.e. (m1 = m2) a = 0.05 df = 21 + 25 - 2 = 44 Critical Value(s): Test Statistic: Decision: Conclusion: Reject H Reject H Reject at a = 0.05. .025 .025 There is evidence of a difference in means. -2.0154 2.0154 t 2.03

(p-Value is between .02 and .05) < (a = 0.05) Reject. p -Value Solution (p-Value is between .02 and .05) < (a = 0.05) Reject. p-Value 2 is between .01 and .025 Reject Reject a 2 =.025 Z -2.0154 2.0154 2.03 Test Statistic 2.03 is in the Reject Region

Example You’re a financial analyst for Charles Schwab. You collect the following data: NYSE NASDAQ Number 21 25 Sample Mean 3.27 2.53 Sample Std Dev 1.30 1.16 You want to construct a 95% confidence interval for the difference in population average yields of the stocks listed on NYSE and NASDAQ. © 1984-1994 T/Maker Co.

Example: Solution

Independent Sample (Two Sample) t- Test in JMP Independent Sample t Test with Variances Known Analyze | Fit Y by X | Measurement in Y box (Continuous) | Grouping Variable in X box (Nominal) |  | Means/Anova/Pooled t

Comparing Two Related Samples Test the Means of Two Related Samples Paired or matched Repeated measures (before and after) Use difference between pairs Eliminates Variation between Subjects

Z Test for Mean Difference (Variance Known) Assumptions Both populations are normally distributed Observations are paired or matched Variance known Test Statistic

t Test for Mean Difference (Variance Unknown) Assumptions Both populations are normally distributed Observations are matched or paired Variance unknown If population not normal, need large samples Test Statistic

Dependent-Sample t Test: Example Assume you work in the finance department. Is the new financial package faster (a=0.05 level)? You collect the following processing times: User Existing System (1) New Software (2) Difference Di C.B. 9.98 Seconds 9.88 Seconds .10 T.F. 9.88 9.86 .02 M.H. 9.84 9.75 .09 R.K. 9.99 9.80 .19 M.O. 9.94 9.87 .07 D.S. 9.84 9.84 .00 S.S. 9.86 9.87 - .01 C.T. 10.12 9.98 .14 K.T. 9.90 9.83 .07 S.Z. 9.91 9.86 .05

Dependent-Sample t Test: Example Solution Is the new financial package faster (0.05 level)? H0: mD £ 0 H1: mD > 0 Reject a =.05 D = .072 a =.05 Critical Value=1.8331 df = n - 1 = 9 1.8331 3.66 Decision: Reject H0 t Stat. in the rejection zone. Test Statistic Conclusion: The new software package is faster.

Confidence Interval Estimate for of Two Dependent Samples Assumptions Both populations are normally distributed Observations are matched or paired Variance is unknown Confidence Interval Estimate:

Example Assume you work in the finance department. You want to construct a 95% confidence interval for the mean difference in data entry time. You collect the following processing times: User Existing System (1) New Software (2) Difference Di C.B. 9.98 Seconds 9.88 Seconds .10 T.F. 9.88 9.86 .02 M.H. 9.84 9.75 .09 R.K. 9.99 9.80 .19 M.O. 9.94 9.87 .07 D.S. 9.84 9.84 .00 S.S. 9.86 9.87 - .01 C.T. 10.12 9.98 .14 K.T. 9.90 9.83 .07 S.Z. 9.91 9.86 .05

Solution:

F Test for Difference in Two Population Variances Test for the Difference in 2 Independent Populations Parametric Test Procedure Assumptions Both populations are normally distributed Test is not robust to this violation Samples are randomly and independently drawn

The F Test Statistic F = Variance of Sample 1 = Variance of Sample 2 n1 - 1 = degrees of freedom = Variance of Sample 2 n2 - 1 = degrees of freedom F

Developing the F Test Hypotheses Test Statistic H0: s12 = s22 H1: s12 ¹ s22 Test Statistic F = S12 /S22 Two Sets of Degrees of Freedom df1 = n1 - 1; df2 = n2 - 1 Critical Values: FL( ) and FU( ) FL = 1/FU* (*degrees of freedom switched) Reject H0 Reject H0 Do Not Reject a/2 a/2 FL FU F n1 -1, n2 -1 n1 -1 , n2 -1

Developing the F Test Easier Way Test Statistic Put the largest in the num. Test Statistic F = S12 /S22 Reject H0 Do Not Reject a F F

F Test: An Example Assume you are a financial analyst for Charles Schwab. You want to compare dividend yields between stocks listed on the NYSE & NASDAQ. You collect the following data: NYSE NASDAQ Number 21 25 Mean 3.27 2.53 Std Dev 1.30 1.16 Is there a difference in the variances between the NYSE & NASDAQ at the a = 0.05 level? © 1984-1994 T/Maker Co.

F Test: Example Solution Finding the Critical Values for a = .05

F Test: Example Solution Test Statistic: Decision: Conclusion: H0: s12 = s22 H1: s12 ¹ s22 a = .05 df1 = 20 df2 = 24 Critical Value(s): Reject Do not reject at a = 0.05. .05 There is insufficient evidence to prove a difference in variances. F 2.33 1.25

F Test: One-Tail H0: s12 ³ s22 H0: s12 £ s22 or H1: s12 < s22 Degrees of freedom switched Reject Reject a = .05 a = .05 F F

F Test: One-Tail Easier Way Test Statistic Put the largest in the num. F = S12 /S22 Reject H0 Do Not Reject a F F

Z Test for Differences in Two Proportions (Independent Samples) What is It Used For? To determine whether there is a difference between 2 population proportions and whether one is larger than the other Assumptions: Independent samples Population follows binomial distribution Sample size large enough: np  5 and n(1-p)  5 for each population

Z Test Statistic

The Hypotheses for the Z Test Research Questions No Difference Prop 1  Prop 2 Prop 1  Prop 2 Hypothesis Any Difference Prop 1 < Prop 2 Prop 1 > Prop 2 p - p = 0 p - p  p - p  H 1 2 1 2 1 2 p - p < 0 p - p > 0 H p - p  1 1 2 1 2 1 2

Z Test for Differences in Two Proportions: Example As personnel director, you want to test the perception of fairness of two methods of performance evaluation. 63 of 78 employees rated Method 1 as fair. 49 of 82 rated Method 2 as fair. At the 0.01 significance level, is there a difference in perceptions? 

Calculating the Test Statistic

Z Test for Differences in Two Proportions: Solution H0: p1 - p2 = 0 H1: p1 - p2  0  = 0.01 n1 = 78 n2 = 82 Critical Value(s): Test Statistic: Decision: Conclusion: Z  2 . 90 Reject at  = 0.01. Reject H Reject H .005 .005 There is evidence of a difference in proportions. -2.58 2.58 Z

Confidence Interval for Differences in Two Proportions The Confidence Interval for Differences in Two Proportions

Confidence Interval for Differences in Two Proportions: Example As personnel director, you want to find out the perception of fairness of two methods of performance evaluation. 63 of 78 employees rated Method 1 as fair. 49 of 82 rated Method 2 as fair. Construct a 99% confidence interval for the difference in two proportions. 

Confidence Interval for Differences in Two Proportions: Solution We are 99% confident that the difference between two proportions is somewhere between 0.0294 and 0.3909.

Z Test for Differences in Two Proportions (Dependent Samples) What is It Used For? To determine whether there is a difference between 2 population proportions and whether one is larger than the other Assumptions: Dependent samples Population follows binomial distribution Sample size large enough: np  5 and n(1-p)  5 for each population

Z Test Statistic for Dependent Samples Sample Two Category 1 Category 2 Sample One a b a+b c d c+d a+c b+d N This Z can be used when a+d>10 If 10<a+d<20, use the correction in the text

Unit Summary Compared Two Independent Samples Performed Z test for the differences in two means Performed t test for the differences in two means Performed Z test for differences in two proportions Addressed F Test for Difference in Two Variances

Unit Summary Compared Two Related Samples Performed dependent sample Z tests for the mean difference Performed dependent sample t tests for the mean difference Performed Z tests for proportions using dependent samples