Skip to content
Tech Interview Prep
Technical interview guide

Metrics, KPIs & North Star Frameworks

Choosing the metric that actually reflects whether the product is succeeding, and avoiding vanity metrics.

Minutes to read
3
Practice MCQs
25
Interview Q&A
25
Edition
v4
Editorial status
Reviewed

Scope: Google HEART, Scrum.org Evidence-Based Management 2024, DORA metrics guidance, GOV.UK Service Manual, NIST statistical and privacy guidance, and FTC dark-pattern guidance current 2026-08-31.

Interview Q&A

Treat each question like a live interview question: answer out loud first (structure, assumptions, tradeoffs), then open the model answer to spot gaps and rehearse a tighter follow-up.

Curated: · Written: · Reviewed:

25 questions

Q&A-2

Define activation for a new product.

Answer

The 90-second answer

Activation is the earliest behaviour that separates users who come back from users who don't. You don't pick it from a whiteboard; you pick it by looking backwards from retention. So the deliverable is a definition plus the evidence that it predicts a later outcome: a definition without a lift number is a guess with a dashboard.

Assumptions I'd state before answering: self-serve signup, one product, a few thousand new signups a month (below that the retention split is noise), and value delivered inside the product rather than by a human, so sales-assisted onboarding is out of scope.

Building it

  1. Hypothesis. Take users retained at D30 and diff their week-1 behaviour against churned users. Pick the earliest behaviour only the retained group does, not the most impressive one. "Created a project" is usually too cheap; "a second person edited the project" is usually the real one.
  2. Specify it. Eligible population, identity, required sequence or threshold, window, exclusions. Write it as a query, not a paragraph.
  3. Validate. Activated vs non-activated retention, and check the lift holds within each acquisition channel: otherwise you've measured channel quality, not activation.
  4. Guard and version. Watch friction and gaming; re-derive the definition when the product changes, and record the change.

Worked example: hypothetical B2B doc tool, 10,000 signups in a month:

definitionactivation rateD30 returnlift vs non-activated (9%)
created a doc68%14%1.6×
created a doc + invited ≥1 teammate31%33%3.7×
created a doc + ≥2 teammates edited it within 14 days17.5%58%6.4×

The first row is the trap: 68% looks like a healthy funnel and predicts almost nothing. The third row is the definition I'd ship: 1,750 of 10,000 signups, and that cohort is 6.4× more likely to return at D30 than everyone else. The cost is real: you're now optimising a 17.5% number, so every roadmap argument about activation is an argument about a small slice of users. That's the point.

Postgres-flavoured query for row 3:

SQL
WITH first_doc AS (
  SELECT account_id, min(created_at) AS doc_at
  FROM documents WHERE is_seeded = false GROUP BY 1
),
teammates AS (
  SELECT d.account_id, count(DISTINCT e.user_id) AS editors
  FROM documents d JOIN edits e ON e.doc_id = d.doc_id
  WHERE e.user_id <> d.creator_id
    AND e.created_at <= d.created_at + interval '14 days'
  GROUP BY 1
)
SELECT u.user_id, fd.doc_at AS activated_at
FROM users u
JOIN first_doc fd ON fd.account_id = u.account_id
JOIN teammates t ON t.account_id = u.account_id
WHERE u.created_via = 'self_serve'
  AND fd.doc_at <= u.created_at + interval '14 days'
  AND t.editors >= 2;

Alternatives, and when to pick each

shapeuse whenbreaks when
single eventone obvious aha moment, low volumeevent is cheap to trigger; predicts nothing
threshold + windowvalue compounds (docs, messages, invites)threshold is gamed, or excludes a real solo segment
state-basedvalue is a configuration, not an action (integration live, data flowing)state is reachable by an import or a sales engineer

Deciding criterion: whichever shape gives the largest retention lift and survives a within-channel check. If two are close, take the earlier one: it gives you more time to intervene.

Failure modes

  • Invite-blast gaming. Growth adds "invite 3 teammates" to the onboarding modal; activation jumps 17.5% → 29% in a week. Detection: split the newly activated by whether the invitee ever opened the doc. Their D30 is ~12%, not 58%. Cost: you ship worse onboarding and fund the wrong roadmap for a quarter.
  • Excluding a real segment. 3,700 users created a doc and never invited anyone. If their D30 is 30%, your definition is wrong for solo users; segment by use case before gating onboarding on invites.
  • Window drift. Widening 14 → 30 days lifts activation to ~24% but drops the lift to ~4×. Pick the window from the retention curve, not from what makes the number look good.
  • Survivorship in the check. Deriving the behaviour from users who were already retained finds consequences of retention, not causes. Confirm with a holdout or an intervention, not just a correlation.

What would change my decision: if activated and non-activated retention converge (lift under ~1.5×), there's no aha moment yet. Stop tuning the definition and go back to qualitative research. And if the product is two-sided, one activation definition is wrong; you need one per side.

Curated: · Written: · Reviewed:

Difficulty: Medium
Q&A-22

Retire a vanity metric from executive reporting.

Answer

First, I'd pin down what "vanity" means here: a metric that can move without changing any decision. That's the test. If a 20% swing in the number doesn't change a budget, a hire, a roadmap item, or a stop/continue call, it's vanity.

Assume a B2B SaaS company, monthly exec review, the metric is "total signups" reported alongside revenue. Signups grew 40% QoQ (from 5,000 to 7,000), but paid conversion fell from 4.2% to 2.8%. The decision signups was meant to support: "are we reaching the right buyers?": is now better answered by activated accounts.

I'd bring three things to the exec meeting:

  1. The decision the metric was meant to support. Write it as a sentence: "We use signups to decide whether to increase SDR headcount." Then show the metric no longer predicts that decision. In the example, SDR headcount went up 30% while qualified pipeline per SDR fell 18%. The metric moved; the decision it was supposed to inform got worse.

  2. A replacement with a definition, baseline, target, and guardrail. For activated accounts: an account that completes three key actions (invite a teammate, connect a data source, run one report) within 14 days. Baseline 1,200/month. Target 1,800/month by Q3. Guardrail: paid conversion must stay above 3.5%; if it drops, the activation definition is too loose.

Old: total signupsNew: activated accounts
DefinitionAny email signup3 key actions in 14 days
Baseline5,000/mo1,200/mo
Target7,000/mo1,800/mo
Guardrailnonepaid conversion ≥ 3.5%
OwnerGrowth marketingProduct-led growth lead
  1. A dual-run period. Report both for two quarters. If the new metric doesn't correlate with the decision (e.g., activated accounts up but revenue flat), it's vanity too. Cost: about two hours per month of analyst time to maintain both in the dashboard (Looker or a dbt model). That's cheap compared to a bad headcount decision.

Failure modes I'd name:

  • The replacement is also gameable. Detection: check whether the new metric can be moved by a single team without changing customer outcomes. If activation is defined as "logged in once", it's gameable. Run a red-team: ask the growth team how they'd hit the target without improving the product.
  • Historical discontinuity. Execs lose trust if the trend line breaks. Keep the old metric visible in an archive, annotate the change date, and never rewrite past reports.
  • Incentive misalignment. If sales comp is still on signups, the new metric won't change behavior. Update comp plans in the same quarter.
  • Metric churn. Changing metrics every quarter is its own vanity. Set a review date 12 months out.

When not to retire: if the metric is a regulatory disclosure or a leading indicator with a known lag (e.g., pipeline coverage for a 9-month sales cycle). In that case, keep it but label it as an input, not an outcome.

The test I'd leave the exec team with: if this number doubled tomorrow, what would we do differently? If the answer is "nothing", it's vanity.

Curated: · Written: · Reviewed:

Difficulty: Medium
Q&A-8

Create a metric contract for weekly active teams.

Answer

Core answer (say this first)

Assume a B2B SaaS product where a team is a workspace, raw events land in analytics.fact_events, and this number feeds a weekly growth review and the board deck. Then:

Weekly active teams = distinct teams with ≥1 qualifying value action by ≥2 distinct human actors in a UTC Monday-start week, evaluated on team state at week close.

Two assumptions decide the number. The week is UTC Monday 00:00:00 to Sunday 23:59:59.999. Pick UTC and say so, because a US-Pacific team's "Monday" is 8 hours off and shifts the boundary by a full day of events. And "active" means value delivered, not logged in: qualifying actions are doc_shared, comment_posted, task_completed, not session_start.

The contract

FieldValue
Grainone row per team per ISO week
Numeratorteams with ≥1 qualifying action and ≥2 distinct actors
Eligible populationdim_team rows where is_internal = FALSE, is_test = FALSE, deleted_at IS NULL, created before week start
Sourceanalytics.fact_events joined to analytics.dim_team
FreshnessT+2 days, frozen; restatements logged
Privacy floorno segment reported below 5 teams
OwnerGrowth Analytics; version wat_v3

The query

SQL
WITH w AS (SELECT DATE_TRUNC('week', CURRENT_DATE()) AS ws)  -- Snowflake: Monday
SELECT COUNT(*) FROM (
  SELECT e.team_id
  FROM analytics.fact_events e
  JOIN analytics.dim_team t USING (team_id)
  WHERE e.event_name IN ('doc_shared','comment_posted','task_completed')
    AND e.occurred_at >= (SELECT ws FROM w)
    AND e.occurred_at <  (SELECT ws FROM w) + INTERVAL '7 days'
    AND e.is_bot = FALSE AND t.is_internal = FALSE
    AND t.is_test = FALSE AND t.deleted_at IS NULL
  GROUP BY e.team_id
  HAVING COUNT(DISTINCT e.actor_id) >= 2
) q;

Arithmetic. Say 12,400 teams fire a qualifying action in the week; 9,100 of them have ≥2 distinct actors. WAT = 9,100. The 3,300 gap is the collaboration floor doing its job: those are single-seat trials, and whether they count is a product decision, not a data one.

