Two samples t-test
Two samples t-test
determine whether there is a statistically significant difference between the means of two
independent groups. Here's a breakdown:
Purpose:
Key Assumptions:
Independence: The observations within each group are independent of each other.
Normality: The data within each group are approximately normally distributed.
Homogeneity of variance: The variances of the two groups are approximately equal. (Levene's
test is often used to check this.)
Equation:
The formula for the independent t-test can vary slightly depending on whether the variances of the
two groups are assumed to be equal or unequal.
Xˉ 1 − Xˉ 2
t=
1 1
sp
n1
+ n2
Where:
Xˉ 1 and Xˉ 2 are the sample means of the two groups.
Xˉ 1 − Xˉ 2
<2>t=
s21 s22
+
n1 n2
Where:
Xˉ 1 and Xˉ 2 are the sample means of the two groups.
s21 and s22 are the sample variances of the two groups.
Simple Example:
Let's say we want to know if there's a significant difference in test scores between two groups of
students: Group A and Group B.
ˉ
Mean of Group B (X2 ): 80