Tuesday, September 24, 2013 Independent samples t-test.

Slides:



Advertisements
Similar presentations
Statistics for the Social Sciences Psychology 340 Fall 2006 Using t-tests.
Advertisements

Statistics for the Social Sciences Psychology 340 Spring 2005 Using t-tests.
Using t-tests Basic introduction and 1-sample t-tests Statistics for the Social Sciences Psychology 340 Spring 2010.
Statistics for the Social Sciences
Chapter 12: Testing hypotheses about single means (z and t) Example: Suppose you have the hypothesis that UW undergrads have higher than the average IQ.
Comparing Two Population Means The Two-Sample T-Test and T-Interval.
Chapter 10 Two-Sample Tests
Inference for distributions: - Comparing two means IPS chapter 7.2 © 2006 W.H. Freeman and Company.
Inferences About Means of Two Independent Samples Chapter 11 Homework: 1, 2, 3, 4, 6, 7.
Comparing Means: Independent-samples t-test Lesson 14 Population APopulation B Sample 1Sample 2 OR.
Independent Samples and Paired Samples t-tests PSY440 June 24, 2008.
Independent t-Test CJ 526 Statistical Analysis in Criminal Justice.
Test statistic: Group Comparison Jobayer Hossain Larry Holmes, Jr Research Statistics, Lecture 5 October 30,2008.
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 Two Independent Samples Chapter 11 Homework: 1, 2, 4, 6, 7.
A Decision-Making Approach
T-Tests Lecture: Nov. 6, 2002.
Two Population Means Hypothesis Testing and Confidence Intervals With Unknown Standard Deviations.
Independent Sample T-test Often used with experimental designs N subjects are randomly assigned to two groups (Control * Treatment). After treatment, the.
Testing the Difference Between Means (Small Independent Samples)
Statistics for the Social Sciences Psychology 340 Spring 2005 Using t-tests.
Statistics 270– Lecture 25. Cautions about Z-Tests Data must be a random sample Outliers can distort results Shape of the population distribution matters.
The t Tests Independent Samples.
Hypothesis Testing Using The One-Sample t-Test
Chapter Ten Introduction to Hypothesis Testing. Copyright © Houghton Mifflin Company. All rights reserved.Chapter New Statistical Notation The.
Statistics for the Social Sciences
Overview of Statistical Hypothesis Testing: The z-Test
Week 9 Chapter 9 - Hypothesis Testing II: The Two-Sample Case.
Tuesday, September 10, 2013 Introduction to hypothesis testing.
Hypothesis testing – mean differences between populations
T-distribution & comparison of means Z as test statistic Use a Z-statistic only if you know the population standard deviation (σ). Z-statistic converts.
Week 8 Chapter 8 - Hypothesis Testing I: The One-Sample Case.
Introduction to Statistics for the Social Sciences SBS200, COMM200, GEOG200, PA200, POL200, or SOC200 Lecture Section 001, Spring 2015 Room 150 Harvill.
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.
Chapter 12 Tests of a Single Mean When σ is Unknown.
Last Time Today we will learn how to do t-tests using excel, and we will review for Monday’s exam.
Thursday, September 19, 2013 Introduction to t-tests & one-sample t-test.
Independent t-Test CJ 526 Statistical Analysis in Criminal Justice.
Reasoning in Psychology Using Statistics
Chapter 9 Introduction to the t Statistic. 9.1 Review Hypothesis Testing with z-Scores Sample mean (M) estimates (& approximates) population mean (μ)
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.
Psych 230 Psychological Measurement and Statistics
Week111 The t distribution Suppose that a SRS of size n is drawn from a N(μ, σ) population. Then the one sample t statistic has a t distribution with n.
Reasoning in Psychology Using Statistics Psychology
Introduction to the t Test Part 1: One-sample t test
Reasoning in Psychology Using Statistics Psychology
© 2010 Pearson Prentice Hall. All rights reserved Chapter Hypothesis Tests Regarding a Parameter 10.
Lecture 8 Estimation and Hypothesis Testing for Two Population Parameters.
Psychology 290 Lab z-tests & t-tests March 5 - 7, 2007 –z-test –One sample t-test –SPSS – Chapter 7.
HYPOTHESIS TESTING FOR DIFFERENCES BETWEEN MEANS AND BETWEEN PROPORTIONS.
Chapter 7 Inference Concerning Populations (Numeric Responses)
Chapter 10: The t Test For Two Independent Samples.
Introduction to Statistics for the Social Sciences SBS200, COMM200, GEOG200, PA200, POL200, or SOC200 Lecture Section 001, Fall 2015 Room 150 Harvill.
Chapter 9 Introduction to the t Statistic
Chapter 9: Hypothesis Tests for One Population Mean 9.5 P-Values.
i) Two way ANOVA without replication
Chapter 8 Hypothesis Testing with Two Samples.
Central Limit Theorem, z-tests, & t-tests
Reasoning in Psychology Using Statistics
Reasoning in Psychology Using Statistics
Reasoning in Psychology Using Statistics
Reasoning in Psychology Using Statistics
Statistics for the Social Sciences
Reasoning in Psychology Using Statistics
Reasoning in Psychology Using Statistics
Reasoning in Psychology Using Statistics
Reasoning in Psychology Using Statistics
Presentation transcript:

