37
Independent Samples T-Test

Independent Samples T-Test. Outline of Today’s Discussion 1.About T-Tests 2.The One-Sample T-Test 3.Independent Samples T-Tests 4.Two Tails or One? 5.Independent

Embed Size (px)

DESCRIPTION

Part 1 About T-Tests

Citation preview

Page 1: Independent Samples T-Test. Outline of Today’s Discussion 1.About T-Tests 2.The One-Sample T-Test 3.Independent Samples T-Tests 4.Two Tails or One? 5.Independent

Independent Samples T-Test

Page 2: Independent Samples T-Test. Outline of Today’s Discussion 1.About T-Tests 2.The One-Sample T-Test 3.Independent Samples T-Tests 4.Two Tails or One? 5.Independent

Outline of Today’s Discussion

1. About T-Tests

2. The One-Sample T-Test

3. Independent Samples T-Tests

4. Two Tails or One?

5. Independent Samples T-Test: Excel

6. Independent Samples T-Test: SPSS

Please refrain from typing, surfing or printing during our conversation!

Page 3: Independent Samples T-Test. Outline of Today’s Discussion 1.About T-Tests 2.The One-Sample T-Test 3.Independent Samples T-Tests 4.Two Tails or One? 5.Independent

Part 1

About T-Tests

Page 4: Independent Samples T-Test. Outline of Today’s Discussion 1.About T-Tests 2.The One-Sample T-Test 3.Independent Samples T-Tests 4.Two Tails or One? 5.Independent

Computing the ‘t’ Statistic

Recall One of Our Themes:

Correlational Research vs Differential Research

Page 5: Independent Samples T-Test. Outline of Today’s Discussion 1.About T-Tests 2.The One-Sample T-Test 3.Independent Samples T-Tests 4.Two Tails or One? 5.Independent

Computing the ‘t’ Statistic

When we evaluate thedifference between ANY two means

We can’t just look at the mean-difference alone.

We need to consider the mean-difference in Context!!!

For t-tests…the context is the variability.

Page 6: Independent Samples T-Test. Outline of Today’s Discussion 1.About T-Tests 2.The One-Sample T-Test 3.Independent Samples T-Tests 4.Two Tails or One? 5.Independent

Computing the ‘t’ Statistic

Which graph makes a more convincingcase for Drug X, and why?

For t-tests…the context is the variability.

The Effectiveness of Drug x

0

2

4

6

8

10

12

Drug x PlaceboTreatment

Mea

n Eff

ecti

vene

ss

The Effectiveness of Drug x

0

2

4

6

8

10

12

Drug x PlaceboTreatment

Mea

n Eff

ecti

vene

ss

Page 7: Independent Samples T-Test. Outline of Today’s Discussion 1.About T-Tests 2.The One-Sample T-Test 3.Independent Samples T-Tests 4.Two Tails or One? 5.Independent

Computing the ‘t’ Statistic

Mantra:

T-Tests compare means.

Page 8: Independent Samples T-Test. Outline of Today’s Discussion 1.About T-Tests 2.The One-Sample T-Test 3.Independent Samples T-Tests 4.Two Tails or One? 5.Independent

Computing the ‘t’ Statistic

Mantra:

T-Tests compare means(in the context of variability).

Page 9: Independent Samples T-Test. Outline of Today’s Discussion 1.About T-Tests 2.The One-Sample T-Test 3.Independent Samples T-Tests 4.Two Tails or One? 5.Independent

Part 2

The One Sample T-Test

Page 10: Independent Samples T-Test. Outline of Today’s Discussion 1.About T-Tests 2.The One-Sample T-Test 3.Independent Samples T-Tests 4.Two Tails or One? 5.Independent

The One Sample T-Test1. In ancient times –before the number 2 was invented-

caveman used a one sample t-test! ;)

2. A one sample t-test is an evaluation of a single mean, rather than two means.

3. The sample mean is compared to a ‘test value’ that is of interest to the research.

4. Example 1: Consider the proportion of m&m’s colors in the population. There would be a “test value” for each color…

