Quant Memo
Advanced

Optimal Execution

The trader's problem of converting a decision into fills at least cost, implementation shortfall as the objective, the impact-versus-timing-risk dilemma, and the extensions (adaptive, transient-impact, multi-asset) beyond Almgren-Chriss.

Prerequisites: Expectation, Variance & Moments, Brownian Motion

A portfolio manager decides to buy a million shares; a trader has to actually acquire them without giving the whole edge back to the market. Optimal execution is the discipline of that second step, turning a target position into fills at minimum cost, where "cost" is measured against the price that prevailed when the decision was made. It is where alpha goes to die if done badly, and it is a genuinely hard stochastic-control problem. The Almgren-Chriss Model is its canonical solved case; this concept frames the objective and the frontier of extensions.

Implementation shortfall: the right objective

Perold (1988) defined the correct benchmark. The implementation shortfall (IS) is the difference between the return of a hypothetical "paper" portfolio that transacts costlessly at the decision price (or arrival price) S0S_0, and the return actually realized after all execution frictions:

IS=knk(S~kS0)execution cost on filled shares  +  (Xknk)(SendS0)opportunity cost on unfilled shares.\text{IS} = \underbrace{\sum_k n_k (\tilde S_k - S_0)}_{\text{execution cost on filled shares}} \;+\; \underbrace{(X - \textstyle\sum_k n_k)\,(S_{\text{end}} - S_0)}_{\text{opportunity cost on unfilled shares}}.

The first term is what you paid above the arrival price on the shares you got (spread + impact + timing drift). The second is the opportunity cost, the alpha you missed on shares you failed to buy because you were too passive and the price ran away. IS is the honest scorecard precisely because it charges you for both trading too aggressively (impact) and trading too timidly (missed fills). Minimizing IS is the objective of every serious execution algorithm.

The trader's dilemma

Decompose the expected shortfall into its two irreducible parts:

E[IS]market impactgrows with speed  +  timing riskgrows with slowness.\mathbb{E}[\text{IS}] \approx \underbrace{\text{market impact}}_{\text{grows with speed}} \;+\; \underbrace{\text{timing risk}}_{\text{grows with slowness}}.

  • Trade fast: you crush the price with Market Impact but you finish before the price can wander, low variance, high impact.
  • Trade slow: you barely move the price but you are exposed to the random walk of StS_t for longer, low impact, high variance (and high opportunity cost if you have alpha decaying under you).

This is the trader's dilemma, and it is exactly the mean-variance tradeoff The Almgren-Chriss Model formalizes: minimize E[IS]+λVar[IS]\mathbb{E}[\text{IS}] + \lambda\operatorname{Var}[\text{IS}], trace the efficient frontier of execution, and pick the urgency λ\lambda that matches the position's risk and your alpha's half-life. Urgent, fast-decaying alpha demands aggressive execution; patient, stable positions can be worked slowly.

Beyond the static solution

The Almgren–Chriss trajectory is static, computed up front and executed regardless of what happens. Real optimal execution relaxes its assumptions:

  • Adaptive / dynamic-programming execution. Cast the problem as stochastic control with state (shares remaining, time, current price, signal) and solve the Hamilton–Jacobi–Bellman equation. The schedule then reacts: speed up if the price moves in your favor and you have edge, slow down if liquidity dries up. Almgren–Lorenz show adaptive strategies dominate static ones when there is information to react to.
  • Transient impact (Obizhaeva–Wang). Model impact as a decaying function of past trades rather than instantaneous. The optimal strategy then has a characteristic shape, a burst at the start and end with a slower middle, because impact from early trades has partly relaxed by the time later trades execute. This matches real order-book resilience far better than instantaneous impact and warns against naive front-loading.
  • Trading with alpha. If you have a short-term signal, the schedule should tilt: trade faster when the signal says the price will move against you, slower when it favors patience. Execution and alpha capture become one optimization.
  • Multi-asset / portfolio execution. Liquidating many names couples them through cross-impact (trading A moves B) and through the risk term (the covariance matrix, not just individual variances). The optimal portfolio liquidation hedges residual risk during the trade, not just at the end.
  • Concave impact. Replacing linear impact with the empirical The Square-Root Impact Law changes the optimal schedule and the cost estimate materially for large orders.

Worked example

A manager decides to buy 500,000 shares when the price (arrival) is $100.00. The trader works the order over the day. Fills average $100.18, and by the close 480,000 shares are bought; the remaining 20,000 are cancelled with the stock at $100.30.

  • Execution cost on filled shares: 480{,}000 \times (100.18 - 100.00) = 480{,}000 \times 0.18 = \86{,}400$.
  • Opportunity cost on the unfilled 20,000: 20{,}000 \times (100.30 - 100.00) = \6{,}000$.
  • Total implementation shortfall = \92{,}400,i.e., i.e. 92{,}400 / (500{,}000 \times 100) = 18.5$ bps of the intended notional.

Had the trader been more aggressive, filled shares would have cost more (higher impact) but the $6,000 opportunity cost would shrink toward zero; had they been less aggressive, impact would fall but opportunity cost would balloon as the stock kept rising. The 18.5 bps is one point on the frontier; the manager's job is to have chosen the urgency that minimizes expected total shortfall given the position's risk and the decaying edge.

Failure modes and caveats

  • Benchmark gaming. Optimizing to a price benchmark (arrival, VWAP) can be gamed and can distort behavior, an algo that "beats VWAP" by trading at the close may have huge opportunity cost that VWAP-tracking hides. IS is harder to game because it charges opportunity cost.
  • Ignoring opportunity cost. The most common real-world error is measuring only the cost of shares filled and ignoring the alpha lost on shares not filled, this makes passivity look free and systematically under-trades.
  • Selection and information leakage. Sending a predictable schedule (e.g., rigid VWAP) lets others detect and front-run you; randomization and hidden/dark liquidity mitigate leakage.
  • Parameter drift. Impact and volume forecasts are noisy and regime-dependent; a schedule optimized to stale parameters can be badly wrong. Adaptive execution partly hedges this.

In interviews

Define implementation shortfall precisely, arrival price benchmark, with both an execution-cost term on filled shares and an opportunity-cost term on unfilled shares, and explain why that dual charge is what makes it the right objective. State the trader's dilemma (impact grows with speed, timing risk grows with slowness) and connect it to the The Almgren-Chriss Model mean-variance frontier, with the urgency parameter set by the position's risk and the alpha's half-life. Strong candidates volunteer at least one extension beyond the static solution, adaptive/HJB execution, transient impact (Obizhaeva–Wang) giving a bucket-shaped schedule, or concave The Square-Root Impact Law impact, and explain why a static schedule leaks information and leaves value on the table.

Related concepts

Practice in interviews

Further reading

  • Perold (1988), The Implementation Shortfall: Paper Versus Reality
  • Almgren & Chriss (2000), Optimal Execution of Portfolio Transactions
  • Obizhaeva & Wang (2013), Optimal Trading Strategy and Supply/Demand Dynamics
ShareTwitterLinkedIn