แนะนำ ACF และ PACF

ARIMA Models ใน Python

James Fulton

Climate informatics researcher

แรงจูงใจ

ARIMA Models ใน Python

ACF และ PACF

  • ACF - ฟังก์ชันสหสัมพันธ์อัตโนมัติ
  • PACF - ฟังก์ชันสหสัมพันธ์อัตโนมัติบางส่วน
ARIMA Models ใน Python

ACF คืออะไร

  • สหสัมพันธ์อัตโนมัติที่ lag-1 $\rightarrow$ $corr(y_t, y_{t-1})$
  • สหสัมพันธ์อัตโนมัติที่ lag-2 $\rightarrow$ $corr(y_t, y_{t-2})$
  • ...
  • สหสัมพันธ์อัตโนมัติที่ lag-n $\rightarrow$ $corr(y_t, y_{t-n})$
ARIMA Models ใน Python

ACF คืออะไร

ARIMA Models ใน Python

PACF คืออะไร

ARIMA Models ใน Python

การใช้ ACF และ PACF เพื่อเลือก order ของโมเดล

  • โมเดล AR(2) $\rightarrow$

ARIMA Models ใน Python

การใช้ ACF และ PACF เพื่อเลือก order ของโมเดล

  • โมเดล MA(2) $\rightarrow$

ARIMA Models ใน Python

การใช้ ACF และ PACF เพื่อเลือก order ของโมเดล

ARIMA Models ใน Python

การใช้ ACF และ PACF เพื่อเลือก order ของโมเดล

ARIMA Models ใน Python

การนำไปใช้ใน 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()
ARIMA Models ใน Python

การนำไปใช้ใน Python

ARIMA Models ใน Python

การ differencing มากเกินไป/น้อยเกินไป และ ACF กับ PACF

ARIMA Models ใน Python

การ differencing มากเกินไป/น้อยเกินไป และ ACF กับ PACF

ARIMA Models ใน Python

มาฝึกกันเถอะ!

ARIMA Models ใน Python

Preparing Video For Download...