Find the Correlation | Extract Data

Course Content

# Find the Correlation

Finally, let's move to the last function of this section called `.corr()`. It helps out a lot to find the relationship between numerical data. Imagine that you have a dataset on houses:

Let's examine the output of the `data.corr()` in our case:

So, let's do it step by step: You have vertical and horizontal values; each pair overlaps. In each overlap, we can receive a value from -1 to 1.

• 1 means that two values depend on each other in a directly proportional way (if one value increases, the other increases too);
• -1 means that two values depend on each other in an inversely proportional way (if one value increases, the other decreases);
• 0 means that the two dependent values aren't proportional.

You'll end this section with an effortless task: apply the `.corr()` function to the dataset. Then, try to analyze the numbers you get.

Everything was clear?

Section 3. Chapter 7

# Find the Correlation

Finally, let's move to the last function of this section called `.corr()`. It helps out a lot to find the relationship between numerical data. Imagine that you have a dataset on houses:

Let's examine the output of the `data.corr()` in our case:

So, let's do it step by step: You have vertical and horizontal values; each pair overlaps. In each overlap, we can receive a value from -1 to 1.

• 1 means that two values depend on each other in a directly proportional way (if one value increases, the other increases too);
• -1 means that two values depend on each other in an inversely proportional way (if one value increases, the other decreases);
• 0 means that the two dependent values aren't proportional.

You'll end this section with an effortless task: apply the `.corr()` function to the dataset. Then, try to analyze the numbers you get.