【金融量化分析】#project (Brownian Motion; Itô processes; B-S-M Model)

该博客主要介绍了如何使用MATLAB进行金融量化分析,包括模拟一维和多维布朗运动、伊藤过程(如几何布朗运动、Vasicek模型、Cox-Ingersoll-Ross模型)以及应用Black-Scholes-Merton模型计算期权价值。通过代码实现展示了数值解的收敛性,随着模拟次数增加,数值解逐渐接近精确值。
摘要由CSDN通过智能技术生成

Quiz:
(1). Brownian motions: Simulate graphs of one dimensional Brownian motions, and trajectories/paths of two or three dimensional ones.
(2). Itô processes or solutions of stochastic differential equations: Simulate geometric Brownian motions, Vasicek models, and Cox-Ingersoll-Ross models.
(3). Black-Scholes-Merton model: Compute the exact value of option given by the BlackScholes-Merton formula. Perform simulations for the stock price equation under the risk-neutral probability measure. Then compute the corresponding expectation/mean/average of the discounted option payoff at the expiration time to obtain numerical solutions, i.e., approximate values of option. As the number of simulations increase, demonstrate the convergence of the numerical solutions to the exact value.

知识1process🐕

援助点这里!
在这里插入图片描述
在这里插入图片描述

Q1代码实现

% Brownian motion in MATLAB
T=1
N=100
t=T/N
Z0=0
Z=zeros(1,N)
Z(1)=randn*sqrt(t)
for j=2:N
    Z(j)=Z(j-1)+randn*sqrt(t)
end
plot((0:t:T),[Z0,Z])
ylabel('w(t)')
xlabel('t')

完整代码(MATLAB)需要分开运行,便于展示放在一个f 文件。


t0=1
tf=11
dt=0.1
[t,w]= BM1(t0,tf,dt)
plot(t,w);
xlabel('t');ylabel('w')
title('1-dimensional B-M')

x0=0;xf=10;dt=0.1;
y0=0;yf=10
z0=0;zf=10<
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值