Valuing European Options Using Monte Carlo Simulation-Derivative Pricing in Python

In a previous post, we presented a methodology for pricing European options using a closed-form formula. In this installment, we price these options using a numerical method. Specifically, we will use Monte Carlo simulation.

Recall that,

  • A call option gives the buyer the right, but not the obligation to buy an agreed quantity of the underlying from the seller at a future time for a given price. The payoff of the call option at expiration is max(ST-K,0),
  • A put option gives the buyer the right, but not the obligation to sell an agreed quantity of the underlying to the seller at a future time for a given price. The payoff of the put option at expiration is max(K -ST,0),

where ST  denotes the stock price at expiration and K is the strike price.

To price these options, we first simulate the price paths using the following Stochastic Differential Equation:

Monte Carlo simulation in pythonwhere

  • St is the stock price at time t,
  • σ denotes the stock volatility,
  • µ is the drift which equals the risk-free rate, and
  • dWt represents the standard normal random variable.

The simulation is carried out until the options’ maturity. We then apply the terminal payoff functions and calculate the mean values of all the payoffs. Finally, we discount the mean values to the present and thus obtain the option values.  For a more detailed presentation of the Monte Carlo method, see Reference [1].

The picture below shows the call and put option prices using 100000 simulations. All other parameters are the same as in the previous post.

options pricing in Python using Monte Carlo

We compare the above results to the ones obtained by using a third-party software and notice that they are in good agreement.

derivative pricing in python

In the next installment, we will present a methodology for pricing American options using Monte Carlo simulation.

References

[1] Glasserman, Paul; Monte Carlo Methods in Financial Engineering, Springer; 2003

Further questions

What's your question? Ask it in the discussion forum

Have an answer to the questions below? Post it here or in the forum

LATEST NEWSRussia Halts Some Oil Wells But Keeps Production Data Secret
Russia Halts Some Oil Wells But Keeps Production Data Secret

Russian oil data show a jump in the number of idled wells in March, adding another contradictory element to the murky picture of whether the country really is cutting crude production as promised.

Stay up-to-date with the latest news - click here
LATEST NEWSBrazil police search Bolsonaro’s home, seize his phone
Brazil police search Bolsonaro’s home, seize his phone

BRASILIA, Brazil (AP) — Brazil’s Federal Police searched former President Jair Bolsonaro’s home on Wednesday and seized his phone, according to an official who spoke on condition of anonymity. The official, who wasn’t authorized to speak publicly, said that Bolsonaro will be deposed at Federal…

Stay up-to-date with the latest news - click here
LATEST NEWSCVS Earnings Beat Expectations. Why the Stock Is Dropping.
CVS Earnings Beat Expectations. Why the Stock Is Dropping.
Stay up-to-date with the latest news - click here
LATEST NEWSUniCredit’s Orcel downplays talk of BPM deal as profits hit a record
UniCredit’s Orcel downplays talk of BPM deal as profits hit a record

CEO says bank better off returning money to shareholders but analysts expect lender to examine acquisitions

Stay up-to-date with the latest news - click here
LATEST NEWSWellbeing Subsidiary KGK Science Announces Successful Results of UP360, a Nutraceutical Ingredient Demonstrating Beneficial Immune Defense Response
Wellbeing Subsidiary KGK Science Announces Successful Results of UP360, a Nutraceutical Ingredient Demonstrating Beneficial Immune Defense Response

A randomized, triple-blind, placebo-controlled clinical trial involving supplementation with UP360 provides evidence for a robust, healthy immune response in healthy adults following influenza vaccination. VANCOUVER, British Columbia — Wellbeing Digital Sciences Inc. (“Wellbeing” or the “Company”) (NEO: MEDI) (OTC: KONEF) (FRA: SQ2), an evidence-based mental…

Stay up-to-date with the latest news - click here

One Response

Leave a Reply