Tuesday, September 24, 2013 Independent samples t-test

Exam I Results, 2013 M = S = ,9,8,8,8,7,6,5,4,4,3,1,1 79,8,6,5,4 69,8,2, Good work; room to improve Caution: More effort needed Trouble: Seek extra help asap

Next Homework (due Tuesday, October 1) Chapter 10: 1-4, 6, 21, 22 Chapter 11: 1, 5, 9, 10, 18, 20

Monitor Your Understanding Please click on the above link, and type (or paste) where it says “classroom”: _9/24/13 Then click buttons “got it” “unsure” or “lost me” to provide anonymous feedback about your understanding throughout the lecture

Last Time Introduction to t-tests (starting with the one- sample t-test) Use of s M (the estimated standard error in the denominator) Knowing when to use the one-sample t-test and when to use the z-score test Questions about these items before we move on?

Statistical analysis follows design The one-sample z-test can be used when: –1 sample –One score per subject –Population mean (μ) and standard deviation (  ) are known

Statistical analysis follows design The one-sample t-test can be used when: –1 sample –One score per subject –Population mean (μ) is known –but standard deviation (  ) is NOT known

Monitor your understanding Please provide feedback on teacher tap to let me know if you understand. Classroom: _9/24/13

Independent samples What are we doing when we test the hypotheses? – Consider a new variation of our memory experiment example Memory treatment Memory patients Memory Test the memory treatment population is the same as those in the population of untreated memory patients (μ A = μ B ). they aren’t the same as those in the population of memory patients (μ A ≠ μ B ) H0:H0: HA:HA: Memory placebo Memory Test Compare these two means

Statistical analysis follows design The independent samples t-test can be used when: –2 samples –Samples are independent

Performing your statistical test Test statistic Diff. Expected by chance Standard error Estimated standard error One sample z One sample t different Don’t know this, so need to estimate it Degrees of freedom

Statistical Tests Summary DesignStatistical test(Estimated) Standard error One sample, σ known One sample, σ unknown Two independent samples, σ unknown (n A – 1) + (n B -1) Degrees of freedom n – 1

Performing your statistical test Estimate of the standard error based on the variability of both samples

Performing your statistical test Test statistic One-sample t Independent-samples t Sample means

Performing your statistical test Test statistic One-sample t Independent-samples t Population means from the null hypothesis

Performing your statistical test Test statistic One-sample t Independent-samples t Population means from the hypotheses H0:H0: Memory performance by the treatment group is equal to memory performance by the no treatment group. So:

Monitor your understanding Please provide feedback on teacher tap to let me know if you understand. Classroom: _9/24/13

Performing your statistical test Test statistic One-sample t Estimated standard error (difference expected by chance) estimate is based on one sample We have two samples, so the estimate is based on two samples

Monitor your understanding Please provide feedback on teacher tap to let me know if you understand. Classroom: _9/24/13

Performing your statistical test “pooled variance” We combine the variance from the two samples Number of subjects in group A Number of subjects in group B

variance Performing your statistical test “pooled variance” We combine the variance from the two samples Recall “weighted means,” need to use “weighted variances” here Variance (s 2 ) * degrees of freedom (df)

Performing your statistical test Independent-samples t Compute your estimated standard error Compute your t-statistic Compute your degrees of freedom This is the one you use to look up your t crit

Monitor your understanding Please provide feedback on teacher tap to let me know if you understand. Classroom: _9/24/13

Performing your statistical test Person Exp. group Control group H 0 : µ A = µ B (µ A - µ B = 0) H A : µ A ≠ µ B Dr. Mnemonic develops a new treatment for patients with a memory disorder. He isn’t certain what impact, if any, it will have. To test it he randomly assigns 8 patients to one of two samples. He then gives one sample the new treatment but not the other. Following the treatment period he gives both groups a memory test. The data are presented below. Use α = α = tailed test

Performing your statistical test Person Exp. group Control group Need to compute the mean and variability for each sample Dr. Mnemonic develops a new treatment for patients with a memory disorder. He isn’t certain what impact, if any, it will have. To test it he randomly assigns 8 patients to one of two samples. He then gives one sample the new treatment but not the other. Following the treatment period he gives both groups a memory test. The data are presented below. Use α = H 0 : µ A = µ B (µ A - µ B = 0); H A : µ A ≠ µ B; α = 0.05; 2-tailed

