Stationary stochastic time series can be modelled using an autoregressive process of sufficiently high order (AR()):
The time series literature, including Chatfield (1996), describes various techniques for determining the order and parameters of AR models. Here, we use the partial autocorrelation function (PACF) to find and ordinary least squares to fit the parameters. When fitting an AR() model, the last partial coefficient measures the excess correlation at lag p not accounted for by an AR() model; plotted for all is the PACF. The lowest value of for which in the PACF is not significantly different to zero (using the 95% confidence limits of approximately (Chatfield, 1996)), is the order used.