Statistics
Intermediate
9 min

Simple Linear Regression

The least-squares slope is Cov(X,Y)/Var(X); residuals are the leftover variation regression fails to explain.

1. The idea

Simple linear regression fits by choosing to minimize the sum of squared residuals. The resulting slope has the closed form , and the intercept is .

Residuals represent the variation in not explained by . By construction, the least-squares residuals are uncorrelated with and average to zero.

measures how much is expected to change per unit change in ; it depends on the units and scale of both variables, unlike correlation which is unitless.

2. Why it matters

Regression slope and residual reasoning underlie hedge ratios, factor exposures, and beta estimation — a direct link between statistics and market-making/finance interview topics.

3. Core mathematics

Least-squares slope

Intercept

Residual

R-squared

Fraction of variance in Y explained by X, for simple regression.

4. How to recognize it

Think of this when…

  • Question mentions 'best fit line', 'hedge ratio', or 'beta' of an asset relative to a benchmark
  • You're given Var(X), Var(Y), Cov(X,Y) and asked for a regression slope
  • You need to interpret residuals as unexplained noise

5. Worked example

Worked example

A stock's returns have Var(market)=16, Cov(stock, market)=12. Find the regression beta of the stock on the market and interpret it.

  1. 1

    Apply the slope formula with X = market, Y = stock.

  2. 2

    Simplify.

  3. 3

    Interpret: a 1-unit move in the market is associated with a 0.75-unit expected move in the stock.

  4. Answer:

6. Common mistakes

  • Dividing by Var(Y) instead of Var(X) in the slope formula
  • Confusing regression beta (scale-dependent) with correlation (unitless)
  • Assuming residuals are independent of each other by default, rather than just uncorrelated with X
  • Interpreting R² as the correlation itself rather than correlation squared

7. Quick check

If Cov(X,Y) = 6 and Var(X) = 3, what is the regression slope of Y on X?

8. Practice

8 QuantSolve questions use this concept.

Practice this concept

9. Related methods