Page 11: Independent Samples T-Test. Outline of Today’s Discussion 1.About T-Tests 2.The One-Sample T-Test 3.Independent Samples T-Tests 4.Two Tails or One? 5.Independent

Test ValuesIn the

Population:

24% blue14% brown 16% green

20% orange 13% red

14% yellow

Page 12: Independent Samples T-Test. Outline of Today’s Discussion 1.About T-Tests 2.The One-Sample T-Test 3.Independent Samples T-Tests 4.Two Tails or One? 5.Independent

The One Sample T-Test1. Example 2: Assume that you are a therapist who has

received a ‘sample’ of 20 patients diagnosed with clinical depression.

2. After 5 weeks of your treatment, you might ask whether the mean of your sample is statistically indistinguishable from non-depressed patients, who have a mean of, say, 500 on a standard mood assessment.

Page 13: Independent Samples T-Test. Outline of Today’s Discussion 1.About T-Tests 2.The One-Sample T-Test 3.Independent Samples T-Tests 4.Two Tails or One? 5.Independent

The One Sample T-Test1. The null hypothesis would be as follows:

Ho: In the population, the mean mood score of patients who have completed 5 weeks of (my) therapy is equal to that of non- depressed people.

2. In this example, the test value would be equal to whatever the mean of the non-depressed population is…let’s say ‘500’. So, the test value = 500 here.

Page 14: Independent Samples T-Test. Outline of Today’s Discussion 1.About T-Tests 2.The One-Sample T-Test 3.Independent Samples T-Tests 4.Two Tails or One? 5.Independent

The One Sample T-Test1. Example 3:

Ho: In the population, the mean age when first married is equal to 20.

2. So, the test value = 20 here.

3. The steps in SPSS are simple, and are virtually identical to the two-mean case…

Page 15: Independent Samples T-Test. Outline of Today’s Discussion 1.About T-Tests 2.The One-Sample T-Test 3.Independent Samples T-Tests 4.Two Tails or One? 5.Independent

The One Sample T-TestSPSS Steps:

Analyze Compare Means One Sample T-Test Test Value Box Enter the value that is to be compared to the sample mean

The sample mean of 22.79,is compared to our test value,

Say, …20.

The ‘sig’ value indicates that we should reject Ho,i.e., we should REJECT that the sample mean is equal to the test value.

Page 16: Independent Samples T-Test. Outline of Today’s Discussion 1.About T-Tests 2.The One-Sample T-Test 3.Independent Samples T-Tests 4.Two Tails or One? 5.Independent

The One Sample T-TestSPSS Steps:

Analyze Compare Means One Sample T-Test Test Value Box Enter the value that is to be compared to the sample mean

The sample mean of 22.79,is compared to our test value,

Say, …22.7.

The ‘sig’ value indicates that we should retain Ho,i.e., we should accept that the sample mean is equal to the test value.

Page 17: Independent Samples T-Test. Outline of Today’s Discussion 1.About T-Tests 2.The One-Sample T-Test 3.Independent Samples T-Tests 4.Two Tails or One? 5.Independent

The One Sample T-TestSPSS Steps:

Analyze Compare Means One Sample T-Test Test Value Box Enter the value that is to be compared to the sample mean

The sample mean of 22.79,is compared to our test value,

Say, …22.7.

The mean difference of 0.092 is NOT significantly different from zero (Ho).Note: When Ho is true, than the 95% confidence interval contains a zero.

Page 18: Independent Samples T-Test. Outline of Today’s Discussion 1.About T-Tests 2.The One-Sample T-Test 3.Independent Samples T-Tests 4.Two Tails or One? 5.Independent

The One Sample T-Test1. Typically, we prefer to run two samples…one

experimental group and one control group.

2. However, that may not always be possible.

3. The one sample t-test allows for a statistical comparison to some abstract standard (the ‘test value’), rather than to a control group.

