Mind the gap
A game isomorphic to the sealed-bid market making problem. Three levels, two symmetries: the hard level is the medium one in a moving frame, and the medium level is the easy one after a skew and a slower clock.
← → move the gap (skew) · ↑ narrow ↓ widen · space pause. Click the board first to give it the keyboard.
The isomorphism
The two symmetries
On the medium level the optimal gap is the easy level's optimal gap at carry M(q) a, shifted toward the sellers by δ = (w/2) log(q/(1−q)). Both policies are solved independently and the deviation tile reports the difference. A flat book still skews: the dashed gap is off centre before anything has been caught.
On the hard level the fair value is a martingale, reflected at the edges of the board, and the bar is in absolute price, so the market drifts away from the quotes. Quoting relative to the fair value recovers the medium level.
The mark-to-market term Σ x·dF has zero mean and changes no decision. A dealer who dislikes its variance pays λσ2x2/2 per unit time for it, and that is the back pain: the quadratic carrying cost is the price risk.
Model: market width w = 1, adverse selection ε = 0.25, inventory
capped at ±6, mean inter-arrival one second. The default carry lies within the theorem's
interior region on this lattice. The benchmark policy is policy iteration from a
flat cold start (fourcorners_core.js); the game logic is game_core.js.
Companion to On a Simple Relationship Between Order Imbalance, Skew and
Width in Over-The-Counter Trading.