Equivalence testing with TOST
Today let's understand equivalence testing with TOST, step by step and on one real example.
TechCo runs a recommendation algorithm, algorithm A, on its product page. A new, cheaper algorithm, algorithm B, is ready to take its place, but only if it does not change how long a visitor spends on a session by more than half a minute either way. That half minute is the equivalence margin, and TechCo fixed it before looking at any data: a shift smaller than that is close enough to not matter, a shift bigger than that is not.
Here's the problem: an ordinary test tells you whether A and B are different. It does not tell you whether they are the same, or close enough to it. A non-significant result does not mean equivalence. It might just mean there is not yet enough data to tell the difference apart.
Equivalence testing is the separate method built to answer that question directly. It runs two one-sided tests against the margin, which is why it is called TOST, short for Two One-Sided Tests.
Here is the whole flow in three steps.
Everything from here on works through those three steps on TechCo's own data, and shows exactly how each of those four outcomes can come about.
Why a non-significant test doesn't prove two things are the same
TechCo's test has been running for a week. Fifty visitors have been randomised to algorithm A and fifty to algorithm B, and the obvious first move is to run an ordinary t-test on their session durations.
A averages 0.26 minutes longer than B in this sample, and the t-test gives p = 0.738, nowhere near the usual 0.05 cutoff. So by the ordinary rule, there is no statistically significant difference between A and B.
But look at the 95% confidence interval: -1.29 to 1.82 minutes. That is the range of true differences between A and B that this data cannot rule out. It includes 0, no difference at all, but it also includes 1.82, more than three times TechCo's 0.5-minute margin.
A non-significant p-value only says this data could not detect a difference. It never says there is no difference, and this interval is the proof: a genuinely large difference is still sitting inside it, completely unruled out.