A one-year at-the-money option on SPY costs 55.61 dollars per share on 21 August 2026 by Black-Scholes. A binomial tree with 800 steps is off by 0.0126, and a Monte Carlo run with 100,000 paths is within 1.3 standard errors. Those three sentences are a validation: a benchmark, an error that shrinks as it should, and a statistical test. This capstone builds the checks that let you trust a pricing model, and apply them to real data.
A benchmark and a tree
Where we are. The previous topics gave you many pricing tools: curves, trees, simulation, credit, volatility surfaces. A tool is worth using only if you can show it is right. The standard way is to compare it with something you trust. For a European option on a share with no dividends, that is the Black-Scholes formula: it is exact under its assumptions, so it is the benchmark against which a tree or a simulation is judged.
The binomial tree of Cox, Ross and Rubinstein cuts the time to maturity into n steps. In each step the price moves up by a factor u = exp(vol × √dt) or down by d = 1 / u, and the probability of going up is chosen so that the average growth is the interest rate. The option is valued at the end of the tree and brought back one step at a time. For an American option we also compare, at every node, the value of waiting with the payoff of exercising now.
Worked example 1. *Problem:* price a one-year at-the-money call and put (spot 100, strike 100, rate 5%, volatility 20%) with Black-Scholes, then with trees of 1, 5, 25, 100, 400 and 800 steps, and price the American put. *Plan:* use bs_price for the benchmark and binomial_price for the trees. *Steps:* below.
call = bs_price(100.0, 100.0, 0.05, 0.2, 1.0, "call")put = bs_price(100.0, 100.0, 0.05, 0.2, 1.0, "put")print(round(call, 4), round(put, 4))1print([round(binomial_price(100.0, 100.0, 0.05, 0.2, 1.0, n), 4) for n in (1, 5, 25, 100, 400, 800)])2print(round(binomial_price(100.0, 100.0, 0.05, 0.2, 1.0, 400, "put", True), 4), round(binomial_price(100.0, 100.0, 0.05, 0.2, 1.0, 400, "put"), 4))3
10.4506 5.5735 [12.1623, 10.8059, 10.521, 10.4306, 10.4456, 10.4481] 6.0884 5.5685
- 1The benchmark.
- 2The tree gets closer as steps grow.
- 3American put against European put.
*Check:* Black-Scholes gives 10.4506 for the call and 5.5735 for the put. The tree gives 12.1623 with one step, 10.8059 with 5, 10.5210 with 25, 10.4306 with 100, 10.4456 with 400 and 10.4481 with 800: it gets close to the benchmark, with a small wobble. The American put is worth 6.0884 against 5.5685 for the European put with the same tree: the right to exercise early is worth about 0.52. *What to notice:* an American call is worth the same as a European call when there are no dividends, because it is never best to exercise early.
Monte Carlo and its error
A Monte Carlo price is the discounted average of the payoffs over many simulated final prices. Unlike a tree, it is random: a different sample gives a different price. So it cannot be judged by one error. We need the standard error, which says how much a sample average moves from sample to sample, and we judge the price by its z-score: the distance from the benchmark measured in standard errors. A price within three standard errors is consistent with the benchmark.
Worked example 2. *Problem:* price the same call with 100,000 normal numbers, and with only the first 1,000 of them, and judge each price against the benchmark. Also judge two deterministic prices, 10.0005 and 10.02 against a benchmark of 10.0. *Plan:* use mc_price and model_report. *Steps:* below.
z = np.random.default_rng(9).standard_normal(100_000)for sample in (z, z[:1000]): price, error = mc_price(sample, 100.0, 100.0, 0.05, 0.2, 1.0)1 print(round(price, 4), round(error, 4), model_report(price, 10.4506, error))print(model_report(10.0005, 10.0), model_report(10.02, 10.0))2
10.5172 0.0469 {'abs_error': 0.06664744187127525, 'rel_error': 0.0063773794682865335, 'z_score': 1.4208676781116518, 'ok': True}
10.5876 0.4636 {'abs_error': 0.13702585855872762, 'rel_error': 0.013111769521245443, 'z_score': 0.2955684495116474, 'ok': True}
{'abs_error': 0.0005000000000006111, 'rel_error': 5.0000000000061104e-05, 'z_score': 0.0, 'ok': True} {'abs_error': 0.019999999999999574, 'rel_error': 0.0019999999999999575, 'z_score': 0.0, 'ok': False}- 1A Monte Carlo price with its standard error.
- 2Deterministic prices are judged by their relative error.
*Check:* with 100,000 numbers the price is 10.5172 with a standard error of 0.0469, so z = 1.42 and the price is acceptable. With 1,000 numbers the price is 10.5876 with a standard error of 0.4636: z = 0.30, also acceptable, but the error is ten times larger. The deterministic price 10.0005 has a relative error of 0.005% and passes the 0.1% test; 10.02 has 0.2% and fails. *What to notice:* the Monte Carlo price is 0.067 away from the benchmark, much farther than the tree, and yet it passes: its test is statistical. A small sample passes more easily because its error bar is wide, which is why you need both the price and the standard error.
Checks without a benchmark
A benchmark is not always available. For a new model, there are tests that need no known answer, because every sensible price must satisfy them. Put-call parity says that for European options a call minus a put is the same as a forward, S − K × exp(−r T): if a model's call and put break this, the model is inconsistent. No-arbitrage bounds say that a call can never be worth less than its intrinsic value max(S − K × exp(−r T), 0) or more than the share, and a put can never be worth more than the discounted strike.
Worked example 3. *Problem:* check the parity of the Black-Scholes prices of example 1, and of the pair where the call is raised by 0.5. Then check three call prices, 10.4506, 4.0 and 100.5, against the bounds. *Plan:* use parity_gap and within_bounds. *Steps:* below.
print(round(parity_gap(call, put, 100.0, 100.0, 0.05, 1.0), 8), round(parity_gap(call + 0.5, put, 100.0, 100.0, 0.05, 1.0), 8))1print([within_bounds(p, 100.0, 100.0, 0.05, 1.0, "call") for p in (10.4506, 4.0, 100.5)])2
0.0 0.5 [True, False, False]
- 1Zero for a consistent pair; the shift shows up in full.
- 2Inside, below the intrinsic value, above the share.
*Check:* the gap is 0 for the consistent pair and 0.5 for the shifted one: the gap measures the inconsistency in dollars. The three call prices give True, False and False: 4.0 is below the intrinsic value 4.8771, and 100.5 is more than the share. *What to notice:* these two tests catch gross errors (a wrong sign, a missing discount) without any reference price, so they are the first tests to run on a new model.
Convergence and sensitivities
A tree with more steps should give a smaller error, and how fast it falls is information. If the error is proportional to n^b, then on a log-log plot the points lie on a line of slope b, the order of convergence. The binomial tree converges at first order, b = −1: four times the steps, a quarter of the error. A value far from −1 is a sign of a mistake.
Prices are not the only output. Risk managers use sensitivities, such as the delta, the change of the price when the spot moves. A model can be checked here too: the finite difference (price(S + h) − price(S − h)) / (2 h) approximates the delta of any pricer, even one without a formula. The step h must be small for a good approximation, but not so small that rounding errors dominate.
Worked example 4. *Problem:* find the order of convergence of the tree errors for 50, 200 and 800 steps in example 1, and the finite-difference delta of the Black-Scholes call for h equal to 5, 1 and 0.01, against the exact N(d1). *Plan:* use convergence_order and delta_fd. *Steps:* below.
errors = [abs(binomial_price(100.0, 100.0, 0.05, 0.2, 1.0, n) - call) for n in STEPS]print([round(e, 5) for e in errors], round(convergence_order(STEPS, errors), 4))1for h in (5.0, 1.0, 0.01): print(h, round(delta_fd(lambda s: bs_price(s, 100.0, 0.05, 0.2, 1.0, "call"), 100.0, h), 6))2
[0.03989, 0.00999, 0.0025] -0.9991 5.0 0.634703 1.0 0.636745 0.01 0.636831
- 1Errors and the order of convergence.
- 2Delta by finite differences; the exact value is 0.636831.
*Check:* the errors are 0.03989, 0.00999 and 0.0025: each time the steps are multiplied by 4, the error is divided by 4, and the order is -0.9991. The finite-difference deltas are 0.634703 for h = 5, 0.636745 for h = 1 and 0.636831 for h = 0.01, against the exact 0.636831. *What to notice:* the central difference error falls like h², so a hundred times smaller h gives ten thousand times less error, until rounding errors take over.
Validating on three real days
Worked example 5. *Problem:* run the whole validation on an at-the-money one-year option on SPY, on three days, with the volatility of the last year and the 1-year Treasury yield. *Plan:* study prices the option with the benchmark, the tree and Monte Carlo, runs the parity and bounds checks, the convergence order, the finite-difference delta, and prices the American put. *Steps:* below.
data = load_data()out = study(data)1for date, row in out.items(): print(date, round(row["bs_call"], 3), [round(e, 4) for e in row["tree_errors"]], round(row["order"], 2), round(row["mc"]["z_score"], 2), row["mc"]["ok"], round(row["delta_fd"], 4), round(row["american_premium"], 4))
2022-01-03 24.463 [0.1175, 0.0294, 0.0074] -1.0 1.54 True 0.538 0.1201 2023-07-03 45.302 [0.1684, 0.0422, 0.0105] -1.0 1.4 True 0.6469 2.4712 2026-08-21 55.609 [0.2013, 0.0504, 0.0126] -1.0 1.3 True 0.6466 3.1593
- 1One validation per date.
*Check:* the call costs 24.463, 45.302 and 55.609 on the three days. The tree errors with 50, 200 and 800 steps are 0.1175, 0.0294, 0.0074, 0.1684, 0.0422, 0.0105 and 0.2013, 0.0504, 0.0126, and the order is -1.00 every time. The Monte Carlo z-scores are 1.54, 1.40 and 1.30, all acceptable. The finite-difference deltas are within 0.0002 of N(d1), the parity gap is 0 and the bounds hold. The American put premium is 0.1201, 2.4712 and 3.1593. *What to notice:* the premium follows the interest rate (0.40%, 5.43% and 4.03%): early exercise of a put is worth more when rates are high, because the money from the strike can earn interest.
Agreeing with Black-Scholes shows that a pricer is right for the case where Black-Scholes is right. It says nothing about products with no formula, or about model risk: the volatility and the rate are inputs, and a perfect pricer with a wrong input gives a wrong price. Validation is a set of tests that can fail, not a certificate; write down what each test covers, and what it does not.
- FunctionQuestion it answers
- bs_price(spot, strike, rate, vol, t, kind)What is the benchmark price?the Black-Scholes formula
- binomial_price(spot, strike, rate, vol, t, steps, kind, american)What does a tree say?backward induction with the CRR factors
- mc_price(z, spot, strike, rate, vol, t, kind)What does a simulation say, and how sure is it?discounted mean and standard error
- parity_gap(call, put, spot, strike, rate, t)Are the call and the put consistent?call minus put minus the forward
- convergence_order(steps, errors)How fast does the error fall?log-log slope of the errors
- within_bounds(price, spot, strike, rate, t, kind, tol)Is the price inside the no-arbitrage bounds?intrinsic value and upper limit
- model_report(price, benchmark, stderr)Is the price acceptable?z-score or relative error
- delta_fd(pricer, spot, h)What is the delta of any pricer?central finite difference
What you will build
The lab follows the lecture. Task 1 is the benchmark and task 2 the binomial tree, for European and American options. Task 3 is Monte Carlo with its standard error, and task 7 turns a price into a verdict. Tasks 4 and 6 are the checks that need no benchmark. Task 5 measures the order of convergence and task 8 the delta by finite differences. Task 9 validates the pricers on an option on SPY on three real days.
This is the last topic of the skill. You have built curves, swaps, forwards, American options by simulation, interest-rate options, credit, XVA, volatility surfaces and a view of rough volatility; the habit that matters most is the one of this topic. Before you trust a number, compare it with something you trust, say how big the error is and why it should shrink, and write down what the test could not catch.
Lab · what's graded
9 tasks · 100 pts- The benchmark8 pts
- The binomial tree14 pts
- Monte Carlo10 pts
- Put-call parity5 pts
- The order of convergence7 pts
- No-arbitrage bounds8 pts
- A verdict on a price8 pts
- A finite-difference delta10 pts
- Validation on three days30 pts