Analytics Vidhya
Published in

Analytics Vidhya

Why the Correlation Coefficient r ranges between -1 and +1.?

Correlation Coefficient is a statistical measure of the strength of the relationship between the relative movements of two variables.

We know that the equation of Sum of Squared Errors is as below.

If there is a perfect Linear Regression exists between 2 variables x & y, then the line of regression runs through all the points and so there will be no error.

This is the maximum value of r² which is 1.

The maximum SSE occurs only when there is no correlation. i.e minimum correlation.

This means that r² is 0 which is the minimum value of r².

If the gradient (i.e. Slope) of line of regression is -ve, then Sxy <0. So r² < 0.

If it is +ve, then Sxy > 0. So r > 0.

Hence -1≤ r ≤+1




Analytics Vidhya is a community of Analytics and Data Science professionals. We are building the next-gen data science ecosystem

Recommended from Medium

All You Need To Know on APIs With Python

Stylish image showing three antique phones hung up on a wall.

Customer Segmentation with Clustering Algorithms

My experience as a data scientist in a startup

Reading Reflection #3

The Importance of Visualizing Public Health Data Responsibly: DVS Fireside Chat

Depth-Aware Haze Neural Filter | Adobe Photoshop Tutorial

About systems contexts

Thoughts on Search Result Diversity

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Asha Ponraj

Asha Ponraj

Data Science & Machine Learning Enthusiast | Software Developer | Blogger | |

More from Medium

Exciting! What I Recently Learned about Linear Regression!


Introduction to Splines

My Data Science Learning Journey: #66daysofdata | Day 1