I ran a state space VARMAX (AR(1)) model, and while it attempts to converge, I receive two cautions when the results are displayed.
[1] Covariance matrix calculated using the outer product of gradients (complex-step).
[2] Covariance matrix is singular or near-singular, with condition number 9.69e+20. Standard errors may be unstable.
How is this resolved?
Thank you very much.
David
What do the warnings written upon VARMAX summary mean? Does it heavily affect my model performance and how to resolve it?
I suspect multicollinearity, but given that I run a Big data VARMAX with related variables that might work in opposite signs, chances are multicollinearity to be present.
I did not have a maximum likelihood optimization did not converge error. Only the warnings.
Can I still go ahead with the model under these conditions? I'm mostly interesting to analyze the time varying stochastic volatility and the Impulse responses functions of the model. Additionally, what does the second warming mean ?
Thank you again very much for your time and contribution.
Best,--
You received this message because you are subscribed to the Google Groups "pystatsmodels" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pystatsmodel...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pystatsmodels/239f03d1-e244-4546-81aa-193e650e7f27n%40googlegroups.com.
The VARMAX model estimates parameters by using numerical methods to maximize the likelihood function. Because the number of parameters can be very large in a VAR model, it can be very difficult for the optimizer to achieve this, which often leads to problems with convergence.Similarly, even if the model has converged, the standard errors are computed by numerically approximating the Hessian, and this is an even more fragile numerical computation, particularly when there are a lot of parameters.So I'm not surprised you're seeing those messages, but I am not sure that there is anything that I can suggest. With a VAR model that has more than a few variables and a few lags, I would personally generally use Bayesian methods to estimate the parameters, using some kind of Minnesota-like prior to achieve a kind of regularization. But we do not have any of these methods available in Statsmodels.Best,Chad
This is an update of my previous message. I ran the model with a regularization_type='l2' in the VARMAX . I still receive two warnings when the results are displayed.
[1] Covariance matrix calculated using the outer product of gradients (complex-step).
[2] Covariance matrix is singular or near-singular, with condition number (For privacy, I will not display the number, but it is still a large one.). Standard errors may be unstable.
This time the condition number was reduced to one third with respect to the first estimation.What do the warnings written upon VARMAX summary mean? Does it heavily affect my model performance and how to resolve it?
I suspect multicollinearity, but given that I run a Big data VARMAX with related variables that might work in opposite signs, chances are multicollinearity to be present.
I did not have a maximum likelihood optimization did not converge error. Only the warnings.
Can I still go ahead with the model under these conditions? I'm mostly interesting to analyze the time varying stochastic volatility and the Impulse responses functions of the model. Additionally, what does the second warming mean ?Thank you again very much for your time and contribution.
Best,
David
Hello everyone,I ran a state space VARMAX (AR(1)) model, and while it attempts to converge, I receive two cautions when the results are displayed.
[1] Covariance matrix calculated using the outer product of gradients (complex-step).
[2] Covariance matrix is singular or near-singular, with condition number 9.69e+20. Standard errors may be unstable.
How is this resolved?
Thank you very much.
David