Means: One and Two Groups
A one-sided test for whether the treatment mean differs from the reference mean by more than a prespecified superiority margin. Choose the pooled equal-variance t-test or Welch's unequal-variance t-test. Runs entirely in your browser.
This calculator implements the two-independent-means superiority-by-a-margin t-test described in the this method procedure Superiority by a Margin Tests for Two Means using Differences. this method describes the design as a parallel-group comparison of two independent normally distributed means and gives both the equal-variance two-sample t-test and Welch's t-test for unequal variances.
When higher values are better, the hypotheses are:
When higher values are worse, the hypotheses are:
Here, M is the positive superiority margin, Group 1 is the treatment group, and Group 2 is the reference group.
For higher values being better, the observed difference is compared with the margin:
For higher values being worse, the corresponding statistic is:
With equal variances, the standard error uses the pooled variance and the degrees of freedom are n1 + n2 − 2. With unequal variances, the calculator uses Welch's standard error and Welch-Satterthwaite degrees of freedom.
The test is one-sided. For higher values being better, a p-value below alpha rejects the null in favor of superiority; for higher values being worse, a p-value below alpha rejects the null in the lower tail. The displayed one-sided confidence bound is the corresponding 1 − alpha bound for the treatment-minus-reference mean difference.
A fixed implementation check uses n1 = n2 = 20, means 2.00 and 0.00, standard deviations 2.00 and 2.00, superiority margin M = 0.50, higher values better, equal variances, and alpha = 0.05. The expected calculation is t = 2.371708, df = 38, one-sided p = 0.0114379, so the null hypothesis is rejected.