Using t-tests Basic introduction and 1-sample t-tests Statistics for the Social Sciences Psychology 340 Spring 2010.

Slides:



Advertisements
Similar presentations
Introduction to Hypothesis Testing
Advertisements

Chapter 9 Introduction to the t-statistic
There are two statistical tests for mean: 1) z test – Used for large samples (n ≥ 30) 1) t test – Used for small samples (n < 30)
Statistics for the Social Sciences Psychology 340 Fall 2006 Using t-tests.
Statistics for the Social Sciences Psychology 340 Fall 2006 Using t-tests.
Statistics for the Social Sciences Psychology 340 Spring 2005 Using t-tests.
Statistics for the Social Sciences
Statistics for the Social Sciences
Chapter 13 Comparing Two Populations: Independent Samples.
Topics Today: Case I: t-test single mean: Does a particular sample belong to a hypothesized population? Thursday: Case II: t-test independent means: Are.
Analysis of Variance (ANOVA) Statistics for the Social Sciences Psychology 340 Spring 2010.
Statistics for the Social Sciences Psychology 340 Spring 2005 Sampling distribution.
PSY 307 – Statistics for the Behavioral Sciences
PSY 340 Statistics for the Social Sciences Chi-Squared Test of Independence Statistics for the Social Sciences Psychology 340 Spring 2010.
Statistics for the Social Sciences
Independent Samples and Paired Samples t-tests PSY440 June 24, 2008.
Statistics for the Social Sciences Psychology 340 Fall 2006 Review For Exam 1.
Statistics for the Social Sciences Psychology 340 Fall 2006 Hypothesis testing.
Statistics for the Social Sciences Psychology 340 Spring 2005 Within Groups ANOVA.
Statistics for the Social Sciences Psychology 340 Spring 2005 Hypothesis testing.
Statistics for the Social Sciences Psychology 340 Fall 2006 Hypothesis testing.
Statistics for the Social Sciences
Statistics for the Social Sciences Psychology 340 Spring 2005 Using t-tests.
The t Tests Independent Samples.
Statistics for the Social Sciences
Tuesday, September 10, 2013 Introduction to hypothesis testing.
Hypothesis Testing CSCE 587.
Statistics (cont.) Psych 231: Research Methods in Psychology.
Thursday, September 19, 2013 Introduction to t-tests & one-sample t-test.
Statistics for the Social Sciences Psychology 340 Fall 2012 Analysis of Variance (ANOVA)
Reasoning in Psychology Using Statistics Psychology
Introduction to the t Test Part 1: One-sample t test
Reasoning in Psychology Using Statistics Psychology
Tuesday, September 24, 2013 Independent samples t-test.
Statistics for the Social Sciences Psychology 340 Spring 2009 Analysis of Variance (ANOVA)
Inferential Statistics Psych 231: Research Methods in Psychology.
Unit 8 Section 7.5.
Lecture Nine - Twelve Tests of Significance.
Hypothesis Testing: One Sample Cases
Hypothesis Testing I The One-sample Case
Statistics for the Social Sciences
Hypothesis testing March 20, 2000.
Chapter 8 Hypothesis Testing with Two Samples.
Central Limit Theorem, z-tests, & t-tests
Hypothesis Tests for a Population Mean in Practice
Statistics for the Social Sciences
Statistics for the Social Sciences
Review: What influences confidence intervals?
Reasoning in Psychology Using Statistics
Reasoning in Psychology Using Statistics
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
Psych 231: Research Methods in Psychology
Psych 231: Research Methods in Psychology
Reasoning in Psychology Using Statistics
Statistics for the Social Sciences
What are their purposes? What kinds?
Reasoning in Psychology Using Statistics
Hypothesis Testing and Confidence Intervals
Psych 231: Research Methods in Psychology
Psych 231: Research Methods in Psychology
Reasoning in Psychology Using Statistics
Reasoning in Psychology Using Statistics
Psych 231: Research Methods in Psychology
Reasoning in Psychology Using Statistics
Introduction to the t Test
Presentation transcript:

Using t-tests Basic introduction and 1-sample t-tests Statistics for the Social Sciences Psychology 340 Spring 2010

PSY 340 Statistics for the Social Sciences Outline (for content up to Exam 2) Review t-tests (note: next exam is March 4, right before spring break) –One sample, related samples, independent samples –Effect sizes with t-tests –Confidence intervals in t-test type designs

PSY 340 Statistics for the Social Sciences 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

PSY 340 Statistics for the Social Sciences Statistical analysis follows design The one-sample t-test can be used when: –1 sample –One score per subject –Population mean (μ) is known –but Population standard deviation (σ) is NOT known

PSY 340 Statistics for the Social Sciences Testing Hypotheses –Step 1: State your hypotheses –Step 2: Set your decision criteria –Step 3: Collect your data –Step 4: Compute your test statistics Compute your estimated standard error Compute your t-statistic Compute your degrees of freedom –Step 5: Make a decision about your null hypothesis Hypothesis testing: a five step program

PSY 340 Statistics for the Social Sciences Performing your statistical test What are we doing when we test the hypotheses? –Consider a variation of our memory experiment example Population of memory patients MemoryTest μ is known Memory treatment Memory patients Memory Test X Compare these two means Conclusions: the memory treatment sample are the same as those in the population of memory patients. they aren’t the same as those in the population of memory patients H0:H0: HA:HA:

PSY 340 Statistics for the Social Sciences Performing your statistical test What are we doing when we test the hypotheses? Real world (‘truth’) H 0 : is false (is a treatment effect) Two populations XAXA they aren’t the same as those in the population of memory patients H 0 : is true (no treatment effect) One population XAXA the memory treatment sample are the same as those in the population of memory patients.

PSY 340 Statistics for the Social Sciences Performing your statistical test What are we doing when we test the hypotheses? –Computing a test statistic: Generic test Could be difference between a sample and a population, or between different samples Based on standard error or an estimate of the standard error

PSY 340 Statistics for the Social Sciences Performing your statistical test Test statistic One sample z One sample t identical

PSY 340 Statistics for the Social Sciences Performing your statistical test Test statistic Diff. Expected by chance Standard error One sample z One sample t different don’t know this, so need to estimate it

PSY 340 Statistics for the Social Sciences Performing your statistical test Test statistic Diff. Expected by chance Standard error Estimated standard error One sample z One sample t different “Unbiased estimate of the population standard deviation” This is the same as the “sample standard deviation”

PSY 340 Statistics for the Social Sciences 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

PSY 340 Statistics for the Social Sciences One sample t-test The t-statistic distribution (a transformation of the distribution of sample means transformed) –Varies in shape according to the degrees of freedom New table: the t-tablet-table

PSY 340 Statistics for the Social Sciences One sample t-test If test statistic is here Fail to reject H 0 Distribution of the t-statistic If test statistic is here Reject H 0 –To reject the H 0, you want a computed test statistics that is large The alpha level gives us the decision criterion New table: the t-tablet-table The t-statistic distribution (a transformation of the distribution of sample means transformed)

PSY 340 Statistics for the Social Sciences One sample t-test New table: the t-table One tailed - or - Two-tailed Critical values of t t crit Degrees of freedom df α - level

PSY 340 Statistics for the Social Sciences One sample t-test What is the t crit for a two-tailed hypothesis test with a sample size of n = 6 and an α-level of 0.05? Distribution of the t-statistic α = 0.05 Two-tailed n = 6 df = n - 1 = 5 t crit =

PSY 340 Statistics for the Social Sciences One sample t-test Distribution of the t-statistic α = 0.05 One-tailed n = 6 df = n - 1 = 5 t crit = What is the t crit for a one-tailed hypothesis test with a sample size of n = 6 and an α-level of 0.05?

PSY 340 Statistics for the Social Sciences One sample t-test An example: One sample t-test Memory experiment example: We give a n = 16 memory patients a memory improvement treatment. How do they compare to the general population of memory patients who have a distribution of memory errors that is Normal, μ = 60? After the treatment they have an average score of = 55, s = 8 memory errors. Don’t know σ Do know s

PSY 340 Statistics for the Social Sciences One sample t-test An example: One sample t-test Memory experiment example: We give a n = 16 memory patients a memory improvement treatment. How do they compare to the general population of memory patients who have a distribution of memory errors that is Normal, μ = 60? After the treatment they have an average score of = 55, s = 8 memory errors. Step 1: State your hypotheses H0:H0: the memory treatment sample are the same (or worse) as those in the population of memory patients. HA:HA: they perform better than those in the population of memory patients μ Treatment > μ pop = 60 μ Treatment < μ pop = 60

