July 2016
Beginner to intermediate
462 pages
9h 14m
English
The point-biserial correlation correlates a binary variable Y and a continuous variable X. The coefficient is calculated as follows:

The subscripts in (3.21) correspond to the two groups of the binary variable. M1 is the mean of X for values corresponding to group 1 of Y. M2 is the mean of X for values corresponding to group 0 of Y.
In this recipe, the binary variable we will use is rain or no rain. We will correlate this variable with temperature.
We will calculate the correlation with the scipy.stats.pointbiserialr() function. We will also compute the ...
Read now
Unlock full access