Comparison of 2 or more means Acknowledgement: Thanks to Professor Pagano (Harvard School of Public Health) for lecture material.

Slides:



Advertisements
Similar presentations
Sociology 601 Class 8: September 24, : Small-sample inference for a proportion 7.1: Large sample comparisons for two independent sample means.
Advertisements

Lab 4: What is a t-test? Something British mothers use to see if the new girlfriend is significantly better than the old one?
Testing means, part III The two-sample t-test. Sample Null hypothesis The population mean is equal to  o One-sample t-test Test statistic Null distribution.
INDEPENDENT SAMPLES T Purpose: Test whether two means are significantly different Design: between subjects scores are unpaired between groups.
T-Tests.
t-Tests Overview of t-Tests How a t-Test Works How a t-Test Works Single-Sample t Single-Sample t Independent Samples t Independent Samples t Paired.
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Statistics for Business and Economics 7 th Edition Chapter 10 Hypothesis Testing:
T-Tests.
Sociology 601 Class 10: October 1, : Small sample comparisons for two independent groups. o Difference between two small sample means o Difference.
Inference for distributions: - Comparing two means IPS chapter 7.2 © 2006 W.H. Freeman and Company.
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.
Comparison of 2 or more means ( See Chapter 11) e.g. n=16, df=15, alpha=0.05 t- statistic under H0 are ±2.13 Is  =  0 ? -- consider versus or One sample.
SADC Course in Statistics Comparing Means from Independent Samples (Session 12)
Chap 11-1 Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chapter 11 Hypothesis Testing II Statistics for Business and Economics.
Independent Samples and Paired Samples t-tests PSY440 June 24, 2008.
Business Statistics: A Decision-Making Approach, 6e © 2005 Prentice-Hall, Inc. Chap 9-1 Introduction to Statistics Chapter 10 Estimation and Hypothesis.
HW: See Web Project proposal due next Thursday. See web for more detail.
Analysis of Differential Expression T-test ANOVA Non-parametric methods Correlation Regression.
1/45 Chapter 11 Hypothesis Testing II EF 507 QUANTITATIVE METHODS FOR ECONOMICS AND FINANCE FALL 2008.
1 Review of Correlation A correlation coefficient measures the strength of a linear relation between two measurement variables. The measure is based on.
A Decision-Making Approach
Statistics 101 Class 9. Overview Last class Last class Our FAVORATE 3 distributions Our FAVORATE 3 distributions The one sample Z-test The one sample.
Business Statistics: A Decision-Making Approach, 7e © 2008 Prentice-Hall, Inc. Chap 10-1 Business Statistics: A Decision-Making Approach 7 th Edition Chapter.
Two Population Means Hypothesis Testing and Confidence Intervals With Unknown Standard Deviations.
A trial of incentives to attend adult literacy classes Carole Torgerson, Greg Brooks, Jeremy Miles, David Torgerson Classes randomised to incentive or.
Statistics for the Social Sciences Psychology 340 Spring 2005 Using t-tests.
5-3 Inference on the Means of Two Populations, Variances Unknown
Hypothesis Testing Using The One-Sample t-Test
Basic Business Statistics, 10e © 2006 Prentice-Hall, Inc. Chap 10-1 Chapter 10 Two-Sample Tests Basic Business Statistics 10 th Edition.
The t-test Inferences about Population Means when population SD is unknown.
EDUC 200C Section 5–Hypothesis Testing Forever November 2, 2012.
Chapter 9 Two-Sample Tests Part II: Introduction to Hypothesis Testing Renee R. Ha, Ph.D. James C. Ha, Ph.D Integrative Statistics for the Social & Behavioral.
Two Sample Tests Ho Ho Ha Ha TEST FOR EQUAL VARIANCES
T-test Mechanics. Z-score If we know the population mean and standard deviation, for any value of X we can compute a z-score Z-score tells us how far.
Statistics 300: Elementary Statistics Section 9-3.
Education 793 Class Notes T-tests 29 October 2003.
Experiments I will try and post the slides used in class each week on my website
Chapter 9 Hypothesis Testing and Estimation for Two Population Parameters.
10-1 Introduction 10-2 Inference for a Difference in Means of Two Normal Distributions, Variances Known Figure 10-1 Two independent populations.
Inference for distributions: - Comparing two means IPS chapter 7.2 © 2006 W.H. Freeman and Company.
For 95 out of 100 (large) samples, the interval will contain the true population mean. But we don’t know  ?!
The Practice of Statistics, 5th Edition Starnes, Tabor, Yates, Moore Bedford Freeman Worth Publishers CHAPTER 10 Comparing Two Populations or Groups 10.2.
Chapter 25: Paired Samples and Blocks
STATISTICAL INFERENCE PART VIII HYPOTHESIS TESTING - APPLICATIONS – TWO POPULATION TESTS 1.
Two sample problems:  compare the responses in two groups  each group is a sample from a distinct population  responses in each group are independent.
Example: One-Sample T-Test Researchers are interested in whether the pulse rate of long-distance runners differs from that of other athletes They randomly.
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
Lecture PowerPoint Slides Basic Practice of Statistics 7 th Edition.
- We have samples for each of two conditions. We provide an answer for “Are the two sample means significantly different from each other, or could both.
STATISTICAL INFERENCE PART VI HYPOTHESIS TESTING 1.
AP Statistics. Chap 13-1 Chapter 13 Estimation and Hypothesis Testing for Two Population Parameters.
366_8. Estimation: Chapter 8 Suppose we observe something in a random sample how confident are we in saying our observation is an accurate reflection.
366_7. T-distribution T-test vs. Z-test Z assumes we know, or can calculate the standard error of the distribution of something in a population We never.
Homework and project proposal due next Thursday. Please read chapter 10 too…
Applied Epidemiologic Analysis - P8400 Fall 2002 Lab 3 Type I, II Error, Sample Size, and Power Henian Chen, M.D., Ph.D.
Inference for Distributions 7.2 Comparing Two Means © 2012 W.H. Freeman and Company.
Analysis of Variance 11/6. Comparing Several Groups Do the group means differ? Naive approach – Independent-samples t-tests of all pairs – Each test doesn't.
Lecture 8 Estimation and Hypothesis Testing for Two Population Parameters.
Inference for distributions: - Comparing two means.
Chapter 7 Inference Concerning Populations (Numeric Responses)
Bandit Thinkhamrop, PhD. (Statistics) Department of Biostatistics and Demography Faculty of Public Health Khon Kaen University, THAILAND.
T-tests Comparing the means of 2 independent similar populations.
Hypothesis Testing Start with a question:
business analytics II ▌assignment one - solutions autoparts 
Psychology 202a Advanced Psychological Statistics
Types of T-tests Independent T-tests Paired or correlated t-tests
Review of Chapter 11 Comparison of Two Populations
Two Sample T-Tests AP Statistics.
Presentation transcript:

