Skip to main content

Probability and statistics · 15 min read

Pricing an option with Monte Carlo

Simulate thousands of possible futures for a stock, average the payoffs, and check your answer against Black–Scholes.

Before you start

  • Expected value and the normal distribution
  • Basic Python (functions, NumPy arrays)

By the end you'll be able to

  • Explain what a European call option pays and why its price is an expectation
  • Simulate stock prices with geometric Brownian motion
  • Price an option by Monte Carlo and report a standard error
  • Check the result against the Black–Scholes formula

Monte Carlo simulation is one of the most useful tools a quant has. When a quantity is hard to compute directly, you simulate the randomness many times and average the results. In this lesson you'll use it to price an option, then check your answer against an exact formula. By the end you will have the core of a portfolio project.

SymbolMeaningValue
S0S_0The stock price today100
STS_TThe stock price at expiry (random)
KKThe strike price100
TTTime to expiry, in years1
rrThe risk-free interest rate5%
σ\sigmaVolatility: how much the price moves, per year20%

The rest of this lesson needs lifetime access

It will be part of lifetime access, which is coming soon: every lesson in all four tracks, including lessons added later, for one payment.

See pricing

Already have access? Sign in