Finance Formulas

Quantitative Methods

core

Simple Regression: Slope, Intercept and Prediction

Builds onCorrelation from Covariance · Sample Standard Deviation — if this page feels steep, start there.

b^1=Cov(X,Y)Var(X),b^0=Yˉ−b^1Xˉ,Y^=b^0+b^1X0\hat{b}_1 = \frac{\text{Cov}(X,Y)}{\text{Var}(X)}, \quad \hat{b}_0 = \bar{Y} - \hat{b}_1\bar{X}, \quad \hat{Y} = \hat{b}_0 + \hat{b}_1 X_0

Reading the notation

b^1\hat{b}_1
the estimated slope: how many units Y moves, on average, when X rises by one unit. In the market model this is the fund's beta
Cov(X,Y)\text{Cov}(X,Y)
the sample covariance: whether X and Y tend to move together, and how strongly in raw units
Var(X)\text{Var}(X)
the sample variance of X: how spread out the explanatory variable is. Dividing by it converts covariance into a per-unit slope
b^0\hat{b}_0
the estimated intercept: the value of Y the line predicts when X is zero. In the market model it is the fund's alpha
Xˉ, Yˉ\bar{X},\ \bar{Y}
the sample averages of X and Y. The fitted line always passes through the point of the two means
Y^\hat{Y}
the predicted value of Y at a chosen X, found by reading the fitted line: intercept plus slope times X
X0X_0
the particular value of the explanatory variable at which you want a prediction

Why it must be true

A scatter of points rarely lies on a line, but you can still ask: which line comes closest? Least squares answers by minimising the sum of squared vertical misses. The answer has an appealing structure.

The slope is covariance divided by variance: covariance says how much Y co-moves with X in raw units, and dividing by X's own variance rescales it to "per one unit of X". The intercept is then forced by one fact: the best line passes through the centre of the data, (Xˉ,Yˉ)(\bar{X}, \bar{Y}), so b^0=Yˉ−b^1Xˉ\hat{b}_0 = \bar{Y} - \hat{b}_1\bar{X}. With both in hand, predicting is just reading the line: Y^=b^0+b^1X0\hat{Y} = \hat{b}_0 + \hat{b}_1 X_0.

In finance this is exactly the market model: regress a fund's excess return on the market's, and the slope is its beta while the intercept is its alpha.

The derivation

Choose b0,b1b_0, b_1 to minimise ∑(Yi−b0−b1Xi)2\sum (Y_i - b_0 - b_1 X_i)^2. Setting the derivative with respect to b0b_0 to zero gives ∑(Yi−b0−b1Xi)=0\sum (Y_i - b_0 - b_1X_i) = 0, so the line passes through the means:

b0=Yˉ−b1Xˉb_0 = \bar{Y} - b_1\bar{X}

Setting the derivative with respect to b1b_1 to zero and substituting b0b_0 gives:

b1=∑(Xi−Xˉ)(Yi−Yˉ)∑(Xi−Xˉ)2=Cov(X,Y)Var(X)b_1 = \frac{\sum (X_i - \bar{X})(Y_i - \bar{Y})}{\sum (X_i - \bar{X})^2} = \frac{\text{Cov}(X,Y)}{\text{Var}(X)}

(the n−1n-1 cancels between numerator and denominator). Prediction at X0X_0 is then Y^=b0+b1X0\hat{Y} = b_0 + b_1X_0.

When to reach for it

You are given summary statistics of two variables (covariance, variance, means) and asked for the fitted line's slope, intercept, or a predicted value of the dependent variable.

Listen for

“slope coefficient / regression coefficient”“estimated intercept”“covariance of the two variables and variance of the independent variable”“predicted value of the dependent variable given X”

Back-of-the-envelope

Estimate it in your head first — then the calculator only confirms.

  • ≈

    Variance goes on the BOTTOM: the slope is in units of Y per unit of X, so it must be Cov(X,Y) ÷ Var(X). Check the units, not memory.

  • ≈

    The line passes through (Xˉ,Yˉ)(\bar{X}, \bar{Y}): predicting at X0=XˉX_0 = \bar{X} must return exactly Yˉ\bar{Y}. Use it to sanity-check any predicted value near the mean.

  • ≈

    Moving X by ΔX\Delta X from the mean changes the prediction by exactly b^1ΔX\hat{b}_1\Delta X from Yˉ\bar{Y} — often quicker than computing the intercept at all.

Traps in applying it

  • ✗Inverting the slope (Var/Cov) or dividing covariance by the standard deviation instead of the variance.
  • ✗Sign slip on the intercept: it is $\bar{Y} - \hat{b}_1\bar{X}$, not plus.
  • ✗Predicting with the slope alone and forgetting to add the intercept.
  • ✗Predicting far outside the range of the data — the fitted line is only reliable where observations existed.

Limits & criticisms

A fitted line describes association, not causation, and the estimates are only as good as the assumptions: a linear relationship, constant error variance, and independent errors. A single outlier can swing the slope. The coefficients are sample estimates with their own sampling error (hence the t-test), and predictions far from Xˉ\bar{X} are extrapolations the data never supported.

Where it came from

Least squares was published by Adrien-Marie Legendre in 1805, with Carl Friedrich Gauss claiming earlier use (he famously used it to recover the lost asteroid Ceres in 1801). Francis Galton coined "regression" in the 1880s when he saw tall parents' children drifting back toward average height — "regression to the mean".

In finance the same line is everywhere: the characteristic line / market model (a stock's return regressed on the market's gives beta and alpha), the Fama–French factor regressions, and every analyst's quick "how sensitive is sales to GDP growth" fit.

One identity, 3 questions

The exam can hide any variable. Each face below is the same equation solved for a different unknown — drill them separately.

Slope (sensitivity, or beta in the market model)

b^1=Cov(X,Y)Var(X)\hat{b}_1 = \frac{\text{Cov}(X,Y)}{\text{Var}(X)}

Covariance rescaled by X's own variance: the average change in Y per one-unit change in X. For a fund regressed on the market, it is the fund's beta.

Drill this face →

Intercept (alpha in the market model)

b^0=Yˉ−b^1Xˉ\hat{b}_0 = \bar{Y} - \hat{b}_1\bar{X}

Forced by the fact that the best-fit line passes through the sample means; in the market model it measures the fund's average return not explained by the market.

Drill this face →

Predicted value of Y

Y^=b^0+b^1X0\hat{Y} = \hat{b}_0 + \hat{b}_1 X_0

Read the fitted line at a chosen X. Only trustworthy for X inside the range of the data the line was fitted to.

Drill this face →

On the BA II Plus

Worked example: For a stock regressed on its index (both returns in %), Cov(X,Y) = 12.5 and Var(X) = 25. The average index return is 1.5% and the average stock return is 2.5%. Find the estimated intercept, in %.

  1. 1.12.5 [÷] 25 [=] [STO] 1slope b₁ = Cov(X,Y) ÷ Var(X) — variance goes on the bottom
  2. 2.2.5 [−] [RCL] 1 [×] 1.5 [=] [STO] 2intercept b₀ = Ȳ − b₁X̄ (the product is taken first)

→ 1.75

Where it leads

Master this and the following come almost for free: