楼主: dewdew
18419 22

[其他] 如何求解BS模型中的波动率? [推广有奖]

21
libo 在职认证  发表于 2005-9-26 10:40:00

参考文献一篇,历史波动率和隐含波动率的计算的。

28378.rar (20.7 KB) 本附件包括:

  • volatility_calculation.pdf

22
sdram 发表于 2005-9-26 19:40:00

以下是VBA的程序:

Function dOne(Stock, Exercise, Time, Interest, Dividend, sigma) dOne = (Log(Stock / Exercise) + (Interest - Dividend) * Time) / (sigma * Sqr(Time)) _ + 0.5 * sigma * Sqr(Time) End Function

Function CallOption(Stock, Exercise, Time, Interest, Dividend, sigma) CallOption = Stock * Exp(-Dividend * Time) * _ Application.NormSDist(dOne(Stock, Exercise, Time, Interest, Dividend, sigma)) _ - Exercise * Exp(-Time * Interest) * _ Application.NormSDist(dOne(Stock, Exercise, Time, Interest, Dividend, sigma) _ - sigma * Sqr(Time)) End Function Function CallVolatility(Stock, Exercise, Time, Interest, Dividend, Target) High = 2 Low = 0 Do While (High - Low) > 0.0001 If CallOption(Stock, Exercise, Time, Interest, Dividend, (High + Low) / 2) > _ Target Then High = (High + Low) / 2 Else: Low = (High + Low) / 2 End If Loop CallVolatility = (High + Low) / 2 End Function

23
爱学习的小P 发表于 2022-8-22 08:55:50
隐含波动率的计算,具体的逻辑是什么?

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注jr
拉您进交流群
GMT+8, 2025-12-26 09:32