Computes the Durbin-Watson statistic for serial correlation.