# -*- coding: utf-8 -*-
"""
Created on Sat Jan  9 15:51:57 2021
Moving Average Example
@author: Ashish
"""

# MA example
from statsmodels.tsa.arima.model import ARIMA
from random import random
# contrived dataset
data = [x + random() for x in range(1, 100)]
# fit model
model = ARIMA(data, order=(0, 0, 1))
model_fit = model.fit()
# make prediction
yhat = model_fit.predict(len(data), len(data))
print(yhat)