ApX logoApX logo
ModelsCalculatorHardwareCoursesPricing
ApX logoApX logo
ModelsCalculatorHardwareCoursesPricing

All Courses

Time Series Analysis and Forecasting
Chapter 1: Introduction to Time Series Data
Characteristics of Time Series Data
Components: Trend, Seasonality, Cyclical, Irregular
Loading and Handling Time Series in Pandas
Time Shifting, Lagging, and Rolling Windows
Visualizing Time Series Data
Hands-on Practice: Loading and Plotting Data
Quiz for Chapter 1
Chapter 2: Time Series Decomposition and Stationarity
Understanding Stationarity
Methods for Time Series Decomposition
Implementing Decomposition in Python
Testing for Stationarity: Visual Inspection
Statistical Tests for Stationarity (ADF Test)
Achieving Stationarity: Differencing
Hands-on Practice: Decomposition and Stationarity Tests
Quiz for Chapter 2
Chapter 3: Autocorrelation and Model Identification
Autocorrelation Function (ACF)
Partial Autocorrelation Function (PACF)
Plotting ACF and PACF in Python
Interpreting ACF/PACF for Model Selection
Hands-on Practice: ACF/PACF Plotting and Interpretation
Quiz for Chapter 3
Chapter 4: ARIMA Models for Forecasting
Autoregressive (AR) Models
Moving Average (MA) Models
Combining AR and MA: ARMA Models
Introducing Integration: ARIMA Models
Selecting ARIMA Order (p, d, q)
Fitting ARIMA Models in Python (statsmodels)
Model Diagnostics and Residual Analysis
Forecasting with ARIMA Models
Hands-on Practice: Building an ARIMA Model
Quiz for Chapter 4
Chapter 5: Handling Seasonality with SARIMA
Limitations of ARIMA with Seasonal Data
Introduction to Seasonal ARIMA (SARIMA)
Identifying Seasonal Components (ACF/PACF)
Selecting SARIMA Order (p, d, q)(P, D, Q)m
Fitting SARIMA Models in Python
Diagnosing SARIMA Models
Forecasting with SARIMA
Hands-on Practice: Building a SARIMA Model
Quiz for Chapter 5
Chapter 6: Model Evaluation and Selection
Need for Model Evaluation
Train-Test Split for Time Series
Common Evaluation Metrics (MAE, MSE, RMSE, MAPE)
Information Criteria (AIC, BIC)
Comparing Forecasts from Different Models
Visualizing Forecast Performance
Hands-on Practice: Evaluating Forecasts
Quiz for Chapter 6
Forecasting Future Trends in a Selected Domain

Partial Autocorrelation Function (PACF)

The Autocorrelation Function (ACF) offers a general overview of how a time series observation correlates with its past values. However, ACF does not differentiate between direct and indirect relationships. For example, the correlation between yty_tyt​ and yt−2y_{t-2}yt−2​ measured by ACF includes the influence of yt−1y_{t-1}yt−1​, because yty_tyt​ often correlates with yt−1y_{t-1}yt−1​, which in turn correlates with yt−2y_{t-2}yt−2​. To isolate the direct relationship between yty_tyt​ and a specific lag yt−ky_{t-k}yt−k​, removing the influence of intermediate observations such as yt−1,yt−2,…,yt−k+1y_{t-1}, y_{t-2}, \dots, y_{t-k+1}yt−1​,yt−2​,…,yt−k+1​, a different tool is needed. The Partial Autocorrelation Function (PACF) measures this direct relationship.

What is Partial Autocorrelation?

Think of partial autocorrelation at lag kkk as the correlation between yty_tyt​ and yt−ky_{t-k}yt−k​ that is not explained by their mutual correlations with the time series values at the intervening lags (t−1,t−2,…,t−k+1t-1, t-2, \dots, t-k+1t−1,t−2,…,t−k+1).

