Skip to content

Instantly share code, notes, and snippets.

@saimadhu-polamuri
Created October 17, 2023 02:33
Show Gist options
  • Save saimadhu-polamuri/bca75de514275ee3b8adbbedd207bc43 to your computer and use it in GitHub Desktop.
Save saimadhu-polamuri/bca75de514275ee3b8adbbedd207bc43 to your computer and use it in GitHub Desktop.
from statsmodels.tsa.arima_model import ARIMA
# Define the parameters for the ARIMA model
p = 2
d = 1
q = 1
# Fit the ARIMA model
model = ARIMA(data, order=(p,d,q))
results = model.fit()
# Print the model summary
print(results.summary())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment