Skip to Content
Practical Data Analysis Cookbook
book

Practical Data Analysis Cookbook

by Tomasz Drabas
April 2016
Beginner to intermediate content levelBeginner to intermediate
384 pages
8h 36m
English
Packt Publishing
Content preview from Practical Data Analysis Cookbook

Exploring correlations between features

A correlation coefficient between two variables measures the degree of relationship between them. If the coefficient is equal to 1, we then say that the variables are perfectly correlated, if it is -1, then we conclude that the second variable is perfectly inversely correlated with the first one. The coefficient of 0 means that no measurable relationship exists between the two variables.

Note

We need to stress one fundamental truth here: one cannot conclude that simply if two variables are correlated, there exists a causal relationship between them. For more information, refer to the following website: https://web.cn.edu/kwheeler/logic_causation.html.

Getting ready

To execute this recipe, you need pandas. No ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Python Data Analysis Cookbook

Python Data Analysis Cookbook

Ivan Idris
Practical Simulations for Machine Learning

Practical Simulations for Machine Learning

Paris Buttfield-Addison, Mars Buttfield-Addison, Tim Nugent, Jon Manning

Publisher Resources

ISBN: 9781783551668Supplemental Content