Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Enhancement Request - Add ability to specify innovations for simulation #318

Open
dompazz opened this issue Feb 11, 2023 · 2 comments
Open

Comments

@dompazz
Copy link

dompazz commented Feb 11, 2023

It would be useful to be able to specify the simulated innovations. Often I'm combining ARIMA models for some variables with different models for others and using a copula framework to simulated the system.

Currently, to simulate 1 step ahead, 1000 times:

ar1 = SARIMA(y,order=(1,0,0),include_mean=true)
StateSpaceModels.fit!(ar1)
ar_sim = simulate_scenarios(ar1,1,1000)[1,1,:]

Would be helpful to allow something like:
ar_sim = simulate_scenarios(ar1,1,1000; innovations=randn(1000))
generically:
ar_sim = simulate_scenarios(ar1,n,m; innovations=r)
where r is (n,m)

@guilhermebodin
Copy link
Member

Hi, @dompazz, this is somehing that makes more sense in models that don't have uncertainties in the state update equations, we could implement a specialized version of the simulate_scenarios function only for ARIMA models, would you like to make a contribution to the package in that sense?

@dompazz
Copy link
Author

dompazz commented Feb 16, 2023

Makes sense. Unfortunately, I likely won't have time to write it myself, but if I find I have a weekend, I'll give it a go.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants