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.pointbiserialris deprecated as of SciPy 2.0.0 and will be removed, along with thescipy.stats.mstatsnamespace, in SciPy 2.4.0. For similar functionality, usescipy.stats.pointbiserialrwith 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, seescipy.stats.pointbiserialr.