Understanding the Correlation Coefficient

A scatterplot visualizes the relationship between two quantitative variables. It reveals three important features:

  • Direction
  • Form
  • Strength

When the form is approximately linear, the correlation coefficient provides a useful numerical summary of the direction and strength of that relationship.

Scatterplots and Paired Data

Suppose each observational unit has two quantitative measurements:\[ (x_1,y_1),(x_2,y_2),\ldots,(x_n,y_n). \]

Examples include:

  • Education and income for each person
  • A father’s height and his adult son’s height
  • Midterm and final-exam scores for each student
  • Temperature and electricity consumption for each day

Each point in the scatterplot represents one observational unit.

The horizontal coordinate gives its \(x\)-value, and the vertical coordinate gives its corresponding \(y\)-value.

Three Features of a Scatterplot

Before calculating correlation, examine the scatterplot for direction, form, and strength.

Direction

Direction describes whether the variables generally move together or in opposite ways.

Positive Direction

A scatterplot has a positive direction when larger \(x\)-values tend to accompany larger \(y\)-values.

The points generally move upward from left to right.

Examples might include:

  • Education and income
  • Height and weight
  • Midterm and final scores

Negative Direction

A scatterplot has a negative direction when larger \(x\)-values tend to accompany smaller \(y\)-values.

The points generally move downward from left to right.

Examples might include:

  • Product price and quantity demanded
  • Vehicle weight and fuel efficiency
  • Distance from a signal source and signal strength

No Clear Direction

If the points show no consistent upward or downward tendency, there may be little association—or there may be a nonlinear relationship that cannot be described by one direction.

Form

Form describes the general shape followed by the points.

Possible forms include:

  • Linear
  • Curved
  • U-shaped
  • Exponential
  • Clustered
  • Irregular

For example, the relationship between education and income may slope upward while also showing curvature. Income might increase slowly over one educational range and more rapidly over another.

By contrast, the relationship between fathers’ and sons’ heights may be approximated reasonably well by a straight line.

This distinction matters because the Pearson correlation coefficient is designed specifically to measure linear association.

A strong curved relationship can have a small or even zero Pearson correlation.

Strength

Strength describes how closely the observations follow their general form.

A relationship is stronger when the points lie close to a line or curve. It is weaker when they are widely dispersed around that form.

Direction and strength are separate characteristics:

  • A relationship can be strongly positive.
  • It can be weakly positive.
  • It can be strongly negative.
  • It can be weakly negative.

Strength should be assessed relative to the intended form. Pearson correlation describes closeness to a straight line, not closeness to an arbitrary curve.

When Correlation Is Appropriate

The Pearson correlation coefficient is most informative when:

  1. Both variables are quantitative.
  2. Observations are properly paired.
  3. The scatterplot is approximately linear.
  4. There are no extreme influential observations dominating the result.
  5. The sample represents the population of interest reasonably well.

If the relationship is strongly curved, Pearson correlation may provide an incomplete or misleading summary.

Standardizing the Variables

Correlation is based on standardized values.

For observation \(i\), the standardized \(x\)-value is\[ z_{x_i} = \frac{x_i-\bar{x}}{s_x}, \]

and the standardized \(y\)-value is\[ z_{y_i} = \frac{y_i-\bar{y}}{s_y}. \]

Here:

  • \(\bar{x}\) is the sample mean of \(X\).
  • \(\bar{y}\) is the sample mean of \(Y\).
  • \(s_x\) is the sample standard deviation of \(X\).
  • \(s_y\) is the sample standard deviation of \(Y\).

A standardized value tells us how far an observation lies from its mean in standard-deviation units.

For example:\[ z_{x_i}=1.5 \]

means that \(x_i\) is 1.5 standard deviations above \(\bar{x}\).

Similarly,\[ z_{y_i}=-0.8 \]

means that \(y_i\) is 0.8 standard deviations below \(\bar{y}\).

Formula for the Correlation Coefficient

When sample standard deviations use the \(n-1\) denominator, the sample Pearson correlation is\[ \boxed{ r = \frac{1}{n-1} \sum_{i=1}^{n} z_{x_i}z_{y_i} }. \]

Substituting the standardized-value formulas gives\[ r = \frac{1}{n-1} \sum_{i=1}^{n} \left( \frac{x_i-\bar{x}}{s_x} \right) \left( \frac{y_i-\bar{y}}{s_y} \right). \]