Page 19: Independent Samples T-Test. Outline of Today’s Discussion 1.About T-Tests 2.The One-Sample T-Test 3.Independent Samples T-Tests 4.Two Tails or One? 5.Independent

Part 3

Independent Samples T-Tests

Page 20: Independent Samples T-Test. Outline of Today’s Discussion 1.About T-Tests 2.The One-Sample T-Test 3.Independent Samples T-Tests 4.Two Tails or One? 5.Independent

Computing the ‘t’ StatisticFormula for the

independent samples “t” statistic

What does “x bar” represent, again?

Page 21: Independent Samples T-Test. Outline of Today’s Discussion 1.About T-Tests 2.The One-Sample T-Test 3.Independent Samples T-Tests 4.Two Tails or One? 5.Independent

Computing the ‘t’ StatisticDenominator term in the

independent samples “t” statistic

What does this “s” represent, again?

Page 22: Independent Samples T-Test. Outline of Today’s Discussion 1.About T-Tests 2.The One-Sample T-Test 3.Independent Samples T-Tests 4.Two Tails or One? 5.Independent

Computing the ‘t’ StatisticDenominator term in the

independent samples “t” statistic

Simplified!

SS1 SS2

n1 n2 2

*

1n1

1n2

Page 23: Independent Samples T-Test. Outline of Today’s Discussion 1.About T-Tests 2.The One-Sample T-Test 3.Independent Samples T-Tests 4.Two Tails or One? 5.Independent

Computing the ‘t’ StatisticDegrees of Freedom for the

independent samples “t” statistic

Where N equals the sum of the two sample sizes (n1 + n2).

df = N - 2

Page 24: Independent Samples T-Test. Outline of Today’s Discussion 1.About T-Tests 2.The One-Sample T-Test 3.Independent Samples T-Tests 4.Two Tails or One? 5.Independent

Computing the ‘t’ Statistic

Which Graph would be associated withthe larger ‘t’ statistic, and why?

The Effectiveness of Drug x

0

2

4

6

8

10

12

Drug x PlaceboTreatment

Mea

n Eff

ecti

vene

ss

The Effectiveness of Drug x

0

2

4

6

8

10

12

Drug x PlaceboTreatment

Mea

n Eff

ecti

vene

ss

Page 25: Independent Samples T-Test. Outline of Today’s Discussion 1.About T-Tests 2.The One-Sample T-Test 3.Independent Samples T-Tests 4.Two Tails or One? 5.Independent

Computing the ‘t’ Statistic1. The independent samples “t” statistic is based on 3

assumptions.

2. The first assumption is the distribution of scores should be bell-shaped.

3. The second assumption is that the two populations from which the samples are selected must have (at least approximately) equal variances.

4. The third assumption is independence (the value of any datum does not depend on the any other datum).

Page 26: Independent Samples T-Test. Outline of Today’s Discussion 1.About T-Tests 2.The One-Sample T-Test 3.Independent Samples T-Tests 4.Two Tails or One? 5.Independent

Computing the ‘t’ Statistic1. How might we quantitatively assess the first assumption,

i.e., the normalcy assumption? Hint: We’ve done it before (kind of).

2. There are ways to test the equal variance assumption quantitatively. SPSS will help us with that later.

3. The independence assumption requires that we investigate how the data were obtained. (No stats here.)

The independence assumption does NOT pertain to the within-subject t-test.

Page 27: Independent Samples T-Test. Outline of Today’s Discussion 1.About T-Tests 2.The One-Sample T-Test 3.Independent Samples T-Tests 4.Two Tails or One? 5.Independent

Part 4

Two Tails or One?

Page 28: Independent Samples T-Test. Outline of Today’s Discussion 1.About T-Tests 2.The One-Sample T-Test 3.Independent Samples T-Tests 4.Two Tails or One? 5.Independent

Two Tails or One?1. Here’s are some hypotheses for t-tests

H0: In the population, the means for the control and experimental groups will be equal.

H1: In the population, the means for the control and experimental groups will NOT be equal.

2. The alternate hypothesis is said to be “two tailed” because it is non-directional…it does NOT state which of the two means will be larger.

