Bivariate Quantitative Data
Bivariate quantitative data consists of paired numerical measurements on the same subjects, analyzed to detect and quantify relationships between two variables. The key result: a scatterplot reveals the form, direction, and strength of association, and the correlation coefficient summarizes linear association while the least-squares regression line predicts one variable from the other. Used everywhere two measurements covary — economics, biology, medicine, engineering. Foundations laid by Galton and Pearson (1880s–1900s).
When you measure two numbers on each subject, plot them as points. The pattern of the cloud of points — its shape (form), its tilt (direction), and its tightness (strength) — encodes the relationship. A straight-line trend is the simplest and most important pattern, and we can compress it into two numbers: a correlation that says how tightly the points hug a line, and a slope/intercept pair that says which line. Both come from a single quantity: how and vary together.
Formal Statement
A bivariate quantitative dataset is a set of ordered pairs
Derivation hint: This is a definition, not a derivation — each pair records two numerical measurements on the same unit . where and are real-valued (quantitative) measurements on the same unit . The variable plotted horizontally () is the explanatory (independent) variable; the variable plotted vertically () is the response (dependent) variable. Both must be quantitative — measured on a numerical scale where arithmetic is meaningful.
The sample covariance measures how the two variables vary together:
Derivation hint: Average the product of paired deviations from each mean; positive when both deviate in the same direction, negative when opposite. where and are the sample means. Covariance has units of times , which makes it hard to interpret directly.
The correlation coefficient standardizes covariance by the two standard deviations, producing a unitless number:
Derivation hint: Divide covariance [2] by ; the factors cancel, leaving the ratio of summed cross-products to the geometric mean of summed squares. It can be written compactly using standardized scores (-scores):
Derivation hint: Substitute and into [3]; is the average product of standardized scores.
For any bivariate quantitative dataset: 1. always. 2. exactly when all points lie on a line of positive slope; when all lie on a line of negative slope. 3. is unitless and unchanged by changes of scale or origin (e.g. converting cm to inches). 4. is symmetric: the correlation of with equals that of with . 5. measures only linear association — it can be near for strong nonlinear relationships.
The least-squares regression line is the line minimizing the sum of squared vertical residuals. Its slope and intercept are
Derivation hint: Minimize by setting partial derivatives w.r.t. and to zero; solving the two normal equations gives these closed forms. The predicted value is the fitted value; the residual is .
The fraction of variation in explained by the linear regression on equals :
Derivation hint: Decompose total sum of squares into explained plus residual ; the explained fraction simplifies to .
Why It Holds / Derivation
We seek minimizing the total squared vertical error
Derivation hint: This is the objective function — squared residuals summed over all points.
Step 1 — Intercept condition. Differentiate with respect to and set to zero:
Derivation hint: Chain rule on each squared term; the sum of residuals must be zero. Divide by to get . This already gives , so the line passes through the point of averages .
Step 2 — Slope condition. Differentiate with respect to and set to zero:
Derivation hint: The residuals must be uncorrelated with the -values; this is the second normal equation.
Step 3 — Solve. Substitute into Step 2 and simplify using and :
Derivation hint: Algebraic rearrangement; the centered sums emerge once are subtracted. Dividing numerator and denominator by gives the covariance/variance form. Finally, since , we get , completing equation [5].
∎The English polymath and cousin of Charles Darwin, Galton invented the concepts of correlation and regression while studying heredity. Plotting parents' heights against children's heights, he noticed that tall parents tended to have tall — but on average less tall — children, a phenomenon he named "regression toward mediocrity" (now regression toward the mean). His 1886 paper introduced the regression line, and his student Karl Pearson formalized the correlation coefficient — still called the Pearson correlation — in the 1890s. Galton's statistical insights were genuine and lasting, even as his views on eugenics were later, rightly, discredited.
Building Intuition
Think of correlation as a measure of how much knowing helps you guess . If , knowing a person's tells you nothing about their — your best guess is always . If , knowing tells you exactly. In between, tells you what fraction of the "spread" in you can account for: means , so of 's variation is explained by the line. The slope formula also explains regression to the mean: when is standard deviation above average, the predicted is only standard deviations above average — and since in real data, is pulled back toward its mean. Outstanding parents tend to have merely good children; record-breaking seasons tend to be followed by ordinary ones. This is not a force of nature; it is pure arithmetic.
```svg
```
Worked Examples
Given: Five students' hours studied () and exam scores ():
| 1 | 2 | 3 | 4 | 5 | |
|---|---|---|---|---|---|
| 52 | 60 | 67 | 73 | 78 |
Step 1 — Means. , .
Step 2 — Deviations and products.
| product | ||||
|---|---|---|---|---|
| −2 | −14 | 28 | 4 | 196 |
| −1 | −6 | 6 | 1 | 36 |
| 0 | 1 | 0 | 0 | 1 |
| 1 | 7 | 7 | 1 | 49 |
| 2 | 12 | 24 | 4 | 144 |
Sums: , , .
Step 3 — Correlation [3].
Step 4 — Slope and intercept [5].
Step 5 — Coefficient of determination [6]. .
Each extra hour of study predicts more points.
Given: Using the line from the previous example, predict the score for a student who studies hours, and find the residual since the actual score was .
Step 1 — Fitted value.
Step 2 — Residual.
Step 3 — Interpretation. The student scored point above the line's prediction; the positive residual means they outperformed the model. Predicting for hours would be extrapolation — outside the observed range – — and is unreliable.
Common Misconceptions
A high means two variables move together — it does not mean one causes the other. Ice cream sales and drowning deaths are strongly correlated, but neither causes the other; both are driven by a lurking variable, hot weather. Establishing causation requires a controlled experiment or careful confounding adjustment, never correlation alone.
A correlation near zero does not mean "no relationship." It means no linear relationship. Data tracing a perfect parabola symmetric about has exactly, yet is perfectly determined by . Always plot the data first.
In 1973 statistician Francis Anscombe constructed four datasets, each with points, that share identical summary statistics: , , , regression line , and . Yet plotted, they are utterly different: one is a clean linear trend, one is a perfect curve (nonlinear), one is a line dragged off course by a single outlier, and one is a vertical strip held together by one extreme point. The lesson: summary statistics never substitute for a scatterplot.
The regression line of on is generally different from the line of on — the two slopes are and , which are equal only when . Choose the explanatory variable deliberately. And never use the line to predict far outside the data's -range: a study-hours model fitted on – hours cannot validly predict the score for hours.
Connections
Bivariate quantitative analysis sits at the heart of a web of statistical ideas. The covariance and correlation in [2]–[3] generalize the single-variable Standard Deviation to two variables. The least-squares method [5] is the simplest case of Linear Regression and extends to many predictors in multiple regression. The decomposition behind in [6] is an instance of Analysis of Variance. When both variables are random, correlation connects to the Bivariate Normal Distribution and the concept of Statistical Independence (independence implies , but not conversely). For categorical pairs, the analogous tool is the Two-Way Table and the chi-squared test rather than .
Real-World Applications
Historical Development
Subtleties & Limits
Several deep cautions surround bivariate analysis. Simpson's paradox shows that a correlation present in every subgroup can reverse direction when groups are pooled — so the "right" grouping is genuinely ambiguous and context-dependent. Ecological correlation (computed from group averages, e.g. state-level data) is typically far stronger than the individual-level correlation, and mistaking one for the other is the ecological fallacy. Establishing causal direction from observational bivariate data remains a frontier: modern causal-inference frameworks (Pearl's do-calculus, instrumental variables, randomized trials) exist precisely because cannot do it. Finally, is highly sensitive to outliers and to the range of sampled — restricting the range (range restriction) attenuates even when the underlying relationship is unchanged, a persistent problem in test validation.
See Also
Scatterplot · Standard Deviation · Linear Regression · Correlation Coefficient · Coefficient of Determination · Anscombe's Quartet · Simpson's Paradox · Bivariate Normal Distribution · Analysis of Variance · Causal Inference