Independent-Samples t-test

Slides:



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

INTRODUCTORY STATISTICS FOR CRIMINAL JUSTICE
Probability & Statistical Inference Lecture 7 MSc in Computing (Data Analytics)
Business 205. Review Sampling Continuous Random Variables Central Limit Theorem Z-test.
PSY 307 – Statistics for the Behavioral Sciences
Independent Sample T-test Formula
Inferential Stats for Two-Group Designs. Inferential Statistics Used to infer conclusions about the population based on data collected from sample Do.
Intro to Statistics for the Behavioral Sciences PSYC 1900
PY 427 Statistics 1Fall 2006 Kin Ching Kong, Ph.D Lecture 6 Chicago School of Professional Psychology.
The t Tests Independent Samples.
Chapter 9 Hypothesis Testing II. Chapter Outline  Introduction  Hypothesis Testing with Sample Means (Large Samples)  Hypothesis Testing with Sample.
Chapter 10 The t Test for Two Independent Samples PSY295 Spring 2003 Summerfelt.
Review As sample size increases, the distribution of sample means A.Becomes wider and more normally shaped B.Becomes narrower and more normally shaped.
Review A.Null hypothesis, critical value, alpha, test statistic B.Alternative hypothesis, critical region, p-value, independent variable C.Null hypothesis,
Psy B07 Chapter 1Slide 1 ANALYSIS OF VARIANCE. Psy B07 Chapter 1Slide 2 t-test refresher  In chapter 7 we talked about analyses that could be conducted.
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.
Comparing Two Proportions
User Study Evaluation Human-Computer Interaction.
COURSE: JUST 3900 TIPS FOR APLIA Developed By: Ethan Cooper (Lead Tutor) John Lohman Michael Mattocks Aubrey Urwick Chapter : 10 Independent Samples t.
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Slide
1 Dr. David McKirnan, Psychology 242 Introduction to Research Cranach, Tree of Knowledge [of Good and Evil] (1472) Click “slide show”
Copyright © 2010 Pearson Education, Inc. Chapter 22 Comparing Two Proportions.
Copyright © 2010, 2007, 2004 Pearson Education, Inc. Chapter 22 Comparing Two Proportions.
Chapter 14 – 1 Chapter 14: Analysis of Variance Understanding Analysis of Variance The Structure of Hypothesis Testing with ANOVA Decomposition of SST.
Testing Differences between Means, continued Statistics for Political Science Levin and Fox Chapter Seven.
Introduction to the t Test Part 1: One-sample t test
Chapter 10 The t Test for Two Independent Samples
- 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.
Statistics for Political Science Levin and Fox Chapter Seven
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.
Chapter 10 Section 5 Chi-squared Test for a Variance or Standard Deviation.
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: ANALYSIS OF VARIANCE(ANOVA) Leon-Guerrero and Frankfort-Nachmias, Essentials of Statistics for a Diverse Society.
Chapter 10: The t Test For Two Independent Samples.
Testing for a difference
Comparing Two Proportions
Two-sample t-tests 10/16.
Independent-Samples t-test
Independent-Samples t-test
AP Biology Intro to Statistics
INF397C Introduction to Research in Information Studies Spring, Day 12
Math 4030 – 10b Inferences Concerning Variances: Hypothesis Testing
Basic t-test 10/6.
Inferential Statistics
Two-sample t-tests.
Psychology 202a Advanced Psychological Statistics
Hypothesis Testing Review
Chapter 2 Simple Comparative Experiments
Two Sample Tests When do use independent
Review Guppies can swim an average of 8 mph, with a standard deviation of 2 mph You measure 100 guppies and compute their mean What is the standard error.
AP Biology Intro to Statistics
Central Limit Theorem, z-tests, & t-tests
Inferential Statistics
Comparing Two Proportions
The t distribution and the independent sample t-test
Comparing Two Proportions
I. Statistical Tests: Why do we use them? What do they involve?
Statistical Process Control
Psych 231: Research Methods in Psychology
Psych 231: Research Methods in Psychology
Hypothesis Tests for a Standard Deviation
Psych 231: Research Methods in Psychology
Statistics for the Social Sciences
Reasoning in Psychology Using Statistics
Psych 231: Research Methods in Psychology
Facts from figures Having obtained the results of an investigation, a scientist is faced with the prospect of trying to interpret them. In some cases the.
Reasoning in Psychology Using Statistics
Introduction to the t Test
Chapter 9 Test for Independent Means Between-Subjects Design
Presentation transcript:

