开始使用免费开始使用

计算期权的 Black-Scholes 定价

qrmtools 包中的 Black_Scholes() 函数可用于基于标准 Black-Scholes 期权定价公式,对不支付股息的股票的欧式看涨期权和看跌期权进行定价。

在本练习中,您将依次给以下期权定价:价外欧式看涨、价内欧式看涨、价内欧式看跌以及价外欧式看跌。若立即行权会产生正的现金流,则期权为价内;否则为价外。

本练习的重点是理解参与定价的不同风险因子:当前股票价格、当前波动率以及当前利率。

本练习是课程的一部分

R 中的定量风险管理

查看课程

练习说明

  • 将当前利率 r 设为 0.01,当前波动率 sigma 设为 0.2,执行价 K 设为 100。
  • 查看 Black_Scholes() 函数的参数。
  • 当当前股价为 S = 80 时,给到期时间为 T = 1 年的欧式看涨期权定价。
  • 当当前股价为 S = 120 时,给到期时间为 T = 1 年的欧式看涨期权定价。
  • 当当前股价为 S = 80 时,给到期时间为 T = 1 年的欧式看跌期权定价。
  • 当当前股价为 S = 120 时,给到期时间为 T = 1 年的欧式看跌期权定价。

交互式实操练习

通过完成这段示例代码来试试这个练习。

# Set the interest rate r to be 0.01, the volatility sigma to be 0.2 and the strike K to be 100
r <- 0.01



# Look at the arguments of the Black_Scholes function
args(___)

# Price a European call option that matures in one year if the current stock price is 80
Black_Scholes(0, ___, r, sigma, K, 1, "call")

# Price a European call option that matures in one year if the current stock price is 120


# Price a European put option that matures in one year if the current stock price is 80
Black_Scholes(___, ___, r, sigma, K, ___,"put")

# Price a European put option that matures in one year if the current stock price is 120
编辑并运行代码