Autocorrelation occurs when the error terms of a regression model are correlated. We have already
discussed the assumptions of regression and we know that independence of error is one of the as-
sumptions of regression. The presence of autocorrelation in a time series data violates this assumption
of regression, hence, it affects the authenticity of the regression model. A first order autocorrelation
results from the degree of correlation between the error terms of adjacent time periods. Durbin–Wat-
son test is a test to identify the presence of autocorrelation in a time series data ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.