Trade-offs. Activity-qualified (any event) vs value-qualified: activity-qualified runs roughly 3x higher because logins dominate, and it moves when you ship a login change. Value-qualified is the one you can defend. Strict ≥2-actor floor vs deduplicated counting: the floor is right for a collaboration product and wrong for a solo tool, if your roadmap is single-player, drop it to 1 and say why.

Failure modes.

  • Late events. Detection: recompute WAT at T+1 and T+7; drift above 0.5% means the pipeline is late. Fix: freeze at T+2, publish restatements.
  • Merges. Two team_ids for one customer undercount. Detection: count teams with a merge in the week; above 0.1% of WAT, remap to dim_team.merged_into.
  • Bot inflation. One actor firing 10k events. Detection: is_bot flag plus the actor floor; watch the share of teams with exactly one actor.

Guardrails. Never report a segment under 5 teams. Version the definition; a change to qualifying actions is a new version, not an edit.

Curated: · Written: · Reviewed:

Difficulty: Medium
Q&A-17

Handle conflicting definitions of active user.

Answer

The 90-second answer

Before touching either number I ask what decision it feeds, because "active user" is not one metric: it's a family, and the right move is usually to keep two or three of them and stop pretending they're the same thing. I'd name them explicitly (signed-in active, value-active, billing-active), pin each to a versioned definition with an owner, and run a nightly reconciliation between them so the gap is a known number rather than a surprise in a board deck.

Why two teams get different numbers from the same events

Four knobs move the count, and each team turns them differently:

  • Event eligibility: any authenticated request vs. a core action (report created, export, message sent).
  • Dedup key: user_id vs. device_id vs. account_id. Multi-device users inflate device counts.
  • Bot and internal filtering: one pipeline drops is_internal and a scraper list, the other doesn't.
  • Window and grain: rolling 30 days vs. calendar month; user-day rows summed vs. distinct users.

Worked trace: one day, one event table, two pipelines

Raw partition for a single day: 12,400 event rows, 3,100 distinct user_id, 3,450 distinct device_id, 400 rows with is_internal = true (120 distinct users), 900 rows from 60 known scraper user_ids.

Growth pipeline (signed-in active)Product pipeline (value-active)
Filterany event that dayevent_name = 'report_created'
Excludesnothingis_internal, scraper list
Dedupuser_iduser_id
Result3,1001,800 − 40 internal − 20 scraper = 1,740

Same events, same day, 3,100 vs 1,740: a 44% gap that lives entirely in the pipeline, not in user behaviour. Multiply by 30 and the growth dashboard reports ~93k "MAU" while the product dashboard reports ~52k. If the board deck uses the first and the CS staffing model uses the second, you're either over-hiring or under-serving, and nobody can tell which.

Failure modes and how I'd catch them

  1. Post-hoc definition shopping. A team switches to the friendlier definition after results land. Detect by hashing the definition in the metric registry and alerting when a dashboard's hash changes within 7 days of a results review.
  2. Silent pipeline drift. A bot filter gets added to one pipeline only. Detect with a nightly job that runs both definitions over the same partition and alerts when the ratio moves more than 5% week over week.
  3. Grain mismatch. Summing daily actives and calling it MAU. Detect by tracking DAU/MAU stickiness; a ratio above roughly 0.5 on a B2B tool usually means the daily number is counting sessions, not people.

Trade-offs

Don't collapse to one definition. Signed-in active is cheap, stable, and the right input for capacity planning and license compliance, but it overstates engagement, because a login to dismiss a notification counts. Value-active predicts retention and revenue, costs an event pipeline and bot filtering, and lags by a day. Billing-active is contractual and belongs in finance, not product. Use signed-in for load and seats, value-active for retention and roadmap bets, and never let a target be set on one and measured on another.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-1

Choose a North Star Metric for a collaboration product.

Answer

First I'd pin down what "collaboration product" means, because the metric falls out of the core loop. I'll assume a multi-user document or canvas tool (Figma, Notion, Miro, Google Docs) where people show up because someone else is working on the same artifact. If it's a chat tool the answer shifts, and I'll say where.

My North Star would be Weekly Collaborative Documents: the number of distinct documents in a 7-day window that at least two distinct editors each changed substantively. "Substantively" means a threshold, say 50 characters of text or one object mutation, so a drive-by open or a stray keystroke doesn't count. Dedup by document ID and editor ID; the window is the calendar week so cohorts stay comparable.

Why that and not WAU or messages sent? WAU counts a person reading their own notes: that's not collaboration. Messages sent is trivially inflated by one person and by bots. Documents created counts intent, not value; most created docs are abandoned. WCD requires two verified humans doing real work on the same artifact, which is the thing that predicts they come back.

Let me trace it on a week of events so the definition is concrete:

  • Doc A: u1 writes 60 chars, u2 writes 120 chars → two qualifying editors → counts.
  • Doc B: u1 writes 30 then 40 chars → one editor → doesn't count.
  • Doc C: u1 writes 200 chars, u2 writes 10 chars → u2 under threshold → doesn't count.
  • Doc D: u1 writes 80, u2 writes 90, u3 writes 5 → two qualifying editors → counts.

WCD = 2. Compare to "documents created" = 4, which overstates by 2x, and raw "edits" = 9, which overstates by 4.5x.

CandidateCaptures shared valueSpam-resistantWrong when
WAUNo: counts solo readingNosingle-player use dominates
Messages sentPartlyNo: one user or a bot inflates itvolume ≠ shared work
Documents createdNo: counts intentNomost docs are abandoned
Weekly Collaborative DocsYes: needs two verified humansYesproduct is single-player-first

Now the failure modes and how I'd detect each.

Goodhart. Teams will nudge a second editor onto docs that don't need one: collaboration theater. Detect it by tracking the share of WCD docs where the second editor's edit is reverted within 24h or the doc is never reopened. If that climbs past roughly 20%, the metric is being gamed and I'd tighten the threshold.

Spam and multi-accounting. One person with two accounts looks like two editors. Detect by monitoring accounts-per-device and edit-time clustering, and require verified identity for the second editor.

Exclusion. A char-count threshold silently drops comment-only, reaction, and screen-reader users. Detect by segmenting WCD by input modality and object type; if a segment sits near zero, the threshold is wrong for them.

Latency. If p95 edit-ack exceeds roughly 300 ms, edits don't land and WCD falls for reasons unrelated to value. That's a guardrail, not a target.

Guardrails I'd pair with it: notifications per user per day, abuse reports per 1,000 docs, p95 sync latency.

Causal check: split new users by whether their first week contained a WCD. Illustratively, week-4 retention might be 55% for the WCD cohort vs 22% for the rest. That gap is the hypothesis, not proof: I'd confirm it with a holdback.

When I'd abandon it: if the product is single-player-first, a notes app where sharing is a side feature, WCD sits near zero and misleads. There I'd use a two-tier metric: a single-player value moment plus a collaboration multiplier.

Finally, name an owner, baseline by signup cohort, and revisit when strategy changes.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-19

For a two-sided marketplace where each side's value is different and partly conflicting, pick a single North Star metric and supporting metrics. Justify why it captures value exchanged on both sides, and how you'd detect and correct if optimising it starves one side.

Answer

Assume a two-sided marketplace like a home-services platform: supply is independent pros, demand is homeowners. Value for supply is earnings and steady work; for demand it's choice, price, and reliability. These conflict: raising take rate boosts platform revenue but cuts supply earnings; adding supply improves choice but dilutes earnings per pro.

A strong candidate opens by rejecting one-sided activity metrics. GMV, number of bookings, or active buyers all fail because they can rise while one side is starved. Instead, pick a North Star that requires both sides to receive enough value to return. My choice: 30-day two-sided repeat rate. The fraction of completed transactions where both the buyer and the seller complete another transaction within 30 days. It captures value exchanged because if either side is dissatisfied, they don't come back. It's a rate, so it normalizes for growth and resists pure volume inflation.

Supporting metrics must cover each side and act as guardrails. A table:

SideMetricPurposeGuardrail threshold
SupplyEarnings per active pro per weekValue captureAlert if < 10% below 4-week baseline
SupplyUtilization (booked hours / available hours)Work availabilityAlert if < 60%
Supply30-day pro churnRetentionAlert if > 8% monthly
DemandSearch-to-fill rateChoice and reliabilityAlert if < 85%
DemandTime to matchExperienceAlert if p90 > 48h
DemandBuyer repeat rateValue captureAlert if < 25%
PlatformTake rateSustainabilityMonitor, no hard threshold
BothCancellation rateFrictionAlert if > 5%

These guardrails are the detection mechanism. If the North Star rises while supply earnings or utilization falls below threshold, we have starvation. For example, suppose we run a promotion that discounts buyer fees, funded by raising take rate from 20% to 25%. Buyer repeat rate jumps from 30% to 35%, lifting the North Star. But pro earnings drop from $80 to $75 per job, and utilization falls from 70% to 62%. Pro churn rises from 5% to 8% monthly. Within two quarters, supply shrinks, search-to-fill drops, and the North Star collapses. The guardrail would have fired on earnings and churn in week 2.

Correction: treat the North Star as a balanced scorecard, not a single lever. When starvation is detected, rebalance incentives: reduce take rate, introduce a minimum earnings guarantee, or shift promotion funding to the platform. Then re-run the experiment with both sides measured. The FTC's dark patterns report warns against forcing repeat through friction, so also audit cancellation flows and pricing transparency.

Alternatives: A composite index (e.g., weighted sum of supply earnings and buyer choice) hides trade-offs and is hard to interpret. NPS by side is lagging and not tied to transactions. GMV is activity, not value. The two-sided repeat rate is simple, actionable, and directly tests whether both sides got enough to return.

Decompose for squads: supply acquisition, demand acquisition, match quality, and post-transaction experience. Each squad gets input metrics (e.g., match quality squad owns search-to-fill and time to match) but the North Star remains the arbiter.

Curated: · Written: · Reviewed:

Difficulty: Medium
Q&A-16

Audit a North Star for gaming risk.

Answer

First, what I'd clarify: which North Star, who is compensated on it, and what decision it drives. My assumption for the rest: it's a proxy, a number standing in for delivered value, and it's wired to at least one team's goals. Any proxy under incentive gets gamed, so the audit is about finding the cheapest path to move it.

Core answer: I audit in three passes. One, enumerate the shortest path each actor can take to move the number without delivering the value it stands for. Two, check whether the metric's own definition hides the failure: denominators, exclusions, dedup rules. Three, decide repair or replace against a stated criterion, not a vibe.

Why gaming happens at all: cost asymmetry. Delivering real value is expensive; moving the number is cheap. If a bonus or a launch gate depends on the number, effort flows to the cheap path. That's the mechanism, and it's why "add guardrails" alone never fixes it: you're raising the cost of the cheap path, not changing which path is cheapest.

Worked trace. Say the North Star is weekly active creators on a marketplace, defined as distinct accounts publishing at least one listing in seven days. Three gaming paths, all cheap:

  • Entity splitting: one seller opens five accounts. Count goes up five, supply is identical.
  • Notification pressure: a re-engagement push makes dormant sellers re-publish a stale listing. Activity without new supply.
  • Denominator exclusion: if the headline is active/total creators, dropping dormant accounts raises the ratio. 10,000 creators, 2,000 active = 20%. Exclude 3,000 dormant and it's 2,000/7,000 = 28.6%. The metric gains 8.6 points and not one new listing exists. (Numbers are illustrative.)

Detection: pair the North Star with a counter-metric that gaming can't move cheaply.

gaming pathwhat movescounter-metric that doesn't
entity splittingaccount countdistinct payment instruments transacting
notification pressurere-publish eventsnew listings that get a first buyer
denominator exclusionthe ratioabsolute active count and absolute GMV

If active creators rise while GMV per creator falls, that divergence is the signature. Segment it: if the growth is concentrated in accounts created in the last 14 days with a single listing, it's splitting, not supply.

Trade-offs, with deciding criteria. Guardrails cost real users. A device-fingerprint check at signup cuts bot accounts but also blocks people on shared devices: libraries, families, some markets. Dedup by payment instrument catches splitting but merges legitimate multi-brand sellers. So the criterion: repair if, after the guardrail, the counter-metric moves with the North Star and legitimate-user churn is flat. Replace if the gaming path is the dominant source of growth, most of the metric's increase traces to it, and closing it would require friction heavy enough to churn real users. Then the proxy is the problem, not the guardrail.

Two failure modes to name. Guardrails that suppress complaints instead of fixing the cause: you've hidden the failure, not removed it. And employee incentives: if a team's bonus is the North Star, they will find the path you didn't enumerate; audit the incentive, not just the metric.

Decision point: I'd ship the counter-metric and the divergence alert first, because it's cheap and it tells you whether you have a repair or a replace. Then fix incentives, then the metric.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-3

Build a metric tree for reducing customer churn.

Answer

What I'd say in the first two minutes

First, pin down what churns. I'd assume a B2B SaaS at roughly $40M ARR, 2,000 accounts, monthly billing for SMB and annual for enterprise. Churn splits three ways: voluntary (customer cancels), involuntary (card fails, dunning exhausts), and contraction (seat downgrade). I'd make net revenue retention at 12 months the north star, target ≥105%, paired with logo retention ≥88% annual: NRR alone hides logo loss behind expansion.

Then the tree, top-down:

LevelMetricOwnerThreshold
North starNRR 12moCRO≥105%
North starLogo retentionCRO≥88%/yr
L1Voluntary churnCS≤1.8%/mo
L1Involuntary churnBilling≤0.4%/mo
L1ContractionSales≤1.0%/mo
L2 driver14-day activationProduct≥70%
L2 driverFirst response timeSupport≤4h
L2 driverDiscount depth at renewalSales≤12%
L3 inputOnboarding checklist completionOnboarding≥80%
L3 inputSupport ticket backlogSupport≤50

Worked branch: does activation actually drive retention?

Take a 500-account cohort. Accounts completing the 3-step onboarding within 14 days: 350, retaining at 92% at 12 months → 322. Accounts that don't: 150, retaining at 61% → 92. That's a 31-point gap, and it looks like a lever.

But a gap is correlation. To test causality, randomize 20% of new accounts (100) to a guided-onboarding nudge. If treated activation rises 12 points and 12-month retention rises 6 points versus control, the link is causal and worth scaling. If activation rises 12 points but retention stays flat, activation is a marker, not a lever: you've found a segment, not a fix.

If it is causal: moving 100 accounts from non-activated to activated saves 31 accounts (100 × 31-point gap). At $2,000 ACV that's $62,000 ARR retained. Cost: one CSM at $120k covering 500 accounts = $240/account, so $24k for 100. Net +$38k: worth it, but only after the holdout confirms the link.

Trade-offs

  • NRR vs logo churn as north star. Expansion-led products (usage-based, land-and-expand) should lead with NRR; seat-based SMB should lead with logo retention. Picking NRR when your growth is seat-count lets logo churn rot under a healthy-looking number.
  • Leading vs lagging. Activation and first-response time move weekly and are actionable; renewal is true but arrives too late to steer. Use leading metrics for weekly ops, lagging for quarterly judgment: never swap them.
  • Tree vs causal graph. A tree is a hypothesis map. Links are validated with holdouts or switchbacks, not with cohort correlation.

Failure modes

  • Goodhart on activation. Teams auto-complete the checklist. Detect: activation climbs while 90-day retention is flat. Guardrail: pair every driver metric with a downstream retention check.
  • Involuntary churn masked by dunning. Recovery rate looks healthy while card-update prompts annoy customers into cancelling. Detect: split involuntary from voluntary in the tree and track both.
  • Survivorship in cohorts. Counting only accounts that renewed. Detect: cohort denominator is every account at period start.
  • Cost-to-serve breach. Pushing activation raises support load. Detect: track cost-to-serve per account as a guardrail alongside revenue.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-12

How do you decompose a top-line North Star metric into leading input metrics for product squads?

Answer

Start by refusing the KPI list. A North Star is a stock, not a rate, so decompose it as a stock-and-flow identity first, attach a behavioural lever to each term, then bound each lever with a counter-metric. If you can't write the identity, you don't yet have a decomposition: you have a wishlist.

Take the North Star as Weekly Active Collaborating Teams (WACT): teams that open a shared doc and make at least one edit in a 7-day window. Every team counted this week is retained, newly activated, or resurrected, so the identity is exact by construction:

$$\text{WACT}(t) = \text{WACT}(t-1)\cdot r + N\cdot a + D\cdot w$$

where $r$ is weekly retention of active teams, $N$ is new team signups, $a$ is the 7-day activation rate (team reaches its first shared edit), $D$ is dormant teams, and $w$ is the win-back rate. No term overlaps another, and units are teams throughout.

Illustrative week, labelled as such: prior WACT 40,000, $r = 0.92$ → 36,800 retained. $N = 6{,}000$ signups, $a = 0.35$ → 2,100 new. $D = 3{,}000$ dormant, $w = 0.08$ → 240 resurrected. WACT lands at $36{,}800 + 2{,}100 + 240 = 39{,}140$, a net loss of 860 because churn ($40{,}000 \times 0.08 = 3{,}200$) exceeds new plus resurrected. That single line tells you which squad has the biggest lever this quarter: here, activation, not acquisition.

              [North Star: Weekly Active Collaborating Teams]
                              |
     +------------------------+------------------------+
     |                        |                        |
[Retained]               [New active]            [Resurrected]
WACT(t-1) x r            N x a                   D x w
     |                        |                        |
  depth: sessions/team   7-day activation rate   win-back campaign
  (shared docs, async    (onboarding flow,       (dormant triggers,
   comments per doc)      permissions friction)   re-engagement email)

Each leaf is a candidate input metric. Test it against three criteria before you assign it:

  1. Responsiveness. Moves within days to weeks of a release. Weekly retention does; annual LTV does not.
  2. Actionability. The squad owns a lever (onboarding flow, permission prompts, sync latency) not a lever it merely observes.
  3. Causal link. A past experiment or cohort analysis shows a sustained lift in the input precedes a lift in WACT. Correlation across a dashboard is not enough; you want a shipped change with a measured downstream effect.

Then bound every input with a counter-metric, because each one is gameable in isolation.

LevelMetricSquad leverGuardrail
North Star (lagging)Weekly Active Collaborating TeamsOrg-wide strategyChurn rate, LTV:CAC
Input (leading)7-day activation rateOnboarding flow, permission frictionInvite-acceptance rate, unsubscribe rate
Input (leading)Sessions per active teamShared docs, async commentsSpam reports per user
Operational guardrailTime-to-first-edit p95 < 200 msSync engine, CDN cachingError budget, compute cost per session

A squad pushing activation by auto-inviting a user's whole contact list will lift the input and tank invite-acceptance; the counter-metric catches it in the same weekly read.

Review the tree quarterly. If a squad moves an input 15% for two consecutive quarters with no downstream movement in WACT, the causal hypothesis is dead: retire the input rather than re-baselining it. The identity stays; the leaves rotate as the product matures.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-5

Set KPIs for a low-frequency government service.

Answer

Assumption first. "Low-frequency" means a citizen touches this service once every few years: renewing a licence, registering a birth, applying for a blue badge. Nobody learns the interface. So the KPI set has to measure whether a first-time user finishes, not whether they come back.

