The math under agentic AI
Patterns tell you what to build. These models tell you how well it will work: how reliable a chain is, whether an eval result is real, when voting helps and when an agent should stop and ask.
Each page has the same parts: a one-line takeaway, the intuition, the math with derivations, a calculator or simulation, a worked agent example, where it breaks, and a spec for coding agents.
Reliability
Will the agent finish, and how fast? Models for chains, loops and capacity.
- M01Compounding errorWhat end-to-end success should a multi-step agent expect?Live
- M02Redundancy and retriesHow much do k retries or verifiers raise success?Live
- M03Markov chains for agent loopsHow many steps will a looping agent take, and how often does it get stuck?Live
- M04Little's Law and queueingHow many agents, tool slots or GPUs keep latency acceptable?Live
Evaluation
Can you trust the numbers your evals report? Models for consistency, significance and judges.
- M05pass@k vs pass^kIs the agent capable, or consistently reliable?Live
- M06Confidence intervals (Wilson and bootstrap)Is version B really better than version A?Live
- M07Bradley–Terry and EloHow do pairwise judgments become a ranking?Live
- M08Cohen's kappaDoes my LLM judge agree with humans beyond chance?Live
- M09Item Response TheoryWhich test cases are hard, and which actually discriminate?Live
Multi-model interactions
How should several models vote, cascade or route work between them?
- M10Condorcet jury theorem and votingWhen does majority voting across models help?Live
- M11Model cascadesWhen should a cheap model escalate to an expensive one?Live
- M12Multi-armed bandits for routingWhich model or prompt should get the next request?Live
- M13Game theory for debate and criticsWhen do debating or critiquing agents converge on the truth?Live
Planning and uncertainty
When should the agent act, search further or abstain?