You can imagine calculating it by:

  1. Predicting yty_tyt​ using the intermediate lags yt−1,…,yt−k+1y_{t-1}, \dots, y_{t-k+1}yt−1​,…,yt−k+1​. Let the error of this prediction be ete_tet​.
  2. Predicting yt−ky_{t-k}yt−k​ using the same intermediate lags yt−1,…,yt−k+1y_{t-1}, \dots, y_{t-k+1}yt−1​,…,yt−k+1​. Let the error of this prediction be et−ke_{t-k}et−k​.
  3. The partial autocorrelation at lag kkk is the correlation between these two prediction errors, Corr(et,et−k)Corr(e_t, e_{t-k})Corr(et​,et−k​).

This process effectively removes the linear dependence associated with the intermediate lags, leaving only the direct connection between yty_tyt​ and yt−ky_{t-k}yt−k​.

Difference between ACF and PACF in the relationship between yty_tyt​ and yt−2y_{t-2}yt−2​. PACF isolates the direct link after accounting for yt−1y_{t-1}yt−1​.

Why Use PACF? Identifying AR Models

The primary utility of the PACF lies in identifying the order (ppp) of an Autoregressive (AR) model. Recall that an AR(p) model expresses yty_tyt​ as a linear combination of its previous ppp values plus an error term:

yt=c+ϕ1yt−1+ϕ2yt−2+⋯+ϕpyt−p+ϵty_t = c + \phi_1 y_{t-1} + \phi_2 y_{t-2} + \dots + \phi_p y_{t-p} + \epsilon_tyt​=c+ϕ1​yt−1​+ϕ2​yt−2​+⋯+ϕp​yt−p​+ϵt​

By definition, in a pure AR(p) process, yty_tyt​ has a direct linear dependency on yt−1,…,yt−py_{t-1}, \dots, y_{t-p}yt−1​,…,yt−p​. However, once you account for these ppp lags, there should be no direct linear relationship between yty_tyt​ and further lags like yt−p−1,yt−p−2y_{t-p-1}, y_{t-p-2}yt−p−1​,yt−p−2​, etc. Any correlation seen at these further lags in the ACF is indirect, flowing through the first ppp lags.

Therefore, for a stationary AR(p) process, we expect the PACF plot to show:

  • Significant partial autocorrelations up to lag ppp.
  • A sharp cut-off after lag ppp, with partial autocorrelations for lags k>pk > pk>p being statistically insignificant (close to zero and within the significance bounds).

This distinct pattern contrasts with the ACF of an AR(p) process, which typically shows a more gradual decay towards zero.

Interpreting PACF Plots

Similar to ACF plots, PACF plots display the partial autocorrelation values for different lags on the y-axis against the lag number on the x-axis. They also typically include confidence intervals (often represented by a shaded area, usually at the 95% level).

  • Significant Lags: Spikes extending past the confidence interval are statistically significant.
  • Cut-off: A sharp drop to insignificance after a certain lag ppp is characteristic of an AR(p) process.
  • Decay: Unlike the ACF for AR models, the PACF for MA (Moving Average) models tends to decay gradually.

By examining the PACF plot alongside the ACF plot (as we'll discuss how to generate in the next section), you gain valuable clues about the underlying structure of your time series and can make informed decisions about which model type (AR, MA, or ARMA) might be appropriate and what order parameters to investigate. For identifying AR model orders, the PACF is particularly informative.

  • Time Series Analysis: Forecasting and Control, George E.P. Box, Gwilym M. Jenkins, Gregory C. Reinsel, and Greta M. Ljung, 2015 (Wiley) - Standard reference for autocorrelation and partial autocorrelation functions, providing a thorough theoretical background for ARIMA model identification.
  • Forecasting: Principles and Practice, Rob J Hyndman and George Athanasopoulos, 2021 (OTexts) - An accessible online textbook offering practical explanations of time series concepts, including ACF and PACF for model identification, with examples and R code.
  • Introduction to Time Series and Forecasting, Peter J. Brockwell, Richard A. Davis, 2006 (Springer) - A widely used textbook for time series analysis, covering the theoretical and practical aspects of PACF and its application in identifying AR processes.

© 2026 ApX Machine Learning