Dulranga's Notes
Semester 3MathematicsApplied Statistics

Paired T tests

Used when 2 related measurements are taken on the same subjects. Evaluates whether the mean difference between paired observations is significantly different from zero

Paired Data

Data that are related to some common subject.

  • the same person before and after
  • same animal before and after doing treatments.
di=xi,after−xi,befored_i = x_{i,\text{after}} - x_{i,\text{before}} dˉ=∑din,sd=∑(di−dˉ)2n−1\bar{d} = \frac{\sum d_i}{n}, \qquad s_d = \sqrt{\frac{\sum (d_i - \bar{d})^2}{n-1}}

Now we can test hypothesis using a t test. Usually we use "there is no change" as the null hypothesis but we can use anything like "the pumpkins has grown 2kg after the treatment" like ones too. Statistic,

d=μafter−μbefored = \mu_{\text{after}} - \mu_{\text{before}}

First one,

H0  :  d=0H_0 \; : \; d = 0

In the second one,

H0  :  d=2H_0 \; : \; d = 2

Degree of Freedom

Since we test the same set of subjects for the second time, We do not have freedom to choose 2n2n as the freedom. We can only choose nn and since we lose 11 to paired mean,

DoF=n−1DoF = n-1

we lose 1 to mean even though we have two means happen due to we building a new statistic "d". So we do not need to estimate two means, just the mean of d

On this page