t-test

The t-test compares means: that of a sample against a reference value, those of two independent groups, or those of paired measurements. It relies on Student's t distribution and assumes roughly normal data or a large enough sample. It provides a t statistic and a p-value.

Example

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

Related concepts

The whole glossary