Skip to main content

Regression Line (Alpha and Beta)

IntermediateFinance FoundationsAlso known as: linear regression, OLS, line of best fit, jensen alpha, intercept and slope

Finds: the best-fit line and a stock's beta and alpha.

When to use it: Use it to fit a straight line through paired data, for example to estimate a stock's beta against the market and its alpha, the return not explained by the market.

The formula

y^\displaystyle \hat{y}=α+βx\displaystyle =\alpha+\beta xβ\displaystyle \beta=Cov(x,y)Var(x)\displaystyle =\frac{Cov(x,y)}{Var(x)}α\displaystyle \alpha=yˉ−βxˉ\displaystyle =\bar{y}-\beta\bar{x}

In words: y-hat = alpha + beta x, with beta = Cov(x,y) / Var(x) and alpha = mean y − beta x mean x

What each symbol means

y-hatThe return predicted for Ypercent
alphaIntercept, the return of Y when X is zeropercent
betaSlope, how much Y moves for each 1 unit move in Xnumber
xThe explanatory variable, such as the market returnpercent
Cov(x,y)Covariance of X and Ypercent squared
Var(x)Variance of Xpercent squared

Worked example

Over six periods the market returned 8%, −2%, 12%, 5%, −6% and 10%, and a stock returned 12%, −6%, 18%, 6%, −10% and 14%. What are the stock's beta and alpha?

Beta1.594
Alpha−1.51%
The answer

The beta is 1.594 and the alpha is −1.51% per period.

Want every formula on a few pages?Get the free Cheat Sheet (PDF) →

Calculator

Beta1.594
Alpha−1.51%

Keep going