- 阅读权限
- 255
- 威望
- 0 级
- 论坛币
- 14446 个
- 通用积分
- 1962.3850
- 学术水平
- 1119 点
- 热心指数
- 1167 点
- 信用等级
- 1061 点
- 经验
- 8523 点
- 帖子
- 1629
- 精华
- 1
- 在线时间
- 2492 小时
- 注册时间
- 2010-10-10
- 最后登录
- 2025-12-19
已卖:1980份资源
学科带头人
还不是VIP/贵宾
- 威望
- 0 级
- 论坛币
 - 14446 个
- 通用积分
- 1962.3850
- 学术水平
- 1119 点
- 热心指数
- 1167 点
- 信用等级
- 1061 点
- 经验
- 8523 点
- 帖子
- 1629
- 精华
- 1
- 在线时间
- 2492 小时
- 注册时间
- 2010-10-10
- 最后登录
- 2025-12-19
 | 开心 2025-9-24 13:52:14 |
|---|
签到天数: 344 天 连续签到: 1 天 [LV.8]以坛为家I
|
经管之家送您一份
应届毕业生专属福利!
求职就业群
感谢您参与论坛问题回答
经管之家送您两个论坛币!
+2 论坛币
- function [DeltaCall, DeltaPut, Gamma, Vega] = FormulaBSGreeks( S, K, r, tau, sigma, yield)
- % Evaluation of the greeks (delta, gamma, vega) for call and put options
- % under the Black-Scholes model.
- %
- % Input: S: Actual price of the underlying asset (can be a vector);
- % K: Strike price;
- % r: (continuous) short-time interest rate for the period;
- % tau: time to maturity;
- % sigma: volatility in the B-S model;
- % yield: continuous dividend rate.
- %
- % Output: DeltaCall: value of the delta for the European call option;
- % DeltaPut : value of the delta for the European put option;
- % Gamma : value of the gamma for the European call option
- % (same value for put option);
- % vega : value of the vega for the European call option
- % (same value for put option).
- %
- % N.B.: The time and rate must be on the same scale as the one used for
- % estimating sigma. For example, if sigma was estimated with daily
- % prices, then tau should be in days, and r should be the interest
- % rate for 1 day.
- if nargin < 6
- yield =0;
- end
- s = S.*exp( -yield.* tau );
- d1 = ( log( s./ K )+ r.* tau + (sigma.^2).* tau / 2 )./ ( sigma.* sqrt( tau ) );
- z = normpdf(d1);
- DeltaCall = exp( -yield.* tau ).* normcdf(d1);
- DeltaPut = DeltaCall - exp( -yield.* tau ); % By put-call parity
- Vega = s.*z.* sqrt( tau );
- Gamma = exp( -yield.* tau ).*( z./s)./(sigma.*sqrt(tau));
复制代码
扫码加我 拉你入群
请注明:姓名-公司-职位
以便审核进群资格,未注明则拒绝
|
|
-
总评分: 经验 + 100
论坛币 + 100
学术水平 + 5
热心指数 + 5
信用等级 + 5
查看全部评分
|