How to Read Correlation: Linear Relationships and Their Limits
A correlation coefficient summarizes the direction and degree of a linear relationship between two quantitative variables. Pearson’s correlation ranges from −1 to +1, but by itself it does not establish cause and effect or show whether two measurements agree. Inspect the scatterplot and how the data were collected before interpreting the number.
What does Pearson’s correlation summarize?
The Pearson correlation calculated from a sample is usually written as r; the population correlation is written with the Greek letter ρ (rho). It standardizes how the two variables vary together around their means by their individual spread:
r = Σ[(xᵢ − x̄)(yᵢ − ȳ)] / √{Σ(xᵢ − x̄)² Σ(yᵢ − ȳ)²}
Each i is one paired observation, and x̄ and ȳ are the sample means. When values above their respective means tend to occur together, products are mostly positive and r is positive. If one variable tends to be above its mean when the other is below, r is negative. The denominator removes the units, so you can correlate measurements such as height and weight even when their units differ. Swapping x and y does not change the value.
If r = +1 or −1, every point lies exactly on a straight line with a positive or negative slope. Values closer to zero indicate a weaker linear tendency. However, r = 0 does not mean that no relationship exists: a clear curve can have opposing directions that cancel in Pearson’s linear summary. The sign gives direction and the absolute value gives the degree of linear association. There is no universal cutoff for “weak” or “strong,” so do not assign a label based on the number alone.
How should you read a calculation example?
The following is a hypothetical example to illustrate the formula, not real student data. Suppose five invented observations have study time x = [1, 2, 3, 4, 5] and scores y = [2, 4, 5, 4, 5]. Their means are 3 and 4. The sum of products of deviations from the means is Σ[(xᵢ−3)(yᵢ−4)] = 6, and the sums of squared deviations for x and y are 10 and 6. Thus r = 6 / √(10×6) ≈ 0.775. These five pairs show a positive linear tendency. This small arithmetic example cannot support a population conclusion or a causal claim that study time raises scores.
Why look at a scatterplot before the number?
Pearson’s r summarizes a straight-line tendency, so first inspect the shape, range, and unusual observations in a scatterplot. For example, in a hypothetical mathematical illustration, x = [−2, −1, 0, 1, 2] and y = [4, 1, 0, 1, 4] form a U-shaped curve. Symmetry makes the linear correlation zero even though a clear nonlinear pattern exists.
One unusual pair can greatly change Pearson’s r or hide the pattern among the other observations. Do not remove an observation automatically. Check whether it is a data-entry error or a valid case in the population you mean to study, then transparently compare results with and without it. A restricted range of x or y can also produce a correlation different from the one across the full range. Correlation summarizes the sampled range and composition; it is not a fixed property that applies unchanged everywhere.
When should you choose Pearson or Spearman?
The two coefficients summarize different patterns despite sharing the word “correlation.”
| Coefficient | Pattern summarized | When to consider it | Caution |
|---|---|---|---|
| Pearson r | Linear association between the original numeric values | Both variables are quantitative and the scatterplot suggests a straight-line tendency | Sensitive to outliers and nonlinear shape. |
| Spearman rank correlation rₛ | Monotonic association between ranks | Data are ordinal, or one variable generally moves in one direction as the other grows, without requiring a straight line | Ranking discards information about distances between values. Ties receive average (mid)ranks; it does not detect every nonlinear relationship. |
A monotonic relationship keeps moving in one direction: as one variable increases, the other tends to keep increasing or keep decreasing. Spearman uses ranks rather than raw values, which can reduce the influence of the size of an extreme value, but it is not immune to outliers. If a relationship changes direction in the middle, as in a U shape, Spearman may also fail to describe its form with one coefficient. Choose using the scatterplot, measurement scale, and question.
What can’t correlation establish?
Correlation does not prove causation or agreement between measurements. Two variables can change together without one causing the other. A third factor may move both; reverse causation, selection bias, or a shared time trend may also create a pattern. To assess causes, consider study design, time order, handling of confounders, and alternative explanations—not just the coefficient.
High correlation also does not mean two measurements are equal. If every y value is exactly 100 higher than its paired x value, their Pearson correlation is 1 even though the values do not agree. If the question is whether two methods give matching measurements, examine the size and direction of paired differences and use an agreement analysis suited to the measurement range rather than relying on correlation alone.
How should you report and use a correlation?
Report what each variable means and its units, who and when were observed, the number of paired observations n, the coefficient type (Pearson or Spearman), and its value. If relevant to your conclusion, also disclose nonlinear shape, influential observations, or a restricted sample range visible in the scatterplot. If you want to infer a population relationship, add a confidence interval and test result appropriate to that goal; do not turn a small p-value into evidence of a large relationship or causation.
A practical sequence is to inspect the scatterplot, calculate a coefficient that fits the question, and interpret its size together with uncertainty and data-collection context. Correlation is a starting summary of association, not a substitute for examining the data or a final verdict on cause.
References
Penn State STAT 200, section 3.4: Two quantitative variables and correlation