T-test Testing Inferences about Population Means.

Slides:



Advertisements
Similar presentations
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)
Advertisements

Mahmoud Alhussami, DSc., Ph.D.
Statistics Review – Part II Topics: – Hypothesis Testing – Paired Tests – Tests of variability 1.
The two-sample t-test Expanding t to two groups. t-tests used for population mean diffs With 1-sample t, we have a single sample and a population value.
Chapter 8 The t Test for Independent Means Part 1: March 6, 2008.
PSY 307 – Statistics for the Behavioral Sciences
Chapter 14 Conducting & Reading Research Baumgartner et al Chapter 14 Inferential Data Analysis.
Aaker, Kumar, Day Ninth Edition Instructor’s Presentation Slides
Inferential Stats for Two-Group Designs. Inferential Statistics Used to infer conclusions about the population based on data collected from sample Do.
Independent t-Test CJ 526 Statistical Analysis in Criminal Justice.
Hypothesis test with t – Exercise 1 Step 1: State the hypotheses H 0 :  = 50H 1 = 50 Step 2: Locate critical region 2 tail test,  =.05, df = =24.
Inferences About Means of Single Samples Chapter 10 Homework: 1-6.
Inferences about Means of Dependent Samples Chapter 12 Homework: 1-4, 7 Problems 3, 4, & 7: skip parts i and l, do not calculate U in part n.
T-Tests Lecture: Nov. 6, 2002.
S519: Evaluation of Information Systems
PSY 307 – Statistics for the Behavioral Sciences Chapter 16 – One-Way ANOVA (Cont.)
The Kruskal-Wallis Test The Kruskal-Wallis test is a nonparametric test that can be used to determine whether three or more independent samples were.
Hypothesis Testing: Two Sample Test for Means and Proportions
Comparing Population Parameters (Z-test, t-tests and Chi-Square test) Dr. M. H. Rahbar Professor of Biostatistics Department of Epidemiology Director,
Introduction to Analysis of Variance (ANOVA)
The t-test Inferences about Population Means when population SD is unknown.
Hypothesis Testing.
Jeopardy Hypothesis Testing T-test Basics T for Indep. Samples Z-scores Probability $100 $200$200 $300 $500 $400 $300 $400 $300 $400 $500 $400.
Chapter Eleven McGraw-Hill/Irwin © 2006 The McGraw-Hill Companies, Inc., All Rights Reserved. Two-Sample Tests of Hypothesis Pages &
1 Tests with two+ groups We have examined tests of means for a single group, and for a difference if we have a matched sample (as in husbands and wives)
Inference about Two Population Standard Deviations.
The Hypothesis of Difference Chapter 10. Sampling Distribution of Differences Use a Sampling Distribution of Differences when we want to examine a hypothesis.
Two Sample Tests Nutan S. Mishra Department of Mathematics and Statistics University of South Alabama.
Hypothesis Testing CSCE 587.
1 Testing Statistical Hypothesis for Dependent Samples.
Overview Two paired samples: Within-Subject Designs
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.
PSY 307 – Statistics for the Behavioral Sciences Chapter 16 – One-Factor Analysis of Variance (ANOVA)
Copyright © Cengage Learning. All rights reserved. 14 Elements of Nonparametric Statistics.
Section 9.3 ~ Hypothesis Tests for Population Proportions Introduction to Probability and Statistics Ms. Young.
DIRECTIONAL HYPOTHESIS The 1-tailed test: –Instead of dividing alpha by 2, you are looking for unlikely outcomes on only 1 side of the distribution –No.
Independent t-Test CJ 526 Statistical Analysis in Criminal Justice.
Correct decisions –The null hypothesis is true and it is accepted –The null hypothesis is false and it is rejected Incorrect decisions –Type I Error The.
Chapter 9 Introduction to the t Statistic. 9.1 Review Hypothesis Testing with z-Scores Sample mean (M) estimates (& approximates) population mean (μ)
Analysis of Variance (One Factor). ANOVA Analysis of Variance Tests whether differences exist among population means categorized by only one factor or.
1 ANALYSIS OF VARIANCE (ANOVA) Heibatollah Baghi, and Mastee Badii.
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.
Marketing Research Aaker, Kumar, Day Ninth Edition Instructor’s Presentation Slides 1.
Aim: How do we use a t-test?
Chapter 10 The t Test for Two Independent Samples
The t-distribution William Gosset lived from 1876 to 1937 Gosset invented the t -test to handle small samples for quality control in brewing. He wrote.
Related Sample t-test A related sample t-test is used when participants in the two groups are not independent of participants in the other groups. – Repeated.
HYPOTHESIS TESTING FOR DIFFERENCES BETWEEN MEANS AND BETWEEN PROPORTIONS.
Introduction to the t statistic. Steps to calculate the denominator for the t-test 1. Calculate variance or SD s 2 = SS/n-1 2. Calculate the standard.
Chapter 7 Inference Concerning Populations (Numeric Responses)
Introduction to Statistics for the Social Sciences SBS200, COMM200, GEOG200, PA200, POL200, or SOC200 Lecture Section 001, Spring 2016 Room 150 Harvill.
Significance Test: Paired t- Test (dependent t- Test)
Dependent-Samples t-Test
Math 4030 – 10b Inferences Concerning Variances: Hypothesis Testing
Dependent t-test.
Hypothesis Testing: Two Sample Test for Means and Proportions
CJ 526 Statistical Analysis in Criminal Justice
Inferences on Two Samples Summary
Statistics for the Social Sciences
Reasoning in Psychology Using Statistics
Statistical Inference about Regression
Statistics for the Social Sciences
Hypothesis tests for the difference between two proportions
Statistics for the Social Sciences
Doing t-tests by hand.
Reasoning in Psychology Using Statistics
T-test Dr. Hamza Aduraidi.
Reasoning in Psychology Using Statistics
Presentation transcript:

