Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fitted Trend Line and Residuals #13

Closed
Sinansi opened this issue Jun 18, 2020 · 6 comments
Closed

Fitted Trend Line and Residuals #13

Sinansi opened this issue Jun 18, 2020 · 6 comments
Labels
enhancement New feature or request

Comments

@Sinansi
Copy link

Sinansi commented Jun 18, 2020

Hello,

I see you have provided examples on predicting 12 intervals in the future. But I seek past values. Can you please give more examples on how to generate fitted line and residuals on a time series using arima and varima?

Thank you!

@fipelle
Copy link
Owner

fipelle commented Jun 18, 2020

Hi,

The code does not currently have a simple interface for producing in-sample predictions for the levels, using VARIMA models (it would require some small changes in the forecast function). However, it is quite easy to get the in-sample forecasts / residuals of the underlying VARMA models. Would that help?

@Sinansi
Copy link
Author

Sinansi commented Jun 20, 2020

Thanks for your reply!

I am not an expert with time series decomposition. Can you give a brief example on how to extract the trend (forecast) and residuals for in-sample (past data) using VARIMA?

@fipelle
Copy link
Owner

fipelle commented Jun 23, 2020

Hi,

Trend-cycle decompositions based on VARIMA models are not implemented yet. I would suggest you to take a look at the multivariate Beveridge and Nelson decomposition.

Alternatively, you could use any state-space model described in Harvey (1990). They are actually much easier to implement with the current status of the package. I am happy to give you more details on that if you can let me know which model would work best. An example is already reported in the Estimation of state-space models section in the readme.

--

Harvey, Andrew C. Forecasting, structural time series models and the Kalman filter. Cambridge university press, 1990.

@Sinansi
Copy link
Author

Sinansi commented Jun 23, 2020

@fipelle oh I was commenting at the same moment you were replying :)
I will have a look at it, and get back to you.

@fipelle
Copy link
Owner

fipelle commented Jun 23, 2020

Happy to help! I am currently updating the library offline. I will start again adding features relatively soon. The Beveridge and Nelson decomposition in on my list, but there is quite some stuff to add before that I am afraid.

PS: As mentioned, you can get the in-sample prediction and residuals for a VARMA (not a VARIMA). If that is what you actually want to do I can work out an example.

@fipelle fipelle added the enhancement New feature or request label Apr 23, 2021
@fipelle
Copy link
Owner

fipelle commented Jan 7, 2022

I am moving it to a private todo list and closing the issue. I should get back to it soon. Please take a look at MessyTimeSeriesOptim.jl in the meantime, as I may implement it there.

@fipelle fipelle closed this as completed Jan 7, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants