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.

Slides:



Advertisements
Similar presentations
T-tests continued.
Advertisements

Comparing One Sample to its Population
Chapter 10 Two-Sample Tests
Review: What influences confidence intervals?
Lecture 8 PY 427 Statistics 1 Fall 2006 Kin Ching Kong, Ph.D
Independent Samples and Paired Samples t-tests PSY440 June 24, 2008.
BCOR 1020 Business Statistics
Overview of Lecture Parametric Analysis is used for
Inferences About Means of Single Samples Chapter 10 Homework: 1-6.
Business Statistics: A Decision-Making Approach, 6e © 2005 Prentice-Hall, Inc. Chap 9-1 Introduction to Statistics Chapter 10 Estimation and Hypothesis.
Don’t spam class lists!!!. Farshad has prepared a suggested format for you final project. It will be on the web
Inferences About Means of Single Samples Chapter 10 Homework: 1-6.
1/45 Chapter 11 Hypothesis Testing II EF 507 QUANTITATIVE METHODS FOR ECONOMICS AND FINANCE FALL 2008.
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.
Two Population Means Hypothesis Testing and Confidence Intervals With Unknown Standard Deviations.
Statistics for the Social Sciences Psychology 340 Spring 2005 Using t-tests.
The t Tests Independent Samples.
Hypothesis Testing Using The One-Sample t-Test
Getting Started with Hypothesis Testing The Single Sample.
Hypothesis Testing.
Chapter 9: Introduction to the t statistic
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.
Chapter 7 For Explaining Psychological Statistics, 4th ed. by B. Cohen 1 Chapter 7: The t Test for Two Independent Sample Means To conduct a t test for.
Hypothesis Testing and T-Tests. Hypothesis Tests Related to Differences Copyright © 2009 Pearson Education, Inc. Chapter Tests of Differences One.
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.
AM Recitation 2/10/11.
Statistics 11 Hypothesis Testing Discover the relationships that exist between events/things Accomplished by: Asking questions Getting answers In accord.
Probability Distributions and Test of Hypothesis Ka-Lok Ng Dept. of Bioinformatics Asia University.
Chapter 13 – 1 Chapter 12: Testing Hypotheses Overview Research and null hypotheses One and two-tailed tests Errors Testing the difference between two.
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.
McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved. Statistical Inferences Based on Two Samples Chapter 9.
Comparing Two Proportions
Two Sample Tests Nutan S. Mishra Department of Mathematics and Statistics University of South Alabama.
Hypothesis Testing. Steps for Hypothesis Testing Fig Draw Marketing Research Conclusion Formulate H 0 and H 1 Select Appropriate Test Choose Level.
Chapter 9 Hypothesis Testing and Estimation for Two Population Parameters.
Chapter 9: Testing Hypotheses
Hypothesis Testing Using the Two-Sample t-Test
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Slide
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.
Hypothesis Testing A procedure for determining which of two (or more) mutually exclusive statements is more likely true We classify hypothesis tests in.
Essential Question:  How do scientists use statistical analyses to draw meaningful conclusions from experimental results?
Copyright © 2010 Pearson Education, Inc. Chapter 22 Comparing Two Proportions.
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 9-1 Chapter 9 Two-Sample Tests Statistics for Managers Using Microsoft.
Two-Sample Hypothesis Testing. Suppose you want to know if two populations have the same mean or, equivalently, if the difference between the population.
Copyright © 2010, 2007, 2004 Pearson Education, Inc. Chapter 22 Comparing Two Proportions.
Statistical Inference for the Mean Objectives: (Chapter 9, DeCoursey) -To understand the terms: Null Hypothesis, Rejection Region, and Type I and II errors.
Chapter 8 Parameter Estimates and Hypothesis Testing.
Chapter Thirteen Part II Hypothesis Testing: Means.
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.
T tests comparing two means t tests comparing two means.
Lecture 8 Estimation and Hypothesis Testing for Two Population Parameters.
Chapter 10 Section 5 Chi-squared Test for a Variance or Standard Deviation.
Chapter 9: Introduction to the t statistic. The t Statistic The t statistic allows researchers to use sample data to test hypotheses about an unknown.
HYPOTHESIS TESTING FOR DIFFERENCES BETWEEN MEANS AND BETWEEN PROPORTIONS.
Statistical Inference for the Mean Objectives: (Chapter 8&9, DeCoursey) -To understand the terms variance and standard error of a sample mean, Null Hypothesis,
Chapter 10: The t Test For Two Independent Samples.
Hypothesis Testing. Steps for Hypothesis Testing Fig Draw Marketing Research Conclusion Formulate H 0 and H 1 Select Appropriate Test Choose Level.
Hypothesis Testing. Steps for Hypothesis Testing Fig Draw Marketing Research Conclusion Formulate H 0 and H 1 Select Appropriate Test Choose Level.
Chapter 9 Introduction to the t Statistic
Lecture Nine - Twelve Tests of Significance.
Estimation & Hypothesis Testing for Two Population Parameters
Math 4030 – 10a Tests for Population Mean(s)
Comparing Two Proportions
Comparing Two Proportions
Hypothesis Tests for a Standard Deviation
What are their purposes? What kinds?
Presentation transcript:

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 the t-test to compare two samples/groups of data.

