Example of Two Independent Samples Student's t Test
Biostatistics BI 45, Saint Anselm College
Step 1) State the biological question.
Is there a difference in the blood clotting times of individuals taking Drug A versus blood clotting times of individuals taking Drug B?
Step 2) Translate the biological question into statistical hypotheses.
![]()
Step 3) State the alpha level: p<0.05 is considered significant
Step 4) State the statistical test.
Because we are working with two independent samples we use the two-tailed Two Independent Samples t test.
Step 5) State the assumptions of the test.
The subjects in each sample must be randomly selected from a population. The sample data must come from a normally distributed populations of observations for the variable under study and the variances from the two samples must be equal.
Step 6) Calculate the observed t statistics from your data.
| DrugB | d-drugb | d_drugb2 | ssdrugb | DrugA | d_drugA | d_drugA2 | ssdrugA |
| 8.8 | 0.050 | 0.0025 | 1.695 | 9.9 | 0.157 | 0.024649 | 4.017 |
| 8.4 | -0.35 | 0.1225 | 9 | -0.743 | 0.552049 | ||
| 7.9 | -0.85 | 0.7225 | 11.1 | 1.357 | 1.841449 | ||
| 8.7 | -0.05 | 0.0025 | 9.6 | -0.143 | 0.020 | ||
| 9.1 | 0.35 | 0.1225 | 8.7 | -1.043 | 1.087849 | ||
| 9.6 | 0.85 | 0.7225 | 10.4 | 0.657 | 0.431649 | ||
| 9.5 | -0.243 | 0.059 |
| Mean for B = 8.75 | Mean for A =9.74 |
| n for B=6 | n for A=7 |
| v for B=5 | v for A=6 |
| SS for B=1.695 | SS for A=4.0171 |

Step 7) Find the df and critical value of t from the table of critical values.

Step 8) Compare the critical and observed t values and reject or do not reject the null hypothesis.

Find the actual P value
t.05(2)11=2.201<tobs=2.475<
t.02(2)11=2.718
0.02<P<.05
Step 9) Interpret the results of the analysis as it relates to the biological question raised in 1).
We rejected the null hypothesis in Step 8. There is a difference in blood clotting times between individuals that took Drug B versus individuals that took Drug A (t=-2.475, df=11, two-tailed, p<0.05).
Blackboard at Saint Anselm College
Trademark and Disclaimers
Copyright © 2001 Jay Pitocchelli. All rights reserved. The contents of this page are the intellectual property of Dr. Jay Pitocchelli for distribution to students enrolled in Biostatistics BI 45 at Saint Anselm College. These pages may not be copied, photocopied, reproduced, translated, or published in any electronic or machine-readable form in whole or in part without prior written approval of Jay Pitocchelli. Students enrolled in Biostatistics BI 45 at Saint Anselm College have permission to print this material for their lecture notes. All formulae and critical values from: Zar, J. H. 1999. Biostatistical Analysis. (4th ed.). New Jersey, Prentice Hall.