SciPy

This is documentation for an old release of SciPy (version 1.6.3). Read this page in the documentation of the latest stable release (version 1.15.1).

scipy.stats.mstats.pointbiserialr

scipy.stats.mstats.pointbiserialr(x, y)[source]

Calculates a point biserial correlation coefficient and its p-value.

Parameters
xarray_like of bools

Input array.

yarray_like

Input array.

Returns
correlationfloat

R value

pvaluefloat

2-tailed p-value

Notes

Missing values are considered pair-wise: if a value is missing in x, the corresponding value in y is masked.

For more details on pointbiserialr, see stats.pointbiserialr.

Previous topic

scipy.stats.mstats.spearmanr

Next topic

scipy.stats.mstats.kendalltau