Python Forum
Thread Rating:
  • 1 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Statsmodels
#1
hi, I have q question on how to define p,q and q values for Arima Models.

fig = plt.figure(figsize=(16,6))
model = ARIMA(ts_log, order=(17, 1, 5))  
results_AR = model.fit(disp=-1)  
plt.plot(ts_log_diff)
plt.plot(results_AR.fittedvalues, color='red')
# plt.title('RSS: %.4f'% sum((results_AR.fittedvalues-ts_log_diff)**2))
as the pridicting result is very disappointing
the orange line it the prediction which is not what I seek, I have tried with many different values of p,d and q, it does not give the result.
thanks in advance

Attached Files

Thumbnail(s)
           
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  X13ARIMA & statsmodels: X13NotFoundError: x12a and x13as not found on path JaneTan 1 1,448 Dec-24-2022, 07:44 AM
Last Post: ndc85430
  Statsmodels, Dickey-Fuller test for stationarity Led_Zeppelin 1 944 Aug-17-2022, 06:36 PM
Last Post: Larz60+
  retrieving pvalue from statsmodels results Staph 4 3,016 Jul-18-2019, 03:27 PM
Last Post: Gribouillis

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020