The t distribution and the independent sample t-test

Slides:



Advertisements
Similar presentations
Chapter 10: The t Test For Two Independent Samples
Advertisements

Copyright (c) 2004 Brooks/Cole, a division of Thomson Learning, Inc. Chapter 9 Inferences Based on Two Samples.
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.
Chapter 10 Two-Sample Tests
PSY 307 – Statistics for the Behavioral Sciences
Lecture 8 PY 427 Statistics 1 Fall 2006 Kin Ching Kong, Ph.D
Statistics Are Fun! Analysis of Variance
Overview of Lecture Parametric Analysis is used for
Business Statistics: A Decision-Making Approach, 6e © 2005 Prentice-Hall, Inc. Chap 9-1 Introduction to Statistics Chapter 10 Estimation and Hypothesis.
Lecture 9: One Way ANOVA Between Subjects
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.
T-Tests Lecture: Nov. 6, 2002.
Independent Sample T-test Often used with experimental designs N subjects are randomly assigned to two groups (Control * Treatment). After treatment, the.
Statistics for the Social Sciences
The t Tests Independent Samples.
Chapter 9: Introduction to the t statistic
Chapter 10 The t Test for Two Independent Samples PSY295 Spring 2003 Summerfelt.
Basic Business Statistics, 10e © 2006 Prentice-Hall, Inc. Chap 10-1 Chapter 10 Two-Sample Tests Basic Business Statistics 10 th Edition.
Statistical Analysis. Purpose of Statistical Analysis Determines whether the results found in an experiment are meaningful. Answers the question: –Does.
Looking at differences: parametric and non-parametric tests
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.
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.
Education 793 Class Notes T-tests 29 October 2003.
1 Power and Sample Size in Testing One Mean. 2 Type I & Type II Error Type I Error: reject the null hypothesis when it is true. The probability of a Type.
Chapter 9 Hypothesis Testing and Estimation for Two Population Parameters.
Hypothesis Testing CSCE 587.
Statistics for the Behavioral Sciences Second Edition Chapter 11: The Independent-Samples t Test iClicker Questions Copyright © 2012 by Worth Publishers.
COURSE: JUST 3900 TIPS FOR APLIA Developed By: Ethan Cooper (Lead Tutor) John Lohman Michael Mattocks Aubrey Urwick Chapter : 10 Independent Samples t.
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.
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.
Essential Question:  How do scientists use statistical analyses to draw meaningful conclusions from experimental results?
Chapter 9 Introduction to the t Statistic. 9.1 Review Hypothesis Testing with z-Scores Sample mean (M) estimates (& approximates) population mean (μ)
© Copyright McGraw-Hill 2000
Chapter 14 – 1 Chapter 14: Analysis of Variance Understanding Analysis of Variance The Structure of Hypothesis Testing with ANOVA Decomposition of SST.
I271B The t distribution and the independent sample t-test.
Chapter Twelve The Two-Sample t-Test. Copyright © Houghton Mifflin Company. All rights reserved.Chapter is the mean of the first sample is the.
Chapter 12 For Explaining Psychological Statistics, 4th ed. by B. Cohen 1 Chapter 12: One-Way Independent ANOVA What type of therapy is best for alleviating.
Chapter 10 The t Test for Two Independent Samples
Copyright (C) 2002 Houghton Mifflin Company. All rights reserved. 1 Understandable Statistics S eventh Edition By Brase and Brase Prepared by: Lynn Smith.
- 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.
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.
Lecture 7: Bivariate Statistics. 2 Properties of Standard Deviation Variance is just the square of the S.D. If a constant is added to all scores, it has.
Chapter 10: The t Test For Two Independent Samples.
Chapter 9 Introduction to the t Statistic
Independent-Samples t test
Dependent-Samples t-Test
Chapter 10 Two Sample Tests
Two-Sample Hypothesis Testing
Math 4030 – 10b Inferences Concerning Variances: Hypothesis Testing
Estimation & Hypothesis Testing for Two Population Parameters
Math 4030 – 10a Tests for Population Mean(s)
Hypothesis testing March 20, 2000.
Psychology 202a Advanced Psychological Statistics
Chapter 10 Two-Sample Tests.
Two Sample Tests When do use independent
Central Limit Theorem, z-tests, & t-tests
Hypothesis Testing: Hypotheses
The Chi-Square Distribution and Test for Independence
Lesson Comparing Two Means.
Reasoning in Psychology Using Statistics
Reasoning in Psychology Using Statistics
Hypothesis Testing and Confidence Intervals
Hypothesis Tests for a Standard Deviation
What are their purposes? What kinds?
Presentation transcript:

