I have two distributions that I want to test for equality. The objective of traditional hypothesis testing is to disprove a null-hypothesis which states a lack of difference (H0: the distributions are not different). I want to test precisely the opposite: to prove the equality of two distributions . The problem: the null-hypothesis can never be proven, only rejected. So with traditional hypothesis testing (also called power approach) I could never claim that the distributions are actually equal but only that there is not enough evidence to claim they are different.
Equivalence Tests try to disprove a null-hypothesis which states a lack of equivalence (H0: the distributions are not equivalent). If the data provides enough evidence to reject the null-hypothesis, the alternative hypothesis can be assumed (H1: the distributions are equivalent). Equivalence tests are frequently used in pharmacology (to test whether a new treatment, which has less side effects than the old treatment, has also the same effect on the disease) or in sensory studies (does food A taste the same way as food B, meat substitute, etc).
I have never applied equivalence tests, which is why I am stuck now. I would like to use the Komogorov-Smirnov test to test the equality of two distributions. How could I do so using equivalence testing? I’m working in R.
Also: I would preferably do so without setting (arbitrary) equivalence margins. I found a method called Least equivalent allowable differences (LEAD), which, in theory, exactly tries to bypass setting arbitrary equivalence margins, but I have no idea how to implement this into a Komogorov-Smirnov Test. Has somebody ever done this before?
Maybe this interactive visualization might help to understand the rationale behind equivalence testing. ( https://rpsychologist.com/d3/equivalence/). And this post deals with a very similar problem, unfortunately without any comments (https://stats.stackexchange.com/questions/353767/kolmogorov-smirnov-tost-based-on-confidence-bands).
Article Understanding Equivalence and Noninferiority Testing
Article Least equivalent allowable differences in equivalence testing