Welch's test

Welch's test is a variant of the t-test that compares the means of two groups without assuming equal variances. It adjusts the degrees of freedom accordingly and remains reliable when sizes or spreads differ. It is sensitive to extreme values, especially with highly skewed distributions.

Example

from scipy.stats import ttest_ind
ttest_ind(a, b, equal_var=False)

Related concepts

The whole glossary