T-test
T-test
The t-test is a statistical hypothesis test used to determine whether there is a significant
difference between the means of two groups. It’s based on the t-distribution, and is typically
used when sample sizes are small and the population standard deviation is unknown.
Used to compare the means of two independent groups (e.g., treatment vs. control group).
Example:
Comparing the average blood pressure between two different groups of people—those who took a drug
vs. those who took a placebo.
Assumptions:
3. The variances of the two groups are equal (if not, use Welch’s t-test).
Formula:
Degrees of freedom (df):
df = n1+n2−2
A teacher wants to compare the average test scores of two different classes.
Step 6: Interpretation
Using a t-table, at df = 10, the critical t-value for α = 0.05 (one-tailed) is approximately ±1.812
Conclusion: There is a significant difference in test scores between the two classes.
A researcher is testing a new painkiller and compares its effect on pain relief scores between two groups.
Step 1: Hypotheses
Step 6: Interpretation
From the t-table, at df = 8, the critical t-value for one-tailed test at α = 0.05 is 1.860.
Conclusion: The drug group showed significantly higher pain relief than the placebo group.
b. Paired t-test (Dependent Samples t-test)
Purpose:
Used to compare the means of two related groups or matched pairs (e.g., before and after treatment on
the same subjects).
Example:
Assumptions:
Formula:
1 150 140
2 160 145
3 170 160
4 155 150
5 165 155
6 158 150
Step 1: Hypotheses
● H₁: μ_d > 0 (blood pressure is reduced after treatment — one-tailed test)
Let d = Before−After
1 150 140 10
2 160 145 15
3 170 160 10
4 155 150 5
5 165 155 10
6 158 150 8
Step 5: Interpretation
Using a t-table:
A psychologist evaluates memory scores of participants before and after a cognitive training session.
A 52 58
B 60 65
C 55 62
D 50 56
E 58 63
Step 1: Hypotheses
A 58 52 6
B 65 60 5
C 62 55 7
D 56 50 6
E 63 58 5
Step 5: Interpretation