L01This notebook produces no figures
L01 — How many retail accounts close at a loss, and how long it takes
Lab 1 — Who really loses, and how much
Lab5 code cells · run on 2026-08-27
Every figure and every number in “La matematica di chi perde” comes from code you can reopen, re-run and challenge. Here are the twenty-one labs and the eight calculators, numbered exactly as they are in the book.
A lab answers a question from the book with data and code; a calculator is a tool you re-run by changing its starting numbers.
29 runnable notebooks, 26 with the figure their code produces
L01This notebook produces no figures
Lab 1 — Who really loses, and how much
Lab5 code cells · run on 2026-08-27
C01
Calculator 1 — How much it takes to recover from a loss
Calculator6 code cells · run on 2026-08-27
C02
Calculator 2 — Costs, on your own numbers
Calculator5 code cells · run on 2026-08-27
L02
Lab 2 — Chance dressed up as skill
Lab5 code cells · run on 2026-08-27
L03
Lab 3 — The graveyard of tokens
Lab6 code cells · run on 2026-08-27
L04
Lab 4 — The measured cost of your reflexes
Lab6 code cells · run on 2026-08-27
L05
Lab 5 — Looking is not measuring
Lab6 code cells · run on 2026-08-27
L06
Lab 6 — The lying average
Lab6 code cells · run on 2026-08-27
C03
Calculator 3 — Risk, measured in time
Calculator6 code cells · run on 2026-08-27
L07
Lab 7 — When diversification vanishes
Lab5 code cells · run on 2026-08-27
L08
Lab 8 — How many things you're really buying
Lab6 code cells · run on 2026-08-27
L09
Lab 9 — The market isn't always the same market
Lab7 code cells · run on 2026-08-27
L10
Lab 10 — More parameters, less knowledge
Lab7 code cells · run on 2026-08-27
L11
Lab 11 — How many observations you really need
Lab7 code cells · run on 2026-08-27
L12
Lab 12 — An honest backtest, line by line
Lab6 code cells · run on 2026-08-27
L13
Lab 13 — How a backtest lies: the data
Lab5 code cells · run on 2026-08-27
L14
Lab 14 — How a backtest lies: the method
Lab7 code cells · run on 2026-08-27
L15
Lab 15 — Optimizing is fooling yourself
Lab6 code cells · run on 2026-08-27
L16
Lab 16 — Technical analysis, measured
Lab8 code cells · run on 2026-08-27
L17
Lab 17 — The two coordinates of a move
Lab8 code cells · run on 2026-08-27
L18
Lab 18 — A thousand futures instead of one
Lab6 code cells · run on 2026-08-27
C04
Calculator 4 — How much to risk
Calculator7 code cells · run on 2026-08-27
C05
Calculator 5 — The risk of keeping it all in one place
Calculator6 code cells · run on 2026-08-27
C06
Calculator 6 — Tax friction
Calculator5 code cells · run on 2026-08-27
L19
Lab 19 — The five tests for your tool
Lab7 code cells · run on 2026-08-27
L20This notebook produces no figures
Lab 20 — The basics you actually need
Lab7 code cells · run on 2026-08-27
L21
Lab 21 — Find the lookahead
Lab8 code cells · run on 2026-08-27
C07
Calculator 7 — The Criterion, executable
Calculator6 code cells · run on 2026-08-27
C08This notebook produces no figures
Calculator 8 — Your plan, written down
Calculator8 code cells · run on 2026-08-27