Stima e previsione di un modello MA

Analisi delle serie temporali in Python

Rob Reider

Adjunct Professor, NYU-Courant Consultant, Quantopian

Stimare un modello MA

  • Come per la stima di un modello AR (tranne order=(0,0,1))
    from statsmodels.tsa.arima.model import ARIMA
    mod = ARIMA(simulated_data, order=(0,0,1))
    result = mod.fit()
    
Analisi delle serie temporali in Python

Prevedere con un modello MA

from statsmodels.graphics.tsaplots import plot_predict
fig, ax = plt.subplots()
data.plot(ax=ax)
plot_predict(res, start='2012-09-27', end='2012-10-06', ax=ax)
plt.show()

Analisi delle serie temporali in Python

Esercitiamoci!

Analisi delle serie temporali in Python

Preparing Video For Download...