Worked example
Example: Illustrative two samples. The inputs, in the units selected above:
| Input | Value |
|---|---|
| Mean of sample 1 | 52.300 - |
| Standard deviation of sample 1 | 4.1000 - |
| Size of sample 1 | 12.000 - |
| Mean of sample 2 | 48.900 - |
| Standard deviation of sample 2 | 5.3000 - |
| Size of sample 2 | 15.000 - |
| Significance level | 5.0000 % |
Applying the formula below gives:
| Result | Value |
|---|---|
| Difference of means | 3.4000 |
| Welch t statistic | 1.8792 |
| Welch–Satterthwaite degrees of freedom | 24.985 |
| Two-sided p-value | 0.071931 |
| Significant difference (1 = yes) | 0 |
Open this example in the calculator and change any input.
Formula
\(t = \frac{\bar x_1 - \bar x_2}{\sqrt{s_1^2/n_1 + s_2^2/n_2}}, \quad \nu = \frac{(s_1^2/n_1 + s_2^2/n_2)^2}{\frac{(s_1^2/n_1)^2}{n_1 - 1} + \frac{(s_2^2/n_2)^2}{n_2 - 1}}\)
Variables
| Symbol | Meaning | SI unit |
|---|---|---|
| \(\bar x_1\) | Mean of sample 1 | - |
| \(s_1\) | Standard deviation of sample 1 | - |
| \(n_1\) | Size of sample 1 | - |
| \(\bar x_2\) | Mean of sample 2 | - |
| \(s_2\) | Standard deviation of sample 2 | - |
| \(n_2\) | Size of sample 2 | - |
| \(\alpha\) | Significance level | - |
| \(\bar x_1 - \bar x_2\) | Difference of means | - |
| \(t\) | Welch t statistic | - |
| \(\nu\) | Welch–Satterthwaite degrees of freedom | - |
| \(p\) | Two-sided p-value | - |
| \(p < \alpha\) | Significant difference (1 = yes) | - |
Method and standards
t-test.
Where it is used
- Comparing process changes, suppliers or materials.
- Laboratory and trial results.
Common mistakes
- Paired data analysed as independent.
- Equating significance with importance.
Assumptions and limits
- Independent samples; approximately normal data.
References
- Welch's unequal-variance t test
Questions and answers
Why Welch instead of the pooled t-test?
It stays valid when the two variances differ and loses little when they are equal.
Does significant mean important?
No: with large samples tiny, irrelevant differences become significant.
What do the defaults represent?
Two illustrative samples: 52.3 ± 4.1 (n = 12) and 48.9 ± 5.3 (n = 15), tested at 5 %.
Method and article reviewed by FireCAD engineering on 17 November 2026. Every result is checked against an independent calculation on each release: how we verify our calculators.
Sources
Welch, The Generalization of Student's Problem when Several Different Population Variances are Involved, Biometrika 34 (1947), Montgomery and Runger, Applied Statistics and Probability for Engineers, 6th ed. (Wiley, 2014)