Computing correlations 

This section is dedicated to bivariate analysis, where you analyze two columns. In such cases, we generally investigate the association between these two variables, which is called correlation. Correlation shows the relationship between two variables and answers questions such as what will happen to variable A if variable B increases by 10%? In this section, we will explain how to calculate the correlation of our data and represent it in a two-dimensional scatter plot.

In general, correlation refers to any statistical dependency. A correlation coefficient is a quantitative value that calculates the measure of correlation. You can think of the relationship between correlation and a correlation coefficient as being of ...

Get Mastering Numerical Computing with NumPy now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.