Black Scholes Options Pricing Model in R

Premium

The Black Scholes model estimates the value of a European call or put option by using the following parameters:

1_S = Stock Price_
2
3_K = Strike Price at Expiration_ 
4
5_r = Risk-free Interest Rate_
6
7_T = Time to Expiration_
8
9_sig = Volatility of the Underlying asset_
10

Using R, we can write a function to compute the option price once we have the values of these 5 parameters. The BlackScholes function takes these parameters and returns the value of the call or put option.

Unlock Premium Content

Upgrade your account to access the full article, downloads, and exercises.

You'll get access to:

  • Access complete tutorials and examples
  • Download source code and resources
  • Follow along with practical exercises
  • Get in-depth explanations