InfluentialPoints.com Biology, images, analysis, design... 

"It has long been an axiom of mine that the little things are infinitely the most important" 

Serial correlationand the DurbinWatson testSerial correlationOne of the assumptions of linear regression is that successive residuals are not correlated over time. A serial correlation coefficient (also termed an autocorrelation coefficient) measures the degree of similarity of observations in a time series separated by different time periods. The Pearson serial correlation coefficient uses the (bivariate) Pearson correlation coefficient on pairs of observations k time periods apart. Used in this way, the equation for the coefficient becomes:
The presence of autocorrelation for different lag times can be assessed using a plot of the serial correlation coefficient against time lag  the plot is known as a correlogram. The Durbin Watson testThis is a formal method of testing whether firstorder serial correlation is a serious problem in a regression analysis. The test is carried out on the raw residuals generated in the regression analysis.
Since d is approximately equal to 2(1 − r), where r is the sample autocorrelation of the residuals, if the error terms are uncorrelated, the expected value of d is 2. The more d is less than 2, the stronger the evidence for positive first order serial correlation. Tabulated values of d for given values of N and α give upper and lower limits to the test statistic. Only if the value falls above the upper limit can we accept the null hypothesis that there is no significant positive serial correlation. If the value falls below the lower limit, we accept the alternative hypothesis that there is significant positive serial correlation. If the value falls within the upper and lower tabulated values of the test statistic, the result is considered 'inconclusive'. The test can also be used to test for significant negative autocorrelation by using the test statistic (4d) autocorrelation. The test assumes that all other assumptions for regression analysis are met  in particular that the error distribution is normal.
