The Claude Quant PlaybookDownload ebookDownload ebook

Family 2 of 9 · 12 formulas · each in 3D

Probability

Chance, updating on evidence, expected value, variance and how two random things move together. Every trade is a bet with uncertain outcomes. Probability is the language for pricing that uncertainty.

Build a trading system with Claude.Download ebook

Showing all 12

  1. 01beginner

    Conditional probability

    Knowing that B happened shrinks the world to the cases where B is true. The conditional probability of A is the share of those cases where A happens too.

    Used by quant researcher: Measures how often a stock rises on days the market rises, or how often a signal works in a given regime, instead of averaging over all days.

    Full lesson
  2. 02intermediate

    Bayes' theorem

    Bayes' theorem turns the chance of the evidence given the hypothesis into the chance of the hypothesis given the evidence. It weighs how well the evidence fits against how rare the hypothesis was to begin with.

    Used by quant researcher: Judges how much to trust a backtest that passed, given how few of the ideas tried really work and how many lucky ones pass by chance.

    Full lesson
  3. 03intermediate

    Law of total probability

    Split the world into scenarios, find the chance of the event inside each one, and add them up weighted by how likely each scenario is. The result is the overall chance of the event.

    Used by risk manager: Builds a loss probability from regimes: calm, normal and stressed markets, each with its own chance of a large loss.

    Full lesson
  4. 04beginner

    Independence

    Two events are independent when knowing one tells you nothing about the other. Then the chance of both is just the product of their chances.

    Used by risk manager: Tests whether losses on two desks or two counterparties really are unrelated before multiplying their default chances together.

    Full lesson
  5. 05beginner

    Expected value

    The expected value is the average result you would get if you could repeat the same bet many times. Each outcome counts in proportion to how likely it is.

    Used by retail trader: Checks that a setup's wins, weighted by how often they come, beat its losses before trading it.

    Full lesson
  6. 06intermediate

    Linearity of expectation

    The expected value of a sum is the sum of the expected values. This holds whether or not the pieces are independent.

    Used by portfolio manager: Gets the expected return of a portfolio as the weighted sum of the assets' expected returns, with no need for correlations.

    Full lesson
  7. 07beginner

    Variance and standard deviation

    Variance measures how spread out the outcomes are around their average. Its square root, the standard deviation, is the typical size of a miss.

    Used by risk manager: Uses the standard deviation of daily P&L as the basic size of a desk's risk and sets limits on it.

    Full lesson
  8. 08intermediate

    Variance of a sum

    The risk of two positions together depends on how they move together. Standard deviations add like the sides of a triangle, with the angle between them set by the correlation.

    Used by risk manager: Combines the risk of two desks into firm-wide risk, which is less than the sum unless the desks are perfectly correlated.

    Full lesson
  9. 09intermediate

    Covariance

    Covariance measures whether two quantities tend to sit on the same side of their averages at the same time. Positive means they move together, negative means they move in opposite directions.

    Used by portfolio manager: Fills a covariance matrix of asset returns, the main input to portfolio risk and optimisation.

    Full lesson
  10. 10intermediate

    Correlation

    Correlation is covariance with the units taken out. It runs from −1 (perfectly opposite) through 0 (no straight-line link) to 1 (moving perfectly together).

    Used by portfolio manager: Looks for assets with low correlation to the existing book, because they cut risk the most.

    Full lesson
  11. 11beginner

    Law of large numbers

    Average enough independent trials and the average settles on the true mean. The typical distance from the truth shrinks like one over the square root of the number of trials.

    Used by market maker: Relies on it: each trade's edge is tiny and noisy, but over many thousands of trades the average edge shows up reliably.

    Full lesson
  12. 12intermediate

    Central limit theorem

    Add up many small independent random pieces and the total follows a bell curve, whatever the shape of the pieces. Its centre is n times the mean and its width grows like √n.

    Used by risk manager: Treats a portfolio's daily P&L, the sum of many positions' moves, as roughly normal to estimate the chance of a large loss.

    Full lesson

Rather not code the maths yourself? Describe your trading idea and let AI build the bot.

Build a bot with AgenKit

Every model is drawn from the formula's own code, so what you see is the exact maths. Models simplify markets on purpose. This is education, not financial advice.