t-test Testing Inferences about Population Means

Learning Objectives Compute by hand and interpret Single sample t Independent samples t Dependent samples t Use SPSS to compute the same tests and interpret the output

Review 6 Steps for Significance Testing 1. Set alpha (p level). 2. State hypotheses, Null and Alternative. 3. Calculate the test statistic (sample value). 4. Find the critical value of the statistic. 5. State the decision rule. 6. State the conclusion.

One Sample Exercise (1) 1. Set alpha.  = State hypotheses. Null hypothesis is H 0 :  = Alternative hypothesis is H 1 :   Calculate the test statistic Testing whether light bulbs have a life of 1000 hours

Calculating the Single Sample t What is the mean of our sample? = 867 What is the standard deviation for our sample of light bulbs? SD= 96.73

Determining Significance 4. Determine the critical value. Look up in the table (Heiman, p. 708). Looking for alpha =.05, two tails with df = 10-1 = 9. Table says State decision rule. If absolute value of sample is greater than critical value, reject null. If |-4.35| > |2.262|, reject H 0.

α(1 tail) α(2 tail) df

Stating the Conclusion 6. State the conclusion. We reject the null hypothesis that the bulbs were drawn from a population in which the average life is 1000 hrs. The difference between our sample mean (867) and the mean of the population (1000) is SO different that it is unlikely that our sample could have been drawn from a population with an average life of 1000 hours.

SPSS Results Computers print p values rather than critical values. If p (Sig.) is less than.05, it’s significant.

t-tests with Two Samples Independent Samples t-test Dependent Samples t-test

Independent Samples t-test Used when we have two independent samples, e.g., treatment and control groups. Formula is: Terms in the numerator are the sample means. Term in the denominator is the standard error of the difference between means.

Independent samples t-test The formula for the standard error of the difference in means: Suppose we study the effect of caffeine on a motor test where the task is to keep a the mouse centered on a moving dot. Everyone gets a drink; half get caffeine, half get placebo; nobody knows who got what.

Independent Sample Data (Data are time off task) Experimental (Caff)Control (No Caffeine) N 1 =9, M 1 =9.778, SD 1 =4.1164N 2 =10, M 2 =15.1, SD 2 =4.2805

Independent Sample Steps(1) 1. Set alpha. Alpha = State Hypotheses. Null is H 0 :  1 =  2. Alternative is H 1 :  1   2.

Independent Sample Steps(2) 3. Calculate test statistic:

Independent Sample Steps (3) 4. Determine the critical value. Alpha is.05, 2 tails, and df = N1+N2-2 or = 17. The value is State decision rule. If |-2.758| > 2.11, then reject the null. 6. Conclusion: Reject the null. the population means are different. Caffeine has an effect on the motor pursuit task.

α(1 tail) α(2 tail) df

Using SPSS

Independent Samples Exercise ExperimentalControl Work this problem by hand and with SPSS. You will have to enter the data into SPSS.

SPSS Results

Dependent Samples t-tests

Dependent Samples t-test Used when we have dependent samples – matched, paired or tied somehow Repeated measures Brother & sister, husband & wife Left hand, right hand, etc. Useful to control individual differences. Can result in more powerful test than independent samples t-test.

Dependent Samples t Formulas: t is the difference in means over a standard error. The standard error is found by finding the difference between each pair of observations. The standard deviation of these difference is SD D. Divide SD D by sqrt(number of pairs) to get SE diff.

Another way to write the formula

Dependent Samples t example PersonTX (time in sec) PlaceboDifference M SD

Dependent Samples t Example (2) 1.Set alpha =.05 2.Null hypothesis: H 0 :  1 =  2. Alternative is H 1 :  1   2. 3.Calculate the test statistic:

Dependent Samples t Example (3) 4. Determine the critical value of t. Alpha =.05, tails=2 df = N(pairs)-1 =5-1=4. Critical value is Decision rule: is absolute value of sample value larger than critical value? 6. Conclusion. Not (quite) significant. Painfree does not have an effect.

Using SPSS for dependent t-test