Correlation Coefficient Formula
The correlation coefficient (Pearson's r) is a number between −1 and 1 that measures both the strength and direction of the linear relationship between two quantitative variables.
The Formula
Ask yourself: Do you need one signed, unitless number between and for how tightly paired data follow a straight line?
Quick example
What this formula means
The correlation coefficient (Pearson's r) is a number between −1 and 1 that measures both the strength and direction of the linear relationship between two quantitative variables. A value of 1 indicates a perfect positive linear relationship, −1 a perfect negative linear relationship, and 0 no linear relationship at all.
The correlation coefficient scores how well a crowd keeps to a single file: means everyone stands exactly on one straight line, 0 means no line at all, and the sign says whether the file runs uphill or downhill. A crowd standing in a perfect circle scores 0, even though it is very orderly.
Formal view
Worked examples
Example 1
mediumShow solution
Answer
First step
See the full worked solution + why-it-works coaching
SetupKey insightWhy it worksCommon pitfallConnection
Example 2
mediumExample 3
mediumCommon mistakes
- Assuming r measures nonlinear relationships
- Confusing correlation with causation
- Ignoring outliers that inflate or deflate r
Why this formula matters
With , strength becomes comparable across studies: sleep and quiz scores at are more closely linked than apps installed and hours online at . It also unlocks regression, since the least-squares slope equals and is the share of variation a line explains. Read without a plot, though, can be inflated by one outlier or miss a strong curve.
Frequently asked questions
What is the Correlation Coefficient formula?
The correlation coefficient (Pearson's r) is a number between −1 and 1 that measures both the strength and direction of the linear relationship between two quantitative variables. A value of 1 indicates a perfect positive linear relationship, −1 a perfect negative linear relationship, and 0 no linear relationship at all.
How do you use the Correlation Coefficient formula?
Compute when both variables are quantitative, the scatter plot is roughly linear, and the question asks how strong the relationship is or wants one number for direction and strength. Look at the plot first: if it curves, understates the relationship; if one point sits far from the rest, report with and without it. For predictions, use the regression line; for the share of variation explained, use ; for categorical variables, use a two-way table.
Why is the Correlation Coefficient formula important in Statistics?
With , strength becomes comparable across studies: sleep and quiz scores at are more closely linked than apps installed and hours online at . It also unlocks regression, since the least-squares slope equals and is the share of variation a line explains. Read without a plot, though, can be inflated by one outlier or miss a strong curve.
What do students get wrong about Correlation Coefficient?
Students often know a procedure related to correlation coefficient but skip the recognition step: Do you need one signed, unitless number between and for how tightly paired data follow a straight line? That leads to a calculation or graph that looks reasonable but answers a different question.
What should I learn before the Correlation Coefficient formula?
Before studying the Correlation Coefficient formula, you should understand: correlation intro, line of best fit.