This is documentation for an old release of SciPy (version 0.17.1). Read this page in the documentation of the latest stable release (version 1.15.1).
scipy.stats.mstats.ttest_rel¶
- scipy.stats.mstats.ttest_rel(a, b, axis=0)[source]¶
Calculates the T-test on TWO RELATED samples of scores, a and b.
Parameters: a, b : array_like
The arrays must have the same shape.
axis : int or None, optional
Axis along which to compute test. If None, compute over the whole arrays, a, and b.
Returns: statistic : float or array
t-statistic
pvalue : float or array
two-tailed p-value
Notes
For more details on ttest_rel, see stats.ttest_rel.