Two samples Previously compared sample mean to a known population mean Now we want to compare two samples Null hypothesis: the mean of the population of scores from which one set of data is drawn is equal to the mean of the population of the second data set  H 0 :  1 =  2 or  1 -  2 = 0

Independent samples Consider the original case Now want to consider not just 1 mean but the difference between 2 means  H 0 :  1 -  2 = 0

Which leads to... Now statistic of interest is: Mean of the sampling distribution is: Sampling Distribution of the Difference Between Means

Variability Standard error of the difference between means Since two independent variables, variance of the difference between means equals sum of their variances (sqrt for standard error)

Note for the first timers: Does not involve subtraction. The is simply a designation for the fact that we are dealing with the difference between two means (e.g. rather than standard error for one mean)

Same problem, same solution Usually we do not know population variance (standard deviation) Again use sample to estimate it Result is distributed as t (rather than z)

Formula All of which leads to:

But... Recall before we stated that our null hypothesis is In other words, we are testing the value for no difference (most of the time) So, if the null hypothesis is true…

t test Original Simplified

Degrees of freedom Across the 2 samples we have (n 1 -1) and (n 2 -1) df = (n 1 -1) + (n 2 -1) = n 1 + n 2 – 2

Steps for hypothesis test are still the same 1) State the research question 2) State the null hypothesis, which simply gives us a value to test, and alternative hypothesis 3) Construct a sampling distribution based on the null hypothesis and locate region of rejection (i.e. find the critical value on your table) How large a difference between means is required for statistical significance? 4) Calculate the test statistic (t) and see where it falls along the distribution in relation to the critical value (t cv ) 5) Reach a decision and state your conclusion

Assumptions of a t-test In order for the t-test to be a valid analysis, certain assumptions must be met (or close enough) or we will have to worry about generalizability (external validity) and consistency issues (internal validity)

Assumptions of a parametric* t-test Dealing with normal populations Variances of groups in question are equal (i.e. the standard deviations are not markedly different from one another) Samples are randomly drawn from their respective populations and are independent of one another *A non-parametric t-test is ‘distribution-free’ and typically used for small sample sizes in which normality cannot be assumed. It is calculated differently.

Example t-test Compare two therapies for a particular affliction (e.g. depression) on a scale of 1-50 where 50 would be totally cured of all sadness forever after the therapy. Mean Therapy 1 = 30s = 5N = 25 Mean Therapy 2 = 26s = 4N = 25 H o : H 1 : not H o, or Non-directional test (two-tailed)

Plug into formula = 30s = 5N = 25 = 26s = 4N = 25

Example Continued t = 3.12 Two-tailed test Critical value: t.05 ( – 2) = t.05 (48) = ~2.01 Our t statistic is beyond the t critical value we’ve decided upon Reject H 0  There is a statistical difference between the means  Treatment 1 is more effective. Dole out the happy pills!

Unequal sample sizes Assumption: independent samples t test requires samples come from populations with equal variances Two estimates of variance (one from each sample) Generate an overall estimate that reflects the fact that bigger samples offer better estimates If our two samples are quite different in size, the original formula for standard error will not be as good an estimate as it normally would be

Weighted average Calculate the pooled variance: Final result is:

Pooled variance estimate Before we had With unequal sample sizes we’ll use our pooled variance estimate If sample sizes were equal we’d get the same result as our previous formula for std. error Note the s p 2

Example New drug MemoPlus is supposed to aid memory. 5 people take the drug and we compare them to a control group of 10 people who take a placebo. Look at their free recall of 20 items on a list of related words. Drug: mean = 14, SD = 4.0 Control: mean = 10, SD = 6.0

Start by calculating the standard error Using Get: [note pooled variance nearer to group’s with larger n]

Calculate t Enter the values: Critical value for a two-tailed test t.05 (13) = 2.16

t cv t = 1.33

Make a decision and draw your conclusion Our t-statistic does not meet our criterion for rejection of the null hypothesis MemoPlus isn’t effective