Independent-Samples t-test 10/8

Comparing Two Groups Often interested in whether two groups have same mean Experimental vs. control conditions Comparing learning procedures, with vs. without drug, lesions, etc. Men vs. women, depressed vs. not Comparison of two separate populations Population A, sample A of size nA, mean MA estimates mA Population B, sample B of size nB, mean MB estimates mB mA = mB? Example: maze times Rats with hippocampus: Sample A = [43, 26, 35, 31, 28] Without hippocampus: Sample B = [37, 31, 27, 46, 33] MA = 32.6, MB = 34.8 Is difference reliable? mA < mB? Null hypothesis: mA = mB No assumptions of what each is (e.g., mA = 10, mB= 10) Alternative Hypothesis: mA ≠ mB

Finding a Test Statistic Goal: Define a test statistic for deciding mA = mB vs. mA ≠ mB Constraints (apply to all hypothesis testing): Must be function of data (both samples) Sampling distribution must be fully determined by H0 Can only assume mA = mB Can’t depend on mA or mB separately, or on s Alternative hypothesis should predict extreme values Statistic should measure deviation from mA = mB so that if mA ≠ mB, we’ll be able to reject H0 Answer (preview): Based on MA – MB (just like M – m0 for one-sample t-test) . MA – MB has Normal distribution Standard error has (modified) chi-square distribution Ratio has t distribution

Likelihood Function for MA – MB Central Limit Theorem Distribution of MA – MB Subtract the means: E(MA – MB) = E(MA) – E(MB) = m – m = 0 Add the variances: . Just divide by standard error? but we don’t know s Need to estimate from data

Estimating s Already know best estimator for one sample Could just use one sample or the other sA or sB Works, but not best use of the data Combining sA and sB Both come from averages of (X – M)2 (X – M)2 for each individual score is estimate of s2 Average them all together: Degrees of freedom (nA – 1) + (nB – 1) = nA + nB – 2

Independent-Samples t Statistic Difference between sample means Typical difference expected by chance Variance of MA – MB Variance from MA Variance from MB Estimate of s Sum of squared deviations Degrees of freedom

Steps of I.S. t-test State clearly the two hypotheses Determine null and alternative hypotheses H0: mA = mB H1: mA ≠ mB Compute the test statistic t from the data . Determine likelihood function for test statistic according to H0 t distribution with nA + nB – 2 degrees of freedom Get p-value or 1-pt(t,df) or 2*(1-pt(|t|,df)) Choose alpha level 7a. p > α: Retain null hypothesis, mA = mB 7b. p < α: Reject null hypothesis, mA ≠ mB

Example Rats with hippocampus: Sample A = [43, 26, 35, 31, 28] Without hippocampus: Sample B = [37, 31, 27, 46, 33] MA = 32.6, MB = 34.8, MA – MB = -2.2 df = nA + nB – 2 = 5 + 5 – 2 = 8 X X-MA (X-MA)2 43 10.4 108.16 26 -6.6 43.56 35 2.4 5.76 31 -1.6 2.56 28 -4.6 21.16 SA(X-MA)2 181.20 X X-MB (X-MB)2 37 2.2 4.84 31 -3.8 14.44 27 -7.8 60.84 46 11.2 125.44 33 -1.8 3.24 SB(X-MB)2 208.80 p = .64 p = .32 t8

Homogeneity of Variance t-test only works if sA = sB Variance is homogenous Not assumption of H0, but of whole procedure H0: mA = mB & sA = sB H1: mA ≠ mB & sA = sB If variance is heterogeneous Standard procedure doesn’t work Trick for estimating standard error and reducing degrees of freedom What to remember Independent-samples t-test assumes homogenous variance If not true, you have to use alternative formulas for SE and df

Mean Squared Error Population Choosing gives population variance Sample Sample variance Gives estimate of population variance I.S. t-test Gives estimate of population variance

Degrees of Freedom Applies to any sum-of-squares type formula Tells how many numbers are really being added n = 2: only one number In general: one number determined by the rest Every statistic in formula that’s based on X removes 1 df M, MA, MB Fancy algebra to rewrite formula in terms of only X results in fewer summands I will always tell you how to find df for each formula To get average, divide by df Distribution of a statistic depends on its df c2, t, F X X – M (X – M)2 3 -2 4 7 2