The core answer. Start with the four KPIs the UK Government Digital Service's Service Manual makes mandatory for every transactional service, because they are comparable across government and cheap to instrument: completion rate, digital take-up, user satisfaction, and cost per transaction. Then add the two that low frequency forces on you: first-attempt completion and assisted-channel outcome.

Why those four behave as they do. Completion rate is a funnel ratio: sessions that reach the confirmation page over sessions that start a legitimate application. It is the one that catches a broken form. Digital take-up is completed digital transactions over all completed transactions; it catches a service that is technically fine but nobody trusts. Cost per transaction is total service cost over completed transactions, and it is the one that pays for the programme. Satisfaction is the only one that catches a service that completes but humiliates.

The low-frequency twist. For a service used once every five years, "returning user" and "session depth" are noise. Replace them with first-attempt completion: the share of users who finish without a phone call, a re-submission, or a back-office correction. That is the metric that actually predicts citizen effort.

Hypothetical baselines for a 200,000-transaction-a-year service:

KPIDefinitionBaselineTarget
Completion rateconfirmed / started62%85%
First-attempt completionno support contact, no rework48%75%
Digital take-updigital / all completions71%90%
Cost per transactiontotal cost / completions£21 blended; £8.40 digital, £32 assisted£14
Time to completemedian / p9014 min / 41 min10 / 25
Exclusion ratewanted digital, routed to assisted6%<2%

Arithmetic worth having ready: at 200k transactions, moving 10% of volume from assisted to digital saves 20,000 × (£32 − £8.40) = £472,000 a year. That is the sentence that gets the KPI set funded.

Failure modes and how you would see them.

  • Wrong denominator. Analytics reports 90% completion because it only counts sessions that reached the start page; postal and phone applications never enter the funnel. Detect by reconciling analytics completions against back-office case counts monthly, if they diverge by more than a few percent, the funnel is lying.
  • Drop-off at identity verification. Low-frequency users have no stored credential and fail the check. Detect by step-level drop-off plus support call reason codes; a spike at one step is a design bug, not user error.
  • Goodhart on take-up. Hitting the digital target by degrading the phone line. Detect by tracking assisted-channel wait time and abandonment alongside take-up, if take-up rises while assisted wait rises, you moved the cost onto citizens.
  • Exclusion hidden by satisfaction. Only people who completed get surveyed. Detect with equality monitoring on the assisted channel and a completion rate split by protected characteristic.

Trade-offs. The GDS four are cheap, comparable, and blind to rework and exclusion. An outcome KPI, "entitlement granted within 10 working days", is closer to what the citizen wants but slower to move and harder to attribute to the digital team. A back-office set (case processing time, error rate) is easy to instrument and invisible to the user. Which you pick turns on whether the service is transactional or an entitlement, whether there is a statutory deadline, and whether assisted access is a legal right rather than a fallback. If it is an entitlement with a statutory clock, lead with the outcome KPI and keep the GDS four as guardrails.

Curated: · Written: · Reviewed:

Difficulty: Medium
Q&A-11

Set a target for task completion rate.

Answer

Assumptions first. Checkout completion on an e-commerce site, web + mobile. Numerator: the server-side order event, not the confirmation page view. The page view undercounts on flaky mobile networks. Denominator: sessions that reach the first checkout step with at least one item. Window: 90 days, bots and internal QA accounts excluded.

Baseline. Pulled from the warehouse so it reconciles with finance, not from the analytics UI.

SegmentMonthly initiationsCompletionCompletions
Desktop, returning3,20082.0%2,624
Desktop, new2,00071.6%1,432
Mobile, returning2,60070.0%1,820
Mobile, new2,20059.1%1,300
Overall10,00071.8%7,176

Desktop rolls up to 78.0% (4,056/5,200), mobile to 65.0% (3,120/4,800). The 13-point device gap is the whole story, and mobile-new users are the drag.

Target. I build it bottom-up rather than picking a round number. Per-segment targets come from the three interventions with the strongest support in the funnel data: showing shipping cost on the cart page, guest checkout, and inline field validation:

SegmentWeightBaselineTarget
Desktop, returning32%82.0%88%
Desktop, new20%71.6%80%
Mobile, returning26%70.0%80%
Mobile, new22%59.1%72%

Weighted: 0.32×88 + 0.20×80 + 0.26×80 + 0.22×72 = 28.2 + 16.0 + 20.8 + 15.8 = 80.8%.

So the bottom-up build supports ~81%, not 85%. I'd set the commitment at 80% and the stretch at 85%, and say plainly that 85% requires mobile-new to move further than those three interventions justify on their own. The per-intervention estimates are hypotheses, not additive guarantees: they overlap (someone who abandons on shipping cost may also have hit a validation error), so I don't sum them.

Power. Two-proportion z-test, α=0.05 two-sided, 80% power. For the smallest single intervention: guest checkout, modelled as +4 points from 71.8% to 75.8%:

n per arm = (1.96 + 0.84)² × [0.718×0.282 + 0.758×0.242] / 0.04² = 7.84 × [0.2025 + 0.1834] / 0.0016 = 7.84 × 0.3859 / 0.0016 ≈ 1,891 per arm, ~3,800 total.

At 10,000 initiations/month (~333/day) that's ~11 days, so a two-week test. Caveat: this assumes one independent observation per session. If a user checks out more than once, sessions cluster within users and true variance is higher: analyse per user or use a cluster-robust standard error, or the test is underpowered.

Guardrails (any breach pauses the rollout):

GuardrailThreshold
Payment error rate+0.5 pp max
Support tickets per 1,000 sessions+10% max
axe-core accessibility score≥ 95
p95 checkout API latency+50 ms max

Failure modes and detection.

  • Denominator gaming. Excluding slow-connection users inflates the rate. Detect by freezing the denominator definition in code review and watching segment-level rates, if mobile improves while desktop is flat, suspect a filter, not a fix.
  • Simpson's paradox. Overall rate rises while every segment falls, because traffic mix shifted toward desktop. Detect with the query below: compare the overall row against the weighted average of the segment rows.
  • Novelty effect. Early lift decays. Detect with a 4-week holdout after launch.
  • Instrumentation drift. Missing order events. Detect by comparing client-side and server-side counts; >2% divergence means investigate before trusting the number.
SQL
-- Postgres. One row per checkout initiation, 90-day window.
SELECT
  device,
  user_type,
  COUNT(*)                                     AS initiations,
  COUNT(*) FILTER (WHERE order_id IS NOT NULL) AS completions,
  ROUND(100.0 * COUNT(*) FILTER (WHERE order_id IS NOT NULL)
        / COUNT(*), 1)                         AS rate_pct
FROM checkout_funnel
WHERE initiated_at >= CURRENT_DATE - INTERVAL '90 days'
  AND is_bot = false
GROUP BY GROUPING SETS ((device, user_type), (device), ());

Answer: 80% commitment, 85% stretch, over one quarter, with the guardrails above and a mid-quarter review. Double down if we're at 80% by week 6, reassess interventions if we're below 75%.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-14

Measure a platform product used by internal teams.

Answer

Assume an internal developer platform (golden-path templates, CI/CD, observability) serving roughly 40 product teams and 200 engineers. I'd measure it on two axes at once: qualified adoption, and the delivery outcomes the platform is supposed to move. Adoption alone is a vanity number; outcomes alone can't be attributed without knowing who actually uses the thing.

Core answer: pick a small set, define each precisely, and read them together.

Adoption. Qualified adoption = share of teams with at least one production service built from the golden-path template, not merely registered. Active use = weekly active teams, defined as teams with at least one deploy through the platform in the trailing 7 days. Target: 70% of new services via template within two quarters, and weekly active teams at 60%+ of the 40. Time to first integration (TTFI) = median hours from repo creation to first successful prod deploy on the golden path.

Outcomes. Pull DORA's four from the platform's own pipeline telemetry: deployment frequency, lead time for changes, change failure rate, MTTR. These are cheap, no survey, but blind to flow and morale, so add SPACE: a quarterly DevEx survey, 5-point Likert on flow, cognitive load and satisfaction, reported as % favorable.

Support burden = tickets per 100 teams per month, plus the share resolved by docs without a ticket. Duplicate systems retired = count of bespoke pipelines decommissioned.

Worked example (illustrative): before rollout, 40 teams, 12 bespoke pipelines, TTFI median 3 days, deploy frequency 1.2/week, change failure rate 18%. Two quarters in: 28 teams on the golden path, TTFI 6 hours, deploy frequency 4.1/week, change failure rate 11%, tickets 22 → 9 per 100 teams. That's the shape of a real result.

Trade-offs. DORA-only is cheap and objective but gameable and silent on developer experience. SPACE-only is rich but self-reported and costly to run quarterly. Adoption-only is fast and meaningless. Deciding criterion: if you can afford one, run DORA from telemetry and add a lightweight quarterly pulse; add SPACE depth only when you're making a workflow change you need to justify.

Failure modes, with detection:

  • Deploy-frequency gaming: teams split one release into many deploys. Detect by watching median change size (PRs or lines per deploy) fall while deploy count rises and lead time stays flat. Cost: the number moves, delivery doesn't.
  • Forced migration: a mandate inflates adoption while satisfaction drops and shadow pipelines appear. Detect: DevEx % favorable down, tickets up, bespoke pipeline count flat.
  • Attribution overreach: claiming the platform caused a revenue or velocity gain. Detect: no control group. Use staged rollout and difference-in-differences across teams that got the golden path in wave 1 versus wave 2.

Decision rule: report adoption and outcomes side by side, segment by team maturity, and treat any metric that moves without a matching outcome as a measurement bug, not a win.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-15

