Independent-Samples T-Test
Comparison of means between two independent groups with Levene's test and Satterthwaite degrees of freedom.
Verified vs SciPy (≤ 10⁻⁶)IBM SPSS Algorithms pp. 1063–1065
1. Overview#
The Independent-Samples T-Test procedure tests the significance of the difference between the means of two independent groups. StatCraft automatically produces a canonical two-row SPSS Pivot Table containing both:
- 1.Equal variances assumed (Student's t-test with pooled variance);
- 2.Equal variances not assumed (Welch-Satterthwaite test with adjusted degrees of freedom).
2. Mathematical Specification#
Let sample 1 have size , mean , and variance , and sample 2 have size , mean , and variance .
The Welch t-statistic is:
The Satterthwaite degrees of freedom are computed as:
3. Levene's Test for Homogeneity#
Before evaluating the t-statistic, StatCraft evaluates Levene's test of homogeneity of variance. Absolute deviations from group means are subjected to an analysis of variance -test.
Canonical SPSS Syntax Example
SPSS SYNTAX (.SPS)
| 1 | T-TEST GROUPS=gender(1 2) |
| 2 | /MISSING=ANALYSIS |
| 3 | /VARIABLES=salary |
| 4 | /CRITERIA=CI(.95). |