STA Module 11 Inferences for Two Population Means

Similar documents
STA Rev. F Learning Objectives. Two Population Means. Module 11 Inferences for Two Population Means

Chapter 24. Comparing Means. Copyright 2010 Pearson Education, Inc.

STA Module 10 Comparing Two Proportions

STA Module 8 The Sampling Distribution of the Sample Mean. Rev.F08 1

STA Module 4 Probability Concepts. Rev.F08 1

T.I.H.E. IT 233 Statistics and Probability: Sem. 1: 2013 ESTIMATION AND HYPOTHESIS TESTING OF TWO POPULATIONS

STA Why Sampling? Module 6 The Sampling Distributions. Module Objectives

Chapter 24. Comparing Means

STA Module 5 Regression and Correlation. Learning Objectives. Learning Objectives (Cont.) Upon completing this module, you should be able to:

CHAPTER 10 Comparing Two Populations or Groups

CHAPTER 10 Comparing Two Populations or Groups

Chapter 23. Inferences About Means. Monday, May 6, 13. Copyright 2009 Pearson Education, Inc.

Chapter 23: Inferences About Means

Stat 427/527: Advanced Data Analysis I

AMS7: WEEK 7. CLASS 1. More on Hypothesis Testing Monday May 11th, 2015

CHAPTER 10 Comparing Two Populations or Groups

STA Learning Objectives. Population Proportions. Module 10 Comparing Two Proportions. Upon completing this module, you should be able to:

STAT 512 MidTerm I (2/21/2013) Spring 2013 INSTRUCTIONS

appstats27.notebook April 06, 2017

Lecture Slides. Elementary Statistics. by Mario F. Triola. and the Triola Statistics Series

Chapter 27 Summary Inferences for Regression

Inferences for Regression

Chapter 7. Inference for Distributions. Introduction to the Practice of STATISTICS SEVENTH. Moore / McCabe / Craig. Lecture Presentation Slides

Module 10 Polar Form of Complex Numbers

MAC Learning Objectives. Module 7 Additional Equations and Inequalities. Let s Review Some Properties of Rational Exponents

MAC Module 7 Additional Equations and Inequalities. Rev.S08

Multivariate Statistical Analysis

MAC Module 2 Systems of Linear Equations and Matrices II. Learning Objectives. Upon completing this module, you should be able to :

CIVL /8904 T R A F F I C F L O W T H E O R Y L E C T U R E - 8

Stats Review Chapter 14. Mary Stangler Center for Academic Success Revised 8/16

Ch18 links / ch18 pdf links Ch18 image t-dist table

Two-Sample Inferential Statistics

Difference between means - t-test /25

STA 101 Final Review

Review: General Approach to Hypothesis Testing. 1. Define the research question and formulate the appropriate null and alternative hypotheses.

MAC Module 2 Modeling Linear Functions. Rev.S08

7.2 One-Sample Correlation ( = a) Introduction. Correlation analysis measures the strength and direction of association between

Multiple samples: Modeling and ANOVA

STAT Chapter 8: Hypothesis Tests

Inference for Single Proportions and Means T.Scofield

MAC Module 9 Introduction to Vectors. Rev.S08

Business Statistics. Lecture 10: Course Review

9.5 t test: one μ, σ unknown

Statistics Primer. ORC Staff: Jayme Palka Peter Boedeker Marcus Fagan Trey Dejong

Questions 3.83, 6.11, 6.12, 6.17, 6.25, 6.29, 6.33, 6.35, 6.50, 6.51, 6.53, 6.55, 6.59, 6.60, 6.65, 6.69, 6.70, 6.77, 6.79, 6.89, 6.

Warm-up Using the given data Create a scatterplot Find the regression line

An inferential procedure to use sample data to understand a population Procedures

MAC Module 12 Eigenvalues and Eigenvectors

Business Statistics. Lecture 5: Confidence Intervals

LAB 2. HYPOTHESIS TESTING IN THE BIOLOGICAL SCIENCES- Part 2

4.1 Hypothesis Testing

Inference in Regression Analysis

Lecture Slides. Elementary Statistics Eleventh Edition. by Mario F. Triola. and the Triola Statistics Series 9.1-1

MAC Learning Objectives. Logarithmic Functions. Module 8 Logarithmic Functions

MAC Module 5 Vectors in 2-Space and 3-Space II

Chapter 8: Estimating with Confidence

Testing Research and Statistical Hypotheses

Test 3 Practice Test A. NOTE: Ignore Q10 (not covered)

Chapter 22. Comparing Two Proportions 1 /29

You may not use your books/notes on this exam. You may use calculator.

POLI 443 Applied Political Research

Chapter 9. Inferences from Two Samples. Objective. Notation. Section 9.2. Definition. Notation. q = 1 p. Inferences About Two Proportions

Comparing Means from Two-Sample

Important note: Transcripts are not substitutes for textbook assignments. 1

