The standard errors in a regression summary are only right if three things hold: the residuals are not correlated with each other, their spread does not change over time, and the regressors are not nearly copies of one another. statsmodels gives a test for each. The Durbin–Watson statistic looks at neighbouring residuals. The variance inflation factor, VIF, looks at how well each regressor can be rebuilt from the others. The Breusch–Pagan test asks whether the spread of the residuals depends on the regressors, and the Jarque–Bera test asks whether skewness and fat tails are large enough to matter. A bad result does not make the coefficients useless, it tells you which standard errors to distrust.
Residuals and two correlated regressorsTake the residuals −0.4,0.8,0,−0.8,0.4 from the five-month fit. The differences of neighbours are 1.2,−0.8,−0.8,1.2, their squares add to 4.16 and ∑et2=1.6, so DW=2.6 and ρ^1≈1−2.6/2=−0.3: the residuals tend to flip sign. A value near 2 means no first-order correlation, near 0 means positive correlation and near 4 negative. If two regressors have correlation 0.9, each is explained by the other with Rj2=0.81 and VIF=1/0.19=5.26. With correlation 0.99 the VIF is about 50, and with Rj2=0.99 it is 100, which stretches the standard errors by 100=10. On real data, Apple's three-factor regression (258 months from March 2005) has DW=1.94 and a Breusch–Pagan p-value of 0.21, so there is little to worry about, though Jarque–Bera rejects normality (p=0.015, kurtosis 3.8). Now add the SPY fund's excess return next to the market factor: the two have correlation 0.994, both VIFs jump to 82.9, the standard error of the market loading goes from 0.10 to 0.91, and its estimate flips to −0.23 while R2 barely moves (0.347). Finally, regress log HD on log LOW over 6,696 days: R2=0.93 but DW=0.002. A DW far below R2 warns that two trending prices are being matched by chance.
A warning is not a verdictEach diagnostic points at one assumption. Fix the matching problem: robust standard errors for correlated or uneven residuals (next topic), dropping or combining collinear regressors, or differencing trending series.
Durbin–Watson near 2 is clean, near 0 or 4 means neighbouring residuals are linked.
VIF above about 10 means the regressors tangle and individual t-statistics cannot be trusted.
A high R2 with a tiny DW is the classic sign of a regression between trending series.
Lab · what's graded
A Durbin–Watson statistic20 pts
The implied autocorrelation10 pts
A variance inflation factor20 pts
How far a standard error stretches20 pts
Match the diagnostics10 pts
Collinear regressors20 pts
0/ 6 answered
1Numeric answer20 ptsNot answered
The residuals are −0.4,0.8,0,−0.8,0.4. The squared differences of neighbours add to 4.16 and ∑et2=1.6. What is DW? Give one decimal.
dw=accepted: ± 0.05
2Numeric answer10 ptsNot answered
Use ρ^1≈1−DW/2 with DW=2.6. What is ρ^1?
rho=accepted: ± 0.01
3Numeric answer20 ptsNot answered
Two regressors have correlation 0.9. Regressing one on the other gives Rj2=0.81. What is VIF=1/(1−Rj2)? Give two decimals.
v=accepted: ± 0.03
4Numeric answer20 ptsNot answered
Both VIFs are 82.9. By what factor is each standard error larger than it would be with uncorrelated regressors, VIF? Give one decimal.
s=accepted: ± 0.1
5Match10 ptsNot answered
Match each diagnostic with the problem it looks for.
Pick the partner of each item on the left.
Durbin–Watson
VIF
Breusch–Pagan
Jarque–Bera
6Explain in words20 ptsNot answered
Adding the SPY fund's return next to the market factor left R2 at 0.347 but made the market loading's standard error nine times larger. In one or two sentences, explain why.
Math modeKeyboard or LaTeX inputTask 1 of 6 · Ctrl ⏎ to check