📄 simuldati.m
字号:
function [svar] = simuldati(DR,RC,X,delta,valuta,legame,vm,t,p,tipo,rendimento)%SIMULDATI simulvar estimation changing the numbers of data.%% [svar] = simuldati(DR,RC,X,delta,valuta,legame,vm,t,p,tipo,rendimento) % calculates historical simulation VaR reducing the number of data to the% minimum of 150.%% All data must be in columns.%% See SIMULVAR%% Copyright (c) 2004 by Flavio Bazzana% Department of Computer and Management Sciences% University of Trento% 38100 - Trento ITALY% flavio.bazzana@economia.unitn.itn = size(X,1);for i=1:n-150 svar(i)=simulvar(DR,RC(i:n,:),X(i:n,:),delta,valuta,legame,vm,t,p,tipo,rendimento);endd=1:n-150;plot(d,svar,'b')title('Historical simulation VaR')xlabel('number of days eliminated')ylabel('VaR')
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -