Hello. I want to calculate the covariance matrix for a parameter vector Q[1x24].
3 views (last 30 days)
Show older comments
In this picture the formula that may be used is displayed. I need this for getting the covariance matrix of a parameter vector. In other applications in which I use AutoRegressive (AR), ARX models, I use matlab's command 'model=arx(y,24)' and to get the covariance matrix I used model.covariancematrix. However, now I use VARMA models and I only have the parameter vector. Is there a way of getting the covariance matrix out of the parameter vector (In AR case: model.parametervector)
0 Comments
Answers (1)
Askic V
on 16 Feb 2024
Edited: Askic V
on 16 Feb 2024
Is this helpful to you?
I have used the example from Matlab documentation.
load iddata9 z9
Ts = z9.Ts;
y = cumsum(z9.y);
model = ar(y, 4, 'ls', 'Ts', Ts, 'IntegrateNoise', true);
param_vector = model.Report.Parameters.ParVector
covar = model.Report.Parameters.FreeParCovariance
0 Comments
See Also
Categories
Find more on Regression in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!