Build a retention metric for a seasonal product.

Answer

Assumptions I'd state first: an annual-cadence product with one natural use opportunity per year (I'll use tax filing as the running example), acquisition spread across all twelve months, and one-shot billing rather than a rolling subscription. If any of those is wrong the metric changes: I say how at the end.

The metric. Retention for a cohort = the share of users whose first value event landed in season S that complete the value event inside the next seasonal opportunity window. Window = [season_open − 30d, season_close + 45d]. Cohort = month of first value event. Report per cohort, never blended, and publish a cohort only once its window has closed.

Why a window and not a fixed 12 months. A fixed clock measures different things for different cohorts. A user acquired in July has their next opportunity 7 months later; a user acquired in February waits 12. Handing the July cohort a 12-month clock gives them 5 months of credit the February cohort never gets, so their retention looks better for a reason that has nothing to do with the product. Anchoring to "next seasonal opportunity" makes cohorts comparable.

Why censoring bites. Illustrative numbers, measurement date 1 May 2025:

CohortnFiled in Feb–Apr windowExtension window (May 1–Oct 15)Status
Feb 20239,2004,324 (47.0%)closedfinal
Feb 202410,0003,900 (39.0%)opencensored
Jul 20242,0001,180 (59.0%)opencensored

Read on 1 May, the Feb 2024 cohort looks 8 points worse than Feb 2023. It isn't. The extension window hasn't opened yet; when it closes, 800 more of that cohort file and the number lands at 47.0%. The grace window is not a rounding detail: it moves the numerator by 8 points here, and it moves it more for cohorts whose members skew toward late filing. Freeze the window definition at cohort creation; changing it later is a new metric version, not a restatement.

Which retention. Three candidates, and the deciding criterion is whether the event is what the customer paid for and has a bounded, knowable window:

  • Contractual renewal: right when billing is a discrete dated event (monthly or annual subscription). For a one-shot seasonal purchase there is no contract to renew, so the number is structurally ~0 or ~100 and tells you nothing.
  • Active use: right as a leading indicator, wrong as the headline. Logging in to check a refund status is not the value event.
  • Outcome completion: right here. It is the thing the customer bought, it is dated, and it is the only one that predicts next season's revenue.

Failure modes and how I'd catch them.

  1. Season-mix shift. If peak-season acquisition goes from 45% to 60% of the total, blended retention falls even with every cohort flat, because peak cohorts return less (39% vs 59% above). Catch: report cohort-level; when the blended number moves, decompose by acquisition month before anyone reacts.
  2. Censoring. Catch: plot return rate against observation age. If the curve is still climbing at the measurement date, the number is a floor, not a result.
  3. Grace-window drift. Catch: version the window per cohort; a window widened to hit a target shows up as a version change in review.

Leading signals: refund-status logins in the six weeks before season open, and pre-season email engagement. Guardrail: no cohort is published before its window closes, and no window or cohort definition changes without a version bump.

What would change this: a move to monthly subscription billing makes contractual renewal the primary metric and demotes the seasonal window to a segmentation dimension.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-9

Evaluate whether feature adoption predicts retention.

Answer

Headline: Usually adoption is a marker, not a lever. In a typical B2B SaaS signup cohort the naive D30 retention gap between adopters and non-adopters is around 20pp; after matching on pre-adoption behaviour it drops to about 4pp and the confidence interval crosses zero. So I'd treat adoption as a prioritisation signal and only call it causal if a randomized rollout moves retention.

Define three things before touching data.

  • Eligible exposure: the user could actually have used the feature. Has the permission, the plan tier, the data. Drop anyone who couldn't.
  • Adoption quality: not "clicked once." Use a threshold, e.g. at least 3 sessions using the feature in the first 7 days.
  • Retention horizon: pick one and predeclare it. D30 = at least one session in days 23–30. Not "still subscribed."

Worked example (hypothetical, 10,000 signups).

Naive cut: 2,000 adopt in week 1, D30 retention 62% (1,240 users). The other 8,000 retain at 41% (3,280). Gap +21pp.

Propensity matching: logistic model on tenure, plan tier, seat count, prior-week sessions and acquisition channel. 1:1 nearest neighbour, caliper 0.2 SD of the logit. 1,700 matched pairs. Adopters 61%, matched non-adopters 57% → +4pp, 95% CI [−1, +9]. Most of the 21pp was selection.

Encouragement design: randomize whether onboarding surfaces the feature. Take-up 34% treatment vs 9% control. ITT on D30: 47.1% vs 45.8% → +1.3pp, p = 0.31. CACE = 1.3 / 0.25 = 5.2pp for compliers. To detect 1.3pp at 80% power, α = 0.05 two-sided, baseline 46%: n ≈ 16 × 0.46 × 0.54 / 0.013² ≈ 23,500 per arm. Budget for that or don't run it.

Failure modes and how to catch them.

  • Power users adopt everything. Adoption is a proxy for engagement. Detect: match on prior-week sessions; if the lift vanishes, it's a marker, not a driver.
  • Immortal time bias. Requiring adoption within 30 days and measuring D30 means adopters must survive to adopt. Detect: adopters who adopt on day 29 have roughly one day of exposure; anchor retention to a fixed date and require adoption before it.
  • Reverse causality / renewal artifact. Detect: plot adoption timing against renewal date. A spike just before renewal means people adopt because they were already staying.
  • Novelty decay. Detect: measure the effect at D30 and D90. If it halves, it's novelty.

When to use what. Observational data plus matching for prioritisation and hypothesis generation. Randomized encouragement or a staged rollout when you need a causal number and can afford the sample. Predeclare the primary metric and guardrails (support tickets, task success) before you look at the result.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-4

Diagnose a rising conversion rate with falling revenue.

Answer

Before diagnosing behavior, check that both metrics describe the same population. A rising conversion rate with falling revenue is frequently a mix or definition change, not a funnel improvement. Start from the identity:

revenue = sessions × conversion rate × AOV

If CVR rises and revenue falls, then sessions or AOV fell by more than CVR rose. That splits the search into two families: a real shift toward high-converting, low-value traffic, or a measurement artifact where the denominator shrank or the numerator broadened.

Hypothetical arithmetic to fix the magnitudes: sessions 1,000,000 → 900,000, CVR 2.25% → 2.89%, AOV $69 → $47. Revenue $1.56M → $1.22M. CVR up 28%, revenue down 22%. Nothing about the funnel improved; the traffic mix moved.

The mix-shift case is Simpson's paradox and you can see it in one segment table:

segmentsessions beforesessions afterCVRAOV
full-price desktop700,000400,0001.5%$120
discount mobile300,000500,0004.0%$25

Blended CVR goes 2.25% → 2.89% while each segment's CVR is unchanged. Revenue falls because the $25 segment grew from 30% to 56% of sessions. Detection: compute CVR and AOV per channel, device, and campaign; if every segment is flat but the blend moved, it's mix. A rate-vs-mix decomposition (hold mix fixed, vary rates, then vice versa) attributes the delta.

The artifact case: the denominator shrank. Bot filtering, a consent-banner change, or a tracking release that drops sessions inflates CVR without any user behaving differently. Check session counts against the analytics source of truth and against server logs; a step change on the deploy date is the tell. The numerator can also broaden, if "conversion" was redefined to include add-to-cart or newsletter signup, the rate rises and revenue doesn't follow. Read the event definition and its version history.

Real mix shifts have their own failure modes, each with a detection:

  • Sitewide discount: CVR up, AOV and gross margin down. Detect by comparing revenue net of discount and margin per order, not order count. If margin per session fell, the promo lost money.
  • Refunds and cancellations: conversions counted at checkout, revenue recognized net. Detect by tracking refund rate by cohort and the gap between gross bookings and net revenue; a 3-day refund spike on promo orders is the signal.
  • Promo abuse or fraud: high conversion from orders that later cancel or fail payment. Detect with cancellation rate, payment-failure rate, and repeat-account clustering on the promo code.
  • Cannibalization: a cheap SKU displaces a bundle. Detect with attach rate of the high-margin item and average units per order.

Choosing between responses: if it's a measurement artifact, fix tracking and don't touch the funnel. Rolling back a working page would be the wrong move. If it's a deliberate promo, decide on margin per session, not CVR, and roll back only if margin per session fell. If the cause is ambiguous and the change is reversible, run a holdout: keep 10% of traffic on the old experience and compare revenue per session, which is the metric that can't be gamed by mix. Escalate to rollback immediately only when fraud or a payment failure is inflating conversions, because those orders carry chargeback cost.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-7

Investigate a sudden KPI jump after a release.

Answer

A sudden KPI jump after a release is guilty until proven innocent: assume measurement change first, product change second. Clarify the metric definition, the release scope, and the time window. Then run one discriminator: does the jump survive deduplication and appear in an independent source?

Why this order: releases touch both product and instrumentation. A 40% jump in DAU is more likely a double-firing event than a real 40% behavior change. The fastest check is to compare the primary dashboard against a raw event count with distinct event IDs.

SQL
-- Hypothetical: daily active users by app version, raw vs deduped
WITH deduped AS (
  SELECT DISTINCT event_id, user_id, app_version
  FROM events
  WHERE event_date = '2025-03-10' AND event_name = 'app_open'
)
SELECT app_version, COUNT(DISTINCT user_id) AS dau
FROM deduped
GROUP BY app_version;

Compare that to the raw count without DISTINCT event_id. A worked example:

app_versionraw DAUdeduped DAUduplicate rate
5.1.0100,000100,0000%
5.2.0140,000100,00028.6%

The jump is entirely in 5.2.0 and disappears after dedup. That is an artifact. Duplicate events look like multiple rows with the same event_id, often from a retry or double-instrumentation. Detection: SELECT event_id, COUNT(*) FROM events GROUP BY 1 HAVING COUNT(*) > 1. Operational cost: inflated DAU, wrong A/B test conclusions, a wasted sprint on a non-existent problem.

