The Claude Quant PlaybookDownload ebookDownload ebook

Family 6 of 9 · 8 formulas · each in 3D

Time series

Returns over time: random walks, autocorrelation, mean reversion, and volatility that clusters and scales with √t. Markets are sequences, not samples. Whether today tells you anything about tomorrow is the whole question of trading.

Build a trading system with Claude.Download ebook

Showing all 8

  1. 01beginner

    Simple and log returns

    Two ways to measure the same price move. Simple returns add up across assets in a portfolio; log returns add up across time.

    Used by quant researcher: Works in log returns for time-series models, because a multi-day return is just the sum of daily ones.

    Full lesson
  2. 02beginner

    Random walk

    Each day adds a fresh, independent random step. The best forecast of tomorrow is today, and the spread of where you could be grows with the square root of time.

    Used by quant researcher: Uses the random walk as the null hypothesis: a signal is only interesting if it beats 'tomorrow equals today'.

    Full lesson
  3. 03intermediate

    Autocorrelation

    The correlation of a series with a delayed copy of itself. If it is not zero, the past tells you something about the future.

    Used by quant researcher: Checks returns for autocorrelation: positive means momentum, negative means reversal, both are tradable.

    Full lesson
  4. 04intermediate

    AR(1) process

    Tomorrow is a fraction φ of today plus a new shock. With |φ| below 1 the series is pulled back to its mean; at φ = 1 it becomes a random walk.

    Used by quant researcher: Models spreads, basis and signal values that tend to come back to a mean, and estimates φ to see how fast.

    Full lesson
  5. 05advanced

    Mean-reversion half-life

    In an Ornstein–Uhlenbeck process the expected gap from the mean shrinks exponentially. The half-life says how long you should expect to wait for half of it to close.

    Used by quant researcher: Estimates the half-life of a pairs spread before trading it; too slow and capital is tied up for months.

    Full lesson
  6. 06intermediate

    EWMA volatility

    A running volatility estimate that weights recent returns most. Each day the old estimate fades by λ and today's squared return is mixed in.

    Used by risk manager: Uses EWMA volatility with λ around 0.94 in daily value-at-risk, so risk limits react within days to a market shock.

    Full lesson
  7. 07advanced

    GARCH(1,1)

    A model where volatility reacts to each day's return and drifts back to a long-run level. Big moves raise tomorrow's volatility, so calm and stormy periods cluster.

    Used by risk manager: Forecasts volatility for value-at-risk over the next days and weeks, letting it revert to the long-run level.

    Full lesson
  8. 08beginner

    Square-root-of-time scaling

    Volatility grows with the square root of time, not in proportion to it. A quarter has half a year's volatility, and one day has about one sixteenth.

    Used by risk manager: Turns a one-day value-at-risk into a ten-day one by multiplying by √10.

    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.