Jump to content

Partial autocorrelation function: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Attempted to clean up definition for clarity
Added examples section showing PACF of white noise, AR, MA, and ARMA models
Line 4: Line 4:
In [[time series analysis]], the '''partial autocorrelation function''' ('''PACF''') gives the [[partial correlation]] of a stationary time series with its own lagged values, regressed the values of the time series at all shorter lags. It contrasts with the [[autocorrelation function]], which does not control for other lags.
In [[time series analysis]], the '''partial autocorrelation function''' ('''PACF''') gives the [[partial correlation]] of a stationary time series with its own lagged values, regressed the values of the time series at all shorter lags. It contrasts with the [[autocorrelation function]], which does not control for other lags.


This function plays an important role in data analysis aimed at identifying the extent of the lag in an [[autoregressive model]]. The use of this function was introduced as part of the [[Box–Jenkins]] approach to time series modelling, whereby plotting the partial autocorrelative functions one could determine the appropriate lags '''p''' in an AR ('''p''') [[autoregressive model|model]] or in an extended [[Autoregressive integrated moving average|ARIMA]] ('''p''','''d''','''q''') model.
This function plays an important role in data analysis aimed at identifying the extent of the lag in an [[autoregressive model|autoregressive (AR) model]]. The use of this function was introduced as part of the [[Box–Jenkins]] approach to time series modelling, whereby plotting the partial autocorrelative functions one could determine the appropriate lags '''p''' in an AR ('''p''') [[autoregressive model|model]] or in an extended [[Autoregressive integrated moving average|ARIMA]] ('''p''','''d''','''q''') model.


==Definition==
==Definition==
Line 12: Line 12:
== Calculation ==
== Calculation ==


The theoretical partial autocorrelation function of a stationary time series can be calculated by using the Durbin–Levinson Algorithm:<math display="block">\phi_{n,n} = \frac{\rho(n) - \sum_{k=1}^{n-1} \phi_{n-1, k} \rho(n - k)}{1 - \sum_{k=1}^{n-1} \phi_{n-1, k} \rho(k) }</math>where <math>\phi_{n,k} = \phi_{n-1, k} - \phi_{n,n} \phi_{n-1,n-k}</math> for <math>1 \leq k \leq n - 1</math> and <math>\rho(n)</math> is the autocorrelation function.<ref>{{Cite journal |last=Durbin |first=J. |date=1960 |title=The Fitting of Time-Series Models |url=https://www.jstor.org/stable/1401322 |journal=Revue de l'Institut International de Statistique / Review of the International Statistical Institute |volume=28 |issue=3 |pages=233–244 |doi=10.2307/1401322 |issn=0373-1138}}</ref><ref>{{Cite book |last=Shumway |first=Robert H. |url=http://link.springer.com/10.1007/978-3-319-52452-8 |title=Time Series Analysis and Its Applications: With R Examples |last2=Stoffer |first2=David S. |date=2017 |publisher=Springer International Publishing |isbn=978-3-319-52451-1 |series=Springer Texts in Statistics |location=Cham |pages=103-104 |language=en |doi=10.1007/978-3-319-52452-8}}</ref><ref>{{Cite book |last=Enders |first=Walter |url=https://www.worldcat.org/oclc/52387978 |title=Applied econometric time series |date=2004 |publisher=J. Wiley |isbn=0-471-23065-0 |edition=2nd |location=Hoboken, NJ |pages=65-67 |language=en |oclc=52387978}}</ref>
The theoretical partial autocorrelation function of a stationary time series can be calculated by using the Durbin–Levinson Algorithm:<math display="block">\phi_{n,n} = \frac{\rho(n) - \sum_{k=1}^{n-1} \phi_{n-1, k} \rho(n - k)}{1 - \sum_{k=1}^{n-1} \phi_{n-1, k} \rho(k) }</math>where <math>\phi_{n,k} = \phi_{n-1, k} - \phi_{n,n} \phi_{n-1,n-k}</math> for <math>1 \leq k \leq n - 1</math> and <math>\rho(n)</math> is the autocorrelation function.<ref>{{Cite journal |last=Durbin |first=J. |date=1960 |title=The Fitting of Time-Series Models |url=https://www.jstor.org/stable/1401322 |journal=Revue de l'Institut International de Statistique / Review of the International Statistical Institute |volume=28 |issue=3 |pages=233–244 |doi=10.2307/1401322 |issn=0373-1138}}</ref><ref>{{Cite book |last=Shumway |first=Robert H. |url=http://link.springer.com/10.1007/978-3-319-52452-8 |title=Time Series Analysis and Its Applications: With R Examples |last2=Stoffer |first2=David S. |date=2017 |publisher=Springer International Publishing |isbn=978-3-319-52451-1 |series=Springer Texts in Statistics |location=Cham |pages=103-104 |language=en |doi=10.1007/978-3-319-52452-8}}</ref><ref name=":1">{{Cite book |last=Enders |first=Walter |url=https://www.worldcat.org/oclc/52387978 |title=Applied econometric time series |date=2004 |publisher=J. Wiley |isbn=0-471-23065-0 |edition=2nd |location=Hoboken, NJ |pages=65-67 |language=en |oclc=52387978}}</ref>


There are algorithms for estimating the partial autocorrelation based on the sample autocorrelations. The formula above can be used with sample autocorrelations to find the sample partial autocorrelation function of any given time series.<ref name=":0">{{Cite book |last=Box |first=George E. P. |title=Time Series Analysis: Forecasting and Control |last2=Reinsel |first2=Gregory C. |last3=Jenkins |first3=Gwilym M. |publisher=John Wiley |year=2008 |isbn=9780470272848 |edition=4th |location=Hoboken, New Jersey |language=en}}</ref><ref>{{Cite book |last=Brockwell |first=Peter J. |title=Time Series: Theory and Methods |last2=Davis |first2=Richard A. |publisher=Springer |year=1991 |isbn=9781441903198 |edition=2nd |location=New York, NY |pages=102, 243-245 |language=en}}</ref>
The formula above can be used with sample autocorrelations to find the sample partial autocorrelation function of any given time series.<ref name=":0">{{Cite book |last=Box |first=George E. P. |title=Time Series Analysis: Forecasting and Control |last2=Reinsel |first2=Gregory C. |last3=Jenkins |first3=Gwilym M. |publisher=John Wiley |year=2008 |isbn=9780470272848 |edition=4th |location=Hoboken, New Jersey |language=en}}</ref><ref>{{Cite book |last=Brockwell |first=Peter J. |title=Time Series: Theory and Methods |last2=Davis |first2=Richard A. |publisher=Springer |year=1991 |isbn=9781441903198 |edition=2nd |location=New York, NY |pages=102, 243-245 |language=en}}</ref>

== Examples ==
The partial autocorrelation of [[white noise]] is zero for all lags.

AR models have nonzero partial autocorrelations for lags less than or equal to its order. In other words, the partial autocorrelation of an AR(''p'') process is zero at lags greater than ''p''.

For [[Moving average|moving average (MA)]] models, their partial autocorrelation exponentially decays to 0. For MA models that have <math>\phi_{1,1} > 0</math>, the decay is [[Oscillation (mathematics)|oscillating]] and the other models with <math>\phi_{1,1} < 0</math> have geometric decay.

The partial autocorrelation function of an [[ARMA model|ARMA(''p'', ''q'') model]] also exponentially decays but only after lags greater than ''p''.<ref name=":1" /><ref>{{Cite book |last=Das |first=Panchanan |url=https://www.worldcat.org/oclc/1119630068 |title=Econometrics in Theory and Practice : Analysis of Cross Section, Time Series and Panel Data with Stata 15. 1 |date=2019 |publisher=Springer |year=2019 |isbn=978-981-329-019-8 |edition= |location=Singapore |pages=294-299 |language=en |oclc=1119630068}}</ref>


== Autoregressive Model Identification ==
== Autoregressive Model Identification ==

Revision as of 17:43, 13 July 2022

Partial autocorrelation function of Lake Huron's depth[1]

In time series analysis, the partial autocorrelation function (PACF) gives the partial correlation of a stationary time series with its own lagged values, regressed the values of the time series at all shorter lags. It contrasts with the autocorrelation function, which does not control for other lags.

This function plays an important role in data analysis aimed at identifying the extent of the lag in an autoregressive (AR) model. The use of this function was introduced as part of the Box–Jenkins approach to time series modelling, whereby plotting the partial autocorrelative functions one could determine the appropriate lags p in an AR (p) model or in an extended ARIMA (p,d,q) model.

Definition

Given a time series , the partial autocorrelation of lag , denoted , is the autocorrelation between and with the linear dependence of on through removed. Equivalently, it is the autocorrelation between and that is not accounted for by lags through , inclusive.where and are linear combinations of that minimize the mean squared error of and respectively. For stationary processes, and are the same.[2]

Calculation

The theoretical partial autocorrelation function of a stationary time series can be calculated by using the Durbin–Levinson Algorithm:where for and is the autocorrelation function.[3][4][5]

The formula above can be used with sample autocorrelations to find the sample partial autocorrelation function of any given time series.[6][7]

Examples

The partial autocorrelation of white noise is zero for all lags.

AR models have nonzero partial autocorrelations for lags less than or equal to its order. In other words, the partial autocorrelation of an AR(p) process is zero at lags greater than p.

For moving average (MA) models, their partial autocorrelation exponentially decays to 0. For MA models that have , the decay is oscillating and the other models with have geometric decay.

The partial autocorrelation function of an ARMA(p, q) model also exponentially decays but only after lags greater than p.[5][8]

Autoregressive Model Identification

The partial autocorrelation graph has 3 spikes and the rest is close to 0.
Sample partial autocorrelation function of a simulated AR(3) time series

Partial autocorrelation plots are a commonly used tool for identifying the order of an autoregressive model.[6] The partial autocorrelation of an AR(p) process is zero at lag and greater. If the sample autocorrelation plot indicates that an AR model may be appropriate, then the sample partial autocorrelation plot is examined to help identify the order. One looks for the point on the plot where the partial autocorrelations for all higher lags are essentially zero. Placing on the plot an indication of the sampling uncertainty of the sample PACF is helpful for this purpose: this is usually constructed on the basis that the true value of the PACF, at any given positive lag, is zero. This can be formalised as described below.

An approximate test that a given partial correlation is zero (at a 5% significance level) is given by comparing the sample partial autocorrelations against the critical region with upper and lower limits given by , where n is the record length (number of points) of the time-series being analysed. This approximation relies on the assumption that the record length is at least moderately large (say ) and that the underlying process has finite second moment.

References

  1. ^ Brockwell, Peter J.; Davis, Richard A. (2016). "Modeling and Forecasting with ARMA Processes". Introduction to Time Series and Forecasting (Third ed.). Springer International Publishing. p. 132. ISBN 978-3319298528.
  2. ^ Shumway, Robert H.; Stoffer, David S. (2017). Time Series Analysis and Its Applications: With R Examples. Springer Texts in Statistics. Cham: Springer International Publishing. pp. 97–98. doi:10.1007/978-3-319-52452-8. ISBN 978-3-319-52451-1.
  3. ^ Durbin, J. (1960). "The Fitting of Time-Series Models". Revue de l'Institut International de Statistique / Review of the International Statistical Institute. 28 (3): 233–244. doi:10.2307/1401322. ISSN 0373-1138.
  4. ^ Shumway, Robert H.; Stoffer, David S. (2017). Time Series Analysis and Its Applications: With R Examples. Springer Texts in Statistics. Cham: Springer International Publishing. pp. 103–104. doi:10.1007/978-3-319-52452-8. ISBN 978-3-319-52451-1.
  5. ^ a b Enders, Walter (2004). Applied econometric time series (2nd ed.). Hoboken, NJ: J. Wiley. pp. 65–67. ISBN 0-471-23065-0. OCLC 52387978.
  6. ^ a b Box, George E. P.; Reinsel, Gregory C.; Jenkins, Gwilym M. (2008). Time Series Analysis: Forecasting and Control (4th ed.). Hoboken, New Jersey: John Wiley. ISBN 9780470272848.
  7. ^ Brockwell, Peter J.; Davis, Richard A. (1991). Time Series: Theory and Methods (2nd ed.). New York, NY: Springer. pp. 102, 243–245. ISBN 9781441903198.
  8. ^ Das, Panchanan (2019). Econometrics in Theory and Practice : Analysis of Cross Section, Time Series and Panel Data with Stata 15. 1. Singapore: Springer. pp. 294–299. ISBN 978-981-329-019-8. OCLC 1119630068.{{cite book}}: CS1 maint: date and year (link)

Public Domain This article incorporates public domain material from http://www.itl.nist.gov/div898/handbook/pmc/section4/pmc4463.htm. National Institute of Standards and Technology. {{citation}}: External link in |title= (help)