Direction and Strength of a Linear Relationship
Product moment correlation, often called Pearson correlation and denoted by , is a common statistical measure of the direction and strength of the linear relationship between two quantitative variables.
The value of tells us whether the two variables tend to move in the same direction (positive), opposite directions (negative), or if there is no linear relationship at all.
Correlation from Scatter Diagrams
A scatter diagram shows the direction and strength represented by . Points rising from left to right suggest a positive correlation, points falling from left to right suggest a negative one, and a shapeless cloud suggests none. The correlation coefficient turns that impression into a single number.
Strong Positive Correlation
approaching means both variables tend to move in the same direction.
If your data points look like this (rising from bottom left to top right and tightly clustered), the value will be close to .
Weak Positive Correlation
being positive but close to means both variables tend to move in the same direction, but not very strongly.
For these eight points, the calculation gives . The upward linear tendency is positive but weak because the points remain widely scattered around it.
Strong Negative Correlation
approaching means both variables tend to move in opposite directions.
If the points fall from top left to bottom right and are very tightly clustered, the value will be close to .
Linear Correlation Close to Zero
approaching means the two variables show little or no linear relationship.
For the plotted points, . The linear association is very weak, rather than exactly zero. A nonlinear pattern still needs checking even when Pearson correlation is near zero.
Computing the Correlation Coefficient Step by Step
The Pearson correlation coefficient () compares the paired deviations of two variables, and , with the variation in each variable.
The calculation has three parts:
Separate the spread of each variable from the tendency of their paired deviations. This keeps the units of the two variables from determining the magnitude of the correlation coefficient.
The Spread of Each Variable
and can have different amounts of spread. is the sum of the squared deviations of the values from the mean of , while measures the same quantity for . Both formulas appear below.
Paired Deviations
We also need to know how and vary together. When increases, does also tend to increase or decrease? The sum measures these paired cross-deviations. It is the numerator used to calculate covariance. Covariance additionally divides by or , depending on the convention.
- If is positive, paired deviations tend to have the same sign.
- If is negative, paired deviations tend to have opposite signs.
- If is close to zero, there is little net linear co-variation.
Scaling by the Spread of Both Variables
The value of is heavily influenced by the units of the data. For example, the cross-deviation sum for height and weight changes when height is converted from centimeters to meters, even though the underlying relationship is unchanged.
To overcome this, we standardize the cross-deviation sum by dividing by the geometric combination of the two individual variation measures, .
The result of this division is , the Pearson correlation coefficient. Provided both variables have nonzero variation, standardization constrains its value to the interval from to , regardless of the original units. Because every valid pair uses the same scale, linear associations from different pairs of variables can be compared directly.
compares the paired deviations of and with the separate variation in each variable.
Product Moment Correlation Formula
To calculate the value of precisely, we use formulas involving the Sum of Squares:
What are , , and ?
The three quantities have different roles. and measure the spread of each variable, while measures paired variation:
-
(Sum of Squares for ): Measures how spread out the data is from its mean.
-
(Sum of Squares for ): Measures how spread out the data is from its mean.
-
(Sum of Products of deviations for and ): Measures how and vary together.
Key:
- : Number of data pairs .
- , : Sum of all and values.
- , : Sum of the squares of each and value.
- : Sum of the product of each and pair.
- , : Mean of and values.
By calculating these three values and plugging them into the formula for , we get the Product Moment Correlation Coefficient.
The formula requires and . If either variable is constant, the denominator is zero and Pearson's is undefined.
Calculating Correlation for Eight Pairs
Use the weak-positive-correlation data. Calculate the product of each matching pair and the square of each value, then sum each column.
The final row gives the sum of each column. With , the three deviation sums are:
Interpreting the Correlation Coefficient
Once we have the value of , we can use the following rough descriptive guidelines. Researchers use these cutoffs as conventions, and other fields may choose different ones. Their practical meaning depends on the field, measurement quality, sample size, and context, so always inspect the scatter plot as well.
| Value of | Correlation Strength | Description |
|---|---|---|
| Perfect Positive | All points lie exactly on an upward sloping line. | |
| Strong Positive | is positive and close to . | |
| Moderate Positive | is positive and lies between and . | |
| Weak Positive | is positive and close to . | |
| No Linear Correlation | No linear pattern. A nonlinear relationship may still exist. | |
| Weak Negative | is negative and close to . | |
| Moderate Negative | is negative and lies between and . | |
| Strong Negative | is negative and close to . | |
| Perfect Negative | All points lie exactly on a downward sloping line. |