MACHINE LEARNING RECIPES
DATA CLEANING PYTHON
DATA MUNGING
PANDAS CHEATSHEET
ALL TAGS
# What is ACF in ARIMA?

# What is ACF in ARIMA?

This recipe explains what is ACF in ARIMA

To calculate lag values for the Autoregression (AR) and Moving Average (MA) parameters, p and q respectively in ARIMA modelling, ACF (Autocorrelation function) is used. It is the coorelation between observation of a time series separated by k time units.

So this recipe is a short example on What is ACF in ARIMA. Let's get started.

```
import numpy as np
import pandas as pd
from statsmodels.graphics.tsaplots import plot_acf
import matplotlib.pyplot as plt
```

Let's pause and look at these imports. Numpy and pandas are general ones. Here, plot_acf and plt will help is plotting of ACF pattern of ARIMA model.

```
df = pd.read_csv('https://raw.githubusercontent.com/selva86/datasets/master/a10.csv', parse_dates=['date']).set_index('date')
```

Here, we have used one time series data from github. Also, we have set our index to date.

Now our dataset is ready.

```
plt.figure()
plt.subplot(211)
plot_acf(df, ax=plt.gca())
plt.show()
```

We have used plot_acf to simply plot our ACF model. By observing the plot, we can have an understanding of the lag between AR and MR terms of ARIMA model.

Once we run the above code snippet, we will see:

Srcoll down the ipython file to visualize the results.

Clearly, an exponential decay in the seasonal pattern can be seen.

In this data science project in R, we are going to talk about subjective segmentation which is a clustering technique to find out product bundles in sales data.

Data Science Project in Python- Given his or her job role, predict employee access needs using amazon employee database.

Data Science Project in R -Build a machine learning algorithm to predict the future sale prices of homes.

There are different time series forecasting methods to forecast stock price, demand etc. In this machine learning project, you will learn to determine which forecasting method to be used when and how to apply with time series forecasting example.

Data Science Project in R-Predict the sales for each department using historical markdown data from the Walmart dataset containing data of 45 Walmart stores.

In this data science project, you will work with German credit dataset using classification techniques like Decision Tree, Neural Networks etc to classify loan applications using R.

Data Science Project - Build a recommendation engine which will predict the products to be purchased by an Instacart consumer again.

In this deep learning project, we will predict customer churn using Artificial Neural Networks and learn how to model an ANN in R with the keras deep learning package.

In this machine learning project, we will use binary leaf images and extracted features, including shape, margin, and texture to accurately identify plant species using different benchmark classification techniques.

Machine Learning Project in R-Detect fraudulent click traffic for mobile app ads using R data science programming language.