- Set the state disturbance loading coefficient matrix B to [nan 0; 0 nan], as you mentioned.
- Create a new disturbance covariance matrix Q that has the desired variance for the cyclic term.
- Assign this new disturbance covariance matrix Q to both the cyclic term and the dummy cyclic term.
How to define the state disturbance loading coefficient matrix for a diffuse cyclic term in a state space model?
1 次查看(过去 30 天)
显示 更早的评论
When I add a cyclic term to a time series state space model, it is common practise to force the two disturbace variances (one for the cyclic term, the other one for the dummy cyclic term) to be identical. In case of a diffuse state, I can only set the state disturbance loading coefficient matrix B to [nan 0 ; 0 nan]. However, then Matlab considers the two disturbance variances as being different. How can I enforce that they are identical?
0 个评论
回答(1 个)
Kartik Saxena
2024-1-18
Hi,
In order to enforce that the two disturbance variances are identical in a time series state space model with a diffuse state, you can use the following approach:
Here's an example of how you can implement this in MATLAB:
% Set up the state space model
A = ...; % State transition matrix
B = [nan 0; 0 nan]; % State disturbance loading coefficient matrix
C = ...; % Output matrix
D = ...; % Feedthrough matrix
% Create the disturbance covariance matrix
variance = ...; % Desired variance for the cyclic term
Q = diag([variance, variance]);
% Assign the disturbance covariance matrix to both terms
sys = ss(A, B, C, D);
sys.DisturbanceCovariance = Q;
By assigning the same disturbance covariance matrix Q to both the cyclic term and the dummy cyclic term, you ensure that their variances are identical.
This will probably resolve your issue, but if it doesn't, let me know and I'll be happy to look into it further.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Standard State-Space Model 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!