Testing for differences between 2 means Does the mean weight of cats in Toledo differ from the mean weight of cats in Cleveland? Do the mean quiz scores.

Slides:



Advertisements
Similar presentations
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.
Advertisements

PSY 307 – Statistics for the Behavioral Sciences
Independent Sample T-test Formula
The Normal Distribution. n = 20,290  =  = Population.
ANalysis Of VAriance (ANOVA) Comparing > 2 means Frequently applied to experimental data Why not do multiple t-tests? If you want to test H 0 : m 1 = m.
Independent Samples and Paired Samples t-tests PSY440 June 24, 2008.
Intro to Statistics for the Behavioral Sciences PSYC 1900
Tuesday, October 22 Interval estimation. Independent samples t-test for the difference between two means. Matched samples t-test.
Lecture 9: One Way ANOVA Between Subjects
One-way Between Groups Analysis of Variance
T-Tests Lecture: Nov. 6, 2002.
Chapter 11: Inference for Distributions
1 Inference About a Population Variance Sometimes we are interested in making inference about the variability of processes. Examples: –Investors use variance.
Business 205. Review Survey Designs Survey Ethics.
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
Hypothesis Testing and T-Tests. Hypothesis Tests Related to Differences Copyright © 2009 Pearson Education, Inc. Chapter Tests of Differences One.
Analysis of Variance. ANOVA Probably the most popular analysis in psychology Why? Ease of implementation Allows for analysis of several groups at once.
AM Recitation 2/10/11.
Estimation and Hypothesis Testing Faculty of Information Technology King Mongkut’s University of Technology North Bangkok 1.
Inferential Statistics: SPSS
1 Experimental Statistics - week 3 Statistical Inference 2-sample Hypothesis Tests Review Continued Chapter 8: Inferences about More Than 2 Population.
Week 9 Chapter 9 - Hypothesis Testing II: The Two-Sample Case.
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.
1 Tests with two+ groups We have examined tests of means for a single group, and for a difference if we have a matched sample (as in husbands and wives)
Education 793 Class Notes T-tests 29 October 2003.
T-distribution & comparison of means Z as test statistic Use a Z-statistic only if you know the population standard deviation (σ). Z-statistic converts.
Laws of Logic and Rules of Evidence Larry Knop Hamilton College.
- Interfering factors in the comparison of two sample means using unpaired samples may inflate the pooled estimate of variance of test results. - It is.
Statistical Power The ability to find a difference when one really exists.
Chapter 9: Testing Hypotheses
One-sample In the previous cases we had one sample and were comparing its mean to a hypothesized population mean However in many situations we will use.
Go to index Two Sample Inference for Means Farrokh Alemi Ph.D Kashif Haqqi M.D.
Paired-Sample Hypotheses -Two sample t-test assumes samples are independent -Means that no datum in sample 1 in any way associated with any specific datum.
For 95 out of 100 (large) samples, the interval will contain the true population mean. But we don’t know  ?!
1 Experimental Statistics - week 2 Review: 2-sample t-tests paired t-tests Thursday: Meet in 15 Clements!! Bring Cody and Smith book.
PSY 307 – Statistics for the Behavioral Sciences Chapter 16 – One-Factor Analysis of Variance (ANOVA)
T- and Z-Tests for Hypotheses about the Difference between Two Subsamples.
INTRODUCTION TO ANALYSIS OF VARIANCE (ANOVA). COURSE CONTENT WHAT IS ANOVA DIFFERENT TYPES OF ANOVA ANOVA THEORY WORKED EXAMPLE IN EXCEL –GENERATING THE.
Difference Between Means Test (“t” statistic) Analysis of Variance (“F” statistic)
© Copyright McGraw-Hill 2000
Testing Differences between Means, continued Statistics for Political Science Levin and Fox Chapter Seven.
Review - Confidence Interval Most variables used in social science research (e.g., age, officer cynicism) are normally distributed, meaning that their.
Introduction to the t Test Part 1: One-sample t test
Chapter Outline Goodness of Fit test Test of Independence.
Copyright (C) 2002 Houghton Mifflin Company. All rights reserved. 1 Understandable Statistics S eventh Edition By Brase and Brase Prepared by: Lynn Smith.
Psychology 202a Advanced Psychological Statistics October 6, 2015.
- 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.
Tuesday, September 24, 2013 Independent samples t-test.
Other Types of t-tests Recapitulation Recapitulation 1. Still dealing with random samples. 2. However, they are partitioned into two subsamples. 3. Interest.
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.
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: - Comparing two means.
HYPOTHESIS TESTING FOR DIFFERENCES BETWEEN MEANS AND BETWEEN PROPORTIONS.
Introduction to the t statistic. Steps to calculate the denominator for the t-test 1. Calculate variance or SD s 2 = SS/n-1 2. Calculate the standard.
GOSSET, William Sealy How shall I deal with these small batches of brew?
Inferential Statistics Psych 231: Research Methods in Psychology.
 What is Hypothesis Testing?  Testing for the population mean  One-tailed testing  Two-tailed testing  Tests Concerning Proportions  Types of Errors.
