Algorithm Search⌘K

Definitioncore

Partial autocorrelation function

Also called PACF.

The correlation of X_t and X_(t+k) after removing the linear effect of the values between them. It cuts off after lag p for an AR(p) process.

The partial autocorrelation function (PACF) of a stationary process gives, for each lag hh, the correlation between XtX_t and Xt+hX_{t+h} after the linear effect of the values between them, Xt+1,…,Xt+h−1X_{t+1}, \ldots, X_{t+h-1}, is removed from both. It is written ϕhh\phi_{hh}, because it is also the last coefficient of the best linear predictor of Xt+hX_{t+h} from its hh previous values. The autocorrelation counts direct and indirect links: in an AR(1) process XtX_t and Xt+2X_{t+2} are correlated only through Xt+1X_{t+1}. The PACF counts only the direct link, so it is exactly zero after lag pp for an AR(pp) process. This makes it the main tool for choosing the order of an autoregression.

Definition

Setting. {Xt}\{X_t\} is weakly stationary with mean μ\mu, autocovariance γ\gamma and autocorrelation ρ\rho, and with γ(0)>0\gamma(0) > 0 and γ(h)→0\gamma(h) \to 0 as h→∞h \to \infty. These conditions make every covariance matrix Γh=[γ(i−j)]i,j=1h\Gamma_h = [\gamma(i - j)]_{i,j=1}^{h} nonsingular (Brockwell and Davis 1991, Section 5.1). Without loss of generality μ=0\mu = 0. For a set SS of times, PSYP_S Y is the best linear predictor of YY from {Xs:s∈S}\{X_s : s \in S\}, that is the orthogonal projection onto their span, as on the linear prediction page.

Partial autocorrelation. ϕ11=ρ(1)\phi_{11} = \rho(1), and for h≥2h \ge 2, with S={t+1,…,t+h−1}S = \{t+1, \ldots, t+h-1\},

ϕhh=Corr⁡(Xt+h−PSXt+h,  Xt−PSXt).\phi_{hh} = \operatorname{Corr}\big(X_{t+h} - P_S X_{t+h},\; X_t - P_S X_t\big).

It does not depend on tt, and ϕhh=ϕ−h,−h\phi_{hh} = \phi_{-h,-h} by convention, so it is enough to give h≥1h \ge 1.

Second form. Let ϕh=(ϕh1,…,ϕhh)⊤\phi_h = (\phi_{h1}, \ldots, \phi_{hh})^\top be the coefficients of the best linear predictor of Xt+hX_{t+h} from the hh previous values: PXt+h=ϕh1Xt+h−1+⋯+ϕhhXtP X_{t+h} = \phi_{h1} X_{t+h-1} + \cdots + \phi_{hh} X_t. They solve Γhϕh=(γ(1),…,γ(h))⊤\Gamma_h \phi_h = (\gamma(1), \ldots, \gamma(h))^\top, the Yule-Walker system of order hh. Then ϕhh\phi_{hh}, the coefficient of the most distant value, is the partial autocorrelation at lag hh.

Proof that the two forms agree. Let U=Xt−PSXtU = X_t - P_S X_t. It is orthogonal to the span of {Xs:s∈S}\{X_s : s \in S\}, so the span of Xt,Xt+1,…,Xt+h−1X_t, X_{t+1}, \ldots, X_{t+h-1} is that span plus the line through UU, an orthogonal sum. So the predictor of Xt+hX_{t+h} from all hh values is PSXt+h+aUP_S X_{t+h} + a U with a=E[Xt+hU]/E[U2]a = \mathbb{E}[X_{t+h} U]/\mathbb{E}[U^2]. Since PSXtP_S X_t lies in the span of SS, the coefficient of XtX_t in this predictor is aa. Now E[Xt+hU]=E[(Xt+h−PSXt+h)U]\mathbb{E}[X_{t+h} U] = \mathbb{E}[(X_{t+h} - P_S X_{t+h}) U], because PSXt+h⊥UP_S X_{t+h} \perp U. The process reversed in time, X−tX_{-t}, has the same autocovariance, so E[(Xt+h−PSXt+h)2]=E[U2]\mathbb{E}[(X_{t+h} - P_S X_{t+h})^2] = \mathbb{E}[U^2]. Hence a=Corr⁡(Xt+h−PSXt+h,U)=ϕhha = \operatorname{Corr}(X_{t+h} - P_S X_{t+h}, U) = \phi_{hh}. □\square

Sample PACF. From data x1,…,xnx_1, \ldots, x_n, the sample PACF ϕ^hh\hat\phi_{hh} is defined by the second form with the divisor-nn sample autocovariance γ^\hat\gamma in place of γ\gamma. That Γ^h\hat\Gamma_h is positive definite whenever the data are not all equal, so ϕ^hh\hat\phi_{hh} exists for h<nh < n and ∣ϕ^hh∣<1|\hat\phi_{hh}| < 1. The Yule-Walker equations page computes all of them in O(h2)O(h^2) operations with the Levinson-Durbin recursion.

Basic facts.

  • ∣ϕhh∣≤1|\phi_{hh}| \le 1, as a correlation. It is strictly less than 1 when Γh+1\Gamma_{h+1} is nonsingular.
  • If vh=E[(Xt+h−PXt+h)2]v_h = \mathbb{E}[(X_{t+h} - P X_{t+h})^2] is the error of the order-hh predictor, with v0=γ(0)v_0 = \gamma(0), then vh=vh−1(1−ϕhh2)v_h = v_{h-1}(1 - \phi_{hh}^2). So ϕhh2\phi_{hh}^2 is the fraction of the remaining error removed by the hh-th value. The errors decrease to the one-step error σ2\sigma^2 of the Wold decomposition.
  • The map from (ρ(1),…,ρ(h))(\rho(1), \ldots, \rho(h)) to (ϕ11,…,ϕhh)(\phi_{11}, \ldots, \phi_{hh}) is one to one between the autocorrelations that make Γh+1\Gamma_{h+1} positive definite and the open cube (−1,1)h(-1, 1)^h. So any values in (−1,1)(-1, 1) are the partial autocorrelations of some stationary process. This follows from the product det⁡Γh+1=∏k=0hvk\det \Gamma_{h+1} = \prod_{k=0}^{h} v_k and the recursion for vkv_k. The Whittle likelihood code uses this map to search over causal AR models with no constraints.
  • For an AR(pp) process, ϕpp=ϕp\phi_{pp} = \phi_p and ϕhh=0\phi_{hh} = 0 for h>ph > p: the order-hh predictor for h≥ph \ge p is ϕ1Xt+h−1+⋯+ϕpXt+h−p\phi_1 X_{t+h-1} + \cdots + \phi_p X_{t+h-p}, so its last coefficient is 0 when h>ph > p.
  • Quenouille's result. For an AR(pp) process with IID noise, the sample values n ϕ^hh\sqrt{n}\, \hat\phi_{hh} for h>ph > p are asymptotically independent N(0,1)N(0, 1) (Quenouille 1949; Brockwell and Davis 1991, Section 8.2). So values outside ±1.96/n\pm 1.96/\sqrt{n} at lags past pp are rare under the model, and the usual plot draws these bounds.

Examples and non-examples

  • AR(1). Xt=ϕXt−1+εtX_t = \phi X_{t-1} + \varepsilon_t with ∣ϕ∣<1|\phi| < 1. The best predictor from any past window is ϕXt−1\phi X_{t-1}, so ϕ11=ϕ\phi_{11} = \phi and ϕhh=0\phi_{hh} = 0 for h≥2h \ge 2. The autocorrelation ρ(h)=ϕh\rho(h) = \phi^h never reaches 0. With ϕ=3/5\phi = 3/5 the exact values are 3/5,0,0,…3/5, 0, 0, \ldots
  • AR(2). With ϕ=(0.5,0.3)\phi = (0.5, 0.3): ϕ11=ρ(1)=0.5/0.7=0.7143\phi_{11} = \rho(1) = 0.5/0.7 = 0.7143, ϕ22=ϕ2=0.3\phi_{22} = \phi_2 = 0.3, and ϕhh=0\phi_{hh} = 0 for h≥3h \ge 3. Check ϕ22\phi_{22} from the formula ϕ22=(ρ(2)−ρ(1)2)/(1−ρ(1)2)\phi_{22} = (\rho(2) - \rho(1)^2)/(1 - \rho(1)^2) with ρ(2)=0.6571\rho(2) = 0.6571: (0.6571−0.5102)/(1−0.5102)=0.3(0.6571 - 0.5102)/(1 - 0.5102) = 0.3.
  • MA(1). Xt=εt+θεt−1X_t = \varepsilon_t + \theta \varepsilon_{t-1} with ∣θ∣<1|\theta| < 1. The PACF never cuts off: ϕhh=−(−θ)h(1−θ2)/(1−θ2(h+1))\phi_{hh} = -(-\theta)^h (1 - \theta^2)/(1 - \theta^{2(h+1)}) (Brockwell and Davis 1991, Section 3.4). With θ=1/2\theta = 1/2 the exact values are 2/5,−4/21,8/85,−16/341,…2/5, -4/21, 8/85, -16/341, \ldots, with alternating signs and a geometric decay.
  • ARMA(1, 1). With ϕ=0.5\phi = 0.5 and θ=0.4\theta = 0.4: 0.6923,−0.2557,0.1010,−0.0403,…0.6923, -0.2557, 0.1010, -0.0403, \ldots Neither the autocorrelation nor the PACF cuts off.
  • A sample by hand. x=(3,5,6,4,2,1,3,6,7,5)x = (3, 5, 6, 4, 2, 1, 3, 6, 7, 5), n=10n = 10. The sample autocorrelations are ρ^(1)=1.656/3.36=69/140\hat\rho(1) = 1.656/3.36 = 69/140 and ρ^(2)=−1.068/3.36=−89/280\hat\rho(2) = -1.068/3.36 = -89/280. So ϕ^11=69/140=0.4929\hat\phi_{11} = 69/140 = 0.4929, and
ϕ^22=ρ^(2)−ρ^(1)21−ρ^(1)2=−6230/19600−4761/1960014839/19600=−1099114839=−0.7407.\hat\phi_{22} = \frac{\hat\rho(2) - \hat\rho(1)^2}{1 - \hat\rho(1)^2} = \frac{-6230/19600 - 4761/19600}{14839/19600} = -\frac{10991}{14839} = -0.7407.

The next value is ϕ^33=0.0443\hat\phi_{33} = 0.0443. The bounds ±1.96/10=±0.62\pm 1.96/\sqrt{10} = \pm 0.62 suggest an AR(2) model, but ten points are far too few for this rule.

  • Non-example: the autocorrelation. ρ(h)\rho(h) is not ϕhh\phi_{hh} except at h=1h = 1. In AR(1), ρ(2)=ϕ2≠0\rho(2) = \phi^2 \ne 0 while ϕ22=0\phi_{22} = 0.
  • Non-example: a coefficient of a fixed-order fit. In the order-pp predictor, the coefficient ϕpj\phi_{pj} of lag j<pj < p is not ϕjj\phi_{jj}. In the sample above, the order-2 fit has lag-1 coefficient 0.85790.8579, while ϕ^11=0.4929\hat\phi_{11} = 0.4929. Only the last coefficient of each order is a partial autocorrelation.
  • Non-example: a deterministic process. For the random sinusoid Xt=Acos⁡(ωt)+Bsin⁡(ωt)X_t = A\cos(\omega t) + B\sin(\omega t) with 0<ω<π0 < \omega < \pi, ρ(h)=cos⁡(ωh)\rho(h) = \cos(\omega h) and ϕ22=(cos⁡2ω−cos⁡2ω)/sin⁡2ω=−1\phi_{22} = (\cos 2\omega - \cos^2\omega)/\sin^2\omega = -1. Then Xt+2=2cos⁡(ω)Xt+1−XtX_{t+2} = 2\cos(\omega) X_{t+1} - X_t exactly, Γ3\Gamma_3 is singular, and ϕhh\phi_{hh} is not defined for h≥3h \ge 3. Here γ(h)\gamma(h) does not tend to 0, so the process is outside the setting.
  • Non-example: a random walk. The sample PACF of a random walk path is close to 1 at lag 1 and small after, which looks like AR(1) with ϕ\phi near 1. But the random walk is not stationary, ϕhh\phi_{hh} is not defined for it, and the sample values do not estimate a fixed function. Difference the series first, as the ARIMA model does.
  • Partial correlation. For random variables YY, ZZ and a vector WW, the partial correlation of YY and ZZ given WW is the correlation of the residuals of the linear regressions of YY and ZZ on WW. The PACF is the partial correlation of Xt+hX_{t+h} and XtX_t given the values between them. For Gaussian processes it equals the conditional correlation.
  • Reflection coefficients. In signal processing the partial autocorrelations are the reflection coefficients of the lattice prediction filter, with the opposite sign in the usual convention: the coefficient αk\alpha_k on the Levinson-Durbin recursion page is −ϕk+1,k+1-\phi_{k+1,k+1}. The Burg method estimates them directly from the data.
  • Prediction error variances. vhv_h, the error of the order-hh predictor, is the quantity that the Akaike-type order selection criteria compare across orders, for example through the term nlog⁡vhn \log v_h in the Akaike information criterion of an AR(hh) fit.
  • Inverse autocorrelation. The autocorrelation of the process whose spectral density is 1/f1/f. For an AR(pp) process it cuts off after lag pp, like the PACF, but it is a different function.
  • Autocorrelation function. The ordinary autocorrelation ρ(h)\rho(h), which cuts off after lag qq for an MA(qq) process. The pair of plots, autocorrelation and PACF, is the identification step of the Box-Jenkins method.

References

  1. Peter J. Brockwell and Richard A. Davis, Time Series: Theory and Methods, second edition, Springer, 1991, Section 3.4 (the partial autocorrelation function, pp. 98 to 102), Section 5.2 (the Durbin-Levinson algorithm, pp. 169 to 174) and Section 8.2 (the sample PACF and AR order selection, p. 241)
  2. Peter J. Brockwell and Richard A. Davis, Introduction to Time Series and Forecasting, third edition, Springer, 2016, Section 2.5.3 (the Durbin-Levinson algorithm, p. 60) and Section 3.2.3 (the partial autocorrelation function, p. 83)
  3. M. H. Quenouille, Approximate tests of correlation in time-series, Journal of the Royal Statistical Society B 11(1), 1949, pp. 68 to 84 (the sample partial autocorrelations beyond the order of an autoregression are approximately independent with variance 1/n)

Where this leads

About this page

The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW4 complete
  • a review of the text: no review record reviews/NZ70YH/text.yaml