Is it possible to adapt a vector autoregressive model’s parameters continuously without the need to rerun vgxvarx?
2 次查看(过去 30 天)
显示 更早的评论
Is it possible to first estimate a VAR model's parameters using vgxvarx and then somehow continuously adjust the model parameters as new data of the situation that is being modelled arrives?
Running the vgxvarx command to estimate the parameters of a vector autoregressive model sometimes takes a very long time to complete when dealing with many variables and lags, is there any Matlab function that can allow the model to tune itself to new data without the need to redo it from scratch? Something similar to the way “ adapt ” works in the neural networks toolbox perhaps?
0 个评论
回答(1 个)
Hang Qian
2015-8-12
Hi Peta,
The VGXVARX function cannot adapt model parameters, but the idea you proposed can be implemented. VAR models are typically estimated by equation-wise least squares, which can be performed iteratively instead of using all observations at once.
If you do not want to write your own codes for recursive least squares, or using some third-party MATLAB codes, you may consider the state-space model supported by the Econometrics Toolbox. Put the VAR coefficients as the state variables (static transition, of course) and use each observation to update the state distribution whenever a new observation arrives. This will yield the recursive least squares results.
- Hang Qian
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Thermodynamics & Statistical Physics 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!