怎样计算VaR和CVaR,高手请进

2024-05-13

1. 怎样计算VaR和CVaR,高手请进

你先读数据,然后采用百分位取值,然后找5%和1%的值就OK了

怎样计算VaR和CVaR,高手请进

2. 什么是 Expected Shortfall 相比 VaR 它有什么优点

什么是 Expected Shortfall 相比 VaR 它有什么优点
不知道这个能不能满足

function calcvar

%calcvar        terminal interface for VaR calculation.
%
%        You can use the sample data (1, 2, 3) to try the program
%

%        Copyright (c) 2004 by Flavio Bazzana
%   Department of Computer and Management Sciences
%   University of Trento
%   38100 - Trento ITALY
%   flavio.bazzana@economia.unitn.it

clear
home

%        Load data ----------------------------------------------------------------------------------------

file=input('Which data? (1, 2, 3) ');
if file==1 load('dati1');
elseif file==2 load('dati2');
else load('dati3');
end
dati=size(X,1)

%        Type of return ------------------------------------------------------------------------

rendimento=input('Which return? (0 normal, 1 log) ');
[DX,DR,cambi,fattori,prezzi] = rendimenti(X,RF,RC,rendimento);

%        Decay factor ----------------------------------------------------------------------------

lambda=input('Decay factor? (x<=1) ');
if lambda==1
[delta,dev,cor,C] = semplicecorr(DX,DR,legame);
else [delta,dev,cor,C] = ewmacorr(DX,DR,legame,lambda);
end

%        Parameters ---------------------------------------------------------------------------------

t=input('Holding period? ');
p=input('Probability? ');

%        VaR method ------------------------------------------------------------------------------------

a=0;
while a < 4;
a=input('VaR methods? (1 delta-normal, 2 historical simulation, 3 Monte Carlo, 4 average) ');
if a==1
[dvar,dvarp] = deltavar(delta,dev,cor,legame,valuta,cambi,vm,t,p);
dvar
elseif a==2
tipo=input('Mapping? (0 from risk factors, 1 from prices) ');
[svar] = simulvar(DR,RC,X,delta,valuta,legame,vm,t,p,tipo,rendimento)
elseif a==3
modello=input('Simulation model? (0 linear, 1 log) ');
l=input('Number of simulations? ');
[mvar] = montevar(delta,C,legame,valuta,cambi,fattori,prezzi,vm,t,p,modello,l,rendimento)
end
end

%        Average VaR --------------------------------------------------------------------------

dati=input('How many data for VaR calculation? ');
giorni=input('How many days of VaR calculation? ');
datidelta=input('Mapping calculation? (0 over all X, 1 over the data only) ');
a=0;
while a < 4;
a=input('VaR methods? (1 delta-normal, 2 historical simulation, 3 Monte Carlo, 4 backtest) ');

3. 什么是 Expected Shortfall 相比 VaR 它有什么优点

.

什么是 Expected Shortfall 相比 VaR 它有什么优点

4. 什么是 Expected Shortfall 相比 VaR 它有什么优点

  通俗的说VaR是100%的weight都放在一个点,而比那个点的风险更大的地方,weight却是0,所以一不小心就低估风险了。
  而ES是所有的点weight都一样,从风险管理的角度来说更合理。

5. 求B站这十题答案,秒采纳。

战场原黑仪
还原度真高啊!

高达OO  

阿万音铃羽 

上海烛龙

野比大雄

16

保志总一朗 

麦克斯韦

Expected Shortfall

求B站这十题答案,秒采纳。