Solving matrix equation in Matlab,

Hi Matlab,
I'm currently doing research on macroeconomic variables; hence attempting to solve an matrix equation in Matlab ( see attached photo, marked with yellow (following VECM Analysis in JMulTi July 5, 2005, page 26). Does anyone know to calculate the value for sigma (marked with yellow)?
I haven't attached a code, since, at the moment, don't know how to calculate it in Matlab, hence any help greatly appreciated!
Best regards,

 Respuesta aceptada

Chuguang Pan
Chuguang Pan el 7 de Mzo. de 2024

0 votos

Using vectorization operator vec, which transfer a matrix to a column vector through stacking matrix's columns vertically. There is a useful equation in this context.
, where represents kronecker product.
The matrix equation can be converted to the following vector equation,
This vector equation can be solved with MATLAB, and you can reshape the to matrix .

5 comentarios

Simon Christensen
Simon Christensen el 7 de Mzo. de 2024
Editada: Simon Christensen el 7 de Mzo. de 2024
Hi again
Thanks for you very reply!
Would you please explain how the above equation can be solved with Matlab?
According to the vector equation:
you can get the typical system of linear equations which is analogeous to :
Then you can solve it with MATLAB mldivide, \. The following code is an example:
Ap=rand(3);
A=rand(3);
estSigma=rand(3);
vecSigma=(kron(Ap.',A)-eye(size(Ap,1)*size(A,1)))\(-estSigma(:));
Sigma=reshape(vecSigma,size(estSigma,1),size(estSigma,2))
Simon Christensen
Simon Christensen el 7 de Mzo. de 2024
Thanks very much @Chuguang Pan :-). One small additional questions: In the attached image, it says '...is the usual estimator of the covariance matrix of..' (below the part attached with yellow)
Are you familiar with how 'estSigma' is supposed to be estimated?
Chuguang Pan
Chuguang Pan el 7 de Mzo. de 2024
I am not familiar with how the estimator of the covariance matrix is obtained. The variable estSigma is just named referred to the image @Simon Christensen.
Simon Christensen
Simon Christensen el 7 de Mzo. de 2024
Okay, thanks anyway :-)

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Mathematics and Optimization en Centro de ayuda y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by