An equivalent computational form is\[ \boxed{ r = \frac{ \sum_{i=1}^{n} (x_i-\bar{x})(y_i-\bar{y}) }{ \sqrt{ \sum_{i=1}^{n}(x_i-\bar{x})^2 } \sqrt{ \sum_{i=1}^{n}(y_i-\bar{y})^2 } } }. \]

The exact averaging factor depends on the standard-deviation convention. Consistent use of either population-style or sample-style denominators produces the same correlation.

Why Standardization Is Necessary

Suppose height is measured in inches and weight in pounds. The raw product\[ (x_i-\bar{x})(y_i-\bar{y}) \]

would have units of inch-pounds and would depend on the chosen measurement scales.

Standardization removes those units. After standardization:

  • Both variables have mean zero.
  • Both variables have standard deviation one.
  • Their deviations can be compared on a common scale.

As a result, the correlation coefficient has no units.

How the Products Determine Direction

The sign of\[ z_{x_i}z_{y_i} \]

depends on whether the two observations lie on the same side of their respective means.

Both Values Above Their Means

If\[ x_i>\bar{x} \]

and\[ y_i>\bar{y}, \]

then\[ z_{x_i}>0 \]

and\[ z_{y_i}>0. \]

Their product is positive:\[ z_{x_i}z_{y_i}>0. \]

This contributes to a positive correlation.

Both Values Below Their Means

If\[ x_i<\bar{x} \]

and\[ y_i<\bar{y}, \]

then both standardized values are negative. Their product is again positive:\[ (-)(-)=+. \]

This also contributes to a positive correlation.

Values on Opposite Sides of Their Means

If one variable is above its mean and the other is below its mean, the standardized values have opposite signs:\[ (+)(-) = – \]

or\[ (-)(+) = -. \]

These observations contribute to a negative correlation.

A Four-Region Interpretation

The lines\[ x=\bar{x} \]

and\[ y=\bar{y} \]

divide a scatterplot into four regions.

RegionPosition of \(x\)Position of \(y\)Product
Upper rightAbove meanAbove meanPositive
Lower leftBelow meanBelow meanPositive
Upper leftBelow meanAbove meanNegative
Lower rightAbove meanBelow meanNegative

If most observations fall in the upper-right and lower-left regions, the correlation tends to be positive.

If most fall in the upper-left and lower-right regions, the correlation tends to be negative.

If positive and negative contributions largely balance, the correlation may be near zero.

Why Correlation Measures Strength

The magnitude of each contribution depends on how far the observation lies from both means.

Suppose one point has\[ z_x=2 \]

and\[ z_y=1.5. \]

Its contribution is\[ z_xz_y=2(1.5)=3. \]

This strongly supports a positive relationship.

Another point might have\[ z_x=2 \]

and\[ z_y=-1.5. \]

Its contribution is\[ z_xz_y=2(-1.5)=-3, \]

which strongly supports a negative relationship.

Points near either mean make smaller contributions because at least one standardized value is close to zero.

Range of the Correlation Coefficient

Pearson correlation always satisfies\[ \boxed{-1\leq r\leq1}. \]

Perfect Positive Correlation

If\[ r=1, \]

all points lie exactly on an upward-sloping straight line.

Perfect Negative Correlation

If\[ r=-1, \]

all points lie exactly on a downward-sloping straight line.

Zero Correlation

If\[ r=0, \]

there is no overall linear association in the sample.

However, a nonlinear relationship may still be present.

Examples of Interpretation

Strong Positive Correlation

If\[ r=0.90, \]

the scatterplot generally follows a tight upward-sloping linear pattern.

Moderate Negative Correlation

If\[ r=-0.60, \]

the scatter generally slopes downward, but the points show considerable variation around a line.

Weak Positive Correlation

If\[ r=0.20, \]

there is only a weak upward linear tendency.

Correlation Near Zero

If\[ r\approx0, \]

there is little overall straight-line trend. The variables may be unrelated, or a curved pattern may be present.

Labels such as weak, moderate, and strong are context-dependent and should not be treated as universal categories.

A Numerical Illustration

Consider five paired standardized observations:

Observation\(z_x\)\(z_y\)Product
1\(-1.2\)\(-1.0\)\(1.20\)
2\(-0.6\)\(-0.4\)\(0.24\)
3\(0\)\(0.2\)\(0\)
4\(0.7\)\(0.5\)\(0.35\)
5\(1.1\)\(0.9\)\(0.99\)

Most products are positive because the \(x\)- and \(y\)-values generally lie on the same side of their means. The resulting correlation will be positive.

If several \(z_y\)-values had the opposite signs from their corresponding \(z_x\)-values, negative products would reduce the correlation.

