Monte Carlo Pricer
Value any payoff that you can write as a formula of the spot on a set of dates: averages, extremes, conditions, products.
The spot follows a geometric Brownian motion.
Market and Dates
iSpot, rate, dividend yield and volatility as in Black-Scholes. The path is simulated on \(n\) evenly spaced dates \(t_j = jT/n\), the last one at maturity \(T\). The payoff is paid at \(T\).Payoff
iA formula for the payoff at maturity. Upper or lower case does not matter.Variables:
ST the spot at maturity, S0 the spot today, S1 to Sn the spot on the dates, Savg the average of S1 to Sn, Smax and Smin the highest and lowest of S0 to Sn.Operators:
+ - * / ^ and comparisons < > <= >= == !=, which give 1 or 0. Multiply them to combine conditions.Functions:
max, min, abs, sqrt, log, exp, sin, cos, if(condition, a, b), constants pi and e.Barriers are checked only on the dates. For a barrier watched all the time use the Path-Dependent Calculator.
Examples:
Call:
max(ST - 100, 0)Asian call on the average of the dates:
max(Savg - 100, 0)Lookback call, floating strike:
ST - SminDown-and-out call, barrier 80 checked on the dates:
max(ST - 100, 0) * (Smin > 80)Digital call:
ST > 100Capped call on the best date:
min(max(Smax - 100, 0), 30)Power call:
max(ST - 100, 0)^2 / 100Pays 10 if the spot stays between 85 and 115:
10 * (Smin > 85) * (Smax < 115)
Value and Greeks
iValue: \(e^{-rT}\) times the average payoff, with its 95 % interval (1.96 standard errors).Greeks from the same random numbers with the inputs moved: delta and gamma with the spot ± 1 %, vega per volatility point, rho per basis point, theta for one day, with the dates kept. For payoffs with jumps, such as digitals and barriers, delta and above all gamma are noisy.
Control variate: the same paths also value the payoff \(S_T\), whose exact value \(S e^{-qT}\) is known. Its sampling error is used to correct the value, which narrows the interval for payoffs that move with \(S_T\). The Greeks are not corrected.
Method: Methods → Monte Carlo Pricer.
The inputs have changed since this simulation. Run it again to update the results.
Distribution of the Payoff
iShare of paths in each range of the payoff at maturity, not discounted. The orange line marks the average payoff.\(\mathbb{Q}(\text{Payoff} > 0)\) is the share of paths with a positive payoff, a risk-neutral probability and no forecast. The quantiles are those of the payoff at maturity.
Payoff against the Spot at Maturity
iOne point per path for the first 2,000 paths. A payoff that depends only on \(S_T\) lies on a line. The wider the cloud, the more the rest of the path matters. The orange line marks today's spot.Value against Spot and Volatility
iThe value today for spots from 60 % to 140 % of today's and for volatilities from a quarter to twice today's, all other inputs unchanged. The orange lines mark today. Every point uses the same random numbers, so the curves are smooth even where the value itself is uncertain. Their slopes are delta and vega, the curvature over the spot gamma.