Neural Networks and Option Pricing
Option pricing is a natural place to try neural networks. Finance has a theory that gives option prices in closed form, so there is a benchmark to beat; markets produce thousands of prices every day, so there are data to learn from; and the theory is known to be wrong in a systematic way that a flexible model might capture. This chapter explains what an option is, how finance derived a formula for its price under some assumptions, how that formula fails in practice, and what a network trained on option prices can and cannot learn. The Derivatives notes develop the theory in full, starting from Options Markets.
What an option is
A call option gives its owner the right, but not the obligation, to buy an asset at a fixed price, the strike K, on a fixed date, the maturity. A put option gives the right to sell at the strike. The owner pays for this right up front: the option’s price, or premium. An option that can be exercised only at maturity is European; one that can be exercised at any time before is American. Options on the S&P 500 index, the ones in the notebook, are European and settle in cash: at maturity the seller pays the buyer the value of the payoff, and no shares change hands.
At maturity the owner exercises a call only if the asset is worth more than the strike, and a put only if it is worth less. With S_T the price of the asset at maturity, the payoffs are \max(S_T - K, 0) \quad \text{for a call}, \qquad \max(K - S_T, 0) \quad \text{for a put}, \tag{1} drawn in Figure 1. A call pays when the asset rises above the strike, so it is a leveraged bet on a rise; a put pays when the asset falls below the strike, so it insures a portfolio against a fall. A put on the S&P 500 with a strike 10% below the index is insurance against a crash of more than 10%.
The call payoff is the ReLU function of the chapter From Regression to Neural Networks, shifted to the strike: \max(S_T - K, 0) is g(z) = \max(z, 0) with z = S_T - K. A network with one input and ReLU hidden units is therefore a portfolio of calls and puts, one per hidden unit, with the output weights as the number of options held, plus a cash position from the output’s intercept.
Pricing by replication
What is an option worth before maturity? Its payoff depends on a future price no one knows, so it seems the answer must depend on how likely the asset is to rise or fall. The insight of Black and Scholes (1973) and Merton (1973) is that it does not: under some assumptions, a portfolio of the asset and a riskless bond, adjusted as the price moves, pays exactly what the option pays. The option must then cost what that portfolio costs, or someone could buy the cheaper of the two, sell the more expensive, and earn a profit with no risk, an arbitrage.
A one-step example shows the idea. A stock trades at 100 and will be worth either 110 or 90 in a year, and the interest rate is zero, so a bond that pays 1 in a year costs 1 today. A call with strike 100 pays 10 if the stock rises and 0 if it falls. A portfolio of N_S shares and N_Z bonds pays the same as the call if 110 N_S + N_Z = 10, \qquad 90 N_S + N_Z = 0, so N_S = 0.5 and N_Z = -45: buy half a share and borrow 45. The portfolio costs 0.5 \times 100 - 45 = 5 today, so the call is worth 5. The probability that the stock rises never entered the calculation. Whatever investors believe about the stock, the price of the call follows from the price of the stock and the bond. Binomial Pricing develops this argument over many steps.
The Black-Scholes formula
Let the steps become very short, so that the portfolio is adjusted continuously, and the binomial tree turns into a model in which the asset’s price moves continuously with a constant volatility. The result is the formula of Black and Scholes (1973), for a stock that pays no dividends, as extended by Merton (1973) to an asset that pays a continuous dividend yield q. For a European call, when the interest rate is r and the asset’s volatility is a constant \sigma, with S the asset price today and T the time to maturity in years, the call price is C = S e^{-qT} N(d_1) - K e^{-rT} N(d_2), \tag{2} with d_1 = \frac{\ln(S/K) + (r - q + \sigma^2/2) T}{\sigma \sqrt{T}}, \qquad d_2 = d_1 - \sigma \sqrt{T}, where N(\cdot) is the standard normal distribution function. The formula rests on assumptions:
- the asset’s log price moves continuously, with normally distributed changes and a volatility \sigma that never changes;
- the interest rate and the dividend yield are constant;
- investors can trade the asset and the bond at any moment, in any amount, without costs, and can borrow and short-sell freely.
Under these assumptions the option is redundant: continuous trading in the asset and the bond replicates it exactly. Of the formula’s inputs, the volatility \sigma is the one that cannot be read from the market; for an index, the dividend yield q has to be estimated as well. The Black-Scholes Model derives the formula and its hedge.
The formula has a property that matters for learning. Doubling both the stock price and the strike doubles the call price: the price is homogeneous of degree one in S and K. Dividing by the strike, \frac{C}{K} = f\!\left(\frac{S}{K}, T\right), \tag{3} for given r, q and \sigma. A model that learns prices therefore needs only the moneyness S/K and the maturity T as inputs, not the level of the stock price. Figure 2 uses the inverse, K/S, and the notebook’s network takes its logarithm, \ln(K/S), as an input, so that higher values mean higher strikes. Hutchinson et al. (1994) use exactly this reduction.
How the formula fails: implied volatility and the smile
Given a market price, the volatility that makes (2) match it is the option’s implied volatility. If the Black-Scholes model were right, every option on the same stock would have the same implied volatility, the one true \sigma. They do not.
A call is out of the money when its strike is above the current price, and a put when its strike is below it; out-of-the-money options trade more than the others. In theory, put-call parity gives a put and a call with the same strike and maturity the same implied volatility, so Figure 2 uses puts for low strikes and calls for high strikes. In the data the two differ slightly, and the small jump at K/S = 1 is where the figure switches from one to the other.
Figure 2 shows the pattern for options on the S&P 500 index. Implied volatility falls as the strike rises, until somewhat above the index level: puts that pay off in a crash are priced as if volatility were much higher than for options near the money. For index options the pattern is mostly a downward slope, often called a skew; at short maturities it turns up again for high strikes, into a lopsided smile. The skew reflects the fact that index returns have fatter left tails than the normal distribution assumes and that investors pay a premium for crash protection.
Each assumption of the model fails in practice. Prices do not always move continuously: on October 19, 1987, the S&P 500 fell by about 20% in a single day, a move a normal distribution with any reasonable volatility makes essentially impossible. Volatility is not constant: the VIX, which measures the volatility implied by index options, moves from day to day, and it rose from about 15 in mid-February 2025 to 52 on April 8, in the sell-off that followed the announcement of new tariffs. And trading is not free or continuous, so a hedge can be adjusted only from time to time, at a cost. Without these assumptions the option is no longer redundant: the hedge leaves risk, and the option’s price includes a premium for bearing it. Traders still use the formula, but as a convention for quoting prices: an implied volatility is easier to compare across strikes, maturities and days than a price, and the formula turns one into the other.
The skew is a precise statement of how the Black-Scholes model fails. A single \sigma cannot price all strikes at once. This is what makes the problem interesting for a flexible model: the shape is systematic and changes over time, but it is not given by any simple formula.
Learning prices from data
Hutchinson et al. (1994) ask whether a network can learn an option pricing formula from prices alone. They first train networks on prices generated by the Black-Scholes formula and find that the networks recover it. They then train on daily prices of call options on S&P 500 futures from 1987 to 1991, using (3): the inputs are moneyness and maturity and the output is the price divided by the strike. Each network is trained on six months of prices and tested on the next six. They judge the networks mainly by how well a hedge built from them, a position in the underlying futures adjusted every day to offset the option’s price changes, replicates the option, and report that “in many cases the network pricing formula outperforms the Black-Scholes model,” where the benchmark uses a volatility estimated from past returns.
There are two ways to set up the learning problem today.
- Learn prices, as Hutchinson, Lo and Poggio do. The output is C/K and the inputs are moneyness, maturity, and whatever describes the state of the market.
- Learn implied volatilities. The output is the implied volatility, and prices follow from (2). Implied volatilities vary much less across strikes and maturities than prices do, which makes them easier to learn, and they are the language traders quote in.
Either way, a market-wide measure of volatility such as the VIX is a natural input: when the whole market is nervous, every implied volatility is higher.
What can go wrong
The comparison has to be fair. Black-Scholes with each option’s own implied volatility prices every option perfectly, by construction, so it cannot be the benchmark. Black-Scholes with one volatility for all options cannot fit the skew, so a network that can will beat it almost by construction. The informative test is out of sample in time: train on past days, and test on later days the network has not seen.
Prices must be free of arbitrage. Call prices must fall as the strike rises, and fall by less and less as it rises further: they must be convex in the strike. If they are not, some portfolio of calls costs nothing, or even pays you today, and can never lose money later, and no market lets that last. A network fitted freely to noisy prices can produce curves that violate these conditions. A network with ReLU units is a straight line between kinks. If it learns prices, a kink where the price’s slope in the strike falls makes the price concave there; if it learns implied volatilities, as in the notebook, a kink where the volatility’s slope falls does the same to the call price. Either way, a butterfly with strikes close enough around such a kink has a negative price. These are the network’s prices, not the market’s, but a trader who quoted or hedged with them could be arbitraged against. Constraints on the network’s shape, or a penalty on violations in the loss, can rule such prices out; a smooth activation removes the kinks, which helps, but does not by itself guarantee convex prices.
A network extrapolates badly. A network learns the relation only in the region its data cover; beyond it, a network with ReLU units continues along straight lines that nothing in the data ties to the true prices. Far out-of-the-money strikes, long maturities, and market states unlike the training period, such as a volatility spike, are where its predictions are least reliable.
The data need care. Use the midpoint of the bid and ask, drop quotes with a zero bid or no recent trade, and know the contract: options on the S&P 500 index (SPX) are European and settle in cash, while options on the SPY exchange-traded fund are American and the fund pays dividends.
Practice Problems
These problems give you a chance to practice the concepts introduced in this chapter. Try to solve each one on your own before expanding the solution.
Problem 1 (Using Homogeneity) A call with strike 100 on a stock trading at 105 is worth 8.20. Another call on a different stock with the same volatility, dividend yield, interest rate and maturity has strike 2,000, and that stock trades at 2,100. What is the second call worth, and why do Hutchinson et al. (1994) use this property?
Solution
Both calls have moneyness S/K = 1.05 and the same maturity, so by (3) they have the same price per unit of strike, C/K = 8.20/100 = 0.082. The second call is worth 0.082 \times 2{,}000 = 164. Homogeneity lets a model learn one function of moneyness and maturity instead of a function of the stock price and the strike separately, which needs far fewer data and lets prices observed at one index level inform prices at another.Problem 2 (Reading Implied Volatilities) On the same day, three-month puts on the S&P 500 with strikes 10% below the index have an implied volatility of 24%, and three-month calls with strikes at the index level have 15%. Select all statements that apply.
- The market prices the out-of-the-money puts as if volatility were higher than for at-the-money options.
- The Black-Scholes model with one volatility cannot price both options correctly.
- The difference proves that the puts are overpriced and should be sold.
- A model of implied volatility that uses moneyness as an input can capture this difference.
Solution
The answers are (a), (b) and (d). Different implied volatilities at different strikes are exactly the skew of Figure 2, which a single \sigma cannot reproduce and a model with moneyness as an input can. Statement (c) does not follow: high put prices reflect fat left tails and the premium investors pay for crash protection, and selling them earns that premium only by bearing the crash risk.Problem 3 (A Network That Violates No-Arbitrage) A network trained on call prices produces, for one maturity, prices of 10.0 at strike 95, 6.0 at strike 100 and 1.5 at strike 105. Show that these prices allow an arbitrage, and describe the trade.