Education and Income

A scatterplot of education and income may show:

  • An overall positive direction
  • A curved rather than perfectly linear form
  • Increasing variability at higher education or income levels
  • Possible high-income outliers

A positive Pearson correlation would summarize the upward linear component of the relationship. It would not capture the curvature completely.

Possible alternatives include:

  • Transforming income with a logarithm
  • Using polynomial regression
  • Using regression splines
  • Reporting rank correlation
  • Describing the relationship graphically

The correct method depends on the analytical objective.

Fathers’ and Sons’ Heights

A scatterplot of fathers’ and adult sons’ heights may appear more nearly linear:

  • Taller fathers tend to have taller sons.
  • Shorter fathers tend to have shorter sons.
  • The points still show substantial scatter around the line.

Pearson correlation is well suited to summarizing this type of approximately linear association.

A positive correlation does not imply that a father’s height is the only determinant of his son’s height. Genetic inheritance, the other parent’s height, nutrition, health, environment, and measurement variation also contribute.

Correlation Is Not a Complete Description

A correlation coefficient does not tell us:

  • The means of the variables
  • Their standard deviations
  • The regression slope in original units
  • Whether the relationship is curved
  • Whether the spread changes with \(x\)
  • Whether outliers are present
  • Whether multiple groups exist
  • Whether the relationship is causal

For example, the same value of \(r\) can occur in:

  • A clean linear cloud
  • A curved dataset
  • A dataset dominated by one outlier
  • Two distinct clusters
  • A relationship with changing variance

The scatterplot remains indispensable.

Correlation Is Unchanged by Ordinary Unit Conversions

Because correlation uses standardized values, it is unchanged when a variable is shifted or multiplied by a positive constant.

If\[ X^*=a+bX \]

with \(b>0\), then\[ \operatorname{Corr}(X^*,Y) = \operatorname{Corr}(X,Y). \]

Thus, measuring height in inches rather than centimeters does not change the correlation.

If \(b<0\), the direction reverses and the correlation changes sign:\[ \operatorname{Corr}(a+bX,Y) = -\operatorname{Corr}(X,Y). \]

Correlation Is Symmetric

Correlation does not distinguish predictor from response:\[ \boxed{ \operatorname{Corr}(X,Y) = \operatorname{Corr}(Y,X) }. \]

Switching the variables between the horizontal and vertical axes leaves \(r\) unchanged.

Regression is not symmetric. Predicting income from education and predicting education from income are different problems and generally produce different fitted lines.

Sensitivity to Outliers

Correlation can be strongly affected by unusual observations, especially points with extreme \(x\)- or \(y\)-values.

One influential point can:

  • Create an apparent linear relationship
  • Weaken an otherwise strong relationship
  • Reverse the sign
  • Make a moderate relationship appear nearly perfect

Before reporting \(r\), analysts should verify unusual observations and examine influence diagnostics.

Correlation Does Not Imply Causation

A positive or negative correlation does not establish that changing one variable will change the other.

An observed association might arise because:

  • \(X\) causes \(Y\).
  • \(Y\) causes \(X\).
  • A third variable affects both.
  • Selection bias creates the pattern.
  • The measurement process introduces the relationship.
  • The correlation occurred by chance.

For example, shoe size and reading ability may be positively correlated among children. This does not mean larger shoes improve reading. Age affects both variables and acts as a confounder.

Practical Workflow

Before interpreting correlation:

  1. Confirm that the observations are paired correctly.
  2. Verify that both variables are quantitative.
  3. Draw a scatterplot.
  4. Examine direction, form, and strength.
  5. Check for outliers and clusters.
  6. Determine whether the relationship is approximately linear.
  7. Calculate and interpret \(r\).
  8. Consider confounding and study design.
  9. Avoid causal language unless the design supports it.
  10. Report the scatterplot with the numerical summary.

Key Takeaway

The Pearson correlation coefficient summarizes the direction and strength of a linear relationship between two quantitative variables:\[ r = \frac{1}{n-1} \sum_{i=1}^{n}z_{x_i}z_{y_i}. \]

Products are positive when \(x\) and \(y\) lie on the same side of their means and negative when they lie on opposite sides. Consequently:

  • An upward linear scatter produces \(r>0\).
  • A downward linear scatter produces \(r<0\).
  • A value near zero indicates little linear association.

Correlation is unitless and always lies between \(-1\) and \(1\). However, it measures only linear association, can be sensitive to outliers, and cannot establish causation. It should always be interpreted alongside a scatterplot.

Similar Posts

Leave a Reply