Scenario

An interactive simulator that teaches the mathematics behind long/short equity hedge fund decisions — bet sizing, edge, hedging, risk, capacity, fees, and survival — with every symbol clickable for a full explanation.

A hedge-fund decision simulator · Long / Short Equity

The Long/Short Desk

Almost every decision a fund makes reduces to about fifteen formulas that pull against each other. Turn the dials, watch the math move, and see why the "obvious" call is usually the one that kills the fund.

Every coloured, underlined symbol — like , , or — is clickable. Tap it for a full explanation with a worked example. Start anywhere.

This is module 01 of five. The rest: Black–Scholes & the Greeks for option pricing, Deriving Black–Scholes for where that equation comes from and where it breaks, The Arbitrage Book for three strategies simulated to destruction, and Portfolio Construction for how much of your alpha was ever real. New here? Start with the course →

01 — Bet Sizing

How big to bet

You have an edge. How much of the fund do you put behind it? Bet too little and you leave growth on the table; bet too much and volatility compounds against you until you're going backwards. The gives the single leverage that maximises long-run compound .

= / ²      = f·μ ½·f²σ²
0.40
ceiling on growth
Full-Kelly
2.00×
you're at full Kelly
Your
8.0%
max is 8.0%/yr
50%
−20%: 80%
Compound growth vs. leverage — peaks at f*, hits zero at 2f*

The trap: the payoff is a parabola, not a ramp. Doubling your leverage past doesn't double your return — it takes it to zero while doubling your risk. And because investors redeem on losses, real funds run — giving up a little growth to make a fund-ending drawdown unlikely.

02 — Where The Edge Lives

Skill × how often you use it

You never know a stock's true alpha — you have a noisy score. Two numbers govern everything: how correlated your forecasts are with reality (the ), and how many independent bets you get to make (). The combines them.

·      = IC · σᵢ ·
0.71
solid, not stellar
Bets to reach IR 1.5
896
at this same skill
Grinold's alpha — what a "high-conviction" signal is actually worth:
Expected alpha on the name
2.25%
a 1.5σ "strong buy" is worth 225 bp — not 30%

Why concentration loses: raising means being smarter — hard. Raising just means making the same-quality bet more often — a process problem. Ten deep-dive names at IC 0.10 give IR ≈ 0.32; five hundred systematic names at IC 0.04 give IR ≈ 0.89. The diversified book wins, and people hate it.

03 — Sizing Across Positions

The optimiser fights your gut

Given expected returns and how assets move together, the weights maximise return per unit of risk. The inverse rewards low volatility and low correlation — so the lower-returning asset often gets the bigger weight.

= (1/) · ·
Weight — Asset A
24.2%
higher return
Weight — Asset B
25.9%
lower return, bigger bet
Cash / unused risk budget
49.9%

B has lower return but lower vol and modest correlation, so the optimiser leans on it. Push ρ toward 1 and watch it refuse to hold both.

04 — Hedging

Keep the alpha, shed the market

This is the whole reason "hedge fund" is a phrase. You like a stock, but you don't want to bet on the whole market coming with it. Short the index in proportion to the stock's and you strip out market risk while keeping your stock-specific edge — the .

= ·(σstockmkt)      = σstock·√(1−ρ²)
1.31
Index to short
−$13.1M
21.4%
alpha survives
Variance killed
49%
market risk removed

The dial that matters is ρ. Since you remove ρ² of the variance, a stock 90% correlated to the index lets you delete 81% of its risk with a single short. A stock at ρ = 0.3 barely hedges — there's little market risk to remove, so it's nearly a pure single-name bet whether you hedge or not.

05 — Risk Limits

The size of a bad day

Risk managers speak in and . VaR is the loss you won't exceed on 95% of days; ES is the average loss on the 5% of days you do. The catch: both assume a bell curve, and markets have — so the real number is worse.

= 1.645·σ      = 2.063·σ  (normal)
1-day 95%
$1.65M
1-day 95%
$2.06M
ES
$2.89M
Student-t, 5 df
Worst in a year (~est)
$3.1M
1-in-250 day

