Chapter 7 — The Investigation Method: Hypotheses and Checks

The Method: Where an Investigation Begins

16 min

An investigation doesn't start with “why”

The year is 2184. Vault-9 station. In your compartment, a terminal hums beside Kotomarket's black box, all that remains of a dead marketplace for cat supplies that once served Furrville, Catford, Meowfield, and Tailford. Beside it lies the journal of L., the company's last analyst. Sixty years later, her notes will become your guide.

L., entry #14: “I spent three days looking for the cause of a drop in DAU (Daily Active Users)—the number of unique users active during a day. I built , questioned marketing, suspected competitors. The cause turned out to be a broken analytics SDK—the toolkit built into the app that sends events. Three days. Five minutes to check it, if only I'd started there.”

A metric drops. The investigator's first question isn't “why?” It's “what exactly are we seeing?” Behind the statement “DAU fell by 30%” is a chain: a person opened the app → the SDK sent an event → the ingestion service stored the event as a row → an overnight job assembled those rows into an analytics table → the plotted a point. A drop on the dashboard could have been introduced anywhere along that chain. Only the first link represents an actual user action; every later link can distort how that action is measured.

That gives us a practical four-step order:

StepQuestionWhat we do
1. MeasurementDid user behavior change, or did the data pipeline break?Check row counts, data freshness, missing-value rates, and duplicates; compare against an independent system—a source that doesn't reuse the same collection and calculation pipeline
2. SegmentsDid the metric fall everywhere or only in one place?Break it down by platform, version, city, and channel
3. TimingExactly when did the change happen?Find the point of change at the finest available resolution—by day, or by hour if the data allows it; compare it with the release log and external events
4. SizeHow large and unusual is the drop?Calculate absolute losses and relative change, then compare them with the metric's normal variation

Why this order

There are three practical reasons for this order.

First: step 1 protects you from analyzing bad data. If data collection or calculation is broken, every later breakdown, cohort, and polished chart may be based on distorted numbers. You can keep slicing bad data and still feel completely confident in your conclusions, which makes this especially dangerous.

Second: early steps narrow the later ones. Suppose you've localized the drop to “Android, version 4.12, starting March 11.” The hypothesis that “a competitor stole our audience” suddenly looks much less likely: competitors rarely take only the users of one app build, precisely on release night. One breakdown can eliminate many guesses at once.

Third: the early steps are usually cheap. A few groupby operations on data that's already in front of you take fewer resources than a week-long market study. All else being equal, run the cheap check before the expensive one.

When to break the order

“All else being equal” matters. A check's priority depends on more than its cost. A rough guide is probability of the problem × potential impact, while also considering how costly and time-consuming the check is. If you suspect payments are being lost, investigate that immediately even if the check is expensive: every hour of delay costs money and customers. A quick check of a low-impact hypothesis shouldn't hold up a more expensive check that could stop ongoing losses.

One more caveat. People will tell you that “most incidents are caused by broken data collection.” Don't import someone else's folklore into your own numbers. The base rate—how often a cause appeared in similar past incidents—is different for every team. Estimate it from your own incident log, not from other people's stories. Start keeping that log from day one; over time, it becomes your own source of evidence.

A wide investigation board made of dim panels connected by a single chain of glowing arrows; only the first panel is lit, and a cat sits at the start of the path.
The order of an investigation and the reasoning behind it, with an explicit caveat about potential impact.
The investigation funnelcost ofcheckingIs the metric even valid?50 hypothesesWhere exactly?12 hypothesesWhen did it start?3 hypothesesHow unusual is it?1–2 candidatesminuteshoursdaystop — cheap and coarse, bottom — costly and precise
The investigation funnel: a wide field of guesses narrows through a measurement check and step-by-step localization—each step either eliminates branches of hypotheses or clarifies exactly what needs to be explained.

Mini-case: five minutes to check the measurement

“Check the data” sounds abstract until you see the whole process. Here's what it looks like in a realistic incident: four checks, no meetings.

Signal. Starting March 11, the app_open metric—the number of app opens per day—fell 40% compared with the previous week.

Check 1. How many rows are arriving in the events table? We calculate events.groupby('day').size(). The row count also fell by 40%. That gives us our first fork: if the total number of rows had stayed the same while the metric fell, the change would be localized around app_open—its calculation, filtering, , or collection of that specific event. Instead, the total row count fell by the same 40%, so the drop happened before the final metric calculation. But that still doesn't prove data loss: users really could have become less active.

Check 2. What does an independent system say? Orders are recorded by the payment service—a separate database, with different code and a different team. Order volume didn't change over the same period. That's a signal, not proof: orders and app opens are different metrics, and stable orders can coexist with a real decline in activity. But the idea that “the audience really vanished overnight” is now less plausible.

Check 3. Break it down by platform. groupby('platform'): web and iOS are within their normal range, while Android is down 90%. The drop is localized.

Check 4. Break Android down by app version. Older builds are still sending events as before. The entire loss comes from version 4.12, which was released the day before.