Inference for the mean of a population. Testing hypotheses about a single mean (the one sample t-test). The sign test for matched pairs

Exam 2 (KEY) July 20, 2009

Nature vs. nurture? Lecture 18 - Regression: Inference, Outliers, and Intervals. Regression Output. Conditions for inference.

Basic Business Statistics 6 th Edition

HYPOTHESIS TESTING. Hypothesis Testing

Chapter 12 - Lecture 2 Inferences about regression coefficient

Section 9.4. Notation. Requirements. Definition. Inferences About Two Means (Matched Pairs) Examples

Chapter 22. Comparing Two Proportions 1 /30

Module 8: Linear Regression. The Applied Research Center

The t-test: A z-score for a sample mean tells us where in the distribution the particular mean lies

Statistics for Managers using Microsoft Excel 6 th Edition

Multiple Regression Analysis

Data Analysis and Statistical Methods Statistics 651

Sampling Distributions: Central Limit Theorem

Advanced Experimental Design

Epidemiology Principles of Biostatistics Chapter 10 - Inferences about two populations. John Koval

Multiple Linear Regression for the Salary Data

The goodness-of-fit test Having discussed how to make comparisons between two proportions, we now consider comparisons of multiple proportions.

Randomized Complete Block Designs

Analysis of variance (ANOVA) Comparing the means of more than two groups

Chapter 23. Inference About Means

1 Introduction to One-way ANOVA

FRANKLIN UNIVERSITY PROFICIENCY EXAM (FUPE) STUDY GUIDE

Chapter 5 Confidence Intervals

MAC Learning Objectives. Learning Objectives (Cont.) Module 10 System of Equations and Inequalities II

Hypothesis testing I. - In particular, we are talking about statistical hypotheses. [get everyone s finger length!] n =

Tables Table A Table B Table C Table D Table E 675

MAC Learning Objectives. Learning Objectives. Module 1 Introduction to Functions and Graphs

Simple Linear Regression for the Climate Data

INFERENCE FOR REGRESSION

Introduction to Business Statistics QM 220 Chapter 12

Confidence Intervals with σ unknown

Formal Statement of Simple Linear Regression Model

Chapter 12: Estimation

hypotheses. P-value Test for a 2 Sample z-test (Large Independent Samples) n > 30 P-value Test for a 2 Sample t-test (Small Samples) n < 30 Identify α

Chapter 9 Inferences from Two Samples

Transcription:

STA 2023 Module 11 Inferences for Two Population Means

Learning Objectives Upon completing this module, you should be able to: 1. Perform inferences based on independent simple random samples to compare the means of two populations when the population standard deviations are unknown but are assumed to be equal. 2. Perform inferences based on independent simple random samples to compare the means of two populations when the population standard deviations are unknown but are not assumed to be equal. Rev.F08 2

Two Population Means In the previous two modules, we learned how to obtain confidence intervals and perform hypothesis tests for one population mean. Sometimes, however, we might want to perform a hypothesis test to decide whether the mean price of single family homes at Orlando is greater than the mean price of single family homes at Cocoa; or, we might want to find a confidence interval for the difference between the two mean prices. In this module, we are going to learn how to perform inferences for two populations means when the population standard deviations are unknown. Rev.F08 3

Comparing Two Groups The natural display for comparing two groups is boxplots of the data for the two groups, placed sideby-side. For example: Rev.F08 4

Comparing Two Means Once we have examined the side-byside boxplots, we can turn to the comparison of two means. The parameter of interest is the difference between the two means, µ 1 µ 2. Rev.F08 5

Comparing Two Means Remember that, for independent random quantities, variances add. So, the standard deviation of the difference between two sample means is 2 2!! SD y ( y ) " = + n We still don t know the true standard deviations (population standard deviations) of the two groups, so we need to estimate and use the standard error. SE y ( ) Rev.F08 6 n s! y = + n s n 2 2

Comparing Two Means (Cont.) Rev.F08 7

Comparing Two Means (Cont.) Because we are working with means and estimating the standard error of their difference using the data, we shouldn t be surprised that the sampling model is a Student s t. The confidence interval we build is called a twosample t-interval (for the difference in means). The corresponding hypothesis test is called a twosample hypothesis test. Rev.F08 8

Sampling Distribution for the Difference Between Two Means When the conditions are met, the standardized sample difference between the means of two independent groups ( y1! y2 )!( µ 1! µ 2 ) t = SE y! y ( ) can be modeled by a Student s t-model with a number of degrees of freedom found with a special formula. We estimate the standard error with SE y s s! = + n n ( y ) 2 2 Rev.F08 9

Assumptions and Conditions Independence Assumption (Each condition needs to be checked for both groups.): Randomization Condition: Were the data collected with suitable randomization (representative random samples or a randomized experiment)? 10% Condition: We don t usually check this condition for differences of means. We will check it for means only if we have a very small population or an extremely large sample. Rev.F08 10

