T-Test - Racma T. Panigas
T-Test - Racma T. Panigas
T-Test - Racma T. Panigas
Samples
(ak.a., Paired samples t-test, Correlated Groups
Design, Within-Subjects Design, Repeated
Measures, ……..)
X hyp D Dh yp
t t
sX sD
A Population of
Difference Scores with a Mean of 0
The null hypothesis in a repeated-measures
design is that on the average there is no
difference between the two groups of scores.
This is the same as saying that the mean of the
sampling distribution of difference scores is 0.
The t Test for Dependent Samples
D Dh yp
t
sD
sD
sD
n
n D 2 ( D ) 2
sD
n(n 1)
Example
Hypothesis Testing
1. State the research question.
2. State the statistical hypothesis.
3. Set decision rule.
4. Calculate the test statistic.
5. Decide if result is significant.
6. Interpret result as it relates to your research question.
Solution
• State the research hypothesis.
• Does listening to a pro-socialized medicine lecture change an
individual’s attitude toward socialized medicine?
• State the statistical hypotheses.
HO : D 0
H A : D 0
Solution
• Set the decision rule.
.05
df number of difference scores 1 8 1 7
tcrit 2.365
Solution 16
D 2
• Calculate the test statistic. 8
nD 2 (D) 2
sD
n( n 1)
8(42) (16) 2
s 1.2
8(7)
s D s 1.2 .42
sD D
n 8
20
t 4.76
.42
Solution
• Decide if your results are significant.
• Reject H0, -4.76<-2.365
• Interpret your results.
• After the pro-socialized medicine lecture, individuals’
attitudes toward socialized medicine were significantly
more positive than before the lecture.
Issues with Repeated Measures Designs
Order effects.
Use counterbalancing in order to eliminate any potential
bias in favor of one condition because most subjects
happen to experience it first (order effects).
Randomly assign half of the subjects to experience the
two conditions in a particular order.
Practice effects.
Do not repeat measurement if effects linger.
The t Tests
Independent Samples
The t Test for Independent Samples
• Observations in each sample are independent (not from the same
population) each other.
• We want to compare differences between sample means.
( X 1 X 2 ) ( 1 2 ) hyp
t
sX
1X 2
Sampling Distribution of the Difference
Between Means
• Imagine two sampling distributions of the mean...
• And then subtracting one from the other…
• If you create a sampling distribution of the difference between the
means…
• Given the null hypothesis, we expect the mean of the sampling distribution
of differences, 1- 2, to be 0.
• We must estimate the standard deviation of the sampling distribution of the
difference between means.
Pooled Estimate of the Population Variance
(n1 1) (n2 1)
Pooled Estimate of the Population Variance
• The pooled estimate of the population variance becomes the average of both
sample variances, once adjusted for their degrees of freedom.
• Multiplying each sample variance by its degrees of freedom ensures that the contribution of
each sample variance is proportionate to its degrees of freedom.
• You know you have made a mistake in calculating the pooled estimate of the variance if it
does not come out between the two estimates.
• You have also made a mistake if it does not come out closer to the estimate from the larger
sample.
• The degrees of freedom for the pooled estimate of the variance equals the sum of
the two sample sizes minus two, or (n1-1) +(n2-1).
Estimating Standard Error of the Difference
Between Means
2 2
(n 1)s (n 1)s
s 2p 1 1 2 2
(n1 1) (n2 1)
s 2p s 2p
sX
1X2
n1 n2
( X 1 X 2 ) ( 1 2 ) hyp
t
sX
1X 2
Example
• Stereotype Threat
X 1 6.58 X 2 9.64
9.59 9.59
sx X 1.29
1 2
12 11
6.58 9.64
t 2.37
1.29
Solution
4) Random Assignment
To make causal claims
5) Random Sampling
To make generalizations to the target population
Thank
You!!!