Comparison of 2 or more means Acknowledgement: Thanks to Professor Pagano (Harvard School of Public Health) for lecture material

e.g. n=16, df=15, 0.05 points are ±2.13 Is  =  0 ? -- consider versus or One sample t test

Population (Normal) T-treatmentC-control TT CC TT CC H 0 :  T =  C Two sample t

Population (Normal) T-treatmentC-control TT CC TT CC Sample nTnT nCnC sTsT sCsC H 0 :  T =  C Two sample t

1.Samples dependent (Paired) 2.Samples independent Two situations:

Example – Paired study Each subject is tested under 2 conditions: –Time to angina when exposed to plain air –Time to angina when exposed to air + CO

Plain air Carbon monoxide Example – Paired study

Plain air Carbon monoxide Example – Paired study

Plain air Carbon monoxide Example – Paired study

Response Error Model for a Subject: At time 1 At time 2 Measured under same conditions!

Example – Paired study Response Error Model for a Subject: At time 1 At time 2 Measured under different conditions! = The condition effect

Example – Paired study Take Difference -At time 1 At time 2 Take Sample of Subjects, Test whether

So Look at the differences:

So treat the d’s as the data and perform a one-sample t-test: T-test Average change in time to angina = SD of change in time to angina = Calculate p value for H 0 : μ=0

n= 63 Example - Paired study (Hypothesis test)

Example - Paired Study (One sided CI) Obtain an UPPER BOUND for mean difference

In order to decide the s 1 2 and S 1 2 and the degrees of freedom we need to know whether, or not,  T =  C For two independent samples:

If  T   C (recommended) and degrees of freedom, : Heteroscedastic

If  T =  C (which can be tested) we can use a common value: Homoscedastic

Two samples (groups): Treatment Control Example

Stata Output paired t. ttest var1 = var2 Paired t test Variable | Obs Mean Std. Err. Std. Dev. [95% Conf. Interval] var1 | var2 | diff | Ho: mean(var1 - var2) = mean(diff) = 0 Ha: mean(diff) 0 t = t = t = P |t| = P > t =

Stata Output unpaired t. ttest var1 = var2, unpaired Two-sample t test with equal variances Variable | Obs Mean Std. Err. Std. Dev. [95% Conf. Interval] var1 | var2 | combined | diff | Degrees of freedom: 6 Ho: mean(var1) - mean(var2) = diff = 0 Ha: diff 0 t = t = t = P |t| = P > t =

Stata Output unpaired unequal. ttest var1 = var2, unpaired unequal Two-sample t test with unequal variances Variable | Obs Mean Std. Err. Std. Dev. [95% Conf. Interval] var1 | var2 | combined | diff | Satterthwaite's degrees of freedom: Ho: mean(var1) - mean(var2) = diff = 0 Ha: diff 0 t = t = t = P |t| = P > t =

Summary Paired test Hypothesis test CI 2 independent samples: –Hypothesis test for equal/unequal variance –CI under equal/unequal variance