Machine learning fits patterns from data to support predictions or decisions. In finance, a model can estimate a return, approximate an expensive pricing engine, organize risk exposures, or choose a sequence of hedge trades. Those are different tasks with different targets, evidence requirements, and failure modes.
The central question is whether the learned rule improves the intended decision on genuinely new information, after costs and constraints. A small training error is only the beginning.
These notes expand the supplied lecture outline. Numbered reference fragments without a bibliography are omitted. Reported findings about 10,000 noisy prices, VIX improvements above 60%, and stress-period hedging are identified as lecture claims unless supported by a specified dataset and evaluation. No new neural-network training or hedging backtest is claimed here.
Learning goals
- Distinguish supervised, unsupervised, and reinforcement learning.
- Design training, validation, and test samples around financial information timing.
- Explain neural pricing surrogates and the limits of synthetic-data experiments.
- Evaluate volatility-surface predictors without leakage or ambiguous metrics.
- Formulate a cost-aware multi-period hedge and distinguish DQN from continuous control.
- Interpret tail-risk objectives and research results without assuming universal superiority.
1. Machine learning and statistics overlap
A familiar statistical workflow starts with a hypothesis, designs data collection, estimates a model, and tests restrictions. A familiar machine-learning workflow begins with a prediction task, uses flexible models, and selects them by performance on held-out data.
This contrast is useful but not a strict boundary. Statistics also includes exploratory and predictive methods. Machine learning also requires human hypotheses about targets, features, sampling, loss functions, and deployment. Regression can be both a statistical model and a machine-learning baseline.
More computing power, larger accessible datasets, cheaper storage, and improved optimization have made flexible learning practical. They do not make financial samples independent, eliminate regime changes, or make the number of rows equal the amount of independent information.
| Task | Main question | Suitable evidence |
|---|---|---|
| Inference | What relationship or effect is supported? | Identification assumptions and uncertainty analysis |
| Prediction | What will an unseen target be? | Held-out forecast accuracy and calibration |
| Decision or control | Which action improves an objective? | Feasible policies, costs, risk, and comparative outcomes |
| Pricing approximation | Can an expensive valuation function be reproduced cheaply? | Error against the intended engine, including relevant sensitivities |
High prediction accuracy does not establish causality. Accurate price approximation does not establish an economically profitable trading strategy.
2. Three learning frameworks
Unsupervised learning
The data have no designated response label. Clustering can group customers, assets, or trading patterns; PCA finds directions of high variance rather than clusters. Neither proves that the resulting categories are natural economic entities.
For customer segmentation, scaling transaction count versus dollar amount can change groups. For asset clustering, currencies, overlapping exposures, sampling periods, and distance definitions affect the result. Validate stability and business meaning, not just a favorable clustering score.
Supervised learning
Given examples (xᵢ,yᵢ), estimate a function ŷ=f_θ(x). Regression predicts numerical targets such as price or future variance. Classification predicts classes or probabilities, such as whether a return crosses a threshold.
A basic empirical objective is:
min_θ (1/N)Σᵢℓ(f_θ(xᵢ),yᵢ)+λΩ(θ),
where ℓ is the task loss and Ω penalizes complexity. Squared loss targets a conditional mean under suitable assumptions; classification probability models often use log loss. The target, loss, and sampling scheme determine what “good” means.
Reinforcement learning
An agent observes a state, chooses an action, receives an outcome or reward, and moves to a new state. A policy aₜ=π(sₜ) seeks a specified cumulative objective. In hedging, today’s action affects inventory, cash, future transaction costs, and feasible later actions.
An RL formulation does not guarantee the learned policy is optimal in the real market. The simulator, action constraints, training process, and reward determine what it actually learns.
3. Training, validation, and test data
A 60%/20%/20% split is an illustrative allocation, not a universal rule. Training fits parameters; validation chooses architecture, hyperparameters, features, and stopping rules; an untouched test set evaluates the selected workflow. Repeatedly changing the model after viewing test results turns that test set into another validation set.
For 1,000 time-ordered observations, one simple design uses the first 600 for training, the next 200 for validation, and the last 200 for testing. Rolling or expanding validation often provides a more useful picture across different periods. The effective boundaries must also respect when labels become available.
Financial leakage can be subtle
- Fit scaling, imputation, feature selection, PCA, and clustering only on training data within each fold.
- A feature observed at the close cannot support a trade assumed executed before that close.
- A ten-day future-return label is not available the next morning. Training labels near a forecast boundary may need to be excluded until fully observed.
- Option quotes from the same date or underlying can be highly dependent. Randomly splitting rows can put almost identical market states in both training and test sets.
- Overlapping labels, revised economic data, survivorship-biased universes, and corporate-action errors can exaggerate performance.
Time-based gaps, grouping, and purging should match the target and information overlap, not be applied as unexplained ritual. The scikit-learn cross-validation guide discusses why ordinary independent-sample splitting can mislead on time series and why preprocessing belongs inside training folds.
4. Neural networks: flexible functions, learned numerically
A feed-forward layer computes h^(l+1)=a(W_lh^l+b_l). Input features pass through hidden layers and nonlinear activation functions before an output layer produces the prediction. Sigmoid, tanh, and ReLU are possible activations; architecture depends on the task.
Without nonlinear activations, a composition of affine layers is still one affine map. Nonlinearity creates flexibility, but also increases the need for regularization, appropriate data coverage, and validation. Training usually uses gradients and iterative numerical optimization; nonconvex training does not promise a globally best solution.
Normalization, sensible features, early stopping, regularization, and uncertainty monitoring matter. A large network is not automatically better than linear regression, splines, or a tree-based baseline on a limited financial dataset.
5. Learning a Black–Scholes pricing function
A synthetic experiment can generate option labels from a known model:
yᵢ=C_BS(Sᵢ,Kᵢ,τᵢ,rᵢ,σᵢ)+εᵢ.
The network fits a map from pricing inputs to the option price. If noise has zero conditional mean and the sample and loss are appropriate, E[y | inputs]=C_BS(inputs). Squared-loss learning can then approximate the underlying function rather than fit every noise realization. Finite data, misspecification, correlated noise, or biased labels can prevent that result.
The supplied lecture describes 10,000 noisy synthetic prices. That is an experiment size and setup, not proof that a network removes arbitrary market noise. The foundational Hutchinson–Lo–Poggio learning-networks paper studies recovery of simulated Black–Scholes prices and out-of-sample pricing and hedging, as well as an empirical futures-option application.
Make the experiment informative
Include the parameters that actually vary. A network trained only at one σ does not learn a universal pricing map across volatility. Normalize inputs consistently, and consider the no-dividend homogeneity relation C(aS,aK,τ,r,σ)=aC(S,K,τ,r,σ). Predicting C/K from S/K and other relevant inputs can encode that structure when K>0.
Evaluate on independent synthetic states and stressed regions: short maturity, deep moneyness, low volatility, and domain boundaries. Compare against the exact formula, including worst-region errors rather than only average error.
Training on Black–Scholes labels teaches the label-generating model. It does not establish that Black–Scholes is the correct market model or that its assumptions have been discovered as laws of finance.
Price accuracy is not Greek accuracy
Suppose a surrogate is Ĉ(S)=C(S)+0.01 sin(100S) in normalized teaching units. Its price error never exceeds 0.01, yet its delta error is cos(100S) and can reach one in magnitude. Small value errors can hide large derivative errors.
Validate delta, gamma, and other required sensitivities separately. Check bounds, payoff limits, monotonicity and convexity where applicable, and relationships such as European put–call parity. A neural architecture does not enforce these automatically.
6. Exotic-option surrogates: move computation offline
An expensive engine can generate labels offline across a parameter domain. A trained surrogate then approximates its prices quickly during calibration, quoting, or scenario analysis. Barrier options may require current spot, barrier, expiry, volatility or model parameters, and relevant path state such as whether a barrier has already been crossed.
The online evaluation can be much faster than fresh Monte Carlo, but “instantaneous pricing” is an implementation-dependent performance claim. Training-data generation, model maintenance, and validation still cost time. The surrogate inherits the engine’s assumptions and label errors, plus its own approximation error.
Monte Carlo labels have sampling uncertainty. Use sufficient paths or appropriate variance reduction, record label standard errors, and compare surrogate error with that noise floor. A noisy training set does not justify trusting the model outside the supported parameter domain.
For live use, define domain checks, error tolerances, and fallback valuation. Test around discontinuities and contract transitions, and distinguish continuously monitored barriers from discrete observations. A fast approximation to the wrong contract is not useful accuracy.
7. Predicting implied-volatility surfaces and using VIX
A surface model might predict Δσ_imp,t+1(k,τ) using current surface features, returns, maturity, and a volatility-regime indicator. The target must define how moneyness and maturity are matched across dates: the same contract ages, while a constant-maturity surface is an interpolated object.
Delta can be a moneyness coordinate, but it is itself model-dependent and can use implied volatility. Check that computing a feature has not already used the target quote. A same-day reconstruction problem and a next-day forecast are different evaluations.
Cboe’s VIX methodology describes a measure of 30-day expected volatility derived from SPX option prices. VIX is therefore a contemporaneous option-market feature, not an independent external measurement of physical risk. It may be a useful predictor if its timestamp is available at the forecast origin; using a later VIX observation leaks information.
Interpreting “over 60% improvement”
The outline reports a greater-than-60% accuracy improvement after adding VIX. Without the dataset, horizon, baseline, metric, and split, this remains a reported lecture result rather than a verified general effect or proof of a particular regime mechanism.
For example, MSE falling from 25 to 10 is a 60% MSE reduction. RMSE falls from 5 to approximately 3.162, a reduction of only 36.75%. A percentage claim is incomplete without the loss definition and denominator.
Compare a surface-persistence baseline, a simple VIX-augmented regression, and the neural model on the same dates. Measure performance by regime and include surface consistency, sparse strikes, bid–ask uncertainty, and reconstruction error. Nonlinear models can exploit regimes, but a gain from one feature does not establish why it worked.
8. Hedging as a sequential control problem
Classical Greeks are local sensitivities, but conventional delta hedging is already a dynamic multi-period strategy: positions are repeatedly adjusted. The meaningful comparison is not “single-step Greeks versus forward-looking ML,” but different policies under the same market, cost, and risk assumptions.
A hedging state might include time to expiry, stock price, volatility features, derivative state, current hedge inventory, and cash. Omitting inventory makes turnover-dependent decisions harder to model correctly. Path-dependent contracts may need additional state or memory, and a simplified state may not truly be Markov.
An action can specify the new hedge holding or the trade increment. Costs can include spread, commissions, market impact, borrowing, and margin. Actions must obey position, liquidity, and financing limits; a simulator should not execute a large order at an unlimited mid-price.
A self-financing PnL ledger
For a short claim paying H at date N, initial premium x₀, zero interest for this simplified example, and hₜ shares held from t to t+1:
PnL=x₀+Σₜ₌₀ᴺ⁻¹hₜ(Sₜ₊₁−Sₜ)−Σₜ₌₀ᴺcostₜ−H.
The cost sum includes opening and final liquidation; define h₋₁=0 and h_N=0 if positions are closed. For proportional costs, costₜ=κSₜ abs(hₜ−hₜ₋₁). Nonzero rates require an appropriate cash account or consistently discounted ledger.
This equation makes the trade-off explicit: tighter tracking can require more trading, while less trading can increase residual payoff risk. A learned policy must improve the chosen trade-off, not simply omit costs from its PnL.
9. A two-step trading-cost example
Take stock prices 100→102→101, a short call with K=100 paying H=1, initial premium x₀=1.50, and transaction rate κ=0.001 per traded stock value. These numbers illustrate accounting, not option fair value or a simulated performance result.
Policy A holds 0.5 shares, then 0.55 shares, and liquidates at the end:
- Stock gains: 0.5×2+0.55×(−1)=0.45.
- Costs: 0.001×[100×0.5+102×0.05+101×0.55]=0.11065.
- Net PnL: 1.50+0.45−0.11065−1=0.83935.
Policy B holds 0.5 shares throughout, then liquidates:
- Stock gains: 0.5×2+0.5×(−1)=0.5.
- Costs: 0.001×[100×0.5+101×0.5]=0.1005.
- Net PnL: 1.50+0.5−0.1005−1=0.8995.
Policy B is better on this one path. It need not have lower risk or better expected performance across other paths. Optimizing requires a distribution of scenarios and an explicit objective, followed by evaluation on new scenarios.
10. Q-learning, DQN, and continuous actions
For an expected discounted-reward objective, a state-action value is:
Q^π(s,a)=E^π[Σₖ≥0γᵏrₜ₊ₖ | sₜ=s,aₜ=a].
Under the appropriate Markov decision formulation, the optimal value satisfies the Bellman relationship Q(s,a)=E[r+γ max_a′ Q(s′,a′)]**. In finite-horizon hedging, include remaining time and terminal liability; the algorithmic discount γ must match the formulated objective rather than silently introducing a financial preference.
Deep Q-learning uses a neural approximation to Q and can handle high-dimensional or continuous states. Standard DQN generally chooses among a finite set of actions. A continuous hedge-size control requires discretizing positions or using a suitable method such as actor–critic, policy gradients, or another continuous-action optimizer. Replacing a table with a neural network does not by itself solve the maximization over arbitrary continuous trades.
The original DQN research is a landmark in learning from high-dimensional observations, not proof that a vanilla DQN directly handles every continuous financial action space. Different deep-hedging methods can also optimize policy networks directly through a simulated PnL objective without using a DQN Bellman update.
11. Tail-risk objectives need careful design
Define loss L=−PnL. Possible objectives include expected loss, mean–variance trade-offs, an entropic risk measure, or expected shortfall at a specified confidence. VaR is a loss quantile; it is not the worst possible loss and can be difficult to optimize reliably.
For integrable losses, a useful expected-shortfall formulation is:
ES_α(L)=min_η{η+[1/(1−α)]E[(L−η)⁺]}.
At α=0.95 this averages the worst 5% loss fraction, with the correct handling of probability mass at the quantile. Estimating that tail requires enough relevant scenarios; a small average error does not establish a stable 95% tail estimate.
A terminal CVaR objective is not automatically an ordinary sum of one-step rewards compatible with standard Bellman recursion. Static tail objectives can be time-inconsistent when reoptimized later. A method may need augmented state, distributional information, a dynamically consistent risk construction, or direct optimization of whole-path terminal loss.
Even when ES is convex in losses, composing it with a neural policy and nonlinear market simulator does not guarantee a convex parameter-optimization problem. Algorithm choice, convergence, and tail validation remain important.
12. What deep-hedging research establishes
Bühler, Gonon, Teichmann, and Wood’s Deep Hedging develops a framework incorporating frictions such as costs, impact, liquidity, and limits. It supports studying learned hedges under realistic objectives rather than assuming cost-free continuous replication.
The supplied lecture reports comparable vanilla hedging with lower transaction costs and better exotic or stressed-period performance. Those claims require a specified model, baseline, parameter training, test dates, risk criterion, and cost treatment before they can be assessed. They are not guarantees that RL dominates delta hedging or remains robust through every crisis.
Public JPMorganChase research discussion documents work on deep hedging and reinforcement learning. Research activity does not by itself establish the production deployment, breadth, or current performance of a particular automated portfolio-hedging system.
A fair benchmark set
Compare a learned policy against frictionless-model delta hedging implemented at the same discrete dates, less-frequent hedging, transaction-cost-aware no-trade bands, and suitable simpler policies. Give all methods the same information, initial capital, constraints, execution assumptions, and test paths.
Assess the joint outcome: terminal risk, tail loss, average cost, turnover, inventory, drawdowns, margin needs, and failure behavior. Include a policy that merely trades less; otherwise a claimed cost reduction can hide a large unreported risk increase.
13. Simulation, regime shifts, and deployment
An RL policy trained in a simulator can exploit unrealistic fill rules, price-update order, or terminal bookkeeping. It can also depend on a volatility regime or correlation structure absent from later data. Stress jump sizes, volatility shifts, spread widening, partial fills, delayed observations, and parameter uncertainty.
Use independent evaluation paths and multiple training seeds. If market histories are reused to generate many paths, the resulting examples are not automatically independent evidence. Calibrate simulation inputs without the held-out crisis period if that period is supposed to be an out-of-sample stress test.
Forecasting real-world P&L and risk-neutral pricing use different probability measures and objectives. A risk-neutral pricing simulator is not automatically the appropriate distribution for optimizing real-world hedging risk. State the choice and its implications.
Before automated use, define feasible action bounds, information timing, monitoring metrics, fallback policies, and how retraining is evaluated. For a pricing surrogate, monitor domain and error; for a hedge policy, monitor actual inventories, costs, and residual losses. Fast inference is useful only if the decision remains valid.
14. A practical learning project
- Specify one task: price approximation, next-day surface prediction, or cost-aware hedging.
- Define the target, units, horizon, inputs, and exact information available at the decision time.
- Build a simple baseline and a leakage-resistant temporal or grouped split.
- Fit preprocessing and the model only within the training process, tuning on validation data.
- Check task-specific constraints: pricing consistency, forecast calibration, or self-financing hedge accounting.
- Evaluate the selected method on untouched data with uncertainty and regime-specific results.
- Include costs, capacity, and model failures before calling a statistical improvement an economic improvement.
15. Practice questions
- Is PCA supervised learning? Is every unsupervised method a clustering method?
- Why can random option-row splits exaggerate out-of-sample performance?
- If a network learns noisy Black–Scholes labels well, has it established that actual market prices follow Black–Scholes?
- Does a price approximation error below 0.01 automatically imply a small delta error?
- MSE falls from 25 to 10. What are the percentage reductions in MSE and RMSE?
- Does standard DQN automatically choose arbitrary continuous hedge notionals?
- Why is terminal expected shortfall not automatically an additive one-step reward?
- Does lower transaction cost alone establish a better hedge?
Answers
- PCA is unsupervised. No: dimension reduction and clustering are different tasks.
- Nearly identical contracts, dates, and market states can appear on both sides of the split, while future information or shared quote structure leaks across it.
- No. It shows approximation ability under that labeling experiment, not validity of the label model for real markets.
- No. The derivative of a small-amplitude oscillating error can be large.
- 60% MSE reduction, but approximately 36.75% RMSE reduction.
- No. Standard DQN typically uses discrete actions; continuous control needs another construction or explicit discretization.
- It depends on the distribution of full-path terminal losses and their tail, requiring a method consistent with that objective.
- No. Compare residual risk, tail losses, constraints, and costs together on matched out-of-sample scenarios.
Further reading
- Hutchinson, Lo, and Poggio: Learning networks for derivative pricing and hedging.
- Bühler and coauthors: Deep Hedging.
- Mnih and coauthors: Human-level control through deep reinforcement learning.
- scikit-learn: Cross-validation and temporal data.
Machine learning contributes flexible approximations and decision rules. Reliable financial applications still depend on well-defined targets, sound economics, honest validation, and risk controls that survive new data.