Skip to main content
Bumped by Community user
Bumped by Community user
deleted 15 characters in body
Source Link
Ferdi
  • 5.3k
  • 10
  • 47
  • 64

I'm trying to manually replicate the forecast that I obtained using statsmodels.api sarimax (python). Its actually just an AR(1) model with one exogenous variable, in the form of SARIMAX(1,0,0)(0,0,0)12

The results obtained using the statsmodels library are as follows:

Python forecast output

The obtained function is y_t = 1088 + 0.6145y_t-1 + 185500x (see image above) Nonetheles, when I manually input those values into the function, my results are very different.

Difference between python and manually calculated

I would very much appreciate if someone could give me a hint on what I'm doing wrong regarding the manual calculation.

P.S.:I apologize if the formatting of the question is not up to standards. This is my first post here.

Kind regards!

I'm trying to manually replicate the forecast that I obtained using statsmodels.api sarimax (python). Its actually just an AR(1) model with one exogenous variable, in the form of SARIMAX(1,0,0)(0,0,0)12

The results obtained using the statsmodels library are as follows:

Python forecast output

The obtained function is y_t = 1088 + 0.6145y_t-1 + 185500x (see image above) Nonetheles, when I manually input those values into the function, my results are very different.

Difference between python and manually calculated

I would very much appreciate if someone could give me a hint on what I'm doing wrong regarding the manual calculation.

P.S.:I apologize if the formatting of the question is not up to standards. This is my first post here.

Kind regards!

I'm trying to manually replicate the forecast that I obtained using statsmodels.api sarimax (python). Its actually just an AR(1) model with one exogenous variable, in the form of SARIMAX(1,0,0)(0,0,0)12

The results obtained using the statsmodels library are as follows:

Python forecast output

The obtained function is y_t = 1088 + 0.6145y_t-1 + 185500x (see image above) Nonetheles, when I manually input those values into the function, my results are very different.

Difference between python and manually calculated

I would very much appreciate if someone could give me a hint on what I'm doing wrong regarding the manual calculation.

P.S.:I apologize if the formatting of the question is not up to standards. This is my first post here.

Source Link

Manually calculate SARIMAX forecast

I'm trying to manually replicate the forecast that I obtained using statsmodels.api sarimax (python). Its actually just an AR(1) model with one exogenous variable, in the form of SARIMAX(1,0,0)(0,0,0)12

The results obtained using the statsmodels library are as follows:

Python forecast output

The obtained function is y_t = 1088 + 0.6145y_t-1 + 185500x (see image above) Nonetheles, when I manually input those values into the function, my results are very different.

Difference between python and manually calculated

I would very much appreciate if someone could give me a hint on what I'm doing wrong regarding the manual calculation.

P.S.:I apologize if the formatting of the question is not up to standards. This is my first post here.

Kind regards!