Objectives (PSLS Chapter 18) Comparing two means (σ unknown)  Two-sample situations  t-distribution for two independent samples  Two-sample t test 
Chapter 10: The t Test For Two Independent Samples.
The 2 nd to last topic this year!!.  ANOVA Testing is similar to a “two sample t- test except” that it compares more than two samples to one another.
T-tests Comparing the means of 2 independent similar populations.
Hypothesis Testing Start with a question:
Lecture Nine - Twelve Tests of Significance.
Psychology 202a Advanced Psychological Statistics
Two Sample Tests When do use independent
The t distribution and the independent sample t-test
Hypothesis Testing: The Difference Between Two Population Means
Statistical Inference for the Mean: t-test
Presentation transcript:

Testing for differences between 2 means Does the mean weight of cats in Toledo differ from the mean weight of cats in Cleveland? Do the mean quiz scores of female and male Biostatistics students differ? Does the mean growth rate of plants given P fertilizer differ from those not given P fertilizer More from your own research ……..

Two tailed test Null; H 0 : xbar 1 = xbar 2 Alternative; H A : xbar1 ≠ xbar2

Similar to one-sample, but…. t = X 1 – X 2 t-statistic SE of diff between sample means Sample1 Mean Sample2 Mean s x 1 – x 2

The variance of the difference between two (independent) variables equals the sum of the variances of the two variables Calculate from your sample data Calculate pooled variance of the sample as best estimate of the true population variance pooled variance = SS 1 + SS 2 df 1 + df 2

s x 1 – x 2 SE of diff between sample means = n1n1 pooled var n2n2 + n1n1 n2n2 + t = X 1 – X 2 Excel demo

Ex. Test a new fertilizer (independent/predictor variable) and measure plant height (dependent/response variable) Diff between means

present fertnew fert plant height (cm) Series1 Now imagine that the variance was higher Ratio of  means and SE of difference Ratio gets smaller -dividing by larger number

Diff is significant (because diff large relative to variance), but is this difference biologically important?

Compare to very large diff between means, but large SE 47 cm 4.5 cm (last example)

Violations of the 2 sample t-test assumptions 1) Both samples come from normal populations with equal variance 2) Samples collected randomly T-test robust, especially at large sample size How to from SAS HELP: The underlying assumption of the t test in all three cases is that the observations are random samples drawn from normally distributed populations. This assumption can be checked using the UNIVARIATE procedure; if the normality assumptions for the t test are not satisfied, you should analyze your data using the NPAR1WAY procedure.

Violations of the 2 sample t-test assumptions 3) Populations have equal varince If population (sample) variances unequal then higher Type I error than stated  (heteroscedastic) called the Behrens-Fisher problem Corrected t available when equal variance cannot be assumed How to from SAS HELP: PROC TTEST computes the group comparison t statistic based on the assumption that the variances of the two groups are equal. It also computes an approximate t based on the assumption that the variances are unequal (the Behrens-Fisher problem). The degrees of freedom and probability level are given for each; Satterthwaite's (1946) approximation is used to compute the degrees of freedom associated with the approximate t. In addition, you can request the Cochran and Cox (1950) approximation of the probability level for the approximate t. The folded form of the F statistic is computed to test for equality of the two variances (Steel and Torrie 1980).

4) The two populations must also be independent Dealing with dependent samples on Friday