Search
CoursesStock researchPaper tradingNews
HomeAbout
Learn › University level › RS 205 › Module 8

Module 8 · Regression Advanced

Estimate and interpret a simple regression, read standard output and recognize overfitting.

RS 205 Statistics for Investors · By · ~6 min read, ~1.5 hr with practice · Not started

By the end of this module you'll be able to

  • Estimate and interpret a simple regression, read standard output and recognize overfitting.

The model

A simple linear regression fits the line y = a + b x + error that minimizes the sum of squared errors (ordinary least squares).

Worked example

Using the Module 7 data: b = 2 / 2.5 = 0.8; a = 3 minus 0.8 x 3 = 0.6; R-squared = 0.64. The fitted line is y = 0.6 + 0.8 x. For x = 6 it predicts 5.4.

The market model

Regress a stock's excess return (over the risk-free rate) on the market's excess return.

Shortcut: with a correlation of 0.6, stock volatility of 30% and market volatility of 15%, beta = 0.6 x 30 / 15 = 1.2 and R-squared = 36%.

Reading regression output

A regression of 60 monthly returns reports:

Term Estimate Standard error t-statistic
Intercept (alpha, % per month) 0.20 0.25 0.8
Slope (beta) 1.15 0.12 9.6
R-squared 0.61

Beta is clearly different from zero (t of 9.6). Its 95% confidence interval is roughly 1.15 plus or minus 2 x 0.12: from 0.91 to 1.39, so it is not clearly different from 1. Alpha has a t of 0.8 and is not significant. If the market's excess return is 5% in a month, the predicted excess return is 0.20 + 1.15 x 5 = 5.95%.

Assumptions

The relationship is linear; the errors are independent of each other; they have constant variance; they are unrelated to x. Check by plotting the residuals: they should look like shapeless noise. Patterns, funnels or a few dominant points mean the standard errors, and sometimes the estimates, cannot be trusted.

Multiple regression

Several explanatory variables at once, as in the Fama-French factor model (RS 302, Module 6): excess return = alpha + b x market + s x size + h x value. Each coefficient is the effect of that variable holding the others fixed.

Overfitting

A model with enough variables can fit any past data perfectly and predict nothing. Signs: many variables relative to observations, coefficients with no economic logic, a fit that collapses on new data. Prefer simple models, and judge them on data they have not seen.

Limits

Regression describes association in the sample. It does not prove causation, and relationships estimated in one regime can break in the next.

More worked examples

Worked example 2: splitting risk into market and specific parts

A stock has volatility of 30% and an R-squared of 0.36 against the market.

  • Total variance = 0.30^2 = 0.090.
  • Systematic variance = 0.36 x 0.090 = 0.0324, a systematic volatility of 18%.
  • Specific variance = 0.64 x 0.090 = 0.0576, a specific volatility of 24%.

Most of this stock's risk is specific to the company and could be diversified away in a portfolio (RS 302, Module 3).

Adjusted R-squared

Adding any variable, even random noise, never lowers R-squared. Adjusted R-squared subtracts a penalty for each variable, so it can fall when a useless variable is added. Compare models on adjusted R-squared, and better still on out-of-sample fit.

Dummy variables, worked

A regression of monthly returns includes a dummy equal to 1 in recession months and 0 otherwise. A coefficient of -1.5 means that, holding the other variables fixed, returns averaged 1.5 percentage points a month lower in recession months. With few recession months in the sample, check its standard error before trusting it.

Reading a factor regression

A fund regressed on the Fama-French factors shows: alpha 0.10% a month (t 0.6), market 0.98 (t 25), SMB 0.45 (t 6), HML -0.30 (t -4). The fund behaves like the market with a strong small-cap tilt and a growth tilt, and shows no statistically significant alpha. Its returns are explained by exposures an investor could buy cheaply.

Prediction intervals

The fitted line gives the expected value of y for a given x. An actual outcome will scatter around it. The prediction interval for a single new observation is much wider than the confidence interval for the line itself, because it includes the residual noise. Forecasting next month's stock return from the market's return is uncertain even when beta is estimated precisely.

Regression to the mean

Francis Galton found that very tall parents tend to have children who are tall but closer to average. Investment results behave the same way: the top fund of one year usually lands nearer the middle the next, because part of its top result was luck that does not repeat. Mistaking regression to the mean for a loss of skill, or a change of strategy for its cause, is a common error.

Put it into practice

Your mission

Run the market model for your stock with LINEST or the regression tool. Report alpha, beta, their standard errors and t-statistics, R-squared and a 95% interval for beta. Plot the residuals over time and comment.

Download a price history to work with →

Educational content only; not investment, tax or legal advice. Companies, tickers and figures are illustrative examples, not recommendations. Rules, rates and limits change, so check current details with the regulator, exchange or tax authority before relying on them. Worked examples are not forecasts. Written by Elizabeta Dimoska. RiskStock is not a registered dealer or adviser.