I have a subset of the pandas frame that contains time series that I want to parse using the AR or ARIMA model using statsmodel:
data_sci = H_Clinton_social_vector.Florida
The data is as follows:
Date
2015-09-28 587
2015-10-05 582
2015-10-12 606
2015-10-19 698
My AR model is created this way by aggregating time series weekly:
ar_model = sm.tsa.AR(data_sci, freq='W')
ar_model
<statsmodels.tsa.ar_model.AR at 0x1178f5490>
Then I want to perform a maximum likelihood assessment (MLE) of AR parameters with a margin of six months:
ar_res = ar_model.fit(maxlag=26, method='mle')
I get the following results:
correlate() got an unexpected keyword argument 'old behavior'
I don’t understand what the problem is, which I believe is related to automatic data correlation due to the correlation argument (). My data has a high autocorrelation, so this should be fine.

stasmodels AR ARIMA .