Interim conclusion. One of the highest-priority hypotheses is a data-collection problem in build 4.12: investigate the embedded analytics library (SDK), project key, configuration, or permissions. This is a high-priority hypothesis, not a verdict. Confirmation has to come from outside the analytics table: the ingestion service logs, the build configuration, and the mobile team's findings. A good chat message would be: “The app_open drop is entirely concentrated in Android 4.12 starting March 11, the row count fell by the same amount, and orders are stable—this is a signal of a collection issue; asking the mobile team to check the analytics key in 4.12.”

Notice that three of the four checks came down to simple groupings—by day, platform, and app version. The remaining check compared the result with an independent source. Each step narrowed the search area substantially. Five minutes here versus three days in entry #14: the difference comes from the order of operations, not talent.

A deeper drop doesn't mean “a bigger loss”

Once you've split a drop into segments, a beginner often asks one question when there are really two to answer. Look at Kotomarket's numbers; in this example, the segments don't overlap:

SegmentBeforeAfterRelative dropAbsolute loss
Android1,000500−50%−500 people
Web10,0009,000−10%−1,000 people
iOS4,0003,900−2.5%−100 people

Android had the deepest relative drop: half the segment disappeared. Web produced the largest absolute loss: 1,000 of the total 1,600 lost users.

These measurements answer different questions:

QuestionHow we measure itWhy
Where should we look for a local anomaly?relative drop (after − before) / beforea deep drop in a narrow segment can point to a local failure
What contributed MOST to the overall metric drop?contribution to the drop: segment_delta / total_delta, where Δ = after − beforemeasure the scale of the loss, set priorities, and communicate with the business

Mixing them up is a common reporting mistake. “Android fell 50%” sounds dramatic, but almost two-thirds of the lost users came from Web, where the drop was “only” 10%. The opposite mistake can be just as costly: report only Web, and you may miss that something mechanically broke on Android simply because the segment is smaller.

A good report includes both numbers: “Android had the deepest drop (−50%, −500 people), which points to a possible local failure; but Web accounted for 62.5% of the overall drop (−1,000 people at −10%), so most of the impact came from Web.”

Two caveats. First, contribution shares add up to 100% only when the segments don't overlap, cover the whole population, and the metric is additive across segments. With unique users, someone who visits from both a phone and the web belongs to two segments—then the sum of the segments won't match the overall metric, and you can't apply this formula directly. Calculate contribution using signed deltas: a growing segment offsets the overall drop and therefore gets a negative contribution share.

Second, relative drops are noisy when the denominator is tiny. A segment with 12 users can easily show “−50%” because of ordinary random variation. In an automated ranking, it's useful to filter out such segments with a minimum-size threshold; in a report, flag them separately and interpret them alongside the absolute change.

Segment contribution = share × conversiontraffic shareusersCRpurchasesiOS30%24008.3%199Android45%36004.7%170Web25%20002.3%468000 users total → 415 purchasesoverall CR = 415 / 8000 = 5.2%(8.3 + 4.7 + 2.3) / 3 = 5.1%this is WRONG — the segments differ in size
The depth of a drop and a segment's weight are different measurements. A small segment can shrink by half and barely move the overall metric; a large one can fall only 10% yet account for most of the total loss.
Two views of the same drop: relative change and contribution to the absolute loss. Run the cell and compare which platform ranks first by each measure.
python · pandas
Practice: write the code
seg contains DAU for three platforms before and after the drop. Answer both questions at once: deepest_rel is the platform with the deepest RELATIVE drop; biggest_contrib is the platform that made the largest contribution to the ABSOLUTE loss; web_share is web's share of the overall drop (a number from 0 to 1). The first two answers will be different platforms—that's the point of the exercise.
python · pandas
Practice: write the code
Repeat check 4 from the mini-case. build contains daily event-row counts before and after the incident for each “platform + app version” pair. Find the pair with the largest ABSOLUTE loss of rows: worst_platform, worst_version—and calculate worst_share, that pair's share of the overall drop in row count. If one build explains almost the entire drop, that's a strong signal supporting the hypothesis of a local problem in that build (but it is still only a signal: the nature of the problem must be confirmed separately).
python · pandas
Check yourself
Morning shift, monitoring dashboard: successful payments over the last hour are down 60%, while DAU is down 5%. Checking the row count in events takes two minutes; checking the payment system and reconciling with the provider takes forty minutes. Which check should get first priority?
Check yourself
Android: 1,000 → 500. Web: 10,000 → 9,000. iOS: 4,000 → 3,900. Which wording is correct for the report?
Key takeaways
  • Investigation order: measurement → segments → timing → effect size. The reason for this order is practical: step 1 keeps you from analyzing bad data, while early steps narrow the scope of later checks and are usually cheap.
  • Break the order deliberately: priority = probability × impact / cost of the check. If you suspect payment loss, check it immediately.
  • Get base rates (“tracking is usually the culprit”) from your own incident log, not from someone else's folklore.
  • A measurement check is a sequence of comparisons and breakdowns: compare row counts with an independent system → platforms → versions. Four groupby operations, five minutes.
  • Relative drop tells you where the decline is deeper; contribution to the drop tells you which segment lost more. A report needs both numbers. Contributions can be added only for non-overlapping segments, and estimates for tiny segments are noisier.
  • Phrase conclusions as “a signal supporting the hypothesis” and “requires verification”—not “proven.”

Next comes something this lesson didn't cover: how to turn a guess into a hypothesis you can actually test.