
Just do it - Measuring Complex Customer Journeys
Measuring complex user journeys is nearly an impossible task without the proper tools. Learn how MMM & Geo Tests can help advertisers measure the impact of their cross-marketing efforts.

The delta method approximates the variance of a function of random quantities by linearizing it around their means. In A/B testing it is especially helpful for analyzing lift instead of the raw difference, and for ratio metrics, where both the numerator and the denominator vary.
Design experiments inside Claude with Bell's MCP serverIt runs the Bell Statistics engine as tools your assistant can call — geo test design and measurement today, A/B testing next.
Estimating the variance of a KPI is straightforward — until it isn't. For a simple KPI with a per-user value, we can estimate its variability directly from the distribution of those user-level values. But when a KPI is itself a function of other quantities, its variance needs to be estimated differently.
When does this come up in A/B testing? One common example is lift. Rather than looking at the raw difference between the treatment and control means, lift expresses that difference relative to the baseline (control) mean. In other words, it is a ratio involving two estimated quantities, rather than a single mean.
Another common example is ratio KPIs, where one quantity is divided by another — for example, clicks per session, revenue per order, items per basket, or cost per acquisition. In these cases, there is no single per-user value whose standard deviation directly captures the variability of the KPI. Instead, both the numerator and denominator are estimated from the data, so variation in either one affects how much the final ratio can vary.
This is where the delta method comes in. In simple terms, the delta method provides a way to estimate how variation in the underlying quantities translates into variation in the final KPI. It does this by using a Taylor expansion to approximate the original, potentially complicated function with a simpler linear function around the values estimated from the data. Because the approximated function is linear, its variance can be calculated using the variances and covariances of the underlying quantities. This gives us an approximation of the variance of the original KPI.
For a deeper understanding of the formulas and how the delta method is derived, see the following section.
The delta method is based on the Taylor expansion, which lets us approximate a complicated function with a simpler one around the values estimated from the data. The delta method keeps only the first-order term, giving us a linear approximation. Because we can calculate the variance of a linear function from the variances and covariances of its inputs, this gives us an approximation of the variance of the original KPI.
Var( g(X) ) ≈ ∇g(μ)ᵀ Σ ∇g(μ)The delta method approximates the variance of a function of one or more random quantities by looking at how sensitive the function is to changes in those quantities. If the KPI is a function g(X) of a vector of random quantities X, its variance depends on two things: how sensitive the KPI is to each input, and how much those inputs vary and covary.
Var( g(X, Y) ) ≈ [∂g/∂x]² Var(X) + [∂g/∂y]² Var(Y) + 2(∂g/∂x)(∂g/∂y) Cov(X, Y)The first two terms capture the contribution of the variability in X and Y, while the final term accounts for their covariance — the extent to which X and Y vary together. Intuitively, the formula combines how much the KPI responds to changes in each input with how much each input varies, while also accounting for whether the inputs tend to move together. The two most common uses in A/B testing are ratio KPIs and lift.
Consider a ratio KPI such as revenue per order. Because it depends on two random quantities, we use the multivariate version of the delta method and take the derivative with respect to each input; the derivatives tell us how sensitive the ratio is to changes in the numerator and the denominator. The result has three components: the variability of the numerator, the variability of the denominator, and the covariance between them — how much the two quantities tend to move together. The covariance term is important because the numerator and denominator are often related.
The −1 does not affect the variance, so we can focus on T/C. There would normally also be a covariance term, but in an A/B test the treatment and control groups are independently randomized, so their covariance is zero. This is the key idea behind both examples: start with the KPI as a function, use its derivatives to obtain a linear approximation, and then use the variability of the inputs to estimate the variability of the KPI.
The variances and covariances used in these calculations should be computed across the randomization units. If users were randomized, for example, the calculation should be based on user-level observations, not individual sessions. Treating multiple sessions from the same user as independent observations overstates the amount of information in the data and can produce confidence intervals that are too narrow.
The delta-method calculation can be checked against a cluster bootstrap, which repeatedly resamples whole randomization units and recalculates the KPI. The resulting distribution provides an alternative estimate of the KPI's variability. When the delta-method approximation is appropriate and correctly implemented, the two approaches should generally agree closely, and a substantial disagreement is a useful signal that something in the calculation or implementation needs to be checked. The bootstrap is, however, much more computationally intensive, as the KPI needs to be recalculated many times across the resampled datasets. For this reason, the delta method is generally preferable when its assumptions are appropriate, while the bootstrap serves as a useful validation, or an alternative when those assumptions are questionable.
An analytics team implements a standard error for clicks per session. They have 52,000 randomized users generating 214,000 sessions and 396,000 clicks. At the user level, let C denote a user's clicks and S their sessions, so the KPI is the ratio g(C, S) = C/S. The user-level data look like this:
SE = 0.0094 clicks per session
The covariance term is important: because clicks and sessions are strongly positively correlated (r = 0.83), users with more sessions also tend to have more clicks. This shared variability partially cancels when forming the ratio, which is why the covariance term is subtracted. For comparison, three implementations give three answers: 0.0043 when sessions are treated as independent, 0.0121 for a user-level calculation with the covariance omitted, and 0.0094 for the full delta method — a spread of a factor of 2.8. Treating sessions as independent gives too small an answer because it treats 214,000 correlated sessions as independent, while the user-level calculation without covariance is too large because it ignores the cancellation produced by the strong correlation between clicks and sessions. The full delta method gives the correct result, and a cluster bootstrap independently returns 0.0093, providing a useful validation of the implementation.

Measuring complex user journeys is nearly an impossible task without the proper tools. Learn how MMM & Geo Tests can help advertisers measure the impact of their cross-marketing efforts.


Many analysts make fundamental mistakes that can misrepresent or undermine the test's findings. This blog highlights common reporting errors and offers practical guidance for presenting tests results effectively.

Applying it to a live measurement problem is the part that goes wrong. If you are designing an experiment, reading a result you do not trust, or trying to work out what your marketing actually caused, that is the work we do.