O'Reilly logo

Learning pandas - Second Edition by Michael Heydt

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Determining correlation

Covariance can help determine whether values are related, but it does not give a sense of the degree to which the variables move together. To measure the degree to which variables move together, we need to calculate the correlation. Correlation is calculated by dividing the covariance by the product of the standard deviations of both sets of data:

Correlation standardizes the measure of interdependence between two variables and consequently tells you how closely the two variables move. The correlation measurement, called correlation coefficient, will always take a value between 1 and -1 and the interpretation of this ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required