《金融经济学套利定价模型.docx》由会员分享,可在线阅读,更多相关《金融经济学套利定价模型.docx(6页珍藏版)》请在第一文库网上搜索。
1、金融经济学实验报告2023年5月19日实验3套利定价模型一、实验目的1、掌握用Mat1ab判断组合套利的方法以及计算组合套利的方法。二、实验内容及要求本实验为验证性实验,实验内容为:【例6.51c1eara11x0=1/3;1/3;1/3;b=1,0.8;1,2;1,1.4;Expret=0.088;0.16;0.124;B=bExpret;AA=1,1,1;0.8,2,1.4;bb=O;O;m,n=size(b);R=rank(b);Rr=rank(B);formatratifR=Rr&R=nXE方程组(6.23)有唯一解,不存在套利机会!X=bExpretC=nu11(AA,r,)Retu
2、rn=-Expret*Ce1seifR=Rr&RnX=方程组(6.23)有无穷多解,存在套利机会rC=nu11(AA,r)Return=-Expret*Ce1seX=方程组(6.23)无解,存在套利机会C=nu11(AA,r)Return=-Expret*Cend结果:X=,方程组(6.23)有唯一解,不存在套利机会!,X=211/253/50C=31-1/2-1/21Return=0例6.6c1eara11x0=1/3;1/3;1/3;Expret=0.15;0.21;0.12;b=1,0.9;1,3;1,1.8;B=bExpret;AA=1,1,1;0.9,3,1.8;bb=O;O;m,n
3、=size(b);R=rank(b);Rr=rank(B);formatratifR=Rr&R=nX=方程组(6.23)有唯一解,不存在套利机Z”x=bExpretC=nu11(AA,r)Return=-Expret13fcCe1seifR=Rr&RnX方程组(6.23)有无穷多解,存在套利机C=nu11(A,r)Return=-Expret,*C3W=x0-C3e1seXi方程组(6.23)无解,存在套利机公!C=nu11(AA,r)Return=-Expret,*C3W=x0-C3end结果:X=,方程组(6.23)无解,存在套利机会!,C=31-4/7-3/71Return=13/700
4、W=3111/2110/210【例6.8c1eara11Pro=0.2,0.2,0.2,0.2,0.2;r1=-0.5523,0.7070,-0.0900,-0.1247,0.6100;r2=6.2398,0.10,0.25,-37.7142,32.3744;r3=O.53,4.1337,-14.9312,10.5875,0.83;f1=-0.1,-0.05,0.25,0.4,0.5f2=-0.05,0.3848,0,08,-0.0148,0Expret=Pro*r;Pro*r2;Pro*r3Expf=Pro*f;Pro*f2,b=1,0.5,2;1,1,1.5;1,1.5,1;B=b,Exp
5、ret;AA=1,1,1;0.5,1,1.5;2,1.5,1;bb=O;O;O;m,n=size(b);R=rank(b);Rr=rank(B);formatratifR=Rr&R=nX=方程组(6.29)有唯一解,不存在套利机会!X=bExpretC=nu11(AA,r)Return=-Expret,*Ce1seifR=Rr&Rnx=有无穷多解!存在套利机会rC=nu11(A,r,)Return=Expret*Ce1seX=方程组(6.29)无解,存在套利机会!,C=nu11(AA,r)Return=Expret*C12end结果:X=方程组(6.29)无解,存在套利机会!C=311-21R
6、eturn=-4/25例6.9data,Assets,raw=x1sread(,FAFTYshiyanshuju.x1sxSheet1,B1:H41);RetSeries,RetIntervaIs=tick2ret(data,continuous);ExpReturn,ExpCovariance,NumEffObs=Cwstats(RetSeries)Exp=ExpReturn(1:6);ExpReturn=ExpReturn(k6)fori=1:6;X=ones(40,1),data(:,6);b=regress(data(:,i),X);pam(i)=b(2,1);endpam=pamx0
7、=1/6;1/6;1/6;1/6;1/6;1/6;b=ones(6,1)pamB=bExpReturn;AA=ones(1,6);pambb=zeros(2,1);m,n=size(b);R=rank(b);Rr=rank(B);formatratifR=Rr&R=nX=方程组(6.23)有啡一解,不存在套利机会!x=bExpReturn,C=nu11(AA,r,)RET=ExpReturn*C*1;1;1;Ie1seifR=Rr&RnX方程组(6.23)有无穷多解,存在套利机会!C=nu11(AA,r,)RET=ExpReturn*C*1;1;1;Ie1seX=方程组(6.23)无解,存在套
8、利机会!C=nu11(AA,r)RET=ExpRetum*C*1;1;1;1end结果:ExpReturn=1-17/2791122/838548/2116177/1058788/28583-101/636310pam=.-51/691-139/2519-986/3631-249/794-2141/54451b=61-51/6911-139/25191-986/36311-249/7941-2141/544511AA=:.111111-51/691-139/2519-986/3631-249/794-2141/54451X=方程组(6.23)无解,存在套利机会!C=6X-1789/154-4648/335-9655/5325382/951635/1544313/3359123/532-5477/951000010000100001RET=-63/1517