A topic in the Open Knowledge Graph — a free, open map of 15,495 topics and the order to learn them in.

Testing for Autocorrelation: Durbin-Watson and Breusch-Godfrey

Graduate Depth 123 in the knowledge graph ☐ I know this ☆ Set as goal
936prerequisites beneath it
See this on the map →
Serial Correlation (Autocorrelation) in RegressionTime Series Data: Structure and Concepts+1 more→
autocorrelation durbin-watson breusch-godfrey

Core Idea

The Durbin-Watson statistic tests for first-order serial correlation in residuals (DW ≈ 2 means no correlation). The Breusch-Godfrey LM test is more general, testing for higher-order autocorrelation and valid when lags of X are present.

How It's Best Learned

Compute DW or run the BG test on residuals from OLS regression. Plot residuals over time to visually detect serial correlation before relying on formal tests.

Common Misconceptions

Explainer

You already know from serial correlation that when regression residuals are systematically related across time periods — positive errors following positive errors, or negative following negative — the OLS standard errors are wrong. The question this topic answers is: how do you actually detect that problem in practice? The answer involves two complementary tests, each suited to different situations.

The Durbin-Watson statistic is the older and more famous test. After running an OLS regression, compute the DW statistic from the residuals: it roughly equals 2(1 − r̂), where r̂ is the first-order autocorrelation of the residuals. This means a DW near 2 signals no first-order autocorrelation, a value near 0 signals strong positive autocorrelation (residuals moving together), and a value near 4 signals strong negative autocorrelation (residuals alternating in sign). The test has an inconclusive zone — if DW falls between the lower and upper critical bounds, the test is indeterminate, which can be frustrating in practice. It is also limited to first-order autocorrelation and fails when lagged dependent variables appear as regressors.

The Breusch-Godfrey LM test is more flexible. It tests for autocorrelation up to any order you specify, and it remains valid when lagged dependent variables appear on the right-hand side — a common situation in time-series regression. The procedure is simple: regress the residuals on all original regressors plus p lags of the residuals, then use the resulting R² to form an LM statistic (n × R²), which follows a chi-squared distribution with p degrees of freedom under the null of no autocorrelation. If the statistic is large enough to reject the null, you have evidence of autocorrelation up to order p.

In practice, always start with a visual inspection: plot the residuals against time and look for patterns. Systematic runs of same-sign residuals are the fingerprint of positive autocorrelation. If you see it visually, the formal tests will almost certainly confirm it. The more important question is what to do next: autocorrelation doesn't mean your coefficient estimates are biased (they usually aren't), but it does mean your standard errors and t-statistics are unreliable. The remedies — using HAC (Newey-West) standard errors, or fitting GLS/FGLS — depend on diagnosing not just whether autocorrelation is present, but what form it takes.

Practice Questions 5 questions

Prerequisite Chain

Understanding Zero → The Number Zero → Counting to Five → Counting to 10 → Counting to 20 → Counting a Set of Objects Up to 20 → Cardinality: The Last Number Counted → Matching Numerals to Quantities → Subitizing Small Quantities → Combining Small Groups Within 5 → Number Bonds Within 5 → Number Bonds to 10 → Tens and Ones Place Value → Reading and Writing Three-Digit Numbers → Comparing Three-Digit Numbers → Comparing and Ordering Three-Digit Quantities → Comparing and Ordering Whole Numbers → Comparing Numbers 1 to 20 → Ordering Numbers to 20 → Number Line 0 to 20 → Addition Within 20 → Doubles and Near Doubles → Doubles Facts Within 10 → Near Doubles Facts Within 20 → Mental Math Strategies for Addition → Mental Math: Adding and Subtracting Tens → Addition Within 100 → Repeated Addition as Multiplication → Multiplication as Equal Groups → Multiplication: Arrays → Basic Multiplication Facts (0s, 1s, 2s, 5s, 10s) → Multiplication Facts Within 100 → Division as Equal Sharing → Division as Grouping (Measurement Division) → Division: Grouping (Repeated Subtraction) Model → Division: Fair Sharing Model → Division as Equal Sharing → Division as Grouping → Basic Division Facts → Division Facts Within 100 → Multiplication and Division Fact Families → Relationship Between Multiplication and Division → Division Facts as Inverse of Multiplication → Remainders and Quotients in Division → Division Word Problems → Multi-Step Word Problems → Solving Multi-Step Word Problems → Multiplication Word Problems → Division Word Problems → Introduction to Long Division → Factors and Multiples → Prime and Composite Numbers → Equivalent Fractions → Relating Fractions and Decimals → Decimal Place Value → Integers and the Number Line → Opposites and Additive Inverses → Absolute Value → Adding Integers → Subtracting Integers → Multiplying Integers → Introduction to Exponents → Order of Operations → Integer Order of Operations → Variable Expressions → The Distributive Property → Variables and Expressions Review → Introduction to Polynomials → Adding and Subtracting Polynomials → Multiplying Polynomials → Multiplying Binomials (FOIL) → Factoring Trinomials → Factoring Completely → Introduction to Rational Expressions → Simplifying Radical Expressions → Segments and Distance → Triangle Inequality Theorem → Similar Triangles: AA Similarity → Similar Triangles: SSS and SAS Similarity → Proportions in Similar Triangles → Similar Right Triangles and the Geometric Mean → Right Triangle Trigonometry Introduction → Sine, Cosine, and Tangent Ratios → Special Right Triangles: 30-60-90 → Trigonometric Ratios Review → Radian Measure → Converting Between Degrees and Radians → The Unit Circle → Graphing Sine and Cosine → Graphing Tangent and Reciprocal Trigonometric Functions → Derivatives of Trigonometric Functions → Antiderivatives → Indefinite Integrals → Basic Integration Rules → Riemann Sums → Definite Integral Definition → Probability Density Functions and Continuous Distributions → Cumulative Distribution Functions → Continuous Random Variables → Probability Density Functions → Expected Value → Weak Law of Large Numbers → Probability Axioms and Rules → Conditional Probability → Independence and the Multiplication Rule → Binomial Distribution → Sampling Distributions → Standard Error of Estimators → Hypothesis Testing: Framework and Logic → P-values and Statistical Significance → Effect Size and Practical Significance → Hypothesis Testing: Framework and Logic → Z-Tests and T-Tests for Means → One-Sample Z-Test for Means → One-Sample and Two-Sample T-Tests → Inference in Linear Regression → Prediction Intervals in Regression → Linear Regression Basics → Residuals and Goodness of Fit (R²) → Simple (Bivariate) OLS Regression → Classical OLS Assumptions (Gauss-Markov) → Autocorrelation: Structure and Sources → Durbin-Watson Statistic for Autocorrelation → Testing for Autocorrelation: Durbin-Watson and Breusch-Godfrey

Longest path: 124 steps · 936 total prerequisite topics

Prerequisites (3)

Leads To (0)

No topics depend on this one yet.