Bio Factsheet: The Paired T-Test & When To Use It
Bio Factsheet: The Paired T-Test & When To Use It
The other hypothesis - alternative hypothesis (H1) - can take one of three forms (Table 1); the precise form of it tells you whether you are carrying out
a one-tailed or a two-tailed test. A one-tailed test means that you are only considering one alternative - for example that the leaves are bigger at the top of
the tree. A two-tailed test means you are considering either alternative - that the leaves could be either bigger or smaller at the top of the tree.
Table 1. Alternative hypotheses for the t-test
Alternative Hypothesis Example 1-tailed or 2-tailed Use it if you are expecting....
mean 1 > mean 2 mean leaf length at top > mean leaf length at bottom 1-tailed leaves to be longer at the top
mean 1 < mean 2 mean leaf length at top < mean leaf length at bottom 1 tailed leaves to be shorter at the top
mean 1 mean 1 mean leaf length at top mean leaf length at bottom 2-tailed not sure - could be either!
Note that the pairs must be matched in a natural way - you cannot just decide
to pair results up.
The idea of pairing is to increase the chance that any differences really are
due to what you are investigating - e.g. which side of the hedge the point is
- rather than due to other variations - e.g. soil quality.
If a paired test is not applicable, then an unpaired test must be used. Measurement
Table 2 shows some examples of investigations requiring paired and What sorts of things are normally distributed?
unpaired tests. Normally distributed variables must be continuous - this means that they
can take any value (like lengths), rather than only set values (like numbers
Table 2. t-test investigations of organisms - you can't have 2.85 spiders!)
Investigation Paired or Unpaired?
Generally speaking, anything that is measured will be normally
Comparison of plant growth on two Paired distributed. This includes length, width, height, weight and velocity.
sides of a hedgerow
Effect of different soil types on the Anything that is counted (like numbers of organisms) or calculated (like
yield of a crop plant Unpaired
a diversity index) will not be normally distributed. In these cases, you
Effect of pollution on vegetation Unpaired should use the Mann-Whitney U-test instead.
Sample size
Exam Hint: - If you are unsure, it is better to use an unpaired test. You cannot use the t-test unless you have at least 6 measurements in each
Even if a paired test would have been suitable, it is not wrong to use an
sample for the paired test.
unpaired one (although it is harder to get a significant result). But
using a paired test where it is not appropriate is definitely wrong and
will not gain you marks! However, you will find it much easier to get a significant result if you have
larger numbers than this - aim for at least 10 in each sample.
1
The paired t-test Bio Factsheet
Person A B C D E F G H
"Before" weight 76.4 85.9 50.6 62.4 90.5 55.7 78.3 67.4
"After" weight 74.5 80.1 50.8 62.3 79.4 55.7 73.2 65.0
Step 1: Write down the hypotheses, deciding which form Since we would expect a healthy diet to reduce weight compared to a junk-food
of the alternative hypothesis you want to (use and diet, we have:
so whether it is 1-tailed or 2-tailed). H 0: Mean weight "before" = Mean weight "after"
H 1: Mean weight "before" > Mean weight "after" So it is a 1-tailed test
Step 2: Decide whether it is paired or unpaired This is paired, because we are considering the same people "before" and "after"
Step 3: For a paired test, work out "1st value - 2nd value" Person A B C D E F G H
for each individual "Before - "After" 1.9 5.8 -0.2 0.1 11.1 0 5.1 2.4
(76.4 - 74.5)
Step 5: Calculate the standard deviation s, using x2 =1.92 + 5.82 + (-0.2)2 + 0.12 + 11.12 + 02 + 5.12 + 2.42 = 192.28
x
2 n=8
s= x2 Exam Hint: - When you are
n
s = 192.28 3.2752 = 3.648 working out x 2 , you must
8 square each value then add
where x2 means square each difference, then add up them - you cannot add then
n = no. of values square afterwards.
x = mean of the differences
= add up
Exam
ExamHint
Hint:- -Do
Donot
notworry
worryabout
about
Step 7: Work out the degrees of freedom, using degrees of freedom = 8 - 1 = 7
what
whatthis
thismeans,
means,but butremember
remember
degrees of freedom = n - 1 totouse
usenn--11
Step 8: Get a t-test table and look up the value for the We are carrying out a 1-tailed test; Table 3. t-table
significance level (usually 5%), the degrees of freedom we will use a 5% significance level.
Significance level
and whether it is a 1-tailed or 2-tailed test. We need to use 7 degrees of freedom. d f 0.1 0.05 0.025 0.01 0.005
5 1.476 2.015 2.571 3.365 4.032
So our tables value is 1.895 6 1.440 1.943 2.447 3.143 3.707
7 1.415 1.895 2.365 2.998 3.499
8 1.397 1.860 2.306 2.896 3.355
9 1.383 1.833 2.262 2.821 3.250
10 1.372 1.812 2.228 2.764 3.169
11 1.363 1.796 2.201 2.718 3.106
12 1.356 1.782 2.179 2.681 3.055
Step 9: Make a decision - if your t-value is bigger than the Our test-value (2.539) is bigger than the tables value.
one from the tables, you can reject the null So we reject the null hypothesis.
hypothesis. Otherwise you have to accept it. So the mean weight before is significantly greater than the mean weight after.
2
The paired t-test Bio Factsheet
the mean mass of gold = mean mass of gold (iii) (x)2 = 0.010(2) ; 1
accumulated without thiocyanate accumulated with thiocyanate
(iv) s2 = 1.464 - 0.010 = 0.112 ;
The alternate hypothesis considered was: 12
mean mass of gold mean mass of gold s = 0.335 ; 2
accumulated without thiocyanate accumulated with thiocyanate
(v) t = 0.10112 1 ; = 1.00 ; (allow 0.999) 2
(a) Carry out a t-test to test the validity of the null hypothesis. 0.335