Measuring the Impact of Sorting Inboxes by Unread Count
Statistics & ExperimentsModel answerLast updated
Design a data-driven evaluation and A/B experiment to decide whether reordering a multi-account switcher by unread message count improves user engagement.
Context
A product team is considering a change to the account switcher on a multi-account platform. Today, accounts appear in a fixed or recency-based order. The proposed change would sort them so the account with the most unread messages appears first.
What You Are Asked to Do
Part 1 — Pre-experiment analysis
Before committing engineering resources to a test, how would you use existing data to determine whether the problem is real and the opportunity is large enough to pursue?
Part 2 — Experiment design
Design an A/B test to validate the feature. Specify:
- Randomization unit and eligible population
- What treatment and control look like
- Your primary success metric, secondary metrics, and guardrails
- How you would determine test duration
Part 3 — Interpreting a mixed result
Suppose the test concludes and you observe:
- The rate of account switching decreases in the treatment group
- The number of accounts with meaningful activity per user increases in the treatment group
How would you interpret this? What diagnostics would you run, and what would each finding lead you to recommend?
A strong answer states assumptions explicitly, handles edge cases, weighs trade-offs, and explains how you would validate or invalidate each competing interpretation.
Hints
Hint 1
Before designing the experiment, ask whether there is evidence of friction in the current experience — for example, how often do users switch to an account that does not have the most unreads, and how often do they immediately switch away again?
Hint 2
When choosing a randomization unit, think carefully about where interference can occur. All of a person's accounts share a single switcher, so the unit should reflect that.
Hint 3
Fewer switches and more active accounts can both be true if the feature reduces wasted navigation. To distinguish efficiency from shallow or misleading engagement, decompose the switch metric and check the depth of activity on newly active accounts.
Model answer
Medium Try it yourself first — then compare your approach, complexity and edge cases.
Part 1: Sizing the Opportunity Before Running a Test
Running an experiment before checking whether the problem exists wastes time and statistical power. Start with observational data.
Who is affected? Measure the share of daily active users who have two or more accounts on a device. A segment that is 4% of DAU but accounts for 15% of notifications received is worth optimizing for; one that is 4% of DAU and 4% of notifications is borderline.
Is there visible friction? Look at switching behavior in logs:
- How frequently do users skip the top account and open a lower-ranked one instead?
- What share of switches are followed by an immediate return switch within roughly 10 seconds (a mis-switch or an accidental tap)?
- On secondary accounts, how long do unread messages sit before being opened, compared with the primary account?
Is there neglect? Count accounts that have unread messages and no user session in the past 7 or 28 days. Check whether those neglected accounts are more likely to be churned or removed later — that establishes that the friction has downstream cost, not just momentary inconvenience.
Natural variation as a quasi-experiment. When the current sort order happens to place the highest-unread account at the top (by coincidence, not by design), compare downstream engagement to cases where it sits lower. This is confounded, but it gives a directional signal quickly.
Segmentation. Users with a personal account plus a business or creator account are likely the most sensitive — their secondary account generates real obligations. Users who keep a secondary account deliberately quiet behave very differently. Understand the mix before committing to a single rollout strategy.
Go/no-go threshold. Proceed if unread messages accumulate on non-top accounts, users frequently navigate past the first slot, and the segment is large enough to power a test at a reasonable minimum detectable effect.
Part 2: Experiment Design
Randomization unit. Randomize at the user or device level, never at the account level. A single person's switching experience is shared across all their accounts, so account-level randomization creates interference and an incoherent UI. Aggregate account-level metrics up to the user for analysis.
Eligible population. Users who have two or more accounts logged in on a device, have been active in the last 28 days, and are on a supported app version. Use triggered analysis: only count a user as exposed once they actually open the switcher. Report both the triggered-population effect and the intent-to-treat effect.
Control. The current default order — typically recency-based or fixed.
Treatment. Accounts sorted by unread count, descending. Specify implementation details upfront: tie-breaking rule (recency), whether the currently active account is pinned in place, whether counts above a threshold are capped, and how frequently the order refreshes so it does not jump while a user is looking at it.
Optional third arm. A version that adds unread badges to the existing order without resorting. This isolates whether salience alone (seeing a badge) drives the effect, versus the sorting itself. If the badge-only arm captures most of the gain, it is a safer, cheaper change.
Metrics
| Category | Metric |
|---|---|
| Primary | Accounts per user with at least one meaningful action in a 7-day window |
| Secondary | Notifications opened per user; time-to-read on secondary accounts; switch count per user; share of switches followed by an action; bounce-back rate |
| Guardrails | Total sessions and time spent across all accounts; primary-account engagement; notification opt-out rate; account removal or logout rate; 28-day retention; switcher latency and crash rate |
Run a sample ratio mismatch (SRM) check before reading any results. If the arm sizes deviate from the expected ratio, stop and investigate logging or assignment bugs.
Duration and power. Estimate per-user variance for the primary metric from 4–6 weeks of pre-period data. Set a minimum detectable effect — something like a 1–2% relative lift in active accounts — then compute per-arm sample size (approximately 16σ²/δ² for α = 0.05 and 80% power). Apply CUPED using each user's pre-period activity to reduce variance and shorten the required runtime. Run for a minimum of two full weeks to cover weekly behavioral cycles. Plot the treatment effect day by day; if it spikes in week one and flattens, the signal may be novelty rather than durable value. Consider a 1–5% long-term holdout to monitor 60- and 90-day retention separately.
Part 3: Interpreting Fewer Switches and More Active Accounts
The result seems contradictory at first — but it is actually a coherent signature of the feature working well, or it could indicate something more problematic. The key is to separate two competing stories.
Story A — Efficiency. The right account is now at the top, so users reach it with fewer taps. Purposeless or exploratory switches fall. Previously buried accounts get surfaced before their unreads age out, so more accounts cross the "meaningful activity" threshold. This is the intended outcome.
Story B — Shallow inflation or disengagement. Users open a secondary account just long enough to clear a badge, which counts as "active" but delivers no real value. Alternatively, users find the reordering disorienting and switch less because they disengage from the feature rather than using it efficiently.
Diagnostics
-
Decompose the switch metric. Did bounce-back switches fall? Did switches followed by an action hold steady or rise? An efficiency story predicts purposeless switches down, purposeful switches flat or up.
-
Check activity depth on newly active accounts. Look at posts, replies, time spent, and substantive actions — not just session starts. A definition of "active" that can be satisfied by a single tap is dangerous. Tighten it to require a minimum dwell time or at least one action.
-
Check total value per user. If total time spent and engagement across all accounts is flat or up, the feature is generating incremental value. If the primary account loses as much as secondary accounts gain, the result is redistribution, not growth.
-
Measure ecosystem effects. More active secondary accounts can benefit other users: faster replies to messages and comments. Measure response rates and latency for users on the receiving end of those accounts.
-
Watch guardrails. A rise in notification disables or account removals would suggest the feature is surfacing accounts users had deliberately set aside, creating unwanted pressure.
Decision framework
Ship (with a long-term holdout) if bounce-backs fell, activity on newly active accounts is substantively deep, total engagement is flat or up, and guardrails are clean. The efficiency interpretation holds.
Iterate if activity depth is shallow or primary-account engagement dropped materially. Consider making the sort order optional or limiting it to users whose secondary accounts have above-threshold unread counts.
Do not ship if account removal or notification opt-out rose, or if total engagement declined — the feature is creating friction rather than reducing it.
The common mistake is reading "active accounts up" and calling it a win without checking whether those sessions represent real engagement or badge-clearing behavior. Define activity depth before the test starts, not after.