Trade-offs: trusting the dashboard and segmenting by cohort is faster, but if the bug is in the pipeline, every segment inherits it. Reconstructing from raw events is slower but authoritative. Deciding criteria: if the jump is >20% and concentrated in one client version, go raw. If it is spread across versions and platforms, suspect a real change or a backfill.

Other failure modes with detection signals and cost:

  • Bots: user-agent patterns or request rate per IP >100/min. Cost: polluted conversion metrics.
  • Backfills: event_timestamp vs ingestion_timestamp gap >1 day. Cost: historical series shifts, breaking week-over-week comparisons.
  • Late data: watermark lag >2 hours. Cost: undercounted recent days, then a phantom jump when data lands.
  • Filter changes: compare WHERE clauses in dbt models between releases. Cost: denominator shifts, making a flat metric look like a spike.

If measurement is valid, check exposure: query feature flag logs for the percentage of users who actually saw the change. Then check guardrails: crash rate, p99 latency. Only then attribute impact.

Annotate or restate the series when definitions changed, repair contracts and tests, and communicate uncertainty before making a product decision.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-13

Plan an A/B test for a checkout change.

Answer

The 90-second version. I'd test one change: defaulting returning shoppers to their saved card on a single-page checkout, against the current three-step flow. Hypothesis: removing the card-entry step lifts order completion from 62% to 63.5% of checkout starts without moving the payment authorization rate. Unit of assignment is user_id for logged-in shoppers and a stable first-party cookie for guests, hashed with a per-experiment salt so a user lands in the same arm across devices. Primary metric is orders per checkout start over a fixed 5-day window; guardrails are authorization rate, refund rate, p99 checkout latency and checkout-tagged support contacts.

Sample size. Two-proportion test, α = 0.05 two-sided, power 80%, baseline p = 0.62, MDE 1.5pp relative (0.93pp absolute):

n per arm = 2 · (1.96 + 0.84)² · 0.62 · 0.38 / 0.0093² ≈ 42,800

At 20k checkout starts/day split 50/50 that's ~4.3 days per arm, so I'd run 5 full days to balance weekday and weekend traffic. If I need to watch it daily, I switch to an always-valid sequential test (mSPRT), which costs roughly 15–20% more sample but lets me stop early on a guardrail breach.

Guardrails, with baselines and tripwires.

guardrailbaselinetripwire
payment authorization rate97.5%drop > 0.5pp
refund rate (7-day)1.8%rise > 0.3pp
p99 checkout latency1.2s> 1.8s
checkout support contacts / 1k orders4.1> 6.0

Failure modes and how I'd catch them.

  • Sample-ratio mismatch. Assignment counts drift from 50/50 when a bot filter or a redirect drops the cookie before the variant renders. Detect with a chi-square on daily assignment counts; alarm at p < 0.001. A 52/48 split on 86k users gives χ² ≈ 138: that's a bug, not noise.
  • Exposure dilution. If the exposure event fires before the variant renders, both arms look identical and the effect shrinks toward zero. Detect by comparing assignment counts to exposure counts; the ratio should be ~1.0 per arm.
  • Peeking. With a fixed-horizon test, each uncorrected look inflates the false-positive rate: five looks at α = 0.05 pushes it to roughly 14%. Either don't look, or use the sequential test above.
  • Novelty. Returning shoppers react to the layout change in week one. Plot the daily effect; if the day-1 lift is 3× the day-3 lift, extend the window before deciding.

Trade-off. Fixed-horizon is the cheapest design and the right default when the change is low-risk and I can wait five days. Sequential is the choice when a guardrail breach needs a same-day kill switch, and I accept the larger sample. A switchback design would only be needed if arms shared inventory or promo codes: checkout is user-scoped, so SUTVA holds and a plain user-level A/B is correct.

Decision rule. Ship if the primary metric clears the MDE with guardrails flat; iterate if the point estimate is positive but under the MDE and no guardrail moved; stop if any guardrail trips or the effect is flat-to-negative. Negative results get written up and kept.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-6

Design guardrails for an engagement experiment.

Answer

Clarify, then answer. Before designing anything I'd pin down what "engagement" is a proxy for. If the primary metric is sessions per user on a feed, the value it stands in for is that users found something worth coming back for. The experiment is only worth running if that metric can move without the guardrails moving. So I'd state the assumptions: 50/50 A/B, roughly 1M weekly actives, a two-week primary read, a ranking or notification change, and then answer directly: guardrails are pre-registered metrics, each with a numeric stop threshold, a detection window, and a named owner who can kill the experiment. The primary metric decides whether to scale. Guardrails decide whether to stop. A guardrail is never overridden by a good primary result.

Why engagement inflates. Engagement is a proxy, and proxies diverge from value in three predictable ways: the cost lands later (retention), on someone else (notification recipients), or is invisible in the metric (regret, dark patterns). That mechanism sets the design. A notification change can lift sessions today and unsubscribes on day 3–7; the lag is why the guardrail window must be longer than the primary metric window, and why you cannot read the guardrail off the same three-day dashboard that reads the primary metric.

The guardrail set. Figures below are illustrative for a 1M-user app, not measured.

GuardrailMetricStop thresholdWindowDetection
Notification fatigueUnsubscribes per 1k sends> 1.5× control7d rollingDaily
Channel lossOS-level notification opt-out> 1.2× control14dDaily
ComplaintsSupport tickets tagged "too many"> 2× control7dDaily
Latencyp99 feed render+30 ms vs control1dHourly
Errors5xx rate> 0.5% absolute1hRealtime
RetentionD30 return rate−1.0 pp vs control30dWeekly
Task successSearch-to-click success−2% relative7dDaily
Harmful contentReports per 10k impressions> 1.5× control7dDaily
AccessibilityContrast / alt-text regressionAnyPre-shipCI gate

Two pieces of arithmetic. Sample size for the retention guardrail: baseline D30 return 40%, detecting −1.0 pp at 80% power, α = 0.05 two-sided, needs n ≈ 7.84 × 0.48 / 0.0001 ≈ 38,000 per arm. At 500k per arm you have plenty: the binding constraint is the 30-day window, not sample size. That is the argument for pre-registering the window instead of peeking.

Peeking: 14 daily looks at α = 0.05 each gives family-wise error ≈ 1 − 0.95¹⁴ ≈ 51%. Either use a sequential test with alpha-spending or fix one look date. Otherwise you will stop on noise.

Failure modes and how they're detected.

  • Notification fatigue: unsubscribe rate crosses 1.5× control on a 7-day rolling window → auto-pause the send. Miss it and each 1k unsubscribes is 1k users you cannot reach again.
  • Multiple comparisons: 12 guardrails at α = 0.05 gives ≈ 46% chance of at least one false alarm. Fix by pre-registering which are hard stops and which are alerts to investigate.
  • Segment masking: aggregate retention flat while a vulnerable segment drops. Pre-register two or three segments and test the interaction, not just the main effect.
  • Stop-authority theatre: dashboard refreshes daily, harm accrues hourly. Measure time from breach to stop; if it exceeds the harm window, the guardrail is decorative.

Trade-offs and when not to run. Alternatives: pre-registered guardrails with stop authority (chosen); a 1% ship-and-watch (faster, but no counterfactual, so you cannot attribute); a quarter-long holdout (clean long-term read, costs revenue and iteration speed). Do not run the experiment at all if the guardrail you need cannot be measured inside the window you have: you need D30 retention but must ship in three days. Then run a capped pilot with a hard blast-radius limit, or don't ship.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-10

When targeting aggressive growth on a primary North Star metric, how do you select and calibrate guardrail metrics to prevent system degradation or metric gaming?

Answer

The 60-second answer

Aggressive North Star targets rarely fail because the metric is wrong. They fail because the cheapest path to the number is usually the one that damages something nobody was watching. So I pick guardrails by asking one question per candidate: what is the cheapest way to move the North Star without creating real value? Each answer becomes a guardrail, and every guardrail gets its threshold declared before the experiment starts, not after the number looks good.

Three failure modes cover most cases. Borrowed trust: growth through dark patterns, involuntary signups, or spammy loops. Borrowed quality: hitting the number by making the product worse. Borrowed time: pulling demand forward or cannibalizing an adjacent surface. One guardrail per failure mode, three to five total. More than that and you can't ship anything, and the team starts ignoring the alerts.

The metrics I'd actually wire up

For borrowed trust: unsubscribe and opt-out rate, account-closure velocity, and 7-day refund or dispute rate. For borrowed quality: task-completion success rate, crash-free session rate, and p99 API latency. For borrowed time: D30 cohort retention measured against an unexposed holdout, plus churn in the adjacent channel the growth loop is stealing from.

Calibration

Thresholds come from the metric's own historical variance, not from a gut feel. Pull 8–12 weeks of the guardrail's baseline, compute the standard deviation of the daily or weekly value, and set two trip levels. Soft trip at two standard deviations: page the owning team, stop expanding experiment traffic (cap the rollout), require a root-cause writeup within 24 hours. Hard trip at three standard deviations, or at an absolute business floor you'd defend regardless of variance: say p99 latency above 250 ms: halt the rollout, flip the feature flag off, block the release even if the North Star is up.

Two details that decide whether this works. Thresholds are one-sided: you only trip on degradation, never on a guardrail improving. And the guardrail must be measured on the same randomization unit as the treatment, with enough traffic to detect the regression size you care about. A guardrail that can't see a 1% drop is decoration.

Worked example

North Star is monthly completed orders, target +15% quarter over quarter. A growth team ships one-click repeat ordering with aggressive push notifications.

