scipy.stats.mstats.

pointbiserialr#

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

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

Deprecated since version 2.0.0: scipy.stats.mstats.pointbiserialr is deprecated as of SciPy 2.0.0 and will be removed, along with the scipy.stats.mstats namespace, in SciPy 2.4.0. For similar functionality, use scipy.stats.pointbiserialr with MArray(s) instead of NumPy masked array(s).

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 scipy.stats.pointbiserialr.