Validation
Every price on this site is computed by the site's own code. To check it, a script runs exactly that code and compares the results with independent implementations: the open-source library QuantLib 1.44, reference implementations in Python with SciPy and Monte Carlo simulation. The tables below are its output, 169 comparisons in total.
Differences around
Black-Scholes prices and Greeks
Reference: QuantLib AnalyticEuropeanEngine.
| Option | Parameters | App | Reference | Difference |
|---|---|---|---|---|
| Call Price | K = 90 | 13.653628 | 13.653628 | −1e−14 |
| Call Delta | K = 90 | 0.771375 | 0.771375 | 0 |
| Call Gamma | K = 90 | 0.016621 | 0.016621 | 1e−17 |
| Call Vega | K = 90 | 20.775722 | 20.775722 | 1e−14 |
| Call Theta | K = 90 | −6.825375 | −6.825375 | 2e−14 |
| Call Rho | K = 90 | 31.741944 | 31.741944 | −2e−14 |
| Call Epsilon | K = 90 | −38.568758 | −38.568758 | 2e−14 |
| Put Price | K = 90 | 2.426536 | 2.426536 | −3e−15 |
| Put Delta | K = 90 | −0.218675 | −0.218675 | −2e−16 |
| Put Gamma | K = 90 | 0.016621 | 0.016621 | 1e−17 |
| Put Vega | K = 90 | 20.775722 | 20.775722 | 1e−14 |
| Put Theta | K = 90 | −4.416580 | −4.416580 | −1e−14 |
| Put Rho | K = 90 | −12.147002 | −12.147002 | −7e−15 |
| Put Epsilon | K = 90 | 10.933733 | 10.933733 | 9e−15 |
| Call Price | K = 100 | 7.683041 | 7.683041 | −4e−15 |
| Call Delta | K = 100 | 0.563110 | 0.563110 | −7e−16 |
| Call Gamma | K = 100 | 0.022010 | 0.022010 | −1e−17 |
| Call Vega | K = 100 | 27.512813 | 27.512813 | 4e−15 |
| Call Theta | K = 100 | −8.183380 | −8.183380 | 3e−14 |
| Call Rho | K = 100 | 24.313965 | 24.313965 | −1e−14 |
| Call Epsilon | K = 100 | −28.155486 | −28.155486 | 2e−14 |
| Put Price | K = 100 | 6.209049 | 6.209049 | 9e−16 |
| Put Delta | K = 100 | −0.426940 | −0.426940 | −3e−16 |
| Put Gamma | K = 100 | 0.022010 | 0.022010 | −1e−17 |
| Put Vega | K = 100 | 27.512813 | 27.512813 | 4e−15 |
| Put Theta | K = 100 | −5.286930 | −5.286930 | −7e−15 |
| Put Rho | K = 100 | −24.451530 | −24.451530 | −2e−14 |
| Put Epsilon | K = 100 | 21.347006 | 21.347006 | 2e−14 |
| Call Price | K = 110 | 3.859760 | 3.859760 | −4e−15 |
| Call Delta | K = 110 | 0.353660 | 0.353660 | −3e−16 |
| Call Gamma | K = 110 | 0.020896 | 0.020896 | 3e−18 |
| Call Vega | K = 110 | 26.120261 | 26.120261 | 4e−15 |
| Call Theta | K = 110 | −7.398057 | −7.398057 | 2e−14 |
| Call Rho | K = 110 | 15.753122 | 15.753122 | 2e−15 |
| Call Epsilon | K = 110 | −17.683002 | −17.683002 | 0 |
| Put Price | K = 110 | 12.138867 | 12.138867 | 2e−15 |
| Put Delta | K = 110 | −0.636390 | −0.636390 | −2e−16 |
| Put Gamma | K = 110 | 0.020896 | 0.020896 | 3e−18 |
| Put Vega | K = 110 | 26.120261 | 26.120261 | 4e−15 |
| Put Theta | K = 110 | −4.013953 | −4.013953 | −2e−14 |
| Put Rho | K = 110 | −37.888923 | −37.888923 | −1e−14 |
| Put Epsilon | K = 110 | 31.819489 | 31.819489 | 1e−14 |
Digital options
Reference: QuantLib AnalyticEuropeanEngine.
Same market as above. Cash-or-nothing pays 1.
| Option | Parameters | App | Reference | Difference |
|---|---|---|---|---|
| Cash-or-Nothing Call | K = 90 | 0.705377 | 0.705377 | −2e−16 |
| Asset-or-Nothing Call | K = 90 | 77.137517 | 77.137517 | −3e−14 |
| Cash-or-Nothing Put | K = 90 | 0.269933 | 0.269933 | 3e−16 |
| Asset-or-Nothing Put | K = 90 | 21.867467 | 21.867467 | 3e−14 |
| Cash-or-Nothing Call | K = 110 | 0.286420 | 0.286420 | −1e−16 |
| Asset-or-Nothing Call | K = 110 | 35.366005 | 35.366005 | −1e−14 |
| Cash-or-Nothing Put | K = 110 | 0.688890 | 0.688890 | 2e−16 |
| Asset-or-Nothing Put | K = 110 | 63.638979 | 63.638979 | 2e−14 |
Barrier options
Reference: QuantLib AnalyticBarrierEngine.
| Option | Parameters | App | Reference | Difference |
|---|---|---|---|---|
| Down-and-Out Call | K = 95, H = 90 | 8.611603 | 8.611603 | −3e−14 |
| Down-and-Out Call | K = 105, H = 90 | 4.910057 | 4.910057 | −6e−15 |
| Down-and-In Call | K = 95, H = 90 | 1.780827 | 1.780827 | 0 |
| Down-and-In Call | K = 105, H = 90 | 0.610437 | 0.610437 | −9e−16 |
| Down-and-Out Put | K = 95, H = 90 | 0.030351 | 0.030351 | −4e−15 |
| Down-and-Out Put | K = 105, H = 90 | 0.694971 | 0.694971 | 9e−16 |
| Down-and-In Put | K = 95, H = 90 | 4.011537 | 4.011537 | −4e−15 |
| Down-and-In Put | K = 105, H = 90 | 8.228082 | 8.228082 | −2e−15 |
| Up-and-Out Call | K = 95, H = 115 | 1.462408 | 1.462408 | −3e−14 |
| Up-and-Out Call | K = 105, H = 115 | 0.187890 | 0.187890 | −1e−14 |
| Up-and-In Call | K = 95, H = 115 | 8.930022 | 8.930022 | 0 |
| Up-and-In Call | K = 105, H = 115 | 5.332605 | 5.332605 | 7e−15 |
| Up-and-Out Put | K = 95, H = 115 | 3.857744 | 3.857744 | −3e−15 |
| Up-and-Out Put | K = 105, H = 115 | 8.162284 | 8.162284 | −4e−15 |
| Up-and-In Put | K = 95, H = 115 | 0.184144 | 0.184144 | −4e−15 |
| Up-and-In Put | K = 105, H = 115 | 0.760768 | 0.760768 | 4e−15 |
Touch options
Reference: QuantLib AnalyticDigitalAmericanEngine (single barrier) and AnalyticDoubleBarrierBinaryEngine (double barrier).
Same market. All pay 1 at maturity.
| Option | Parameters | App | Reference | Difference |
|---|---|---|---|---|
| One-Touch Up | H = 120 | 0.293829 | 0.293829 | −3e−16 |
| One-Touch Down | H = 85 | 0.350213 | 0.350213 | 3e−16 |
| No-Touch Up | H = 120 | 0.681481 | 0.681481 | 2e−16 |
| No-Touch Down | H = 85 | 0.625097 | 0.625097 | −3e−16 |
| Double No-Touch | L = 80, U = 120 | 0.480074 | 0.480074 | −2e−16 |
| Double One-Touch | L = 80, U = 120 | 0.495236 | 0.495236 | 2e−16 |
| Double No-Touch | L = 90, U = 115 | 0.093028 | 0.093028 | −5e−16 |
| Double One-Touch | L = 90, U = 115 | 0.882282 | 0.882282 | 4e−16 |
Double barrier options
Reference: QuantLib AnalyticDoubleBarrierEngine.
Same market.
| Option | Parameters | App | Reference | Difference |
|---|---|---|---|---|
| Double Knock-Out Call | K = 100, L = 80, U = 130 | 3.543865 | 3.543865 | −1e−14 |
| Double Knock-In Call | K = 100, L = 80, U = 130 | 4.139176 | 4.139176 | 7e−15 |
| Double Knock-Out Put | K = 100, L = 80, U = 130 | 2.213197 | 2.213197 | −1e−14 |
| Double Knock-In Put | K = 100, L = 80, U = 130 | 3.995852 | 3.995852 | 1e−14 |
| Double Knock-Out Call | K = 95, L = 70, U = 120 | 2.750660 | 2.750660 | −9e−14 |
| Double Knock-In Call | K = 95, L = 70, U = 120 | 7.641770 | 7.641770 | 8e−14 |
| Double Knock-Out Put | K = 95, L = 70, U = 120 | 2.933811 | 2.933811 | −2e−14 |
| Double Knock-In Put | K = 95, L = 70, U = 120 | 1.108077 | 1.108077 | 1e−14 |
Lookback options
Reference: QuantLib AnalyticContinuousFloatingLookbackEngine and AnalyticContinuousFixedLookbackEngine.
Same market.
| Option | Parameters | App | Reference | Difference |
|---|---|---|---|---|
| Lookback Call (floating) | new | 13.864207 | 13.864207 | 7e−15 |
| Lookback Put (floating) | new | 13.925623 | 13.925623 | 5e−15 |
| Lookback Call (fixed) | K = 95 | 20.276165 | 20.276165 | 1e−14 |
| Lookback Put (fixed) | K = 95 | 8.067365 | 8.067365 | −2e−14 |
| Lookback Call (fixed) | K = 105 | 11.062995 | 11.062995 | 0 |
| Lookback Put (fixed) | K = 105 | 17.266764 | 17.266764 | 0 |
| Lookback Call (floating) | min so far 90 | 16.071275 | 16.071275 | −4e−15 |
| Lookback Put (floating) | max so far 110 | 16.012762 | 16.012762 | 0 |
| Lookback Call (fixed) | K = 95, max so far 110 | 22.363304 | 22.363304 | −1e−14 |
| Lookback Put (fixed) | K = 95, min so far 90 | 9.720733 | 9.720733 | −1e−14 |
| Lookback Call (fixed) | K = 105, max so far 110 | 12.610205 | 12.610205 | −1e−14 |
| Lookback Put (fixed) | K = 105, min so far 90 | 19.473832 | 19.473832 | −1e−14 |
Geometric Asian options
Reference: QuantLib AnalyticContinuousGeometricAveragePriceAsianEngine.
Same market, continuous average, new contracts.
| Option | Parameters | App | Reference | Difference |
|---|---|---|---|---|
| Geometric Asian Call | K = 90 | 10.906503 | 10.906503 | 3e−14 |
| Geometric Asian Put | K = 90 | 0.674738 | 0.674738 | −7e−15 |
| Geometric Asian Call | K = 100 | 4.223081 | 4.223081 | 6e−15 |
| Geometric Asian Put | K = 100 | 3.744415 | 3.744415 | −1e−14 |
| Geometric Asian Call | K = 110 | 1.077708 | 1.077708 | 7e−15 |
| Geometric Asian Put | K = 110 | 10.352140 | 10.352140 | −3e−14 |
Other models
Reference: QuantLib AnalyticHestonEngine, BatesEngine, VarianceGammaEngine, AnalyticCEVEngine and sabrVolatility.
| Option | Parameters | App | Reference | Difference |
|---|---|---|---|---|
| Heston Call | K = 80, T = 0.5 | 21.792610 | 21.792610 | −7e−13 |
| Heston Put | K = 80, T = 0.5 | 0.812419 | 0.812419 | −6e−13 |
| Heston Call | K = 100, T = 0.5 | 6.417444 | 6.417444 | 1e−12 |
| Heston Put | K = 100, T = 0.5 | 4.943452 | 4.943452 | 1e−12 |
| Heston Call | K = 120, T = 0.5 | 0.362167 | 0.362167 | 5e−13 |
| Heston Put | K = 120, T = 0.5 | 18.394373 | 18.394373 | 5e−13 |
| Bates Call | K = 80, T = 0.5 | 21.999767 | 21.999767 | 8e−12 |
| Bates Put | K = 80, T = 0.5 | 1.019577 | 1.019577 | 8e−12 |
| Bates Call | K = 100, T = 0.5 | 6.961745 | 6.961745 | 3e−13 |
| Bates Put | K = 100, T = 0.5 | 5.487753 | 5.487753 | 3e−13 |
| Bates Call | K = 120, T = 0.5 | 0.563283 | 0.563283 | 1e−11 |
| Bates Put | K = 120, T = 0.5 | 18.595489 | 18.595489 | 1e−11 |
| Heston Call | K = 80, T = 0.1 | 20.211086 | 20.211086 | −4e−13 |
| Heston Put | K = 80, T = 0.1 | 0.011885 | 0.011885 | −4e−13 |
| Heston Call | K = 100, T = 0.1 | 2.669253 | 2.669253 | −9e−13 |
| Heston Put | K = 100, T = 0.1 | 2.370301 | 2.370301 | −9e−13 |
| Heston Call | K = 120, T = 0.1 | 0.000173 | 0.000173 | −9e−12 |
| Heston Put | K = 120, T = 0.1 | 19.601470 | 19.601470 | −9e−12 |
| Variance Gamma Call | K = 80 | 21.497369 | 21.497369 | 1e−8 |
| Variance Gamma Call | K = 100 | 6.299308 | 6.299308 | 3e−9 |
| Variance Gamma Call | K = 120 | 0.751420 | 0.751420 | −2e−9 |
| CEV Call | β = 0.5, K = 80, r = q = 3 % | 20.634785 | 20.634785 | −2e−12 |
| CEV Call | β = 0.5, K = 100, r = q = 3 % | 6.940579 | 6.940579 | −1e−11 |
| CEV Call | β = 0.5, K = 120, r = q = 3 % | 1.299099 | 1.299099 | −5e−12 |
| CEV Call | β = 0.8, K = 80, r = q = 3 % | 20.532112 | 20.532112 | 5e−13 |
| CEV Call | β = 0.8, K = 100, r = q = 3 % | 6.938696 | 6.938696 | −1e−11 |
| CEV Call | β = 0.8, K = 120, r = q = 3 % | 1.413232 | 1.413232 | −3e−11 |
| SABR implied vol | K = 70 | 0.262488 | 0.262488 | 0 |
| SABR implied vol | K = 100 | 0.201889 | 0.201889 | 0 |
| SABR implied vol | K = 130 | 0.182791 | 0.182791 | 0 |
Jump and Lévy models
Reference: Own reference implementations in Python with SciPy. Merton: series of Black-Scholes prices (Merton, 1976), 80 terms. Kou and CGMY: inversion of the characteristic function (Gil-Pelaez, 1951) with adaptive quadrature. NIG: payoff integrated against the closed-form density (Barndorff-Nielsen, 1997).
| Option | Parameters | App | Reference | Difference |
|---|---|---|---|---|
| Merton Call | K = 80 | 21.857647 | 21.857647 | −5e−14 |
| Merton Call | K = 100 | 7.396137 | 7.396137 | −3e−14 |
| Merton Call | K = 120 | 1.452292 | 1.452292 | −3e−14 |
| Kou Call | K = 80 | 21.616730 | 21.616730 | −5e−14 |
| Kou Put | K = 80 | 0.636540 | 0.636540 | −5e−14 |
| Kou Call | K = 100 | 7.057925 | 7.057925 | −1e−14 |
| Kou Put | K = 100 | 5.583933 | 5.583933 | −2e−14 |
| Kou Call | K = 120 | 1.212208 | 1.212208 | −4e−14 |
| Kou Put | K = 120 | 19.244414 | 19.244414 | −5e−14 |
| CGMY Call | K = 80 | 21.449982 | 21.449982 | 1e−10 |
| CGMY Put | K = 80 | 0.469791 | 0.469791 | 1e−10 |
| CGMY Call | K = 100 | 6.042552 | 6.042552 | 6e−12 |
| CGMY Put | K = 100 | 4.568559 | 4.568559 | 6e−12 |
| CGMY Call | K = 120 | 0.807850 | 0.807850 | −1e−11 |
| CGMY Put | K = 120 | 18.840056 | 18.840056 | −1e−11 |
| NIG Call | K = 80 | 21.381456 | 21.381456 | 6e−12 |
| NIG Put | K = 80 | 0.401265 | 0.401265 | 6e−12 |
| NIG Call | K = 100 | 6.063801 | 6.063801 | 7e−12 |
| NIG Put | K = 100 | 4.589809 | 4.589809 | 7e−12 |
| NIG Call | K = 120 | 0.623442 | 0.623442 | 7e−12 |
| NIG Put | K = 120 | 18.655648 | 18.655648 | 7e−12 |
Lock-in options
Reference: Monte Carlo, ± one standard error. Ratchet: 1 million paths of 100 steps with the exact maximum between steps (Brownian bridge). Cliquet: 2 million paths.
| Option | Parameters | App | Reference | Difference |
|---|---|---|---|---|
| Ratchet | K = 100, λ = 0.75 | 2.0435 | 2.0539 ± 0.0168 | −0.0104 (0.6 SE) |
| Ratchet | K = 100, λ = 1.0 | 15.3996 | 15.4012 ± 0.0127 | −0.0016 (0.1 SE) |
| Ratchet | K = 110, λ = 1.2 | 28.2326 | 28.2213 ± 0.0152 | 0.0113 (0.7 SE) |
| Cliquet | 12 periods, local -3 % / +3 %, global floor 0 % | 3.4212 | 3.4205 ± 0.0035 | 0.0007 (0.2 SE) |
| Cliquet | 12 periods, local -3 % / +3 % | 0.0473 | 0.0476 ± 0.0060 | −0.0003 (0.1 SE) |
| Cliquet | 4 periods, local -5 % / +8 %, global floor 0 %, cap 15 % | 4.9905 | 4.9977 ± 0.0039 | −0.0072 (1.8 SE) |
Arithmetic Asian options
Reference: QuantLib ContinuousArithmeticAsianLevyEngine for the formula. Monte Carlo with 400,000 paths of 250 steps (± one standard error) for the error of the approximation.
| Option | Parameters | App | QuantLib | Difference | Monte Carlo | Approx. error |
|---|---|---|---|---|---|---|
| Arithmetic Asian Call | K = 90, σ = 20 %, T = 0.5 | 10.780277 | 10.780277 | 1e−11 | 10.7502 ± 0.0120 | 0.0301 (+0.3 %) |
| Arithmetic Asian Put | K = 90, σ = 20 %, T = 0.5 | 0.292024 | 0.292024 | 1e−11 | 0.2776 ± 0.0019 | 0.0144 (+5.2 %) |
| Arithmetic Asian Call | K = 100, σ = 20 %, T = 0.5 | 3.577654 | 3.577654 | 3e−11 | 3.5815 ± 0.0083 | −0.0039 (−0.1 %) |
| Arithmetic Asian Put | K = 100, σ = 20 %, T = 0.5 | 2.842500 | 2.842500 | 3e−11 | 2.8481 ± 0.0066 | −0.0056 (−0.2 %) |
| Arithmetic Asian Call | K = 110, σ = 20 %, T = 0.5 | 0.608642 | 0.608642 | 2e−11 | 0.6217 ± 0.0035 | −0.0131 (−2.1 %) |
| Arithmetic Asian Put | K = 110, σ = 20 %, T = 0.5 | 9.626588 | 9.626588 | 2e−11 | 9.6233 ± 0.0110 | 0.0033 (+0.0 %) |
| Arithmetic Asian Call | K = 90, σ = 50 %, T = 2 | 21.172533 | 21.172533 | −2e−13 | 20.6867 ± 0.0538 | 0.4858 (+2.3 %) |
| Arithmetic Asian Put | K = 90, σ = 50 %, T = 2 | 9.354532 | 9.354532 | −3e−13 | 8.8188 ± 0.0199 | 0.5358 (+6.1 %) |
| Arithmetic Asian Call | K = 100, σ = 50 %, T = 2 | 16.702097 | 16.702097 | −3e−13 | 16.3191 ± 0.0498 | 0.3830 (+2.3 %) |
| Arithmetic Asian Put | K = 100, σ = 50 %, T = 2 | 13.932471 | 13.932471 | −3e−13 | 13.5229 ± 0.0253 | 0.4096 (+3.0 %) |
| Arithmetic Asian Call | K = 110, σ = 50 %, T = 2 | 13.081238 | 13.081238 | −3e−13 | 12.7788 ± 0.0453 | 0.3024 (+2.4 %) |
| Arithmetic Asian Put | K = 110, σ = 50 %, T = 2 | 19.359985 | 19.359985 | −4e−13 | 19.0051 ± 0.0303 | 0.3549 (+1.9 %) |