SignalBaselineObservedDelta
Completed orders—+12.4%target hit
App uninstall rate0.4%3.2%+2.8 pts, ~7 sd
7-day order dispute rate4.2%7.8%+3.6 pts, ~4.5 sd
Service p99 latency110 ms118 msunder 1 sd

The North Star hit its target and the release still stops. Uninstalls and disputes both blew past the hard trip, which is the signature of extraction rather than creation: the orders were real, the customers were not staying. Latency passed, so the problem is not capacity: it's the notification loop, and the fix is in the growth mechanic, not the infrastructure.

Where guardrail programs go wrong

Guardrails get gamed too. If a team knows uninstalls are watched, they can suppress the uninstall prompt and inflate the number without changing behavior, so pair each guardrail with a second, harder-to-fake signal (disputes, retention) rather than trusting one. And if the hard trip requires a human to approve the rollback, it will not fire at 2 a.m. when the North Star is up 12%. The circuit breaker has to be automatic, or it is a suggestion.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-18

Decide what to do with a statistically significant tiny lift.

Answer

What I'd say first

Statistical significance tells you the effect is probably not zero. It does not tell you the effect is worth having. Before deciding anything, I check the test is valid, then convert the lift into absolute business terms and compare it against the fully-loaded cost of shipping and keeping the change. If the confidence interval sits entirely below the smallest effect I'd act on, the answer is no, and the p-value doesn't change that.

1. Is the result real? Check SRM first.

Sample ratio mismatch invalidates everything downstream: if assignment or logging is broken, the p-value is computed on a biased sample and means nothing. Chi-square the observed split against the intended one.

Python
from scipy.stats import chisquare
# intended 50/50, observed after 2M assignments
chisquare([1_004_000, 996_000], [1_000_000, 1_000_000])

chi2 = 4000²/10⁶ + 4000²/10⁶ = 32, df = 1, p ≈ 1.5e-8. That's SRM. Common causes: bot filtering applied to one arm only, redirect-based assignment dropping users, dedup in the logging pipeline. Fix the pipeline and rerun; don't interpret the lift.

2. Was the analysis predeclared?

If the primary metric was picked after scanning the dashboard, alpha is inflated. Twenty independent metrics at alpha = 0.05 give a 1 − 0.95²⁰ ≈ 64% chance of at least one false positive. A tiny "significant" lift on a post-hoc metric is exactly what that looks like.

3. Convert to absolute terms.

Hypothetical: baseline conversion 3.00%, treatment 3.02%, 10M users per arm.

  • Absolute lift: 0.02 pp
  • se = √(0.03 × 0.97 × 2/10⁷) = 7.6e-5, z = 2.6, p ≈ 0.009
  • 95% CI: [0.005 pp, 0.035 pp] → [0.17%, 1.17%] relative

On 20M monthly users that's 0.0002 × 20M = 4,000 extra conversions a month. At 10% paid conversion and $120 ARPU, ~400 payers → ~$48k/year.

4. Compare against cost, not against zero.

The decision is $48k/yr against the fully-loaded cost: build, maintenance, on-call surface, and the permanent branch in the signup path. A config flip that costs nothing to keep: ship. A new service with two engineer-weeks of build and $15k/yr of maintenance: the margin is thin enough that the risk of a guardrail regression decides it.

5. Guardrails and duration.

Check the lift isn't bought with a regression: latency, support tickets, refunds, unsubscribes. A +0.02 pp conversion with +2% unsubscribes is a loss. Plot the cumulative effect by week, if it decays, it's novelty, not a durable lift.

6. Decide and record.

Predeclare a minimum practically important effect. If the CI's upper bound is below it, don't ship, and write down why: the result is still useful evidence that this lever is exhausted. If the CI straddles it, the test was underpowered for the decision; you needed more traffic or a bigger change.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-20

Design a long-horizon holdout to measure whether a shipped change produced durable, incremental movement in a core metric rather than a short-lived lift.

Answer

Clarify first: is the change already shipped to everyone, and can we withhold it from a random slice without breaking a contractual or legal promise? Assume yes: a ranking and UI change in a product with 2M monthly users, core metric is 28-day retained actives, randomization at user ID.

Hold back 5% of eligible users, randomly, stratified by platform, tenure cohort and acquisition channel. User-level, not session-level, so the holdout stays clean across devices. 5% is a cost decision: it caps forgone value at 5% of the change's effect while keeping the arm as large as we can afford.

Power is where this design usually dies. For a two-proportion test at 80% power and two-sided α = 0.05, n per arm ≈ (1.96 + 0.8416)² · [p₁(1−p₁) + p₂(1−p₂)] / (p₂−p₁)², the standard sample-size result in the NIST/SEMATECH e-Handbook, section 7 (Product and Process Comparisons). With a 10% baseline and a 1% relative lift (10.0% → 10.1%): 7.85 · 0.1808 / 0.000001 ≈ 1.42M per arm, 2.8M users total. More than the whole population. A 5% holdout on 2M users gives 100k per arm, which detects only about a 3.8% relative lift (0.38pp). So either accept that floor, raise the holdout toward 50%, or pick a metric with more headroom. Say this out loud; it is the trade-off the question is testing.

Duration: long enough to cover two full seasonal cycles for the metric. For a weekly-use product that is two quarters, so 6 months. Novelty and primacy effects decay in the first 2–4 weeks; seasonality needs a full year or a synthetic control to net out.

Separating the effect: difference-in-differences against the holdout, using the pre-period as baseline. Concurrent launches are the main threat. If a launch hits both arms equally, DiD absorbs it. If it is targeted at treatment only, exclude those users or run the launch as a factorial cell. If the control is contaminated, build a synthetic control from matched non-experimental markets and check pre-period fit before trusting the estimate.

End criteria, pre-registered: cumulative DiD lift on the core metric at or above the target (1% relative) with the 95% CI excluding zero, stable across the last two 4-week windows, and no guardrail breach (support contacts, p95 latency, revenue per user). If the CI still includes zero after 6 months, the honest answer is "no detectable durable effect": roll back, or keep the holdout only if the cost of being wrong is high. Positive but wide: extend, don't declare victory.

Failure modes to name: sample ratio mismatch (daily chi-square), instrumentation drift between arms, a novelty spike that decays (compare week 1 with week 12), seasonality read as effect, and peeking (use alpha spending if you want interim looks).

Cost of withholding: 5% of users don't get a change worth roughly 1% of retention for six months. Bounded, and it buys the only clean incrementality estimate you will ever get.

DecisionChoiceWhy
Holdout population5% of eligible users, random at user ID, stratified by platform, tenure, channelCaps forgone value; stratification cuts variance
Duration6 months (two quarters)Two seasonal cycles; novelty decays
AnalysisDifference-in-differences vs pre-period; synthetic control if control is contaminatedNets out seasonality and shared launches
End criteriaPre-registered 1% relative lift, 95% CI excluding zero, stable over last two 4-week windows, guardrails cleanSame target as the power calculation; no moving goalposts

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-21

Assess telemetry quality before a launch decision.

Answer

What I say first

Before opening a dashboard I ask two questions: what decision does this telemetry gate, and what value would flip it? If the gate is "ship if 7-day conversion ≥ 4.0%", the telemetry only has to resolve 4.0% from 3.8%: that sets the precision bar, and everything below is judged against it. Then I check three things in order: does the event fire where I think it does, is identity correct, and is the missing data random or correlated with the outcome. Assumptions I state out loud: one primary metric, one launch cohort, a 7-day pre-launch baseline, and a pipeline freshness SLA of 6 hours.

The checks, and what a bad result looks like

CheckBad resultDetection / threshold
Schema + event_versionNew field null on old clientsNull rate on a required field > 0.5%, or a step change > 2σ vs the 7-day baseline
Client coverageOne build missingEvents per DAU by app_version vs the release manifest; any shipped version at 0
IdentitySame user counted twiceCOUNT(*) / COUNT(DISTINCT event_id) > 1.02
TimeUTC vs local skewp99 of ingest_ts - event_ts; a bimodal lag histogram means a client is sending local time
ConsentRegion silently droppedConsent-flag coverage by geo; EU coverage 30% below US is a bug, not a preference
Bots / test trafficInflated top-of-funnelShare of events from the internal IP allowlist or known crawler user-agents
FreshnessPipeline stallWatermark lag > 6h SLA

A single query covers dedup and late arrival (BigQuery standard SQL):

SQL
SELECT
  COUNT(*)                                        AS rows,
  COUNT(DISTINCT event_id)                        AS distinct_ids,
  COUNTIF(ingest_ts - event_ts > INTERVAL 6 HOUR) AS late_over_6h
FROM analytics.launch_events_v2
WHERE event_date = '2025-03-04';

Worked arithmetic: does missingness flip the gate?

Measured conversion is 4.2% over 92% of sessions; 8% are missing, concentrated in one client build. If those sessions convert at the observed rate, true conversion stays 4.2% and the gate passes. If they convert at zero, plausible if that build is the one that crashes on the paywall, true conversion is 0.92 × 4.2 = 3.86%, below the 4.0% gate. The decision is not robust to the missing cohort, so the job is to bound it, not impute it. Pull the crash-free rate for that build from the mobile crash reporter; if it is normal, the missingness is likely random and the gate holds.

Trade-offs: delay, narrow, or ship with a caveat

Three credible options. Delay if the missing cohort is correlated with the outcome and you cannot bound it within the launch window: cost is the delay itself. Narrow (5% rollout) if you can instrument the gap and re-measure in days: cost is a slower read but a real signal. Ship with a caveat if the missingness cannot move the metric across the gate: cost is a documented bias you carry forward. The criterion is one question: can the missing cohort move the number across the threshold? If yes, delay or narrow. If no, ship and log it.