Performing your statistical test Person Exp. group Control group Need to compute the mean and variability for each sample Control group = 50 (45-50) 2 + (55-50) 2 + (40-50) 2 + (60-50) 2 = 250 SS = A Dr. Mnemonic develops a new treatment for patients with a memory disorder. He isn’t certain what impact, if any, it will have. To test it he randomly assigns 8 patients to one of two samples. He then gives one sample the new treatment but not the other. Following the treatment period he gives both groups a memory test. The data are presented below. Use α = H 0 : µ treatment = µ control H A : µ treatment ≠ µ control, α = tailed

Performing your statistical test Exp. group ( ) 2 + ( ) 2 + ( ) 2 + ( ) 2 = 155 SS = B Person Exp. group Control group Need to compute the mean and variability for each sample Dr. Mnemonic develops a new treatment for patients with a memory disorder. He isn’t certain what impact, if any, it will have. To test it he randomly assigns 8 patients to one of two samples. He then gives one sample the new treatment but not the other. Following the treatment period he gives both groups a memory test. The data are presented below. Use α = = 44.5 H 0 : µ A = µ B (µ A - µ B = 0); H A : µ A ≠ µ B; α = 0.05; 2-tailed

Performing your statistical test Person Exp. group Control group Dr. Mnemonic develops a new treatment for patients with a memory disorder. He isn’t certain what impact, if any, it will have. To test it he randomly assigns 8 patients to one of two samples. He then gives one sample the new treatment but not the other. Following the treatment period he gives both groups a memory test. The data are presented below. Use α = = 0.95 H 0 : µ A = µ B (µ A - µ B = 0); H A : µ A ≠ µ B; α = 0.05; 2-tailed

Performing your statistical test T obs = 0.95 T crit = ±2.447 α = 0.05 Two-tailed Person Exp. group Control group Dr. Mnemonic develops a new treatment for patients with a memory disorder. He isn’t certain what impact, if any, it will have. To test it he randomly assigns 8 patients to one of two samples. He then gives one sample the new treatment but not the other. Following the treatment period he gives both groups a memory test. The data are presented below. Use α = = 0.95

Performing your statistical test T obs = 0.95 α = 0.05 Two-tailed T crit = ±2.447 Person Exp. group Control group Dr. Mnemonic develops a new treatment for patients with a memory disorder. He isn’t certain what impact, if any, it will have. To test it he randomly assigns 8 patients to one of two samples. He then gives one sample the new treatment but not the other. Following the treatment period he gives both groups a memory test. The data are presented below. Use α = = t crit - Fail to Reject H 0 t obs =0.95 = 0.95

Performing your statistical test T obs = 0.95 α = 0.05 Two-tailed T crit = ±2.447 T obs T crit Compare < Fail to reject the H 0 and conclude that  A =  B Person Exp. group Control group Dr. Mnemonic develops a new treatment for patients with a memory disorder. He isn’t certain what impact, if any, it will have. To test it he randomly assigns 8 patients to one of two samples. He then gives one sample the new treatment but not the other. Following the treatment period he gives both groups a memory test. The data are presented below. Use α= = 0.95

Monitor your understanding Please provide feedback on teacher tap to let me know if you understand. Classroom: _9/24/13

Assumptions of the independent samples t-test Each of the population distributions follows a normal curve (but test is robust to violations of this assumption if the sample is large) The two populations have the same variance If the variance is not equal and the samples are very different in size, use the corrected degrees of freedom provided after Levene’s test (see spss output)

Practice problem You are conducting an experiment about methods for teaching reading. You have access to a sample of 10 3 rd graders. You randomly assign half of the group to an experimental reading intervention, and the other half receives instruction as usual in their classrooms. After the intervention, you measure the number of words each child can read correctly in one minute, and obtain the following results. Group 1 (experimental) scores: 30, 35, 40, 20, 32 Group 2 scores: 25, 30, 20, 18, 18 Conduct a t-test to find out whether the groups are different in reading ability at the end of the study. t table

Using spss to conduct t-tests One-sample t-test: Analyze =>Compare Means =>One sample t-test. Select the variable you want to analyze, and type in the expected mean based on your null hypothesis. Independent samples t-test: Analyze =>Compare Means =>Independent samples t-test. Specify test variable and grouping variable, and click on define groups to specify how grouping variable will identify groups.

Practice problem Use SPSS to conduct a one-sample t-test to see if the students in this class are taller than the average college student ( μ = 66.5 inches). Use SPSS to conduct an independent samples t-test comparing the heights of men and women, based on the data from this class.

Using excel to compute t-tests =t-test(array1,array2,tails,type) Select the arrays that you want to compare, specify number of tails (1 or 2) and type of t-test (1=dependent, 2=independent w/equal variance assumed, 3=independent w/unequal variance assumed). Returns the p-value associated with the t- test.

Effect Size for the t Test for Independent Means Estimated effect size after a completed study

Power for the t Test for Independent Means (.05 significance level)

Approximate Sample Size Needed for 80% Power (.05 significance level)

Next Homework (due Tuesday, October 1) Chapter 10: 1-4, 6, 21, 22 Chapter 11: 1, 5, 9, 10, 18, 20