Skip to content
mlmentorship

Choose metrics for an ML product

Define metric populations, horizons and decision roles, then apply a joint release rule without overriding its guardrails.

Published · 5 min read ·Core ·Intermediate

Product & experimentation · active recall

Practice before you read

20 minutes. Define the decision first, then design the measurement and enumerate validity threats.

Product & experimentation · closed-book attempt

Choose metrics for an ML product

Define the decision first, then design the measurement and enumerate validity threats.

Problem

Context. An invented randomized experiment compares two product versions on independent eligible users, each with one binary task outcome. The results and predeclared quality, cost, and latency rules appear below. Task. Compute the improvement and cost per success, assess the practical-effect rule, and apply every release gate. Explain which measurements are primary outcomes, guardrails, or diagnostics. Constraints. Preserve the stated unit of analysis and predeclared thresholds. A positive headline result cannot override a failed mandatory guardrail; distinguish observed estimates from confidence guarantees. An invented randomized, independent-user experiment has 10,000 eligible users per arm, each contributing one binary task outcome. Arm A completes 6,000 tasks for $10,000; B completes 6,600 for $13,000. Predeclared rules require improvement's lower confidence bound above two percentage points and cost/success below $2. The p95 latency limit is two seconds. B's observed p95 is 2.1 seconds. Should the full release proceed?

20:00recommended time

Closing or reloading clears the scratchpad. Only score, weak rubric dimensions, attempt count, and retry date can be stored locally.

30-second answer map

A release passes only when every required outcome and guardrail passes on the same population and horizon.

Two passing metrics cannot overrule the failed latency limit

Two passing gates cannot outvote the failed third gateCompletion and cost pass, but latency exceeds its declared limit. The release condition is an AND, not a majority vote.Every required gate must pass on thesame route✓gain✓costxlatencyGain 4.66; cost 1.97; latency 2.1.Release blocked.
Read it this way: Completion and cost pass, but latency exceeds its declared limit. The release condition is an AND, not a majority vote. Can two passing gates compensate for latency 2.1 above its limit two?
Full interview answer 5 min read
Reading depth

Choose metrics and a release decision that account for user outcomes, cost, uncertainty, and mandatory operating limits.

Problem

Context. An invented randomized experiment compares two product versions on independent eligible users, each with one binary task outcome. The results and predeclared quality, cost, and latency rules appear below.

Task. Compute the improvement and cost per success, assess the practical-effect rule, and apply every release gate. Explain which measurements are primary outcomes, guardrails, or diagnostics.

Constraints. Preserve the stated unit of analysis and predeclared thresholds. A positive headline result cannot override a failed mandatory guardrail; distinguish observed estimates from confidence guarantees.

An invented randomized, independent-user experiment has 10,000 eligible users per arm, each contributing one binary task outcome. Arm A completes 6,000 tasks for 13,000.

Predeclared rules require improvement’s lower confidence bound above two percentage points and cost/success below $2. The p95 latency limit is two seconds. B’s observed p95 is 2.1 seconds. Should the full release proceed?

Picture

The release rule is an AND gate, not a vote among favorable measurements.

Reference drawing

Two passing metrics cannot overrule the failed latency limit

Two passing gates cannot outvote the failed third gateCompletion and cost pass, but latency exceeds its declared limit. The release condition is an AND, not a majority vote.Every required gate must pass on thesame route✓gain✓costxlatencyGain 4.66; cost 1.97; latency 2.1.Release blocked.
Derivation
Two passing metrics cannot cancel one latency vetoThe completion gain lower bound 4.66 points exceeds its two-point floor, cost 1.97 dollars is below two dollars, but latency 2.1 seconds exceeds two seconds. Each metric has its own labelled scale and all three feed an AND gate. Diagnostics cannot authorize release.Declared gates; each row has its own scaleCompletion gain: lower boundobserved 4.66 pointsPASS; limit 2Cost per completed taskobserved 1.97 dollarsPASS; limit 2Latencyobserved 2.1 secondsFAIL; limit 2AND gate: 2 passes + 1 failureHOLD full releaseRetries and edits can diagnose; they cannotoverride.
Use each row's units and declared inequality. Completion and cost pass; latency fails. Their conjunction holds full release. Diagnostics explain the failure but cannot override it.
Check: Which failed comparison blocks release despite favorable completion and cost?
Read it this way: Completion and cost pass, but latency exceeds its declared limit. The release condition is an AND, not a majority vote. Can two passing gates compensate for latency 2.1 above its limit two?

Calculate the decision

Completion changes from to , a six-percentage-point increase. At a fixed readout, an approximate independent-binomial 95% interval is:

Costs per success are and dollars. These hypothetical policy margins are not statistical estimates or universal product rules.

Change the horizon or harm distribution

1. Confirm resolution after seven days

Picture and change: exclude immature cohorts from final resolution rates, or model censoring explicitly. Keep immediate acceptance diagnostic.

Check: yesterday’s acceptance cannot establish seven-day resolution.

Use when: value becomes observable after the interaction.

2. A critical slice degrades

Picture and change: predeclare a consequential-slice safety gate and qualified review process.

Check: an overall gain cannot override that failed gate.

Use when: rare severe harms differ from ordinary dissatisfaction, including medical-use evaluation.

Failure and transfer

Longer sessions caused by repeated failures are not evidence of greater user value.

Completion rises but seven-day retention falls. Which wins?

Check your answer

Apply predeclared roles, horizon, uncertainty and veto margins; do not choose a favorable hierarchy afterward.

Start with the product decision

Identify the user, job, controllable behavior, unacceptable failures and time to value. Define numerator, denominator, eligibility, unit, window, direction, uncertainty, role, threshold, owner and review date. Repeated tasks per user require a compatible uncertainty method, not the independent-user calculation above.

A metric hierarchy

Choose a primary outcome close to measurable value: completion, qualified resolution, retention or incremental conversion. Protect safety, latency, availability, cost/success and relevant ecosystem effects. Keep acceptance, edits, retries, tool calls, fallbacks, retrieval and calibration diagnostic.

Explain scope, not a level label

A metric list is incomplete without populations, decisions and tradeoffs. Explain delayed effects and user adaptation; faster completion can undermine learning or trust.

Review gaming and measurement bias

Acceptance can rise when users stop checking. Thumbs-up data can have response and selection bias. No metric list guarantees a hiring outcome.

Common follow-ups

State the planned retention rule when completion rises. Use mature cohorts for delayed labels. Test whether engagement rewards retries. Choose mandatory slices from plausible harms. Healthcare applications need qualified review and distinct severity gates, not an averaged satisfaction score.

Related: expected calibration error, A/B testing for ML, and evaluate an LLM application.