Equivalence Test for Two Proportions (TOST)

Tests whether the difference of two independent proportions lies within the equivalence limits – two one-sided z tests (TOST, Wald).

Statusvalidated
Version1.0.0

Description

Difference d = p̂₁ − p̂₂, unpooled SE = √(p̂₁(1−p̂₁)/n₁ + p̂₂(1−p̂₂)/n₂). z_lower = (d − lower limit)/SE with p = P(Z ≥ z_lower); z_upper = (d − upper limit)/SE with p = P(Z ≤ z_upper). Overall p = the larger of both; equivalent if p < α. The confidence interval has level 1 − 2α. If SE = 0 the test is not testable. Reference: statsmodels tost_proportions_2indep(method='wald'); Minitab offers equivalence tests for means only.

Formulas

z lower
Lower one-sided test
z upper
Upper one-sided test
p
Equivalent if p < α

Assumptions

  • Two independent samples; large samples for the normal approximation

Limitations

  • Equivalence limits are differences; only a passed TOST shows equivalence, a failed one does not.
  • Minitab offers equivalence tests for means only; reference is statsmodels

References

  • statsmodels 0.14.6: statsmodels.stats.proportion.tost_proportions_2indep (method='wald')