Equivalence test for one sample (TOST) against a target

Updated

The one-sample equivalence test shows that a process mean is close enough to a target: inside an equivalence margin you set in advance, such as 500 ± 2 mL. It reverses the usual burden of proof. A 1-sample t test starts by assuming the mean equals the target and asks for evidence of a difference; the equivalence test starts by assuming the mean is outside the margin and asks for evidence that it is inside. The standard method is TOST, two one-sided tests.

When to use it

  • You need to show that a process or material meets a target, not just that you failed to find a difference: after moving a line, changing a supplier lot or adjusting a filler.
  • A customer or a validation protocol asks you to demonstrate that the mean is within a stated margin.
  • A plain t test gave a "non-significant" result and someone wants to read it as "the same". That reading is not valid; an equivalence test is.

To compare two independent groups, use the 2-sample equivalence test; for two measurements on the same units, use the paired equivalence test.

How it works

Pick a target T and equivalence limits δ_L < 0 < δ_U, from engineering or the customer, before collecting data. The hypotheses are:

H₀: μ − T ≤ δ_L or μ − T ≥ δ_U H₁: δ_L < μ − T < δ_U

TOST splits H₀ into two one-sided t tests, each at level α (usually 0.05), with n − 1 degrees of freedom:

t_L = (x̄ − T − δ_L) / (s/√n) p_L = P(T ≥ t_L) t_U = (x̄ − T − δ_U) / (s/√n) p_U = P(T ≤ t_U)

The mean is declared equivalent when both tests reject, that is, when the larger of p_L and p_U is below α. The same decision in a picture: equivalence holds when the 90% confidence interval for μ − T lies entirely inside (δ_L, δ_U). It is 90%, not 95%, because each one-sided test spends 5% in its own tail; the overall error rate is still 5%.

The test assumes independent observations from a roughly normal distribution; with 10 or more observations it tolerates moderate departures from normality, but not strong skew. See confidence intervals explained for the interval itself.

Example

A bottling line for a 500 mL cleaning product moves to a new plant. The quality agreement requires the mean fill to be within ±2 mL of 500 mL. After the startup, the team weighs 15 bottles spread across the first shift and converts the weights to volume (mL):

499.7501.3501.9501.8502.9
500.0501.2500.0498.6499.6
500.7499.3500.3502.0501.2

Mean x̄ = 500.70 mL, standard deviation s = 1.188 mL, standard error 0.3068 mL, 14 degrees of freedom.

TestNull hypothesistP
Lowerμ − 500 ≤ −28.80< 0.001
Upperμ − 500 ≥ +2−4.24< 0.001 (0.0004)

The 90% confidence interval for μ − 500 is 0.70 ± 1.761 × 0.3068, from 0.16 to 1.24 mL, entirely inside −2 to +2 mL. The fill is equivalent to the target within the agreed margin (p = 0.0004).

How to read the results

  • Equivalent and different at the same time. A 1-sample t test of μ = 500 on the same data gives t = 2.28 and p = 0.039: the line fills about 0.7 mL high, and that is a real offset. It is also small compared with the 2 mL margin. Both statements are true; the equivalence test answers the question the quality agreement asks.
  • The interval carries the story. The 90% interval shows how far the mean could plausibly be from the target: at most 1.24 mL high. If the margin had been ±1 mL, the same data would fail to show equivalence.
  • Equivalence of the mean is not conformance of every bottle. With a standard deviation of 1.19 mL, individual bottles range a few mL around the mean. Fill limits for single units are a capability question, not an equivalence one.
  • Small samples cannot show equivalence. If the team had stopped after the first four bottles, a t test against 500 would give p = 0.10, "no significant difference", yet the 90% interval would run from −0.02 to 2.37 mL, past the upper limit. Not significant is not the same as equivalent.

Common mistakes

  • Choosing the margin after seeing the data. The limits must come from engineering, the customer or a protocol, set in advance.
  • Using a 95% interval. With TOST at α = 0.05, the matching interval is 90%. A 95% interval makes the test stricter than stated.
  • Reading a non-significant t test as proof of sameness. It may only mean too few data, as the four-bottle case shows.
  • Ignoring how the data were collected. Fifteen bottles from one minute of running say little about a whole shift. Spread the sample over the conditions the claim covers.
  • Margins so wide they mean nothing. A margin should be the largest difference that has no practical consequence, not whatever will pass.

Frequently asked questions

Why does an equivalence test use a 90% confidence interval?

Because TOST runs two one-sided tests, each at 5%. Both conditions together match a two-sided 90% interval, while the chance of wrongly declaring equivalence stays at 5%.

Can the limits be asymmetric?

Yes. If overfill costs money but underfill breaks a regulation, the limits might be −1 and +3 mL. Each one-sided test uses its own limit.

How many samples do I need?

Enough that the 90% interval is narrow compared with the margin. The closer the true mean is to a limit and the larger the standard deviation, the more data you need. See how many samples.

What if the result is neither equivalent nor different?

Then the data cannot decide: the interval crosses a limit but also includes the target. Collect more data, or accept that the question is open.

Try it with your own data

StatLab SPC is free, open-source statistics for engineers. It runs in your browser, works offline, and never uploads your data.

Open StatLab