# 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

--

--

--

## More from Analytics Vidhya

Analytics Vidhya is a community of Analytics and Data Science professionals. We are building the next-gen data science ecosystem https://www.analyticsvidhya.com

## All You Need To Know on APIs With Python ## Customer Segmentation with Clustering Algorithms ## My experience as a data scientist in a startup ## The Importance of Visualizing Public Health Data Responsibly: DVS Fireside Chat ## Depth-Aware Haze Neural Filter | Adobe Photoshop Tutorial ## Thoughts on Search Result Diversity ## Asha Ponraj

Data Science & Machine Learning Enthusiast | Software Developer | Blogger | https://devskrol.com/ | www.linkedin.com/in/asha-ponraj-a5a76b50

## Introduction to Splines 