#96 Machine Learning & Data Science Challenge 96

What are ACF and PACF?

ACF:

  • It is a (complete) auto-correlation function that gives us the values of the auto-correlation of any series with lagged values. We plot these values along with a confidence band.

  • We have an ACF plot. In simple terms, it describes how well the present value of the series is related to its past values.

  • A time series can have components like a trend, seasonality, cyclic and residual.

  • ACF considers all the components while finding correlations; hence, it’s a ‘complete auto-correlation plot’.

PACF:

  • It is a partial autocorrelation function. Instead of finding correlations of present with lags like ACF, it finds the correlations of the residuals with the next lag value thus ‘partial’ and not ‘complete’ as we remove already found variations before we find the next correlation.

  • So if there are any hidden pieces of information in the residual which can be modeled by the next lag, we might get a good correlation, and we’ll keep that next lag as a feature while modeling.

  • Remember, while modeling we don’t want to keep too many correlated features, as that can create multicollinearity issues. Hence we need to retain only relevant features.

0
Subscribe to my newsletter

Read articles from Bhagirath Deshani directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Bhagirath Deshani
Bhagirath Deshani

Hello everyone! I am Machine Learning Engineer. I am from India. I have been interested in machine learning since my engineering days. I have completed Andrew NG’s original Machine Learning course from Stanford University at Coursera and also completed the IBM course on Machine Learning and Deep Learning. Currently, I am working on Machine Learning and Data Science project. My goal is to use the skills I have acquired to solve real-world problems and make a positive impact on the world.