Equivalence test for two samples (TOST): is the new one the same?
The two-sample equivalence test shows that two independent groups, such as a new and a current machine, a second-source and a first-source material, or a new and an old furnace, have means that differ by less than a margin you set in advance. It is the right tool for the claim "the new one is as good as the old one". A 2-sample t test cannot make that claim: a non-significant result only means the data did not show a difference.
When to use it
- Qualifying a second machine, line, furnace, mold cavity or supplier against the one already approved.
- Validating a process change where the goal is to keep the output the same, such as a cheaper material or a faster cycle.
- Any time the hoped-for answer is "no difference", so the burden of proof must be on showing sameness.
If both measurements come from the same units, use the paired equivalence test instead; if each unit receives both treatments in two periods, use the 2×2 crossover design.
How it works
Call the new group the test group (mean μ_T) and the current one the reference (μ_R). Choose equivalence limits δ_L < 0 < δ_U for the difference μ_T − μ_R before collecting data. TOST runs two one-sided t tests on the difference of sample means, d = x̄_T − x̄_R:
SE = √(s_T²/n_T + s_R²/n_R)
t_L = (d − δ_L) / SE t_U = (d − δ_U) / SEThe degrees of freedom come from the Welch formula, so the two groups do not need equal standard deviations. Equivalence is shown when both one-sided p-values are below α = 0.05, which is the same as the 90% confidence interval for μ_T − μ_R lying entirely inside (δ_L, δ_U). The test's p-value is the larger of the two.
Limits are sometimes set as a percentage of the reference mean, such as ±2%. That turns them into fixed numbers once the reference value is agreed, or into a ratio test when the analysis is done on logarithms.
Example
A heat-treat shop adds a second carburizing furnace. Before parts from the new furnace can ship, the validation plan requires their mean surface hardness to be within ±1.0 HRC of the current furnace. Eight gears from the same steel lot go through each furnace, and each is measured once (HRC):
| Furnace | Hardness (HRC) |
|---|---|
| Current (reference) | 45.0, 45.6, 45.4, 45.4, 46.0, 44.3, 44.6, 44.2 |
| New (test) | 44.7, 45.6, 44.7, 45.2, 43.0, 44.9, 43.9, 46.3 |
The means are 44.79 HRC (new) and 45.06 HRC (current), so d = −0.275 HRC. The standard deviations are 1.009 and 0.648 HRC, SE = 0.424 and the Welch degrees of freedom are 11.9.
| Test | Null hypothesis | t | P |
|---|---|---|---|
| Lower | μ_T − μ_R ≤ −1.0 | 1.71 | 0.057 |
| Upper | μ_T − μ_R ≥ +1.0 | −3.01 | 0.005 |
The 90% confidence interval for the difference is −0.275 ± 1.783 × 0.424, from −1.03 to 0.48 HRC. Its lower end is just outside −1.0, so equivalence is not shown (p = 0.057).
How to read the results
- No difference found, and no equivalence shown. A 2-sample t test on the same data gives p = 0.53. Read as a qualification, that would pass the new furnace. The equivalence test says the data still allow the new furnace to be up to 1.03 HRC softer, which is outside the margin.
- The problem is the sample size, not necessarily the furnace. The interval is wide because there are only eight gears per furnace and the new furnace's parts scatter more. Simulation with the observed standard deviations gives this design only about a 37% chance of showing equivalence even if the true difference is −0.275 HRC; about 20 gears per furnace would raise it to about 84%.
- Look at the spread as well. The new furnace's standard deviation is 1.0 HRC against 0.65. With eight parts each, that ratio is not significant (F test p = 0.27), but it is worth watching: equal means do not guarantee equal capability.
- Next step: run more gears, ideally over several loads, and test again with all the data. The margin stays ±1.0 HRC; it must not widen to make the result pass.
Common mistakes
- Qualifying with a 2-sample t test. A non-significant p-value is the expected outcome of a small study, whether or not the groups are equivalent.
- Setting limits after the data. Limits come from the specification, the customer or the validation plan, fixed in advance.
- Comparing within one load. Eight gears from one load measure that load. Spread the sample over loads and days if the claim is about the furnace.
- Forgetting the variance. Equivalence of means is only part of process equivalence. Compare spreads and capability too.
- Swapping test and reference. With symmetric limits it does not matter; with asymmetric or percentage limits it does. Define which is the reference in the plan.
Frequently asked questions
How is the two-sample equivalence test different from the 2-sample t test?
The t test assumes the means are equal and looks for evidence of a difference. The equivalence test assumes they differ by at least the margin and looks for evidence that they do not. Only the second can support a claim of sameness.
Should I use the Welch or the pooled version?
Welch, unless you have good reason to believe the standard deviations are equal. Here the pooled version gives almost the same interval, −1.02 to 0.47 HRC, because the group sizes are equal.
How many samples do I need for an equivalence test?
More than for a difference test with the same margin, since the whole 90% interval must fit inside the limits. Plan with a realistic standard deviation and a true difference that is not zero; see sample size for the 2-sample t and how many samples.
Can a result be both significantly different and equivalent?
Yes, when the difference is real but small: the interval excludes zero and still lies inside the limits. With large samples this is common, and it usually means the change is acceptable.