def pointbiserialr(x, y):
 (rpb, prob) = pearsonr(x, y)
 return PointbiserialrResult(rpb, prob)

def pointbiserialr ( x , y ) : ( rpb , prob ) = pearsonr ( x , y ) return PointbiserialrResult ( rpb , prob )
calculates a point biserial correlation coefficient and its p-value .