Why ES beat VaR after 2008: VaR tells you the edge of the cliff; it says nothing about how far you fall past it. Two books can share a VaR and have wildly different . And the normal-curve number is the optimistic one — under fat tails the same 95% shortfall is ~40% larger.

06 — Capacity

Your own success shrinks your edge

Buying moves the price against you. The says the cost of trading grows with the square root of how much of the day's volume you demand. So there's an optimal trade size — and past it, becomes the real boss fight of a growing fund.

c·σdaily·√(Q/)      net π = α·Q impact·Q
% of daily volume
11%
45 bp
Net profit
$9.3k
Optimal size
$5.6M
11% of ADV
Net profit vs. trade size — climbs, peaks at Q*, then impact overwhelms alpha

The invariant: at the optimal trade size, market impact always eats exactly two-thirds of your gross alpha — no matter the numbers. Grow the fund and every position must grow with it; impact scales like Q1.5, so net alpha per dollar decays. That ceiling, not your cleverness, is what caps a strategy's size.

07 — The Backtest Trap

A great backtest from pure noise

If a researcher tries enough strategies, one will look brilliant by luck alone. The expected best from worthless strategies grows with how many you tried — so the right question about any backtest is never "how good?" but Then you the survivor back toward zero.

E[max ] √(2·ln N) / √T
Best Sharpe expected from noise
1.66
this is the bar a real signal must clear
— deflate a lucky-looking alpha:
What you should actually believe
1.2%
prior 0 ± 2% · shrunk 80% toward zero

Deflated Sharpe: a 1.6 backtest over 5 years is exactly what 1,000 coin-flip strategies produce. When the research team is proud of a number, the number is often just a count of attempts wearing a disguise.

08 — Fees & Incentives

Whose money is it?

The classic takes 2% of assets and 20% of profits above the . That last clause turns the manager's pay into a call option on the fund — which means when the fund is underwater, the manager's incentive is to take more risk while the investor wants less.

The margin spiral ties it all together. A fund with $500M of assets on $100M of equity runs 5× levered. A 4% loss on assets wipes 20% of equity → leverage jumps to 6×. To get back to 5× you must sell $80M — into the very market that just moved against you, paying on the way out. This is how one bad quarter becomes a dead fund.

09 — Run The Fund

Play it out: five years, one decision

Now put it together. Pick your skill and how hard you press the pedal, then run the fund through 20 quarters with random markets, occasional where correlations spike, 2-and-20 fees, and — the killer — that fire when you're deepest underwater. The lesson lands fast: the fund that wins isn't the one with the highest return, it's the one that survives its worst drawdown.

How hard to press the pedal:
Final value of $1 (LP, net)
Worst
Fund status
Manager's take (fees)
Net-of-fees value of $1 invested · red band = investors redeem, fund closes

Try this: set your Sharpe to 1.5 and run 500 funds at Full Kelly, then at ¼ Kelly. Full Kelly posts a higher median — and closes far more often. Quarter-Kelly gives up a little upside to keep the survival rate high. Same skill, same edge; only the bet size changed. That trade-off is the job.

10 — Reality Check

Point the model at a real market

Everything so far came from random draws. Now pull actual price history off the internet — a crypto coin or a currency — measure what it really did (return, , ), then run the same fund model at four settings and watch where reality lands inside the simulated cone. Does the model that kills most funds also bracket what the market actually delivered?

Annualised return
load an asset
Annualised vol
Realised
excess over 0%
Worst
peak → trough
Overlay the simulated cone at:
Load an asset to plot its real price path; then compare to reveal the simulated 5–95% fund cone behind it.

Reading it right. The cone is what the model — 2-and-20 fees, a 5%-a-quarter , at a 25% drawdown — expects from a fund with this asset's skill. The bold line is what actually happened. Sit high in the cone and the market was kinder than the leverage; plunge through the floor band and the model's risk was optimistic. Crypto usually pierces the floor near full Kelly; a major currency barely leaves the centre. Data is live from the internet — CoinGecko (crypto) and the ECB via Frankfurter (FX) need no key; equities come from Alpha Vantage (weekly closes, full history) with a free key you paste once (stored locally, sent only to Alpha Vantage). Free-tier closes aren't split-adjusted, so clean splits are corrected automatically — index ETFs like SPY/QQQ are the safest read.