Dependent Sample T-test 1 - Copy for Class
Dependent Sample T-test 1 - Copy for Class
Dependent Sample T-test 1 - Copy for Class
25/11/2024
How many tests are there now???
• Z test we know everything about a population of interest
o μ,
o We are comparing a single sample’s mean against a population mean
o M, n
• One-sample t-test we only know the mean of a population
o only μ
o We are still comparing a single sample to that population, with additional
estimations
o M, n, df, s*
Previously on One-sample T-Test
• Suppose your college newspaper reports a survey showing that students at your college
study an average of 17 hours per week. However, you think that the students in your
dormitory are much more hardworking than that. You randomly ask 5 students from
your dormitory how much they study each week. They reported as below:
16, 18, 20, 20, 21
Previously on One-sample T-Test
• Suppose your college newspaper reports a survey showing that students at your college
study an average of 17 hours per week. However, you think that the students in your
dormitory are much more hardworking than that. You randomly ask 5 students from
your dormitory how much they study each week. They reported as below:
16, 18, 20, 20, 21
o μ = 17, M =19, s = 2, df = 4
o t(4) = +2.25, p < .05
Which test should we use?
Which test should we use?
• A company wants to test that whether their newly developed batteries last
more than the average phone battery in the market, which is about 40 hours.
They randomly selected 25 phones with the new battery and run them until
they died, which took 45 hours on average.
Which test should we use?
• Four METU students are worried that they are living sedentary lives. The
average daily steps they took last month are below:
6800, 6300, 6000, 4900.
• They think this is not enough and promise each other to increase their
average daily steps. Two months later, the average daily steps they took
are as below:
6800, 7000, 5800, 5400
• Did they keep their promise?
• In most research, we do not know the population’s mean either…
• A more common research situation is studying the same sample across time, or for
multiple variables at once
• Repeated measures design: research strategy in which each person is tested more
than once for the same variable(s)
o e.g., before and after some psychological or social intervention
• Within-subjects design: research strategy in which multiple variables were measured
for each person
o Virtually the same thing
Dependent-samples T-test
• The hypothesis-testing procedure in which two sets of scores from the same sample
is being compared
Steps-- Steps--
Before After
1 6800 6800
2 6300 7000
3 6000 5800
4 4900 5400
Dependent-samples T-test
Steps-- Steps--
Before After
1 6800 6800
2 6300 7000
3 6000 5800
4 4900 5400
Dependent-samples T-test
2 6300 7000
3 6000 5800
4 4900 5400
Dependent-samples T-test
2 6300 7000
3 6000 5800
4 4900 5400
M1 = 6000
Dependent-samples T-test
2 6300 7000
3 6000 5800
4 4900 5400
M1 = 6000 M2 = 6250
Dependent-samples T-test
2 6300 7000
3 6000 5800
4 4900 5400
M1 = 6000 M2 = 6250
Dependent-samples T-test
3 6000 5800
4 4900 5400
M1 = 6000 M2 = 6250
Dependent-samples T-test
4 4900 5400
M1 = 6000 M2 = 6250
Dependent-samples T-test
Difference
Scores
1 0
2 +700
3 -200
4 +500
Mdiff = +250
Dependent-samples T-test
1 39 31
2 45 29
3 55 33
4 30 32
5 49 27
Anxiety- Anxiety-
Before After
1 39 31
2 45 29
3 55 33
4 30 32
5 49 27
One sample t-test - Step by step
*) Determine which test is appropriate: if the population standard deviation is not known but
the population mean is, go for one-sample t-test
5) Determine if the hypothesis is directional (cut-off p < .05) or non-directional (cut-off p < .025)
6) Find the cut-off t-value using the degrees of freedom (n-1) & cut-off p value
7) If the observed t values exceeds the cut-off t-value, reject the null hypothesis research
hypothesis is supported
Dependent sample t-test - Step by step
*) Determine which test is appropriate: if there is no mention of population, but the research is
conducted as within-subjects design; go for a dependent samples t-test
5) Determine if the hypothesis is directional (cut-off p < .05) or non-directional (cut-off p < .025)
6) Find the cut-off t-value using the degrees of freedom (n-1) & cut-off p value
7) If the observed t values exceeds the cut-off t-value, reject the null hypothesis research
hypothesis is supported
• SPSS guide to one-sample t-test
--Analyze Compare Means One Sample T test
--Move the target variable into the “Test Variable(s)” box
--Replace the “0” in the box that says “Test value” with the population
mean you want to test your sample against
--Press OK
• SPSS guide to dependent sample t-test
--Analyze Compare Means Paired Samples T test
--Move the target variable into the “Test Variable(s)” box
--Place your variables (e.g., before x, after x) under the boxes labeled
“Variable 1” and “Variable 2”
--Press OK
c
c