Interpreting regression without claiming causality

Fit a straight line to three illustrative observations, calculate each residual and explain what the slope describes. Then separate the arithmetic of an association from the study design needed to justify a causal effect.

Before you start: define the quantities

A sample is the observations being analyzed. Here each observation is a pair: a predictor x, the input used to describe a response y. The synthetic pairs are (1, 2), (2, 2) and (3, 5). Use abstract x-units and y-units, which are distinct units. These are not prices, returns or measurements over time. There is no investment horizon, compounding, cost or tax calculation.

We choose a straight-line description ŷ = a + bx. The symbol ŷ, read y-hat, is the fitted response at a given x. The coefficients a and b are numbers chosen from the sample: a is the intercept, the fitted y at x = 0, and b is the slope, the change in fitted y per extra x-unit. This chosen form need not describe any wider population.

Step 1: define what makes one line fit better

A residual e = y − ŷ is the observed response minus its fitted value. Ordinary least squares chooses a and b to minimize the sum of squared residuals, abbreviated SSE: add (y − a − bx)² over all observations. Squared gaps cannot cancel across signs. Squaring also penalizes large gaps more heavily, which makes unusual points influential.

For a straight line with an intercept, calculate b = Σ[(x − x̄)(y − ȳ)] ÷ Σ[(x − x̄)²], then a = ȳ − bx̄. The symbol Σ means add over the pairs. The bars x̄ and ȳ denote sample arithmetic means. The denominator must be positive, so the x-values cannot all be identical. These formulas solve the least-squares minimization; calculating them does not require assuming normally distributed data.

Step 2: center the data and calculate the slope

The means are x̄ = (1 + 2 + 3) ÷ 3 = 2 x-units and ȳ = (2 + 2 + 5) ÷ 3 = 3 y-units. Subtract the relevant mean from each observation: the x deviations are (−1, 0, 1), and the y deviations are (−1, −1, 2).

Multiply paired deviations and add: (−1 × −1) + (0 × −1) + (1 × 2) = 3. Square the x deviations and add: (−1)² + 0² + 1² = 2. Thus b = 3 ÷ 2 = 1.5 y-units per x-unit. This compares how x and y vary together with how much x varies; the same common divisor in sample covariance and sample x variance would cancel.

Now a = 3 − 1.5 × 2 = 0 y-units, so the fitted line is ŷ = 1.5x. Its fitted y increases by 1.5 y-units for one additional x-unit. This describes the line within this sample. It does not say that intervening to raise x would cause y to rise by that amount. The intercept is algebraically zero, but x = 0 was not observed.

Step 3: inspect fitted values and residuals

At x = 1, 2 and 3, the fitted values are 1.5, 3 and 4.5 y-units. Subtract these from observed y: 2 − 1.5 = 0.5, 2 − 3 = −1, and 5 − 4.5 = 0.5 y-units. The middle observation lies below the line; the other two lie above it.

SSE = 0.5² + (−1)² + 0.5² = 0.25 + 1 + 0.25 = 1.5 squared y-units. The residual sum is zero here, but the squared gaps are not. A zero residual sum is an algebraic property of an ordinary least-squares fit with an intercept, not evidence that each fitted value is correct.

A residual is a gap from a line fitted to these same observations. It is not an observed error relative to a known population relationship. Three points are insufficient to assess error assumptions credibly or establish accuracy on new observations. We calculate no significance test, coefficient interval or future outcome range.

Step 4: separate association from a causal effect

Association means quantities vary together. A causal effect concerns what would change in y if x were deliberately changed, compared with what would otherwise have happened. The fitted slope alone supplies no such comparison. A confounder is a common cause affecting both x and y; omitting it can create or distort an association. Influence running from y to x and selective inclusion of observations can also mislead.

Causal identification is the argument that a study design and its assumptions allow an association to represent a causal effect. Random assignment of an intervention can support that argument by separating assignment from prior common causes, but implementation and measurement still matter. Observational studies require a justified design and assumptions of their own. Adding more predictors or collecting more observations alone does not supply identification.

Our invented pairs have no generating process or assignment design, so no causal conclusion is available. Even a perfect straight-line fit would not add the missing design. Likewise, extending a line beyond observed x-values is extrapolation; this example supplies no basis for doing so.

Check your understanding: what does the middle point show?

At x = 2, someone says: “The slope is 1.5, so raising x causes y to rise by 1.5. The residuals sum to zero, so every fitted value is accurate.” Calculate the middle fitted value and residual, then assess both claims. What evidence would a causal interpretation need?

Answer: ŷ = 1.5 × 2 = 3 y-units, but observed y is 2, so the residual is −1 y-unit. The nonzero residual disproves the claim that every fitted value equals its observation. Positive and negative gaps canceled in the sum; their squares did not.

The causal claim is unsupported: 1.5 measures the slope of the fitted association in y-units per x-unit. A causal interpretation needs a study design and defensible assumptions that address common causes, direction of influence and selection. None is specified here. The arithmetic establishes neither future accuracy nor statistical significance, even though the line is the least-squares solution for these three points.

General education, not investment advice. The abstract data below are synthetic, with no financial meaning or time horizon. Three observations demonstrate arithmetic only. They establish no causal effect, statistical significance, accuracy on new data or suitable investment. No uncertainty interval or extrapolation is justified by this example.

Where this comes from

Frequently asked questions

Why not report a confidence interval around this slope?

A regression interval needs a justified sampling and error model. The three invented points supply arithmetic, not evidence that such assumptions hold. The confidence-interval prerequisite explains why a coverage label depends on a procedure and its assumptions.

Would fitting more predictors prove causation?

No. Additional variables can change a coefficient, but the causal role of each variable and the study design need justification. A statistical adjustment is not automatically a valid causal comparison.

Is a straight line always the right description?

No. A curved pattern, unusual observations or a changing process can make it unsuitable. Inspecting the observations and checking assumptions are separate from calculating coefficients.

Related glossary terms

Continue this course

Investor education only — not investment advice, and never a promise of profit. Every investment can lose value.