Partial autocorrelation (PACF): identify the AR order
The partial autocorrelation at lag k is the correlation between yₜ and yₜ₋ₖ after removing the effect of the observations in between (yₜ₋₁ through yₜ₋ₖ₊₁). The partial autocorrelation function (PACF) lists it for lags 1, 2, 3 and so on. Where the autocorrelation function mixes direct and indirect links, the PACF keeps only the direct one, so it shows how many past values a process actually "remembers". Its main use is to choose the order of an autoregressive (AR) model.
When to use it
- You are identifying an ARIMA model and need the AR order p.
- The ACF decays slowly or oscillates, and you want to know whether one or two lags explain it.
- You want to check that the residuals of a fitted model have no remaining direct dependence.
- You are studying a feedback process, such as a control loop, where the current value depends on the last few values.
How it works
The partial autocorrelation at lag k, written φₖₖ, is the last coefficient when you fit an autoregressive model of order k:
yₜ = c + φₖ₁·yₜ₋₁ + φₖ₂·yₜ₋₂ + … + φₖₖ·yₜ₋ₖ + eₜFit AR(1) and take its coefficient: that is φ₁₁, which equals r₁. Fit AR(2) and take the coefficient of yₜ₋₂: that is φ₂₂. In practice the values come from the autocorrelations through the Durbin–Levinson recursion, which solves the Yule–Walker equations one order at a time. For lag 2 it reduces to:
φ₂₂ = (r₂ − r₁²) / (1 − r₁²)For a random series, the PACF values are approximately normal with standard error 1/√n, so the usual bounds are ±2/√n.
The identification rules:
| Process | ACF | PACF |
|---|---|---|
| AR(p) | Decays gradually (possibly oscillating) | Cuts off after lag p |
| MA(q) | Cuts off after lag q | Decays gradually |
| ARMA(p, q) | Decays after lag q | Decays after lag p |
Example
A curing oven runs under a temperature controller. The deviation from setpoint (°C) is logged every 30 seconds; 60 consecutive readings:
−0.3, −0.6, 0.7, 1.7, 1.6, 1.3, −0.1, −0.3, −1.6, 0.0, 0.9, 1.0, 1.0, 0.4, −0.4, 0.6, 0.9, −0.4, −0.4, −1.8, 0.2, 0.9, 0.8, 2.5, 4.0, 2.5, 0.8, 0.6, 1.8, 1.2, 0.3, 0.9, 0.9, 1.1, 1.2, −0.7, −2.0, −4.1, −3.0, 0.7, 1.0, 1.8, 2.1, 0.9, −0.2, −0.6, −1.3, −1.1, −0.4, 0.8, 1.7, 0.4, 0.3, −0.7, −0.9, −0.1, 0.3, 0.2, 0.3, −0.4
The mean deviation is 0.315 °C. The ACF swings from positive to negative and back: 0.656, 0.191, −0.150, −0.336, −0.294, −0.145, 0.040, 0.178, 0.143, 0.099. That damped wave says the temperature oscillates around setpoint, but not how many lags drive it. The PACF does:
The bounds are ±2/√60 = ±0.258. Lag 1 (0.656) and lag 2 (−0.421) are beyond them; every lag from 3 to 10 is inside. For lag 2, (0.191 − 0.656²) / (1 − 0.656²) = −0.42.
The PACF cuts off after lag 2, so an AR(2) model is the natural candidate. A least-squares fit gives:
ŷₜ = 0.164 + 0.940·yₜ₋₁ − 0.428·yₜ₋₂The positive first coefficient carries the temperature forward; the negative second one pulls it back, which produces the oscillation. With these coefficients the model implies a cycle of about 8 readings, or 4 minutes, which matches the swings in the ACF. The residuals of this model show no remaining pattern: the Ljung–Box statistic for 10 lags is 6.63 with 8 degrees of freedom, p = 0.58. An AR(1) model would not be enough: its residuals still have a lag-1 autocorrelation of 0.278 and a lag-4 autocorrelation of −0.336.
For the process engineer, the result points to an underdamped control loop. Reducing the controller's gain or adding derivative action would be the next experiment, checked by repeating the PACF on new data.
How to read the results
- Count the significant lags before the cutoff. That count is the candidate AR order.
- Look at the sign. A negative φ₂₂ after a positive φ₁₁ means overshoot and correction, typical of feedback loops.
- Read the ACF and PACF together. If neither cuts off, consider an ARMA model and compare candidates by AIC or BIC, as in forecast with best ARIMA.
- Expect an occasional stray bar. With ten lags at 95% bounds, one value outside by chance is not unusual.
Common mistakes
- Computing the PACF on a non-stationary series. A trend or random walk gives a PACF of nearly 1 at lag 1 and little else; difference the series first.
- Choosing the order from one borderline lag. A value just past the bound at lag 7 rarely justifies an AR(7) model.
- Forgetting to check the residuals. The PACF only suggests a model; the residual ACF and Ljung–Box test confirm it.
- Using too short a series. With fewer than about 50 points, the bounds are wide and the cutoff is hard to see.
Frequently asked questions
Why does the PACF at lag 1 equal the ACF at lag 1?
There are no observations between yₜ and yₜ₋₁ to remove, so the partial and ordinary correlations are the same.
Can partial autocorrelations be larger than 1?
Not when computed from the autocorrelations of a stationary series. Values near ±1 at lag 1 usually mean the series is not stationary.
Do I need the PACF if I use automatic model selection?
Automatic selection compares candidates by an information criterion, which is quicker. The PACF still helps you understand why a model was chosen and spot problems such as a missing seasonal lag.
How is the PACF different from cross correlation?
The PACF relates a series to its own past. Cross correlation relates one series to the past or future of another, such as a process input and its output.