12.5 Differences between Means (s’s known)

Slides:



Advertisements
Similar presentations
Statistics Review – Part II Topics: – Hypothesis Testing – Paired Tests – Tests of variability 1.
Advertisements

Chapter 12 Tests of Hypotheses Means 12.1 Tests of Hypotheses 12.2 Significance of Tests 12.3 Tests concerning Means 12.4 Tests concerning Means(unknown.
Ch 12.1 – one sample test about the mean There are four parts to a complete inference solution and AP grading rubric 1 – State the null and alternative.
Section 9.3 Inferences About Two Means (Independent)
Chapter 10 Section 2 Hypothesis Tests for a Population Mean
STATISTICAL INFERENCE PART V
Confidence Interval and Hypothesis Testing for:
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Statistics for Business and Economics 7 th Edition Chapter 10 Hypothesis Testing:
1 Matched Samples The paired t test. 2 Sometimes in a statistical setting we will have information about the same person at different points in time.
Copyright © Cengage Learning. All rights reserved. 9 Inferences Based on Two Samples.
Inference for distributions: - Comparing two means IPS chapter 7.2 © 2006 W.H. Freeman and Company.
Chapter 9 Hypothesis Tests. The logic behind a confidence interval is that if we build an interval around a sample value there is a high likelihood that.
PSY 307 – Statistics for the Behavioral Sciences
10-1 Introduction 10-2 Inference for a Difference in Means of Two Normal Distributions, Variances Known Figure 10-1 Two independent populations.
SADC Course in Statistics Comparing Means from Independent Samples (Session 12)
BCOR 1020 Business Statistics Lecture 22 – April 10, 2008.
Chap 11-1 Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chapter 11 Hypothesis Testing II Statistics for Business and Economics.
BCOR 1020 Business Statistics
Business Statistics: A Decision-Making Approach, 6e © 2005 Prentice-Hall, Inc. Chap 9-1 Introduction to Statistics Chapter 10 Estimation and Hypothesis.
1/45 Chapter 11 Hypothesis Testing II EF 507 QUANTITATIVE METHODS FOR ECONOMICS AND FINANCE FALL 2008.
Tuesday, October 22 Interval estimation. Independent samples t-test for the difference between two means. Matched samples t-test.
A Decision-Making Approach
Inference about a Mean Part II
Business Statistics: A Decision-Making Approach, 7e © 2008 Prentice-Hall, Inc. Chap 10-1 Business Statistics: A Decision-Making Approach 7 th Edition Chapter.
Chapter 11: Inference for Distributions
Two-sample problems for population means BPS chapter 19 © 2006 W.H. Freeman and Company.
Basic Business Statistics, 10e © 2006 Prentice-Hall, Inc. Chap 10-1 Chapter 10 Two-Sample Tests Basic Business Statistics 10 th Edition.
Week 9 October Four Mini-Lectures QMM 510 Fall 2014.
Experimental Statistics - week 2
Lab 5 Hypothesis testing and Confidence Interval.
Two Sample Tests Ho Ho Ha Ha TEST FOR EQUAL VARIANCES
Hypothesis testing – mean differences between populations
Copyright © Cengage Learning. All rights reserved. 13 Linear Correlation and Regression Analysis.
More About Significance Tests
STATISTICAL INFERENCE PART VII
Two Sample Tests Nutan S. Mishra Department of Mathematics and Statistics University of South Alabama.
Chapter 9 Hypothesis Testing and Estimation for Two Population Parameters.
PowerPoint presentations prepared by Lloyd Jaisingh, Morehead State University Statistical Inference: Hypotheses testing for single and two populations.
Section 9.2 Testing the Mean  9.2 / 1. Testing the Mean  When  is Known Let x be the appropriate random variable. Obtain a simple random sample (of.
Chapter 10 Comparing Two Means Target Goal: I can use two-sample t procedures to compare two means. 10.2a h.w: pg. 626: 29 – 32, pg. 652: 35, 37, 57.
One Sample Inf-1 If sample came from a normal distribution, t has a t-distribution with n-1 degrees of freedom. 1)Symmetric about 0. 2)Looks like a standard.
Copyright (c) 2004 Brooks/Cole, a division of Thomson Learning, Inc. Chapter 9 Inferences Based on Two Samples.
Basic Business Statistics, 11e © 2009 Prentice-Hall, Inc. Chap 10-1 Chapter 2c Two-Sample Tests.
Pengujian Hipotesis Dua Populasi By. Nurvita Arumsari, Ssi, MSi.
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.
Two sample problems:  compare the responses in two groups  each group is a sample from a distinct population  responses in each group are independent.
Bennie D Waller, Longwood University Hypothesis testing Bennie Waller Longwood University 201 High Street Farmville,
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.
Two-Sample Hypothesis Testing. Suppose you want to know if two populations have the same mean or, equivalently, if the difference between the population.
Statistical Inference for the Mean Objectives: (Chapter 9, DeCoursey) -To understand the terms: Null Hypothesis, Rejection Region, and Type I and II errors.
Chapter 9: Testing Hypotheses Overview Research and null hypotheses One and two-tailed tests Type I and II Errors Testing the difference between two means.
Hypothesis Testing Errors. Hypothesis Testing Suppose we believe the average systolic blood pressure of healthy adults is normally distributed with mean.
WS 2007/08Prof. Dr. J. Schütze, FB GW KI 1 Hypothesis testing Statistical Tests Sometimes you have to make a decision about a characteristic of a population.
Statistical Inference Statistical inference is concerned with the use of sample data to make inferences about unknown population parameters. For example,
STATISTICAL INFERENCE PART VI HYPOTHESIS TESTING 1.
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.
ENGR 610 Applied Statistics Fall Week 7 Marshall University CITE Jack Smith.
Inference for Distributions 7.2 Comparing Two Means © 2012 W.H. Freeman and Company.
6.3 One- and Two- Sample Inferences for Means. If σ is unknown Estimate σ by sample standard deviation s The estimated standard error of the mean will.
Lecture 8 Estimation and Hypothesis Testing for Two Population Parameters.
Inference for distributions: - Comparing two means.
Chapter 12 Tests of Hypotheses Means 12.1 Tests of Hypotheses 12.2 Significance of Tests 12.3 Tests concerning Means 12.4 Tests concerning Means(unknown.
Statistical Inference for the Mean Objectives: (Chapter 8&9, DeCoursey) -To understand the terms variance and standard error of a sample mean, Null Hypothesis,
Chapter 10: The t Test For Two Independent Samples.
Significance Test for the Difference of Two Proportions
Two-Sample Hypothesis Testing
Math 4030 – 10a Tests for Population Mean(s)
Elementary Statistics
Presentation transcript:

12.5 Differences between Means (s’s known) Two populations: (1, 1) & (2, 2) Two samples: one from each population Two sample means and sample sizes: n1 & n2 Compare two population means: H0: 1-2= (=0 in most cases) Alternatives: 1-2>; 1-2<; 1-2 We are testing whether the two populations are the same if delta=0.

Let’s go through a two sided alternative H0: 1-2=0 vs HA: 1-2≠0 Reject H0 if is too far from zero in either direction. How far from zero might be if 1-2=0? Sampling distribution of is asymptotically normal with mean 0 and standard deviation We need to know

Fact: If the sample means are from independent samples, then

Thus under certain assumptions: Correspondingly, a confidence interval for m1-m2 is

Assumptions 1 & 2 are known Normal populations or large sample sizes Under null hypothesis is (asymptotically) standard normal

Rejection Regions: 1-2> 1-2< 1-2 Rejection Regions Alternative Hypotheses 1-2> 1-2< 1-2 Rejection Regions z>z z<-z z>z/2 or z<-z/2

Example 12.4 Two labs measure the specific gravity of metal. On average do the two labs give the same answer? 1 -- Population mean by lab1 2 -- Population mean by lab2 H0: 1=2 vs HA: 12 1=0.02, n1=20, 2=0.03, n2=25,

95% Confidence Interval from –0.014 to 0.016

Two-tailed Hypotheses Test Two sample test Rejection region: |Z|>z0.025=1.96 Conclusion: Don’t reject H0.

Rejection Regions Alternative Hypotheses HA: 1>2 HA: 1<2 z>z z<-z z>z/2 or z<-z/2

Exercise An investigation of two kinds of photocopying equipment showed that a random sample of 60 failures of one kind of equipment took on the average 84.2 minutes to repair, while a random sample of 60 failures of another kind of equipment took on the average 91.6 minutes to repair. If, on the basis of collateral information, it can be assumed that s1=s2=19.0 minutes for such data, test at the 0.02 level of significance whether the difference between these two sample means is significant.

12.6 Differences Between Means (unknown equal variances) Large samples n130; n230 Small samples 1. 1=2 2. 12

Large Samples n130; n230 Estimate 1 and 2 by s1 and s2 Set

Rejection Regions Alternative Hypotheses HA: 1>2 HA: 1<2 z>z z<-z z>z/2 or z<-z/2

Small Samples 1=2= unknown Two populations are normal Standard error Estimate the common variance

Pooled standard deviation Using both s12 and s22 to estimate 2, we combine these estimates, weighting each by its d.f.. The combined estimate of 2 is sp2, the pooled estimate: Estimate  by sp

Two-Sample T-test T-test (t distribution with df=n1+n2-2) 100(1-)% CI Hypothesized m1-m2

Example 12.5 Compare blood pressures Two populations: common variance =0.05 n1=10, s1=16.2, n2=12, s2=14.3,

CI & test sp=15.2 df=10+12-2=20 Critical value t0.025=2.086 t statistic: reject H0 if |t|>2.086 Conclusion? Don’t Reject. CI: -122.086(6.51)=-12 13.6 -1.6 to 25.6

What happens when variances are not equal? Testing: H0: m1-m2=δ. Normal population s1 and s2 are not necessarily equal s1 and s2 unknown

Two sample t-test with unequal variances d.f. =min(n1-1, n2-1)

Exercise In a department store’s study designed to test whether or not the mean balance outstanding on 30-day charge accounts is the same in its two suburban branch stores, random samples yielded the following results: Use the 0.05 level of significance to test the null hypothesis m1-m2=0.

12.7 Paired Data 1982 study of trace metals in South Indian River. 6 random locations 5 3 1 6 2 4 T=top water zinc concentration (mg/L) B=bottom water zinc (mg/L) 1 2 3 4 5 6 Top 0.415 0.238 0.390 0.410 0.605 0.609 Bottom 0.430 0.266 0.567 0.531 0.707 0.716

One of the first things to do when analyzing data is to PLOT the data This is not a useful way to plot the data. There is not a clear distinction between bottom water and top water zinc—even though Bottom>Top at all 6 locations. Top Bottom

A better way Top Bottom Connect points in the same pair.

A better way Bottom=Top The plot suggests that mBottom>mTop. Is it true?

That is equivalent to ask: is it true that mdifference>0? 1 2 3 4 5 6 Top 0.415 0.238 0.390 0.410 0.605 0.609 Bottom 0.430 0.266 0.567 0.531 0.707 0.716 D=B-T 0.015 0.028 0.177 0.121 0.102 0.107 Ho: mD=0 vs HA: mD>0

First check the assumption that the population is normal

Doing a one-sided test Ho: mD=0 vs HA: mD>0 t0.05 at 5 d.f. is 2.015. So anything greater than 2.015 will be an evidence against H0. We reject H0: mB-T=0 in favor of HA: mB-T>0.

Another example The average weekly losses of man-hours due to accidents in 10 industrial plants before and after installation of an elaborate safety program: Plants 1 2 3 4 5 6 7 8 9 10 Before 45 73 46 124 33 57 83 34 26 17 After 36 60 44 119 35 51 77 29 24 11 diff(B-A) 9 13 2 5 -2 6 6 5 2 6 Is the safety program effective? (level=0.05)

Two Populations: Before and After Normal? Independent? No, No

Normal Probability Plots Small sizes Skew to right somehow

Normal Probability Plot for Difference Looks better

Consider the Differences Paired Observations:before and after the installation of safety program are from the same plants (dependent) Data from different plants may be independent Diff: 9 13 2 5 -2 6 6 5 2 6

Set up a Test—Paired T-Test ‘effective’ means the program reduces the accidents, i.e., before > after (D>0) =difference of average accidents H0: D=0 vs HA: D>0 The procedure is the same as the one- sample t-test Df=n-1

Rejection Regions for Paired T-test Alternative Hypotheses D> D< D Rejection Regions t>t t<-t t>t/2 or t<-t/2

Paired t-test One-tailed test Critical value: df=9, t0.05=1.833 Sample mean & standard deviation: t-statistic: Conclusion: reject H0 since t=4.03>1.833