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,

 採用された回答

Chuguang Pan
Chuguang Pan 2024 年 3 月 7 日

0 投票

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 件のコメント

Simon Christensen
Simon Christensen 2024 年 3 月 7 日
編集済み: Simon Christensen 2024 年 3 月 7 日
Hi again
Thanks for you very reply!
Would you please explain how the above equation can be solved with Matlab?
Chuguang Pan
Chuguang Pan 2024 年 3 月 7 日
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 2024 年 3 月 7 日
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 2024 年 3 月 7 日
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 2024 年 3 月 7 日
Okay, thanks anyway :-)

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeMathematics and Optimization についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by