Used when 2 related measurements are taken on the same subjects. Evaluates whether the mean difference between paired observations is significantly different from zero.
Use when: observations are naturally paired (before/after, matched subjects, repeated measures). Use an independent 2-sample t-test instead when samples are unrelated.
Let each pair have values (X1,X2). Suppose di=X1i−X2i.
dˉ=n1i=1∑ndiandsd=n−1∑(di−dˉ)2
Hypotheses
H0:μd=d0(no mean difference, typically d0=0)H1:μd<d0 or μd>d0 or μd=d0
Test Statistic
Under H0 with ν=n−1:
t=sd/ndˉ−d0∼tν
Decision Rule
Reject H0if:
Left-tail: t<−tν,α
Right-tail: t>tν,α
Two-tail: ∣t∣>tν,α/2
Examples:
Blood pressure measured before and after a drug treatment on the same patients
Exam scores for the same students before and after a tutoring program