Pengantar ACF dan PACF

Model ARIMA di Python

James Fulton

Climate informatics researcher

Motivasi

Model ARIMA di Python

ACF dan PACF

  • ACF - Autocorrelation Function
  • PACF - Partial autocorrelation function
Model ARIMA di Python

Apa itu ACF

  • autokorelasi lag-1 $\rightarrow$ $corr(y_t, y_{t-1})$
  • autokorelasi lag-2 $\rightarrow$ $corr(y_t, y_{t-2})$
  • ...
  • autokorelasi lag-n $\rightarrow$ $corr(y_t, y_{t-n})$
Model ARIMA di Python

Apa itu ACF

Model ARIMA di Python

Apa itu PACF

Model ARIMA di Python

Gunakan ACF dan PACF untuk memilih orde model

  • Model AR(2) $\rightarrow$

Model ARIMA di Python

Gunakan ACF dan PACF untuk memilih orde model

  • Model MA(2) $\rightarrow$

Model ARIMA di Python

Gunakan ACF dan PACF untuk memilih orde model

Model ARIMA di Python

Gunakan ACF dan PACF untuk memilih orde model

Model ARIMA di Python

Implementasi di Python

from statsmodels.graphics.tsaplots import plot_acf, plot_pacf
# Create figure
fig, (ax1, ax2) = plt.subplots(2,1, figsize=(8,8))

# Make ACF plot plot_acf(df, lags=10, zero=False, ax=ax1)
# Make PACF plot plot_pacf(df, lags=10, zero=False, ax=ax2) plt.show()
Model ARIMA di Python

Implementasi di Python

Model ARIMA di Python

Over/under differencing dan ACF/PACF

Model ARIMA di Python

Over/under differencing dan ACF/PACF

Model ARIMA di Python

Ayo berlatih!

Model ARIMA di Python

Preparing Video For Download...