adding autocorrelation to chapter 3