How can I impose nonlinear constraints on the state transition matrix for the estimation of a state-space model using the Econometrics Toolbox?

1 view (last 30 days)
I would like to estimate a state-space model using the Econometrics Toolbox considering nonlinear constraints on the state transition matrix.
How can I impose nonlinear constraints on the state transition matrix for the estimation of a state-space model using the Econometrics Toolbox?

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 30 Sep 2020
One way to impose complex nonlinear constraints for the estimation of a state-space model using the Econometrics Toolbox is to exclude the bad parameter values in the domain of the mapping from the parameters to 'ssm' coefficient matrices 'A', 'B', 'C' and 'D'. Then, the numerical optimization program will search solutions within the constrained parameter space when calling the 'estimate' function using the aforementioned definition of 'ssm'.
For instance, provided that the requirement is that all eigenvalues of the state transition matrix are positive, one can define a mapping with the constrained domain in the following manner,
function [A,B,C,D] = myfun(params)
A = ; B = ; C = ; D =;
if any(abs(eig(A))>1)
A = zeros(2);
end
end
The underlying idea is that when the parameters violate the eigenvalue constraints, the transition matrix is reduced to zero matrix, which must correspond to a small log-likelihood value. Therefore, the optimization program will stay away from these bad parameter values.

More Answers (0)

Tags

No tags entered yet.

Products


Release

R2016a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!