A Method for Estimating a Segment's Contribution to the Overall Change in a Metric

Mikhail Stroganov30 Oct 2025

Problem

A product analyst is asked why a funnel conversion suddenly moved, for example from 15% to 20% in one day. The usual reflex is to look for the segment whose own conversion dropped most. That often points to the wrong place: a segment with a big delta may be tiny, and segments with equal deltas differ in size and in baseline conversion. The analyst cannot tell what to investigate first.

Example from the article: a segment X of 150 users falls from 16% to 10% (-6 points), while segments Y (2,500 users, 16% to 15%) and Z (2,800 users, 12% to 11%) each lose 1 point. The deltas alone do not say which group moved the total.

Solution in brief

Split the change in the overall conversion into one additive contribution per segment. Each contribution has two parts: the change in the segment's own conversion weighted by its current share of users, and the change in its share weighted by its previous conversion. Contributions add up to the total change, so they can be ranked and summed over any grouping of segments.

Questions this case answers
  • How to attribute a change in an aggregate ratio metric to the segments whose rate or size changed, when comparing only per-segment deltas misleads
  • How to find which user segment is responsible for a sudden change in a funnel conversion?
  • How to rank segments by their contribution when both their conversion and their size changed?
  • How to roll segment contributions up to cities, platforms or user types to see where to dig?

Tools and methods

  • Segment contribution decomposition — splits the metric change into a conversion effect and a share effect per segment
  • Root-cause analysis — contributions point to the segments and dimensions worth investigating
  • pandas — the author's example computes contributions with groupby and merge
Continue reading — it's free

Google or a one-time email code. No password.