How to add constraints to the constant in GARCH model?
5 次查看(过去 30 天)
显示 更早的评论
Hi guys! I wish to create a GARCH(1,1) model with a constraint on the constant, take the constraint w = (1-alpha-belta) * 0.8 as an example. I tried to use
Mdl = garch('GARCHLags',1,'ARCHLags',1,'Offset',NaN);
but I do not know how to specify the constraint on the constant.
Could anybody help me? Thank you!
0 个评论
回答(1 个)
Karanjot
2023-10-6
Hi Wenjing,
I understand that you want to learn more about constraints for GARCH (Generalized Autoregressive Conditional Heteroskedasticity) models.
The ‘estimate’ function maximizes the loglikelihood function using ‘fmincon’ from the Optimization Toolbox. ‘fmincon’ has many optimization options, such as choice of optimization algorithm and constraint violation tolerance.
The numeric optimization function ‘fmincon’ further supports inequality constraints. Since the constraints are linear, they can be represented in a matrix form, such as A * x < b. If the parameters are stacked in the [‘constant’, ‘garch’, ‘arch’] format, then the constraints can be formulated as follows:
A = [0 1 1];
b = 1;
lb = [0 0 0];
The constrained optimization can be executed using the below syntax:
fmincon(fun,x0,A,b,[],[],lb,[],[],options);
where the empty matrix ‘[]’ indicates non-existing constraints of other types.
To learn more about constraints for GARCH models, please refer to the below documentation:
I hope this helps!
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Conditional Variance Models 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!