Two-Tailed Case

Page 29: Independent Samples T-Test. Outline of Today’s Discussion 1.About T-Tests 2.The One-Sample T-Test 3.Independent Samples T-Tests 4.Two Tails or One? 5.Independent

Two Tails or One?Two-Tailed Case

.025 is lower than this

.025 is higher than this

Non-directional hypotheses are evaluated with a two-tailed test!

We could reject the null hypothesis whether the observed t-statisticis in either critical region…but the observed “t” value must

be at least 47.5 percentiles away from the mean!mean = 50th percentile:

50 - 47.5 = 2.5 percentile (left) : 50 + 47.5 = 97.5 percentile (right)

Page 30: Independent Samples T-Test. Outline of Today’s Discussion 1.About T-Tests 2.The One-Sample T-Test 3.Independent Samples T-Tests 4.Two Tails or One? 5.Independent

Two Tails or One?

1. Here’s are some hypotheses for t-testsH0: In the population, the means for the control and

experimental groups will be equal.

H1: In the population, the mean for the control group will be greater than the mean for the experimental group.

2. The alternate hypothesis is said to be “one tailed” because it is directional…it states which mean will be larger.

One-Tailed Case

Page 31: Independent Samples T-Test. Outline of Today’s Discussion 1.About T-Tests 2.The One-Sample T-Test 3.Independent Samples T-Tests 4.Two Tails or One? 5.Independent

Two Tails or One?One-Tailed Case

Directional hypotheses are evaluated with a one-tailed test!

We can only reject the null hypothesis when the observed t-statisticis in the predicted critical region… but the observed “t” value only needs to be at least 45 percentiles away from the mean!

mean = 50th percentile: 50 + 45= 95 percentile (right)

Page 32: Independent Samples T-Test. Outline of Today’s Discussion 1.About T-Tests 2.The One-Sample T-Test 3.Independent Samples T-Tests 4.Two Tails or One? 5.Independent

Two Tails or One?1. When do we use two tails versus one tail?

2. It depends!

3. If you want to make a directional prediction, use one-tail, otherwise use two-tails.

4. Two-tails are often preferred because they are more conservative (47.5 percentiles from mean for two-tailed significance, versus a mere 45 percentiles from mean for one tailed significance).

Page 33: Independent Samples T-Test. Outline of Today’s Discussion 1.About T-Tests 2.The One-Sample T-Test 3.Independent Samples T-Tests 4.Two Tails or One? 5.Independent

Part 5

Independent SampleT-Tests in Excel

Page 34: Independent Samples T-Test. Outline of Today’s Discussion 1.About T-Tests 2.The One-Sample T-Test 3.Independent Samples T-Tests 4.Two Tails or One? 5.Independent

Part 6

Independent SampleT-Tests in SPSS

Page 35: Independent Samples T-Test. Outline of Today’s Discussion 1.About T-Tests 2.The One-Sample T-Test 3.Independent Samples T-Tests 4.Two Tails or One? 5.Independent

Independent Samples T-Tests in SPSS

1. SPSS Question – When conducting t-tests in SPSS, what is a synonym for “Test Variable”? What is a synonym for “Grouping Variable”?

2. SPSS Question– Consider the four types of measurement scales that we discussed earlier this semester. For which scale or scales would a t-test be appropriate? Explain your reasoning.

Page 36: Independent Samples T-Test. Outline of Today’s Discussion 1.About T-Tests 2.The One-Sample T-Test 3.Independent Samples T-Tests 4.Two Tails or One? 5.Independent

Independent Samples T-Tests in SPSS

1. SPSS Question – In your own words, explain why it is necessary to consider Levene’s test?

2. SPSS Question – In your own words, explain how to interpret Levene’s test in the SPSS output.

Page 37: Independent Samples T-Test. Outline of Today’s Discussion 1.About T-Tests 2.The One-Sample T-Test 3.Independent Samples T-Tests 4.Two Tails or One? 5.Independent