The t Test
In biology you often want to compare two sets of replicated measurements to see if they are the same or different. For example are plants treated with fertiliser taller than those without? If the means of the two sets are very different, then it is easy to decide, but often the means are quite close and it is difficult to judge whether the two sets are the same or are significantly different. The t test compares two sets of data and tells you the probability (P) that the two sets are basically the same.
P varies from 0 (not likely) to 1 (certain). The higher the probability, the more likely it is that the two sets are the same, and that any differences are just due to random chance. The lower the probability, the more likely it is that that the two sets are significantly different, and that the differences are real. Where do you draw the line between these two conclusions? In biology the critical probability is usually taken as 0.05 (or 5%). This may seem very low, but it reflects the facts that biology experiments are expected to produce quite varied results. So if P > 0.05 then the two sets are the same, and if P < 0.05 then the two sets are different. For the t test to work, the number of repeats should be as large as possible, and certainly > 5.
In Excel the t test is performed using the formula: =TTEST (range1, range2, tails, type) . For the examples you'll use in biology, tails is always 2 (for a "two-tailed" test), and type can be 1 or 2 depending on the circumstances.

The usual form of the t test is for "unmatched pairs" (type=2), where the two sets of data are from different individuals. For example the number of white blood cells of 5 patients infected with a parasite were compared with 5 unaffected individuals. The results are shown in the spreadsheet on the right, and the means and confidence limits have been worked out as usual. The infected patients certainly have a smaller mean white blood cell count, but is it significantly smaller? Cell B9 has the t-test probability, which is 0.014. This probability is smaller than the critical value of 0.05, so the two groups are significantly different, and the infected patients really do have significantly fewer white cells than normal.

The Equations
Mean
|
|
where n is the number of measurements x are the measurements to be averaged and S means sum of. |
95% Confidence Interval
|
|
where n is the number of measurements s is the standard deviation and x are the measurements to be averaged |
t Test (non-matched pairs)
|
|
where n is the number of points
sA is the standard deviation of set A
sB is the standard deviation of set B The probability is then found from a table of t values. |
t Test (matched pairs)
|
|
where n is the number of points
and s is the standard deviation of the differences |