Assumptions and Conditions (cont.) Normal Population Assumption: Nearly Normal Condition: This must be checked for both groups. A violation by either one violates the condition. Independent Groups Assumption: The two groups we are comparing must be independent of each other. Rev.F08 11

Two-Sample t-interval When the conditions are met, we are ready to find the confidence interval for the difference between means of two independent groups. The confidence interval is y " y ± t # SE y " y ( )! ( ) df where the standard error of the difference of the means is 2 2 s1 s2 SE( y1! y2 ) = + n1 n2 The critical value depends on the particular confidence level, C, that you specify and on the number of degrees of freedom, which we get from the sample sizes and a special formula. Rev.F08 12

Degrees of Freedom The special formula for the degrees of freedom for our 2 t critical value is: 2 2! s1 s " 2 # + $ % n n & 2 2 2 2 1 s2 1! s " 1! " # $ + # $ n1 ' 1% n1 & n2 ' 1% n2 & Because of this, we will let technology calculate degrees of freedom for us! df = Rev.F08 13

Testing the Difference Between Two Means The hypothesis test we use is the two-sample t-test for means. The conditions for the two-sample t-test for the difference between the means of two independent groups are the same as for the two-sample t-interval. Rev.F08 14

Testing the Difference Between Two Means (cont.) We test the hypothesis H 0 :µ 1 µ 2 = Δ 0, where the hypothesized difference, Δ 0, is almost always 0, using the statistic t = ( y! y )! " SE( y! y ) 0 The standard error is 2 2 s1 s2 SE( y1! y2 ) = + n1 n2 When the conditions are met and the null hypothesis is true, this statistic can be closely modeled by a Student s t-model with a number of degrees of freedom given by a special formula. We use that model to obtain a P-value. Rev.F08 15

Why Pooling the Data? If we are willing to assume that the variances of two means are equal, we can pool the data from two groups to estimate the common variance and make the degrees of freedom formula much simpler. We are still estimating the pooled standard deviation from the data, so we use Student s t-model, and the test is called a pooled t-test. Rev.F08 16

The Pooled t-test If we assume that the variances are equal, we can estimate the common variance from the numbers we already have: 2 2 2 ( n1! 1) s1 + ( n2! 1) s2 spooled = n! 1 + n! 1 ( ) ( ) Substituting into our standard error formula, we get: 1 1 SEpooled ( y1! y2 ) = spooled + n n Our degrees of freedom are now df = n 1 + n 2 2. Rev.F08 17

The Pooled t-test and Confidence Interval The conditions for the pooled t-test and corresponding confidence interval are the same as for our earlier two-sample t procedures, with the assumption that the variances of the two groups are the same. For the hypothesis test, our test statistic is t = ( y1! y2 )! " 0 (! ) SE y y pooled which has df = n 1 + n 2 2. Our confidence interval is y " y ± t # SE y " y ( ) ( )! df pooled Rev.F08 18

Is There Ever a Time When Assuming Equal Variances Makes Sense? Yes. In a randomized comparative experiment, we start by assigning our experimental units to treatments at random. Each treatment group therefore begins with the same population variance. In this case assuming the variances are equal is still an assumption, and there are conditions that need to be checked, but at least it s a plausible assumption. Rev.F08 19

What Can Go Wrong? Watch out for paired data. The Independent Groups Assumption deserves special attention. If the samples are not independent, you can t use two-sample methods. Look at the plots. Check for outliers and non-normal distributions by making and examining boxplots. Rev.F08 20

How to Perform a Pooled t-test? Rev.F08 21

How to Perform a Pooled t-test? (Cont.) Rev.F08 22

How to Perform a Pooled t-interval? Rev.F08 23

What if the Variances are Not Equal? If the variances of two means are not equal, then the standard deviations of two means are not equal. In this case, we cannot pool the data from two groups, and we cannot use the pooled t-procedures, which require that the standard deviations (or the variances) of the two populations be equal. In general, if you are not sure that the populations have nearly equal standard deviations or variances, then it s always safer to use a nonpooled t-procedure. Rev.F08 24

How to Perform a Nonpooled t-test? Rev.F08 25

How to Perform a Nonpooled t-test? (Cont.) Rev.F08 26

How to Perform a Nonpooled t-interval? Rev.F08 27

What have we learned? We have learned to: 1. Perform inferences based on independent simple random samples to compare the means of two populations when the population standard deviations are unknown but are assumed to be equal. 2. Perform inferences based on independent simple random samples to compare the means of two populations when the population standard deviations are unknown but are not assumed to be equal. Rev.F08 28

Credit Some of these slides have been adapted/modified in part/whole from the slides of the following textbooks. Weiss, Neil A., Introductory Statistics, 8th Edition Weiss, Neil A., Introductory Statistics, 7th Edition Bock, David E., Stats: Data and Models, 2nd Edition Rev.F08 29