June 2018
Intermediate to advanced
276 pages
6h 26m
English
Pearson's correlation is a statistical method used to measure the linear correlation between two variables, x and y. It is ranged between +1 and -1 ; +1 means that there is a positive association. You need to know that x and y should be continuous variables. The formula for Pearson's correlation coefficient is as follows:

Cov is the covariance, and dx and dy are the standard deviations of x and y:

To calculate this using Python, you can use scipy.stats.pearsonr(x, y), from the scipy library.
Read now
Unlock full access