Step 1 Build a train/test split using Amazon data. Dataset name is amzn. Training Data starts in 2016. Testing Data is last 10 observations in dataset. Both should be pandas series type indexed by...


Step 1


Build a train/test split using Amazon data. Dataset name is  amzn.


Training Data starts in 2016. Testing Data is last 10 observations in dataset.


Both should be pandas series type indexed by date. The last date in train should be '2017-12-14'



Train = ??


Test = ??


Step 2


Adjust the ARIMA instance below to build an autoregression model using your training data from Step 1. This model should work on the first difference of the original closing price, and use one prior term or an order 1 AR model.


from statsmodels.tsa.arima_model import ARIMA



ar = ARIMA(train, order = (0, 0, 0))


model = ??




Python Programming



Jun 08, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here