Two-sample t-test
Comparing the means of two independent groups: two machines, two suppliers, before and after.
The two-sample t-test compares the means of two independent groups. Welch's version does not assume equal variances:
The degrees of freedom come from the Welch-Satterthwaite formula, usually a non-integer that software handles.
Pooled or Welch?
The pooled version assumes both groups have the same variance. If that is wrong and the group sizes differ, the pooled test can give misleading p-values. Welch's test loses very little when variances are equal and protects you when they are not, so it is the better default.
Independent groups only
The two groups must not be linked. If the same parts are measured twice (before and after heat treatment, gauge A and gauge B), use the Paired t-test, which is far more sensitive for that situation.
Look before testing
Plot both groups with a Box plot or dot plot. A difference in spread can matter more than a difference in means: a new supplier with the same average but twice the spread is worse.
More than two groups
Running many pairwise t-tests inflates false alarms. Use One-way ANOVA followed by Multiple comparisons.
Stat > 2-Sample t, with Welch's test by default and a pooled option.
See also
References
- Welch, B. L. "The generalization of Student's problem when several different population variances are involved." Biometrika 34, 1947.