The Baumgartner-Weiss-Schindler (BWS) test is a statistical method used to compare two groups of data and determine whether they come from the same distribution. Unlike other common tests (like the Kolmogorov-Smirnov or Wilcoxon tests), the BWS test is particularly good at detecting differences in the tails of distributions—where extreme values lie.
Unlike standard comparison tests that focus primarily on differences in means (like the t-test) or general distribution shapes (like the Kolmogorov-Smirnov test), the BWS test specifically emphasizes detecting discrepancies in the tails of distributions – the regions containing extreme high and low values.
This makes it uniquely powerful for situations where differences might not affect the average but could be important in outlier cases, such as comparing medical treatments where rare but severe reactions matter, or analyzing product reliability where failure extremes are critical. The test doesn’t require normally distributed data and maintains good statistical power even with moderate sample sizes.
The BWS test returns two key numbers:
This is how you see the BWS results with SimpliStats
Suppose you compare two teaching methods (Group A vs. Group B) and get:
Since 0.0029 < 0.05, you conclude:
“There is statistical evidence that the two groups perform differently.”
import numpy as np
from scipy.stats import bws_test
bws_test(x, y, alternative="")
Input
Output
The BWS test is a powerful tool for detecting differences between two datasets, especially when small or extreme variations matter. Unlike simpler tests, it focuses on the entire distribution, not just averages or medians.
Scihand | 2025 © All rights reserved – Privacy Policy | Terms and Conditions