Defining and Testing Quality for a Mobile Alert System
Statistics & ExperimentsModel answerLast updated
Choose metrics for judging alert quality, set a defensible bar for "good" alerts, and design a launch experiment for a new alert-selection algorithm in a consumer app.
You work on a consumer mobile app that sends push notifications to bring users back. The team is about to launch a new algorithm that decides which notifications to send and to whom.
Answer the following as you would in a discussion with a product and data science team:
- Metrics. Which metrics would you track to judge the quality of push notifications? Organize them (for example by goal, per-send signals, costs, and guardrails) and explain why you picked them.
- Defining "high quality". How would you define a "high-quality" notification, and how would you choose the thresholds that separate good from bad?
- Launch experiment. Design an experiment to evaluate the new algorithm. Cover the hypothesis, randomization unit, arms, primary/secondary/guardrail metrics, sample size and duration, possible pitfalls (interference, ratio metrics, novelty effects), the rollout plan, and the decision rule.
State your assumptions, point out trade-offs, and explain how you would validate that your conclusions are trustworthy.
Hints
Hint 1
Separate what you measure per notification from what you measure per user, and ask whether a tap actually means the notification created value that would not have happened anyway.
Hint 2
Every notification has a cost: users can mute, dismiss, or disable permission, which is hard to reverse. Think about how to put value and cost on one scale, and where the marginal send breaks even.
Hint 3
For the experiment, think about the unit of randomization, spillover through social activity, variance of per-send ratios aggregated by user, which metric is hardest to power, and a long-term holdout.
Model answer
Medium Try it yourself first — then compare your approach, complexity and edge cases.
Framing
A push notification spends two scarce resources: the user's attention and the user's permission to contact them. Quality is the incremental long-term value a notification creates minus the cost of annoying the user. Clicks alone do not capture this.
1. Metric hierarchy
Goal metric. Incremental engaged users over a long window (for example meaningful sessions per user or engaged DAU over 28+ days). Notifications should bring people back to things they value.
Per-send success signals
- Delivery rate (sent to delivered): a platform health check that catches token and OS problems.
- Open rate (opens / delivered) and time-to-open: fast opens usually mean relevance and timeliness.
- Post-open quality: session longer than a few seconds, a meaningful action, or a return visit within 24h. This separates a real visit from "tap and bounce".
- Incremental sessions versus a no-push holdout. Without this, pushes get credit for visits users would have made anyway.
Cost / counter metrics
- Opt-outs (in-app category toggles and OS-level disable). This is the most serious cost because lost permission is close to permanent.
- Dismiss/swipe-away rate, "see fewer like this", reports, uninstalls.
- Open followed by immediate bounce, which flags clickbait.
Guardrails
- Total DAU and organic (non-push) sessions, to detect cannibalization.
- Notifications per user per day.
- Send latency.
- Effects on other users when pushes trigger social interactions.
Report everything per send and per user. An algorithm that doubles volume can raise opens per user while quality per send falls.
2. Defining "high quality" and thresholds
Give each candidate notification a utility:
U = P(open) · V(meaningful session) − λ · P(negative action)
- V is the expected incremental engaged time from an open.
- Negative actions are dismiss, mute, opt-out, uninstall.
- λ converts a negative action into the same units. Estimate it from the long-term value lost when a user disables notifications (compare opted-out users with matched users who stayed opted in).
A notification is high quality if U > τ. Set τ in three steps:
- Historical baseline per notification type. Example bar: CTR at or above the type median, at least 50% of opens leading to a meaningful session, fewer than 1 opt-out per 10k sends.
- Calibrate with a holdout. Send/no-send holdouts at different score cutoffs show incremental DAU and opt-out rate per bucket.
- Choose τ at the marginal break-even point, where the last notification's incremental value equals its marginal cost. Do not choose a cutoff where the average looks fine, because the marginal send is the one that does harm.
Revisit thresholds regularly, since fatigue shifts the curve as volume changes.
Per user, use adaptive frequency caps. Heavy daily users gain little from extra pushes; lapsing users gain more per push but carry higher opt-out risk.
3. Launch experiment
Hypothesis. The new algorithm increases incremental 28-day engaged DAU without raising opt-outs.
Randomization. By user, using a hash of user ID so assignment is stable across sessions and devices.
Interference. Social pushes ("X commented") create spillover: treated users act more, which triggers pushes to control users. Mitigate with cluster or graph randomization (ego networks or regions), and quantify spillover by comparing control users with many treated friends against those with few.
Arms
- Control: current algorithm.
- Treatment: new algorithm.
- Optional 1–2% no-push holdout to anchor incrementality for both arms.
Metrics. Primary: engaged DAU or sessions per user. Secondary: opens per delivered, meaningful-session rate, notifications per user. Guardrails: opt-out, uninstall, dismiss, organic sessions. Pre-register the metrics and decision rule.
Ratio metrics. CTR is clicks over sends, and sends within a user are correlated. Use the delta method or a user-level bootstrap for variance. Never treat sends as independent.
Sample size. For α = 0.05 and 80% power, n per arm ≈ 16·σ²/δ².
| Metric | Baseline | Effect to detect | n per arm |
|---|---|---|---|
| Weekly opt-out | 0.5% | 10% relative (0.05pp) | about 320k |
| CTR | 5% | 2% relative (0.1pp) | about 760k |
| DAU | n/a | 0.1–0.2% relative | several million |
The hardest-to-power guardrail (opt-out or DAU) usually sets the size. Use CUPED with pre-period engagement to reduce variance.
Duration
- At least 2 full weeks for weekly seasonality.
- Inspect daily effects for novelty and slow-building fatigue; opt-outs accumulate.
- Keep a 1–5% long-term holdout on the old algorithm for 1–3 months to confirm retention effects persist.
Rollout and validity checks
- Ramp 1% to 10% to 50%.
- Check sample ratio mismatch and pre-period balance (or run an A/A test).
- Monitor guardrails daily with auto-stop rules, for example a statistically significant opt-out increase above 5%.
Decision rule. Launch if the primary metric is significantly positive (or neutral with materially lower send volume) and no guardrail breaches its non-inferiority margin. Equal DAU with 20% fewer pushes is a win because it saves attention budget.
Segments. Pre-specify cuts by tenure, activity level, notification type, platform (iOS and Android opt-in mechanics differ), and country. Correct for multiple comparisons.
Trade-offs
- Short-term lift versus long-term permission loss: pushing harder raises opens now and costs opt-outs later.
- Cluster randomization reduces bias from spillover but cuts effective sample size and power.
- A tight non-inferiority margin protects users but needs a larger sample or longer run.
Common mistakes
- Optimizing CTR or opens alone, which rewards clickbait and higher volume.
- Ignoring incrementality, crediting pushes for organic visits.
- Treating each send as an independent observation.
- Powering the experiment on CTR when the opt-out guardrail needs a larger sample.
- Running too short and missing weekly cycles, novelty effects, and slow fatigue.
- Setting thresholds on average quality rather than the marginal notification.
- Ignoring interference in social products.
- Slicing many segments post hoc without correction.