Adding dummy variables to vector autoregression (VAR) results in covariance matrix being not positive-definite.
조회 수: 13 (최근 30일)
이전 댓글 표시
When adding dummy variables to a VAR, I get an error when using VAR estimate command (https://se.mathworks.com/help/econ/varm.estimate.html). Specifically i get the following error message:
Error using statecmobj (line 43)
Covariance matrix SIGMA is not positive-definite.
How does one add dummy variables to a VAR in such a way as to not get this error message?
댓글 수: 0
답변 (1개)
Sarthak
2023년 9월 1일
Hi Carl,
As per my understanding, covariance matrix SIGMA is not positive-definite when at least one of your variables can be expressed as a linear combination of others.
It is suggested to add variables sequentially and check the covariance matrix at each step. If adding a new variable creates a singularity, please drop it and go on to the next one. Eventually you should have a subset of variables with a positive definite covariance matrix. You can read more about the calibration method for non-positive covariance matrices.
Please go through the following documentations on Vector Autoregressive Models for your reference.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Conditional Mean Models에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!