The Itô Integral
How to add up the profit of a strategy that trades against a price so jagged it has no slope anywhere. The trick is that you must choose your position before the move, not after, and that one rule is what makes the whole of stochastic calculus work.
Prerequisites: Brownian Motion, Quadratic Variation, Martingales
Here is a question every quant eventually has to answer precisely: if you hold a changing number of shares in something whose price is wiggling continuously, what is your total profit at the end of the day? The answer feels obvious — add up "shares held" times "price change" over every instant. The trouble is that a Brownian path has no slope at any point and wanders infinitely far up and down in any interval, however short. The ordinary machinery for adding up things like that quietly breaks. The Itô integral is the repair, and the repair is more interesting than the problem.
The picture before any symbols
Forget continuity for a moment. Imagine a trading day chopped into one-minute bars. At the start of each minute you decide how many shares to hold; you then sit still while the price does whatever it does; at the top of the next minute the bar's move lands in your P&L, and you get to re-decide.
Your profit for the day is the sum, over minutes, of
(shares you were holding at the start of the minute) × (price change during that minute)
Two things about that sentence carry the entire theory. First, your position is fixed before you see the move — you are never allowed to size a trade using the print it is about to earn. Second, you can only decide with what you know so far. That is the whole of it. The Itô integral is that sum, with the minutes shrunk to nothing.
Building it
Write for a standard Brownian path — the price driver — and for the number of units you hold at time . We want to give meaning to
In words: the total P&L over from holding units of something whose price moves like .
Start with the easy case, a simple position: is constant on each of finitely many intervals, changing only at the times . Then there is nothing to argue about — the integral is literally the trading sum,
In words: on each interval, take the position you held at the start of it and multiply by the move that followed; add those up. Note the subscript on : it is , the left end of the interval. That is the no-peeking rule written as an index.
For a general position, approximate by simple positions and take a limit. The limit exists — and this is the whole technical content — because of one identity, the Itô isometry:
In words: the variance of your P&L is the time-average of your squared position. Doubling your size doubles your P&L's standard deviation; holding a position for twice as long multiplies its variance by two. The isometry says the map from "position schedule" to "P&L" preserves size, so a sequence of positions that converges gives a sequence of P&Ls that converges too. That is what makes the definition legitimate.
Worked example 1: a step position, priced out
Take year cut into four quarters, . You hold 2 units for the first half of the year and 5 units for the second half:
First, what does the isometry predict before we see any prices? is a fixed schedule, so and
So the year's P&L has mean 0 and variance 14.5, a standard deviation of . Because the schedule is deterministic, the P&L is exactly normal with those two numbers — you can quote a confidence interval on the strategy before running it.
Now a realised path. Suppose the four quarterly moves come in as
Multiply each by the position that was standing when it happened:
A profit of 1.9 against a predicted standard deviation of 3.81 — an unremarkable half-sigma year. The point is that both numbers came out of the same definition, one before the fact and one after.
Worked example 2: the left endpoint is not a detail
Now let the position be the driver: . This is the classic , and it is where ordinary calculus fails loudly.
Use the same four moves, so the path visits
Left endpoints (Itô). Multiply each move by the level standing before it:
Right endpoints. Same moves, but using the level after each one:
Two answers, from the same path, differing by 0.99. In ordinary calculus that gap would shrink to zero as you refine the grid. Here it does not, and you can see exactly why. Subtract the two sums term by term and each term is , so the gap is the sum of squared moves:
That is the quadratic variation of the path, and for Brownian motion it converges to no matter how finely you chop. The gap is not an approximation error. It is a real, permanent quantity of size .
There is a tidy closed form hiding in the arithmetic. For the left sum,
Check it: , matching the sum above exactly (using the path's realised quadratic variation 0.99 in place of its limit 1). In words: the answer school calculus would give you, , minus a correction of half the elapsed time. That is the reason Itô's lemma has a second-derivative term at all.
What the left endpoint buys you
Because the position is fixed before each move, and Brownian increments have mean zero and are independent of the past, every term in the sum has expectation zero given what you knew when you placed it. That gives the property everything else rests on: is a martingale in . Its expected value is always zero, and its best forecast tomorrow is its value today. In trading language, a strategy that only bets on a fair coin, using no future information, cannot have positive expected P&L — and the Itô integral is built so that this is a theorem rather than a hope.
Take the explorer below and set it to brownian. Pick any path and pick a moment on it. Everything to the left is what your position may depend on; everything to the right is what your position gets multiplied by. Turn the volatility up and watch how much of the path's total movement is invisible at any coarse resolution — that hidden movement is the quadratic variation that made the two sums above differ.
The Itô integral is a trading P&L: position held at the start of an interval, times the move that follows, summed up. Two consequences do all the work — it is a martingale (mean zero, no free money from a fair driver), and its variance is (the Itô isometry). The left-endpoint rule is not a convention you could swap out; changing it changes the answer by the quadratic variation, which does not vanish.
What this means in practice
- Every SDE is shorthand for one of these. When you write , the honest object is the integral equation . See stochastic differential equations.
- Hedging P&L. The error left over from a discretely rebalanced delta hedge is exactly the difference between an Itô integral and its finite-step approximation. The residual scales like , which is why halving your rebalancing interval only cuts hedge slippage by about 30 percent.
- Simulation. Euler–Maruyama is the left-endpoint sum with the grid left finite. Coding it with the end-of-step state by accident introduces a bias of order that does not shrink relative to the answer — a classic and silent bug.
- Pricing theory. The martingale representation theorem says every martingale driven by is an Itô integral for some . That is the hedge ratio, which is why every derivative in a complete market can be replicated.
- Backtests. The left-endpoint rule is the mathematical form of "trade on the next bar's open, not this bar's close". Break it and your integral is not a martingale any more, which is a formal way of saying your backtest prints money that does not exist.
The most common slip is treating as by analogy with . It is not — it is , and the missing half- is the whole subject. The second slip is subtler: an Itô integral is not defined path by path. You cannot hand a single realised trajectory to a numerical integrator and get the right answer, because the definition is a limit in mean square across the ensemble, not a limit for each path separately. Anything that looks like ordinary calculus applied to one Brownian path is almost certainly wrong.
When you meet a stochastic integral, say the trading sentence out loud: how many units was I holding when that move landed? If the sentence has a clear answer that does not require knowing the move first, the integral is an Itô integral and it is a martingale. If answering requires peeking, it is not — and no theorem in the chapter applies.
Related concepts
Practice in interviews
Further reading
- Shreve, Stochastic Calculus for Finance II (ch. 4)
- Øksendal, Stochastic Differential Equations (ch. 3)
- Karatzas & Shreve, Brownian Motion and Stochastic Calculus (ch. 3)