Customers & growth · Conversion rate optimization

Statistical analysis framework

Best for Startup to Growth

SAMPLEINTERVALSSIGNIF.VARIANCEVALIDITY

Use it when

Test results swing too much to read, or a metric is counted per page view while users are randomized, and you need correct variances before sizing or judging tests.

Skip it when

  • You need the sample size, significance level and verdict for a test. Use Statistical significance framework, which takes this sheet as an input.
  • You need the whole test run from plan and launch to the ship decision. Use A/B testing framework.
  • You need to know what a whole channel adds beyond what would happen anyway. Use Incrementality testing.
  • The test metrics are not yet defined or tied to a business goal. Use Conversion goal hierarchy first.

What to apply first and what to use instead are listed below.

Inputs

  • Metric definitions
    Each test metric with its numerator, denominator and the unit it is counted per, such as user, session, page view or order, from the metric spec.
  • Randomization unit
    What the testing tool assigns at random, such as user, cookie or account, from the test setup.
  • Unit-level data
    Values per unit for each metric during the test and in a pre-test window, such as the seven to 28 days before each user's first exposure, from the data warehouse.
  • Outlier rule
    A cap per metric, either a high percentile or a known business maximum, agreed before launch.
  • Test plan
    Primary metric, smallest lift worth detecting and error rates, from Statistical significance framework.

Steps

  1. Compare each metric's counting unit with the randomization unit, and mark every ratio metric where they differ, such as clicks per page view in a user-randomized test.
  2. Estimate variance at the randomization unit, using the delta method for each marked ratio metric so page views are not treated as independent.
  3. Cap extreme unit values at the agreed level in both groups alike, and record how many units were capped.
  4. Choose a pre-test covariate for each key metric, usually the same metric in the pre-test window, and confirm it was measured before assignment.
  5. Apply the pre-test adjustment, then record R squared and the traffic multiplier, which is one divided by one minus R squared.
  6. Hand the adjusted variances to sample sizing and the significance readout, and flag metrics where the adjustment gained little.

Output

A variance sheet for each test that shows how every metric's variance was estimated, capped and adjusted, ready for sizing and the significance readout.

  • Metric and counting unit
  • Randomization unit
  • Variance method (simple or delta method)
  • Cap and number of units capped
  • Pre-test covariate and window
  • R squared and traffic multiplier
  • Adjusted standard error

Done when

  • Every metric lists its counting unit next to the randomization unit.
  • Every ratio metric whose unit differs from the randomization unit uses the delta method.
  • Caps were set before launch and applied to both groups.
  • Every adjusted metric uses a covariate measured before assignment, with its R squared shown.
  • The sample size and the readout use the variances from this sheet.

Measure

Each quarter, track the median run length of tests on your key metrics and the share reaching a clear result, against your own previous quarters. Keep the traffic multiplier per metric. The analysis works when run lengths shorten or more tests reach a clear result, while the share of shipped winners whose gain holds after launch stays level.

Hypothetical example

Fernhill, a recipe site, randomizes by user but judges tests on clicks per page view. Its analyst had treated each page view as independent, which made intervals too narrow. With the delta method, the standard error grows by a third. Revenue per user has a few huge orders, so values are capped at the 99.9th percentile, which touches 40 users. Each user's clicks in the 28 days before exposure give an R squared of 0.36 and a traffic multiplier of about 1.56. The next test's planned run falls from five weeks to just over three.

Common mistakes

  • Treating page views or sessions as independent when users were randomized. Estimate variance per user with the delta method.
  • Choosing or changing the cap after seeing results. Set it before launch and apply it to both groups.
  • Using a covariate that the test itself could change. Use only data from before each user's first exposure.
  • Expecting the same gain for every metric and every user. Report the multiplier per metric, and keep users with no history in the analysis.

Sources

Show all 4 sources

By company stage

  1. Pre-IdeaNot applicableThere is no product traffic to analyze, so statistics have no data to work on.
  2. IdeaNot applicableVolumes are too small for valid significance tests, so direct feedback is better.
  3. Early StartupUsefulTraffic is growing but often thin, so tests help only where samples are large enough.
  4. StartupCriticalScaling what works needs valid experiment results, so sample size and variance checks matter.
  5. GrowthCriticalLarge traffic and many optimization tests make sound statistics necessary to avoid bad decisions.
  6. ScaleUsefulExperimentation teams already own rigorous methods, so this is a useful reference.
  7. EnterpriseUsefulMature analytics groups run these methods as standard practice across units.

Apply first

Nothing. You can start here.

Use instead

  • Statistical significance framework

    You need the sample size, significance level and verdict for a test. Use Statistical significance framework, which takes this sheet as an input.

  • A/B testing framework

    You need the whole test run from plan and launch to the ship decision. Use A/B testing framework.

  • Incrementality testing

    You need to know what a whole channel adds beyond what would happen anyway. Use Incrementality testing.

  • Conversion goal hierarchy

    The test metrics are not yet defined or tied to a business goal. Use Conversion goal hierarchy first.

Recommended resources

No sponsored resources on this framework yet. Sponsored listings would be labelled here, never in search.

Progress is not saved until you have an account. Create a free account