PSY 340 Statistics for the Social Sciences One sample t-test Memory experiment example: We give a n = 16 memory patients a memory improvement treatment. Step 2: Set your decision criteria H 0 : μ Treatment > μ pop = 60 H A : μ Treatment < μ pop = 60 α = 0.05 One -tailed How do they compare to the general population of memory patients who have a distribution of memory errors that is Normal, μ = 60? After the treatment they have an average score of = 55, s = 8 memory errors. An example: One sample t-test

PSY 340 Statistics for the Social Sciences One sample t-test An example: One sample t-test Memory experiment example: We give a n = 16 memory patients a memory improvement treatment. Step 2: Set your decision criteria α = 0.05 One -tailed How do they compare to the general population of memory patients who have a distribution of memory errors that is Normal, μ = 60? After the treatment they have an average score of = 55, s = 8 memory errors. H 0 : μ Treatment > μ pop = 60 H A : μ Treatment < μ pop = 60

PSY 340 Statistics for the Social Sciences One sample t-test An example: One sample t-test Memory experiment example: We give a n = 16 memory patients a memory improvement treatment. α = 0.05 One -tailed Step 3: Collect your data How do they compare to the general population of memory patients who have a distribution of memory errors that is Normal, μ = 60? After the treatment they have an average score of = 55, s = 8 memory errors. H 0 : μ Treatment > μ pop = 60 H A : μ Treatment < μ pop = 60

PSY 340 Statistics for the Social Sciences One sample t-test An example: One sample t-test Memory experiment example: We give a n = 16 memory patients a memory improvement treatment. α = 0.05 One -tailed Step 4: Compute your test statistics = -2.5 How do they compare to the general population of memory patients who have a distribution of memory errors that is Normal, μ = 60? After the treatment they have an average score of = 55, s = 8 memory errors. H 0 : μ Treatment > μ pop = 60 H A : μ Treatment < μ pop = 60

PSY 340 Statistics for the Social Sciences One sample t-test An example: One sample t-test Memory experiment example: We give a n = 16 memory patients a memory improvement treatment. α = 0.05 One -tailed Step 4: Compute your test statistics t = -2.5 How do they compare to the general population of memory patients who have a distribution of memory errors that is Normal, μ = 60? After the treatment they have an average score of = 55, s = 8 memory errors. H 0 : μ Treatment > μ pop = 60 H A : μ Treatment < μ pop = 60

PSY 340 Statistics for the Social Sciences One sample t-test An example: One sample t-test Memory experiment example: We give a n = 16 memory patients a memory improvement treatment. α = 0.05 One -tailed Step 5: Make a decision about your null hypothesis How do they compare to the general population of memory patients who have a distribution of memory errors that is Normal, μ = 60? After the treatment they have an average score of = 55, s = 8 memory errors. t crit = H 0 : μ Treatment > μ pop = 60 H A : μ Treatment < μ pop = 60

PSY 340 Statistics for the Social Sciences One sample t-test An example: One sample t-test Memory experiment example: We give a n = 16 memory patients a memory improvement treatment. α = 0.05 One -tailed Step 5: Make a decision about your null hypothesis How do they compare to the general population of memory patients who have a distribution of memory errors that is Normal, μ = 60? After the treatment they have an average score of = 55, s = 8 memory errors = t crit t obs = Reject H 0 H 0 : μ Treatment > μ pop = 60 H A : μ Treatment < μ pop = 60

PSY 340 Statistics for the Social Sciences Assumptions of t-statistics Values in the sample must be independent observations –Each observation is independent of all of the other observations (see pg 253 of your textbook for examples of non-independence) The population that is sampled must be normally distributed –It turns out that t-tests are pretty robust against violations of this assumption, especially with large samples

PSY 340 Statistics for the Social Sciences Effect Sizes & Power for 1-sample t Test Recall for the 1-sample z-test: Remember we don’t know these with the t-test design So for the 1-sample t-test we estimate the Cohen’s d: sample mean Pop mean from null hypothesis sample standard deviation

PSY 340 Statistics for the Social Sciences Using SPSS: 1 sample t Entering the data –Observations go into one column e.g., 2, 6, 5, 9 Performing the analysis –Analyze -> Compare means -> one sample t-test –Identify which column to do your test on –Enter the ‘Test value’ – this is the population mean in the H 0 –Be careful, the default is 0, this may not be what you want Reading the output –Mean of the sample, the computed-t, degrees of freedom, p-value (Sig.) (also reminds you of your test value)

PSY 340 Statistics for the Social Sciences Next time Related samples t-tests Independent samples t-tests