The t distribution and the independent sample t-test

How do we test to see if the means between two sample populations are, in fact, different? Note that we could also ask if the sample means are different for the same sample populations at different times…but more on that later.

Comparing mean difference while accounting for variability in samples Image: http://www.socialresearchmethods.net/kb/stat_t.php

t-test Null and Alternative Hypotheses Null Hypothesis: H0: μ1 = μc Alternative Hypotheses: H1: μ1 < μc H2: μ1 > μc H3: μ1 ≠ μc

One and Two-Tailed Tests: Defining Critical Regions Step 1: form your hypothesis Step 2: calculate your t-statistic Step 3: plot your t-value on the appropriate curve to get the p-value.

Why use the t distribution? Useful for testing mean differences when the N is not very large In very large samples, a t-test is the same as a z-score test.

Z-distribution versus t-distribution

t distribution As the degrees of freedom increase (towards infinity), the t distribution approaches the z distribution (i.e., a normal distribution) Because N plays such a prominent role in the calculation of the t-statistic, note that for very large N’s, the sample standard deviation (s) begins to closely approximate the population standard deviation (σ) http://www.econtools.com/jevons/java/Graphics2D/tDist.html

The independent sample t-test Where: M = mean SDM = Standard error of the difference between means N = number of subjects in group s = Standard Deviation of group df = degrees of freedom Essentially, the t-value is the difference between group means (mean difference), divided by the variability of the two groups (standard error of difference).

Degrees of freedom Example: Choosing 10 numbers that add up to 100. d.f. = the number of independent pieces of information from the data collected in a study. For a one-sample t-test, the degrees of freedom = number of measurements – 1. Example: Choosing 10 numbers that add up to 100. This kind of restriction is the same idea: we had 10 choices but the restriction reduced our independent selections to N-1. In statistics, further restrictions reduce the degrees of freedom. In the independent sample t-test, we deal with two means; our degrees of freedom are reduced by two (df = n1 + n2 – 2)

Assumptions Underlying the Independent Sample t-test Assumption of Normality Variables are normally distributed within each group Assumption of Homogeneity of Variance Variation of scores in the two groups should not be very different. Normality: we could transform the variables like we saw a few weeks ago Homogeneity of Variance: we can test to see if we meet this assumption

What if the Variances are not equal? We can test to see if the variances are significantly different between groups (equality of variance test) If they *are* significantly different, we can use a modified t-test that corrects for this problem (Welch’s t-test) Essentially, the Welch’s t-test uses a different estimation of the degrees of freedom and also avoids using the pooled variance. Uses Welch-Satterthwaite equation. The key is that the denominator uses a different estimate of the variance (since we cannot just assume that both distributions are equal now), and the degrees of freedom are reduced– making this test highly conservative.

Conducting an independent sample t-test 1) State your hypothesis (1 or 2-tailed?) 2)Check the assumption of equal variances 3) if equal, use a standard t-test If unequal, use a modified (welch’s) t-test

Statistical Significance vs. Practical Significance

Calculating Effect Size Note that the SD in the effect size calculation is the pooled (combined) standard deviation for both groups Effect size allows you to compare relative effect of one test to another (using same dependent variable) Conceptually, think of effect size as increasing the probability that you could guess which group a given person came from. Values of .8 or greater are usually large effects, .5 medium, .2 small. Effect size is a measure of practical significance, not statistical significance. Cohen’s d is a common effect size calculation.

Effect Size Example Sample of 10,000 participants. Average “skill with computers” Men = 6.5 (S.D. = 3.3) on a 10-point scale. Women = 5.9 (S.D. =3) The t-test is highly sig (p < .001) Effect size = .19 What if we have a fairly large effect size, but its just not statistically significant? Perhaps we just need more data– but how much??

How Big of A Sample? We can use a power analysis to determine how big our sample needs to be in order to reject the null that there is no difference. Requires an idea of the two means and their S.D.’s (usually through pre-testing or literature) In STATA, use “sampsi” command. A power analysis is based on our best guesses about our sample(s). It is not a guarantee of significance.

t-tests using STATA t-test.do auto.dta dataset grades.dta dataset