Failure modes and how I detect them

  • Silent schema drift: a producer renames a field, the consumer defaults to null, and the metric quietly drops. Detect with a null-rate alert per field, not a schema diff.
  • Identity collision: an anonymous_id reused across devices inflates DAU. Detect via distinct IDs per device_id > 1.
  • Late backfill: yesterday's number changes after the decision. Detect via watermark lag and a re-run diff on the same window.
  • Consent gap: a region is excluded and conversion is biased. Detect via coverage by geo, not by total volume.

Decision rule

If missingness can move the metric across the gate, delay or narrow. If it cannot, ship and document the bias. Never fill gaps invisibly: a filled gap is a claim you cannot defend in the post-mortem.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-23

Create privacy-conscious product analytics.

Answer

Core answer

Before collecting anything, name the decisions this data changes: which pricing-page variant ships, whether onboarding step 3 is dropped, which of two retention emails wins. Each decision fixes a metric, a segment, and the smallest effect size that would flip the call. That effect size sets the sample size, and the sample size sets how much privacy budget you can afford. You cannot pick a k or an ε before you know how many users a segment needs.

Assumptions I'd state out loud: consumer product, EU and US users, events land in BigQuery, the client SDK is the collection point. Then collect the minimum event set, keep quasi-identifiers out of the warehouse where a join key will do, and pick the weakest mechanism that still survives the threat model: pseudonymization, then k-anonymity, then differential privacy, in that order of cost.

Why pseudonymization alone fails

Hashing a user ID is not anonymization; it is a stable join key, and stability is what linkage attacks exploit. Narayanan and Shmatikov re-identified Netflix Prize records from as few as 8 ratings plus approximate dates by joining against IMDb. AOL's 2006 search-log release was de-anonymized from query text alone. If your stream carries a stable ID plus a few quasi-identifiers (ZIP, birth year, device model, a timestamp) you are one public dataset away from re-identification.

k-anonymity raises the bar: every released row must be indistinguishable from at least k−1 others on the quasi-identifiers. Cheap and checkable, but it does not survive homogeneity (all k rows share the sensitive value) or background knowledge. l-diversity and t-closeness patch those at the cost of more generalization, hence less utility.

Differential privacy is the only mechanism with a formal guarantee: an adversary's posterior moves by at most a factor of e^ε. It costs noise, and noise costs sample size.

MechanismGuaranteeCostUse when
Pseudonymization (hashed ID)none against linkage~0internal joins, nothing released
k-anonymity, k=100indistinguishability on QIsgeneralization, lost tail segmentsdashboards, cohort reporting
Local DP, ε≈2 per datumε-DP per userheavy noise, needs large nclient telemetry, no raw events
Central DP, ε=0.1 per queryε-DP, better utilitytrusted curator, budget accountingwarehouse aggregates

Budget arithmetic

Composition is where teams get caught. Answering T queries at ε each, with δ=1e-5, advanced composition gives roughly ε_total ≈ ε√(2T ln(1/δ)) + Tε(e^ε−1). For T=100 and ε=0.1: 0.1·√(2·100·11.51) + 100·0.1·(e^0.1−1) = 4.8 + 1.05 ≈ 5.9. A hundred-query dashboard is not ε=0.1; it is ε≈5.9. Budget per team per quarter, not per query.

Failure modes and how to detect them

Differencing attack. Two queries whose difference isolates one user. Q1: average session length, all users, last 7 days = 412 s over 1,000 users. Q2: same minus user X = 411.6 s over 999 users. Difference: 412,000 − 411,188.4 = 811.6 s, which is user X's session. Detect with query-set size control, reject any query whose result set is under k, plus auditing for near-identical query pairs.

Deletion that does not propagate. GDPR Art 17 erasure removes the raw row, but the aggregate already shipped to the dashboard. Detect by keeping a lineage graph from raw table to every derived table and export, then deleting a synthetic user and asserting zero rows downstream.

Consent drift. An IAB TCF v2.2 signal is not honored by a vendor SDK. Detect with a nightly diff of consent state against events actually emitted.

When not to do this

If the decision is one-off, run a study with 20 participants instead of instrumenting two million. If support genuinely needs per-user timelines, keep them in a separate access-controlled store with 30-day retention, outside the analytics warehouse.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-24

Evaluate metrics after a product strategy change.

Answer

The 90-second version

First I'd pin down what changed and what decision each metric is supposed to drive. A metric is only good or bad relative to a decision: after a strategy change the question isn't "is this number still high?" but "does it still predict the outcome we now care about?" I'd assume the strategy moved from growth-at-all-costs to land-and-expand, and that I can backfill historical event data.

Then I'd sort the existing dashboard into four buckets (outcome, input/driver, guardrail, diagnostic) and re-derive each against the new goal. Outcome metrics get re-validated, inputs get re-tested for whether they still move the outcome, guardrails stay put, diagnostics get relabelled and moved off the exec view.

metricroleaction
new signups/wkold outcomefreeze as legacy series, drop from exec view
weekly active workspacesnew outcome candidatevalidate, then adopt
activation rateinputre-test against the new outcome
p95 API latencyguardrailkeep, unchanged
trial-to-paiddiagnosticrelabel, keep for debugging

Worked example

A B2B SaaS moves from growth-at-all-costs to land-and-expand. Old North Star: new signups/week, running ~900. New candidate: weekly active workspaces (WAW). Workspaces with ≥3 distinct users running ≥1 automation in the last 7 days.

  • Backfill WAW over the last 26 weeks: baseline 4,100, weekly σ ≈ 180. Target +20% in two quarters → 4,920.
  • Causal check: correlate weekly WAW with 90-day net revenue retention across those 26 cohorts. If r < 0.3, WAW isn't a leading indicator of the new goal: don't adopt it, keep looking.
  • Guardrails: gross new logos ≥ 700/week (down from 900, a deliberate 22% tolerance during transition), p95 API latency ≤ 400 ms, support tickets per 100 accounts ≤ 3.2.

What actually breaks

  • Definition discontinuity. Redefine "activation" mid-quarter and the time series breaks. Freeze the old definition, publish the new one alongside, and mark the changeover date on every chart: otherwise a 9% jump looks like progress when it's an instrumentation change.
  • Simpson's paradox. WAW can rise overall because a new enterprise segment with many users per workspace grows, while SMB WAW falls 12%. Segment before you celebrate.
  • Goodhart. If sales comp is still on signups, reps keep stuffing low-quality trials. Move comp to 90-day retained revenue or the new metric fights the old incentive.

Trade-off

Adopt the new North Star now (fast alignment, breaks comparability, invites gaming) versus parallel-run for a quarter (dual reporting cost, slower, but you get a validated baseline and the correlation number). Deciding criterion: do you have ≥8–12 weeks of backfilled data with stable instrumentation? Yes → adopt with a frozen legacy series. No → parallel-run.

Then communicate the target change and its tolerance, and schedule a review at the end of the first full quarter before it becomes the permanent North Star.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-25

Test whether a metrics program is production-ready.

Answer

The 90-second answer

Start by asking what decision each metric is supposed to change. A metrics program is production-ready when a decision made from a number would survive being re-derived from raw events by someone else. So the test is not "does the dashboard load": it is reconciliation plus a handful of failure drills on the metrics that actually drive decisions.

Assumptions I would state up front: a warehouse (Snowflake or BigQuery), a transformation layer (dbt or similar), a BI tool, and an experimentation platform. If any of those are missing, the test changes shape.

Core test

Pick the 5-10 metrics that have a decision attached: the ones where someone says "if this moves, we do X." For each, re-derive it independently from source events, in a fresh query, without reusing the production model. Compare. Tolerance is a decision: exact match is usually impossible once late events exist, so set a tolerance (say 0.5% on a count) and make the owner sign off on it in writing.

Then run the drills:

drillhow you detect failure
duplicate eventscount(*) vs count(distinct event_id) per session; a gap means retries are double-counting
event losscompare client-emitted count to warehouse count for the same window
late arrivalhistogram of ingest_time - event_time; if p99 exceeds your partition window, backfills silently miss data
definition drifthash the metric's SQL; alert when the hash changes without a version bump
silent dashboard failurefreshness check: max(event_time) vs now()
sample ratio mismatchchi-square on assignment counts

Arithmetic for SRM: this is the one people skip. 100,000 users, expected 50/50. Observed 49,200 / 50,800. Chi-square = (800² / 50,000) × 2 = 25.6 on 1 df, p ≈ 4×10⁻⁷. That is not noise; something in assignment or logging is broken, and every result from that experiment is suspect. A common alert threshold is p < 0.001: a convention, not a law.

Trade-offs

The expensive mistake is auditing all 400 metrics. At roughly 30 minutes each that is 200 engineer-hours for a program nobody reads. Audit the 8 that change behavior; give the rest a freshness check and move on.

Second trade-off: exact versus tolerant reconciliation. Exact is a stronger claim but fails on any late-arriving event; tolerant is honest but can hide a real bug under the tolerance. Set tolerance per metric and require it in writing.

When not to do this: pre-product-market-fit, metrics are for exploration, not decisions. A freshness check and a schema test are enough; the full audit is premature.

Failure modes and what they cost

  • SRM: experiment results invalid, ship decision wrong. Detect with the chi-square above.
  • Late events: yesterday's number changes today, eroding trust. Detect with the arrival histogram.
  • Definition drift: two teams quote different numbers for "active user." Detect with SQL hashing.
  • Gaming: the metric improves while the outcome does not. Detect by pairing each metric with a guardrail: revenue per active user alongside DAU.

Close

Owners, incident handling, and evidence that decision-makers read the number the same way. If two people cannot agree what "active" means, the program is not ready regardless of pipeline health.

Curated: · Written: · Reviewed:

Difficulty: Hard