Sub topic 3
The assumptions behind the model
This chapter assumes you can read a simple regression, know what a t-test and p-value are, and have seen the multiple regression equation. It covers the assumptions that make OLS estimates and their standard errors trustworthy. Later chapters cover how to detect and fix each violation.
Why assumptions matter
The multiple regression model is
Yi = b0 + b1·X1i + b2·X2i + ... + bk·Xki + ε_i
Ordinary least squares (OLS) chooses the coefficients that minimize the sum of squared residuals. The arithmetic always works. Whether the estimates, standard errors, t-statistics and F-statistic mean what they claim depends on assumptions about the error term ε and the regressors.
Two properties are at stake:
- Unbiasedness and consistency. On average, or as the sample grows, the estimated coefficient lands on the true coefficient.
- Valid inference. The reported standard errors reflect the real sampling variability, so t-tests, confidence intervals and the F-test have the stated error rates.
Some violations damage the first property. Others leave the coefficients alone and damage only the second. Keeping that split in mind makes the later chapters much easier.
The assumptions
The CFA curriculum lists the following assumptions for the multiple linear regression model.
- Linearity. The relationship between Y and the regressors is linear in the parameters.
- No exact linear relationship among the independent variables. No regressor is a perfect linear combination of the others, and there are more observations than parameters.
- Zero conditional mean of the error. The expected value of the error, given the regressors, is zero. Equivalently, the regressors are uncorrelated with the error term.
- Homoskedasticity. The variance of the error is the same for all observations.
- No serial correlation. Errors from different observations are uncorrelated with each other.
- Normality. The errors are normally distributed.
The next sections take them one at a time, with what breaks when each fails.
Linearity
"Linear" refers to the parameters, not the variables. The model Y = b0 + b1·ln(X) + ε is linear in b0 and b1, so OLS applies. The model Y = b0 + X^b1 + ε is not linear in b1 and needs a different estimation method.
If the true relationship is curved and you fit a straight line, the coefficients are biased and the residuals show a pattern. This is a functional form error, covered in the misspecification chapter.
No exact linear relationship among regressors
If one regressor is an exact linear function of others, OLS cannot separate their effects. The software either fails or drops a variable. This is perfect multicollinearity.
The classic way to cause it is the dummy variable trap. If you include a dummy for every category plus an intercept, the dummies sum to the intercept column. The fix is to use one fewer dummy than categories.
Perfect collinearity is rare and obvious. The common case is high but imperfect collinearity, which is a different problem. It does not violate this assumption, but it inflates standard errors. It has its own chapter.
Zero conditional mean of the error
This is the assumption that protects against bias. If the error is correlated with a regressor, OLS attributes to that regressor some effect that belongs to something else.
Typical causes:
- An omitted variable that affects Y and is correlated with an included X.
- Measurement error in an independent variable.
- Simultaneity, where Y also influences X.
- Using a lagged dependent variable as a regressor when errors are serially correlated.
Suppose the true model is Y = 1 + 2·X1 + 3·X2 + ε, and X2 is correlated with X1. If you leave out X2, the coefficient on X1 absorbs part of X2's effect. It no longer estimates 2. More data does not fix this, because the estimator is inconsistent.
Homoskedasticity
The error variance is a constant, σ². Heteroskedasticity means the variance changes, often growing with the size of a regressor. Returns on small firms, for example, may be more variable than returns on large firms.
Effect on OLS:
- The coefficient estimates stay unbiased and consistent.
- The usual standard errors are wrong, so t-statistics and the F-statistic are unreliable.
- With unconditional heteroskedasticity (variance unrelated to the regressors) the problem is usually harmless for inference. With conditional heteroskedasticity (variance related to the regressors) it causes real trouble.
When the usual standard errors are too small, t-statistics are too large and you reject null hypotheses too often. The direction depends on the pattern. The usual textbook case understates standard errors.
No serial correlation
Serial correlation, or autocorrelation, means errors in one period are related to errors in another. It appears mainly in time-series data. Positive serial correlation, where a positive error tends to follow a positive error, is the most common pattern in financial data.
Effect on OLS, when no lagged dependent variable is among the regressors:
- Coefficient estimates remain unbiased and consistent.
- Standard errors are usually understated under positive serial correlation. T-statistics are inflated, so you find "significant" variables that are not.
If a lagged dependent variable is a regressor and the errors are serially correlated, the estimates themselves become inconsistent. This is more serious.
Normality
The errors should be normally distributed. This assumption matters least in large samples. By the central limit theorem, the distribution of the coefficient estimates approaches normal as n grows, even when the errors are not normal. In small samples, non-normal errors make the t and F distributions only approximate. Heavy tails, common in financial returns, also make outliers more likely, which links to the chapter on influential observations.
What each violation does
| Assumption violated | Coefficients | Standard errors and tests | Typical data |
|---|---|---|---|
| Perfect multicollinearity | Not estimable | Not available | Any |
| Zero conditional mean (omitted variable, etc.) | Biased and inconsistent | Misleading | Any |
| Homoskedasticity | Unbiased, consistent | Unreliable | Cross-section |
| No serial correlation | Unbiased, consistent (no lagged Y) | Unreliable, usually too small | Time series |
| Normality | Unbiased | Approximate in small samples | Any |
Looking at residuals
Residuals are the sample counterpart of the errors, so most assumption checks start from them. Three plots cover a lot of ground:
- Residuals against fitted values. A random cloud of constant width is the goal. A funnel shape suggests heteroskedasticity. A curve suggests a functional form problem.
- Residuals against time or observation order. Long runs of the same sign suggest positive serial correlation.
- A histogram or Q-Q plot of residuals. Heavy tails or skew suggest non-normality.
The following code simulates data that satisfies the assumptions, fits the model, and checks that the residuals behave. It also shows what the residual summary looks like when the assumptions hold.
import numpy as np
import statsmodels.api as sm
from scipy import stats
rng = np.random.default_rng(7)
n = 500
x1 = rng.normal(size=n)
x2 = rng.normal(size=n)
y = 1.0 + 2.0 * x1 - 1.0 * x2 + rng.normal(size=n)
X = sm.add_constant(np.column_stack([x1, x2]))
model = sm.OLS(y, X).fit()
resid = model.resid
print("Mean of residuals:", round(resid.mean(), 6))
print("Corr(resid, x1):", round(np.corrcoef(resid, x1)[0, 1], 6))
print("Corr(resid, x2):", round(np.corrcoef(resid, x2)[0, 1], 6))
print("Residual skewness:", round(stats.skew(resid), 3))
print("Residual excess kurtosis:", round(stats.kurtosis(resid), 3))
print("Shapiro-Wilk p-value:", round(stats.shapiro(resid)[1], 3))Two lines of this output are guaranteed regardless of the data, so they tell you nothing. The residual mean is zero and the residuals are uncorrelated with each regressor by construction, because OLS forces both. Passing those checks does not show that the zero conditional mean assumption holds. That assumption concerns the unobservable true errors and variables you left out. You can only argue for it with economic reasoning, not prove it from the residuals.
The skewness, kurtosis and Shapiro-Wilk lines are genuine checks. Here they should be close to 0, close to 0 and a p-value that is not small, because the simulated errors are normal.
Common errors
- Reading "linear" as "straight line in X". Squared and log terms keep the model linear in parameters.
- Thinking all violations bias the coefficients. Heteroskedasticity and serial correlation leave OLS unbiased. They break the standard errors.
- Treating zero residual correlation as proof of exogeneity. OLS builds it in.
- Confusing perfect and high multicollinearity. Perfect breaks estimation. High inflates standard errors.
- Ignoring normality in large samples. It matters little there. Do not spend effort on it ahead of the other assumptions.
- Using n dummies for n categories with an intercept. This creates perfect multicollinearity.
Practice
Exercise
A analyst regresses monthly fund returns on three factors using 240 months of data. The residuals show long runs of positive values followed by long runs of negative values. The regressors do not include a lagged dependent variable. Which assumption is likely violated, and what happens to the coefficient estimates and the t-statistics?
Show answer
The no-serial-correlation assumption is likely violated, with positive serial correlation. The coefficient estimates remain unbiased and consistent. The standard errors are typically understated, so the t-statistics are inflated and the analyst will reject true null hypotheses too often.
Exercise
A researcher models house prices using the number of bedrooms and the number of rooms, then omits the square footage, which affects price and is positively correlated with both variables. What problem results, and does collecting a much larger sample solve it?
Show answer
Omitting a relevant variable that is correlated with the included regressors makes the error correlated with those regressors. The coefficients on bedrooms and rooms are biased and inconsistent. A larger sample does not help, because the estimator converges to the wrong value. The fix is to add square footage to the model.
Exercise
A model includes an intercept and three dummy variables, one for each of three regions that together cover every observation. What goes wrong, and how do you fix it?
Show answer
The three dummies sum to a column of ones, which equals the intercept column. This is perfect multicollinearity, so OLS cannot estimate the model. Drop one dummy, which becomes the base category, so the model has an intercept and two dummies.