Lessons
324 lessons · advanced · page 5 of 14
- Computer Scienceadvanced
HyperLogLog: Counting Distinct Items in Kilobytes
Counting distinct items exactly needs memory proportional to the count. HyperLogLog answers the same question in a fixed twelve kilobytes, for cardinalities into the billions, by measuring an improbable event rather than storing anything. This lesson builds that idea from the leading-zeros intuition up.
8 steps·~12 min - Computer Scienceadvanced
Bloom Filters: Membership in a Bit Array
A Bloom filter answers set membership using a bit array and a handful of hash functions, with no items stored anywhere. This lesson builds it, derives the sizing formula that trades memory against false positives, explains exactly why deletion is impossible, and covers the variants that buy it back.
8 steps·~12 min - Businessadvanced
Where the Risk Moved
Central clearing was extended after the financial crisis because it removes counterparty risk from the network. It does not remove it from the system: it concentrates it in a small number of institutions that are now indispensable. This lesson assesses what was gained, what was created, and how to read any infrastructure change for the risk it relocates.
8 steps·~12 min - Businessadvanced
Settlement, Custody, and What Happens When It Fails
Settlement is one instant of exchange, and getting it right means never letting the two legs come apart. This lesson covers delivery versus payment, where securities actually live and who is in the chain, why settlement fails are routine rather than scandalous, and what shortening the cycle costs.
8 steps·~12 min - Businessadvanced
The Central Counterparty and Its Default Waterfall
A CCP takes the other side of every trade, which means one member's failure becomes its problem and therefore everyone's. This lesson covers how it survives that: the margin it collects, the ordered stack of resources it burns through in a default, and the deliberate design choice of putting its own capital ahead of the mutualised fund.
8 steps·~12 min - Businessadvanced
Measuring Execution Honestly
Execution costs are small numbers buried in large noise, so distinguishing a good desk from a lucky one takes more data than most institutions have. This lesson covers what transaction cost analysis can establish, the reversion test that detects information leakage, and what happens to any measure once people are paid on it.
8 steps·~12 min - Businessadvanced
Algorithms and Placement: How Each Slice Reaches the Market
A schedule says how much to trade and when. It says nothing about how each slice is sent, and that choice determines much of the realised cost. This lesson covers the standard algorithm families and what each one's benchmark actually rewards, then the placement decisions underneath: passive against aggressive, displayed against hidden, and which venue.
8 steps·~12 min - Businessadvanced
The Schedule Problem: Impact Against Timing Risk
Trading fast costs impact. Trading slowly exposes the order to drift. Neither can be minimised without worsening the other, so the schedule is an optimisation with a parameter that encodes urgency. This lesson builds that trade-off, derives the shape of the resulting trajectory, and identifies what the model cannot see.
8 steps·~12 min - Businessadvanced
Implementation Shortfall: What an Order Really Costs
The cost of a trade is not the commission, and it is not the spread. It is the gap between the return the decision would have produced on paper and the return the account actually got. This lesson builds that measure, decomposes it into four sources, and shows why the largest component is often the trade nobody made.
8 steps·~12 min - Businessadvanced
Position Sizing: The Arithmetic of Survival
Measuring risk and surviving it are different problems, and only the second is solved by a decision. This lesson covers the growth-optimal bet size, why practitioners deliberately use a fraction of it, the asymmetry that makes drawdowns so expensive to recover from, and why limits work as a control system rather than a prediction.
9 steps·~14 min - Businessadvanced
Margin, Leverage, and the Spiral
Leverage does not simply scale returns. It introduces a lender who can demand cash at the worst moment, which converts a paper loss into a forced sale. This lesson works through margin mechanics, shows why the liquidation price rather than the loss is what matters, and follows the feedback loop that makes market and funding liquidity reinforce each other.
8 steps·~12 min - Businessadvanced
When the Distribution Lies
Every risk number is a functional applied to an estimated distribution, so its errors are that distribution's errors. Returns have fat tails, volatility clusters, and correlations converge exactly when diversification is supposed to help. This lesson covers each failure, why they arrive together, and what stress testing does that no quantile can.
9 steps·~14 min - Businessadvanced
Value at Risk, and the Question It Refuses to Answer
Value at Risk compresses a whole loss distribution into one number, which is why it was adopted everywhere and why it misleads. This lesson builds it three ways, shows the arithmetic case where it says diversification increased risk, and covers the coherence axioms that explain the failure and the measure regulators moved to instead.
9 steps·~14 min - Businessadvanced
The Volatility Surface: Reading the Model's Own Errors
If the pricing model were right, implied volatility would be one number per underlying. It is not: it varies by strike and by maturity, in a persistent shape. This lesson treats that shape as data rather than as a defect, shows what it reveals about the market's distribution, and separates forecast from risk premium.
9 steps·~14 min - Businessadvanced
The Greeks: What a Hedged Position Is Still Exposed To
Delta-hedging removes the obvious risk and leaves the interesting ones. The greeks name each remaining exposure separately, which is what lets a trader hold some and neutralise others. This lesson covers what each one measures, why gamma and theta are two sides of one trade, and where the numbers stop behaving.
9 steps·~14 min - Businessadvanced
The Hedging Argument: Pricing Without Forecasting
The Black-Scholes contribution is usually remembered as a formula. It is really an argument: an option can be manufactured from the underlying and cash, so its price is the cost of manufacturing it. This lesson builds that replication argument, shows why the asset's expected return cancels out, and locates each assumption where it fails.
9 steps·~14 min - Businessadvanced
Market Design: Ticks, Venues, and the Speed Race
The order book is not a law of nature. Someone chose the tick size, the priority rule, and whether trading runs continuously or in batches, and each choice determines who profits. This lesson reads the latency arms race as a predictable consequence of one design decision rather than a moral failure, and covers what changes when the design does.
9 steps·~14 min - Businessadvanced
Price Discovery: How Information Reaches the Price
Nobody announces what an asset is worth, yet prices move toward it. The mechanism is order flow: trading is how private information becomes public price. This lesson builds Kyle's model of that process, separates the part of your impact that is permanent from the part that reverts, and explains why size costs more than depth alone predicts.
9 steps·~14 min - Businessadvanced
Why a Spread Exists at All
Competition should compress the bid-ask spread to nothing, and it does not. The reason is not fees or greed: a spread survives even when trading is free and the quoting participant expects zero profit. This lesson builds the adverse selection argument, then shows how to measure which part of a spread is information and which part is rent.
9 steps·~14 min - Computer Scienceadvanced
Sort or Search: Why Both Pipelines Survive
The two renderer architectures are not competing implementations of the same idea. One sorts fragments for a single viewpoint, the other searches for a hit along an arbitrary ray. Reading them that way explains which effects are cheap in each, why production renderers combine them, and what a hybrid actually buys.
9 steps·~14 min - Computer Scienceadvanced
Ray Tracing and the Cost of Asking Anywhere
Ray tracing takes the opposite loop: for each pixel, find the geometry it hits. That buys visibility queries from any point in any direction, which is what shadows and reflections need. It also costs a scene-wide data structure, and the quality of that structure decides whether the renderer is usable.
9 steps·~14 min - Computer Scienceadvanced
Rasterisation: Edge Functions and the Z-Buffer
Rasterisation walks the geometry and asks which pixels each triangle covers. Two ideas make that fast enough for real time: a coverage test that is three linear functions, and a depth buffer that resolves visibility without sorting anything. This lesson builds both and shows why the design maps onto parallel hardware.
9 steps·~14 min - Computer Scienceadvanced
What Undecidability Costs Real Tools
Rice's theorem closes every interesting question a type checker, linter or verifier wants to answer, yet those tools exist and work. They work by choosing which way to be wrong. This lesson covers the sound and unsound bargains, the provable approximation in pointer analysis, and the option of leaving Turing completeness behind on purpose.
9 steps·~14 min - Computer Scienceadvanced
The Halting Problem and the Shape of the Proof
Once memory stops being the constraint, a different kind of limit appears. No program can decide whether an arbitrary program halts, and the proof fits in eight lines. This lesson builds that argument, separates deciding from merely recognising, and shows how one impossibility result propagates to every other question worth asking.
9 steps·~14 min

