Evaluating Global Activity Ranking in a Dating Marketplace

Medium · Analytics & Experimentation · Data Scientist · Onsite

Prompt

You are a Data Scientist on a consumer social dating app serving millions of daily active members. Today, the app's profile discovery grid sorts candidate profiles strictly by geographic distance so the closest people appear first. Product leadership proposes replacing strict distance sorting with an activity-first ranking that elevates the platform's most active members to the top of the grid regardless of how far away they live. Leadership expects total in-app session time to climb, whereas product and research partners worry that demoting nearby profiles could reduce real-world local dates and frustrate members looking for connections close to home.

Because a dating app operates as a two-sided attention market—every member browsing profiles and initiating chats draws from the finite attention and reply capacity of the members receiving those messages—evaluating this ranking change requires accounting for cross-user network spillover as well as separating nearby interactions from long-distance engagement.

How would you design the measurement framework and rollout study for this ranking change?

Scope & Expectations

  • Two-sided metric hierarchy: Define primary, secondary, and guardrail metrics tailored to a two-sided dating marketplace, decomposing nearby versus long-distance engagement and monitoring health on both the browsing side and the inbox-receiving side.
  • Spillover-safe experimentation: Choose and defend the randomization unit (for example, individual accounts versus geographic market clusters), prevent cross-arm contamination when candidate ranking ignores distance, and address statistical power.
  • Novelty versus lasting utility: Propose concrete analytical and experimental methods to separate an initial curiosity spike after launch from durable changes in member value and retention.

Step-by-step walkthrough

  1. Frame the marketplace trade-off

    A location-based dating app operates a two-sided attention marketplace: every time a member opens the discovery grid, one member acts as the viewer scanning profiles and sending opening messages, while the profiles displayed act as recipients whose inbox capacity and evening time to reply are finite.

    Switching the discovery grid from strict distance sorting (nearest profiles first) to network-wide activity ranking (most active profiles anywhere on the platform first) affects both sides in opposite ways:

    • Viewers: casual browsers or members in sparse towns see livelier profiles, which can raise time in app; members looking to meet someone nearby tonight see fewer local options and may leave frustrated.
    • Recipients: the top slice of highly active profiles suddenly receives a global flood of messages they cannot possibly answer, while newer or moderately active local members lose visibility and receive zero messages.

    So the launch question is not simply "did session minutes go up?"—it is: "Did the marketplace produce more mutual connections overall without cannibalizing local connections or overloading top recipients?"

  2. Select primary, secondary, and guardrail metrics

    In a two-sided market, never pick a one-sided input like raw time spent or outbound messages sent as the primary metric: a user sending 20 unanswered messages to profiles 2,000 km away inflates both time spent and messages sent while creating zero mutual value. Instead, anchor on a two-sided outcome computed at the cluster (market) level:

    Category    Metric                                           Why it matters in a two-sided marketplace
    ---------   ----------------------------------------------   ------------------------------------------------
    Primary     Reciprocal conversations per weekly active       Counts a success only when BOTH sides exchange
                user (e.g., >= 3 messages from each person),     meaningful replies; computed per market cluster
                aggregated across the whole cluster.             so stealing replies from neighbors nets to zero.
    
    Secondary   Engagement minutes per DAU (local vs. global)    Tests leadership's engagement thesis and shows
                                                                 whether extra minutes come from distant browsing.
                Outbound messages & reply rate (local/global)    Reply rate drops when global messages overload
                                                                 popular inboxes faster than people can reply.
                Grid profile-tap CTR & sessions per user         Isolates whether the new discovery grid drives clicks.
    
    Guardrail   Local reciprocal conversations (e.g., < 25 km)   Protects the core location-based value proposition
                                                                 via a pre-set non-inferiority floor (e.g. > -2%).
                Meetup proxies + in-app pulse survey             Tracks real-world meetups ("Did you meet someone
                ("Met someone in person this week?")             from the app this week?" + safe signals like
                                                                 exchanging contact info inside local chats).
                Inbound inequality: message share going to       Detects winner-take-all starvation if top 10%
                top 10% of profiles & % of users with 0 DMs      absorb all traffic while 90% of users get ignored.
                Reply rate & D28 churn of highly active users    Checks whether flooded top recipients burn out.
                D7 / D28 retention, blocks, spam/scam reports,   Monitors long-term retention, safety risk from
                and discovery p99 ranking latency                distant scammers, and global-scoring infra cost.
    

    Always decompose totals into local vs. global. A positive total headline can hide severe local harm. Consider this illustrative breakdown of daily engagement minutes per user:

    Arm          Local (< 25 km)   Global (>= 25 km)   Total minutes/day
    ---------    ---------------   -----------------   -----------------
    Control           24 min              6 min              30 min
    Treatment         20 min             13 min              33 min
    Relative          -16.7%            +116.7%              +10.0%
    

    Reporting only +10.0% total engagement hides a -16.7% drop in local activity—the exact trade-off leadership needs to see clearly.

  3. Why account-level randomization fails (SUTVA violation)

    Standard user-level A/B testing relies on SUTVA (Stable Unit Treatment Value Assumption)—the rule that one user's outcome depends only on their own treatment assignment, never on what treatment other users received. In a shared inbox marketplace, SUTVA breaks down completely because Treatment and Control users compete for the same recipients' finite attention (cannibalization / network interference).

    Walk through a concrete 100-reply example to see how user-level randomization manufactures a fake win:

    Suppose top active users have time to answer at most 100 messages/day in total:
    
    1. Pre-experiment baseline (everyone on distance sorting):
       50% Group A viewers -> get 50 replies  |  50% Group B viewers -> get 50 replies
    
    2. 50/50 user-level A/B test (Group A gets global-activity ranking):
       Group A floods active inboxes -> captures 60 replies
       Group B gets crowded out      -> drops to 40 replies
       Naive A/B comparison: (60 - 40) / 40 = +50% apparent lift!
    
    3. 100% full rollout (everyone gets global-activity ranking):
       Active users still answer 100 messages/day total -> 0% true marketplace lift!
    

    Notice two things: Control (40 replies) was actively harmed below its true 50-reply baseline, and collecting millions more users does not fix this—it just puts a tiny error bar around the wrong +50% number.

  4. Geo-cluster randomization with same-arm candidate pools

    To stop Treatment and Control from sharing inboxes, we switch the randomization unit from individual users to geographic clusters (metropolitan areas or communities found by partitioning the historical message graph so >95% of baseline chats stay inside one cluster).

    The crucial catch for this specific feature: normally, geographic clusters isolate local interactions automatically—but the new discovery ranking surfaces active profiles regardless of distance! If a treated viewer in Chicago is shown an active Control user in Miami, cross-cluster messages leak right across arms again.

    We close that leak with same-arm candidate pool restriction:

    +-----------------------------------+       +-----------------------------------+
    | TREATMENT CLUSTERS (100 metros)   |       | CONTROL CLUSTERS (100 metros)     |
    | 1,000,000 viewers                 |       | 1,000,000 viewers                 |
    | Grid = local + globally active    |  NO   | Grid = strict distance sorting    |
    | profiles FROM TREATMENT CLUSTERS  | <===> | profiles FROM CONTROL CLUSTERS    |
    | ONLY                              | LEAK  | ONLY                              |
    +-----------------------------------+       +-----------------------------------+
    

    Why does a 50/50 cluster split with same-arm candidate restriction mimic a 100% rollout accurately? Check the viewer-to-recipient load ratio:

    • At 50% Treatment scale: 1,000,000 treated viewers compete for the top 1% (10,000) highly active treated recipients -> 100 viewers per top recipient.
    • At 100% full launch: 2,000,000 viewers compete for 20,000 top active recipients -> still 100 viewers per top recipient!

    Pair-match (or stratify) clusters before randomization on user count, pre-period local reciprocal conversation rate, and population density, assign each user stickily to their home cluster at first exposure, and log the fraction of cross-arm messages (from travelers) as a health check. Avoid switchback designs (flipping a city between Treatment and Control every few hours): dating conversations unfold over days and users remember yesterday's bad matches, so rapid time flips blur both carryover chats and long-term habit changes.

  5. Power, sample size, and variance reduction (CUPED) for clusters

    Grouping users into clusters reduces statistical precision because users in the same city share weather, events, and local culture. That similarity is measured by intra-cluster correlation (rho) (how correlated two users in the same cluster are, typically 0.001 to 0.005). For clusters of average size m, variance inflates by the Design Effect (DE):

    Design Effect:             DE = 1 + (m - 1) * rho
    Effective users per arm:   n_eff = n_users_per_arm / DE
    Minimum Detectable Effect: MDE = 2.80 * sqrt(2 * sigma^2 / n_eff)   (alpha=0.05 two-sided, 80% power)
    

    Plug in illustrative numbers for 2,000,000 total users (1,000,000 per arm across 200 total clusters = 100 clusters/arm of m = 10,000 users each), daily engagement mean 30 min, user standard deviation sigma = 40 min, and rho = 0.002 (run the exact same power check on the primary metric and the < 25 km local guardrail!):

    Experiment design                           Users/arm     DE    Effective/arm   MDE (min)   MDE (%)
    -----------------------------------------   ---------   ----    -------------   ---------   -------
    Naive user-level (biased by interference)   1,000,000    1.0        1,000,000       0.158     0.53%
    Geo-cluster (100 clusters/arm, m=10,000)    1,000,000   21.0           47,624       0.726     2.42%
    Geo-cluster + CUPED pre-period adjustment   1,000,000   21.0                -       0.325     1.08%
      (cluster baseline R^2 = 0.80)
    
    • Because DE = 1 + 9,999 * 0.002 = 21.0, 1,000,000 clustered users carry the statistical power of 47,624 independent users, widening the Minimum Detectable Effect (MDE) (the smallest true change detectable 80% of the time) by sqrt(21.0) = 4.58x (2.42% vs. 0.53%).
    • CUPED (Controlled-experiment Using Pre-Experiment Data) recovers most of that precision: because a city's engagement last month strongly predicts its engagement this month (R^2 = 0.80), subtracting out pre-period differences cuts cluster variance to 1 - 0.80 = 0.20 of its raw value and shrinks the MDE by sqrt(0.20) = 0.447 down to 1.08%.
    • Always compute p-values at the cluster level (comparing the 100 Treatment cluster means against the 100 Control cluster means, or using cluster-robust standard errors), and run for at least 4 to 6 weeks to capture multiple weekend cycles and habit adaptation.
  6. Read out both sides and pre-period user segments

    Evaluate experiment results in a pre-committed order so an exciting global engagement number cannot override local marketplace damage:

    1. Non-inferiority guardrails first: verify that the lower 95% confidence bound on local < 25 km reciprocal conversations stays above a threshold agreed before launch (for example, -2.0%), and that top-recipient churn and scam reports have not spiked.
    2. Market-level primary metric and local/global split: check whether total reciprocal conversations per WAU rose, and inspect where the change came from.
    3. Supply/recipient distribution: compare the fraction of inbound messages captured by the top 10% of profiles and the fraction of active users receiving 0 messages.
    4. Pre-experiment segments (defined strictly from behavior before randomization so the treatment itself cannot change who belongs in each slice):
      • Local-intent vs. broad-browsing users (e.g., >= 80% of pre-period chats within < 25 km);
      • Sparse rural clusters vs. dense urban metros (in rural towns where nearby profiles run out quickly, surfacing active distant profiles may genuinely help without crowding out nonexistent local supply!).
  7. Separate initial curiosity from lasting marketplace utility

    When regular members suddenly see unfamiliar, responsive faces from other cities in the discovery grid, curiosity clicks create a temporary novelty effect (an initial spike driven by newness rather than lasting value)—while local-focused members may experience temporary primacy friction before adapting. Separate transient curiosity from permanent utility using three complementary lenses:

    • 1. Cohort effect by week since first exposure: group users by how many weeks have passed since they first saw the new discovery grid (Week 1, Week 2, ..., Week 6) and track the treatment lift as each cohort ages. Fitting an exponential decay-to-plateau curve lift(w) = c + b * exp(-(w - 1) / tau) estimates the long-run asymptote c:

    ```python import numpy as np

    weeks = np.arange(1, 7) # Observed % lift in engagement by week since first exposure weekly_lift = np.array([6.0, 3.6, 2.3, 1.7, 1.4, 1.2])

    best_fit = None for tau in np.arange(0.5, 6.01, 0.1): decay_basis = np.exp(-(weeks - 1) / tau) design_matrix = np.column_stack([np.ones_like(decay_basis), decay_basis]) coef, _, _, _ = np.linalg.lstsq(design_matrix, weekly_lift, rcond=None) sse = float(np.sum((design_matrix @ coef - weekly_lift) ** 2)) if best_fit is None or sse < best_fit[0]: best_fit = (sse, float(tau), coef)

    _, tau_hat, (plateau_c, novelty_b) = best_fit print(round(tau_hat, 2), round(float(plateau_c), 2), round(float(novelty_b), 2)) # -> tau = 1.5 weeks, long-run plateau c = 1.03%, initial novelty spike b = 4.97% ```

    Here a `+6.0%` Week-1 headline decays with a `1.5`-week time constant toward a modest **`~1.0%` steady-state lift**—a completely different product story from `+6.0%`.
    
    • 2. Brand-new signups during the experiment: users who join the app after the experiment starts never knew the old proximity grid, so they experience zero "what changed?" shock. Comparing Treatment vs. Control among post-launch signups isolates intrinsic utility free of habit disruption (keeping in mind new users differ from tenured users in tenure and intent).
    • 3. Persistent cluster holdout (gold standard): if the feature ships, keep 5% to 10% of matched geo clusters (with same-arm candidate restriction) on the old proximity algorithm for 8 to 12 weeks. That persistent holdout directly measures 60- and 90-day retention, local meetup rates, and active-user inbox burnout long after novelty has vanished.

Intuition & how it works

Think of a location-based dating app like a neighborhood speed-dating hall where every conversation requires two people with limited evening time (two-sided marketplace, a platform where viewers seeking connections and profiles receiving messages depend on each other's finite attention). Changing the discovery grid from "show people in this room" to "show the chattiest people across the entire country via video screen" may keep people tapping longer tonight, while quietly breaking the reason most people walked in (meeting someone nearby) and burying the 20 most popular people on earth under thousands of messages they cannot answer.

The naive evaluation—running a standard 50/50 user-level A/B test for two weeks and checking whether average app minutes increased—fails in three ways at once. First, raw minutes spent rewards dead-end scrolling and unanswered long-distance messages. Second, user-level randomization violates SUTVA (the Stable Unit Treatment Value Assumption, which requires that one user's treatment does not spill over onto Control users' outcomes) because Treated viewers flood shared inboxes and crowd out Control viewers. Third, a 2-week average confuses a temporary novelty effect (curiosity clicks on unfamiliar faces) with lasting product value.

Walk through a tiny concrete marketplace example to see how our design catches all three traps:

  • Metric decomposition: suppose Control spends 24 local minutes + 6 global minutes = 30 min/day, and Treatment spends 20 local + 13 global = 33 min/day. Headline engagement is +10.0%, yet local engagement fell -16.7%—which our < 25 km reciprocal conversation (a chat where both people send at least 3 messages) guardrail immediately flags.
  • Inbox cannibalization vs. geo clusters: if active users can only send 100 replies/day total, a 50/50 user-level split where Treatment grabs 60 replies and Control gets 40 reports a fake +50% lift (60 vs. 40) even though a 100% rollout still yields 100 total replies (0% lift). Randomizing geographic clusters AND restricting Treatment's global candidate pool to Treatment clusters only keeps both arms completely separate at the true 1:1 viewer-to-recipient ratio.
  • Novelty decay: tracking weekly lift by exposure cohort (+6.0% in Week 1 -> +3.6% -> +2.3% -> +1.7% -> +1.4% -> +1.2% in Week 6), comparing new signups, and keeping a 5–10% persistent cluster holdout isolates the ~1.0% long-run plateau from Week-1 curiosity.

Key points

  • Anchor on a market-level, two-sided primary metric: use reciprocal conversations per weekly active user aggregated at the cluster level so neither unanswered messages nor reply-stealing within a city counts as success; keep engagement minutes and message volume as secondary metrics always split into local (< 25 km) and global (>= 25 km).
  • Protect both local intent and recipient health with pre-set guardrails: enforce a non-inferiority margin (a maximum acceptable drop agreed before the test, such as -2% on the lower 95% confidence bound) on local reciprocal conversations, track offline meetup proxies + pulse surveys, monitor inbound concentration (share of messages going to the top 10% of profiles and % of users receiving 0 messages), and watch reply rates and D28 churn of highly active recipients.
  • Randomize geo clusters AND restrict global candidates to the same arm: plain geo clusters fail when the algorithm ignores distance because treated viewers would message Control cities; restricting Treatment viewers to profiles inside Treatment clusters eliminates cross-arm spillover while keeping the exact same viewer-to-candidate inbox load ratio (1M / 1M vs. 2M / 2M) as a full launch.
  • Account for the cluster Design Effect and recover power with CUPED: for 100 clusters/arm of m = 10,000 users with intra-cluster correlation rho = 0.002 (similarity among users in the same metro), the Design Effect DE = 1 + (m - 1) * rho = 21.0 widens the Minimum Detectable Effect (MDE) 4.58x (2.42% vs. 0.53%); CUPED (regression adjustment on pre-experiment cluster means, R^2 = 0.80) shrinks the MDE back down to 1.08%. Analyze strictly at the cluster level.
  • Triangulate long-term utility: combine cohort decay curves by week since first exposure, newly registered users (who have no habit shock from the old discovery grid), and a 2–3 month persistent holdout of clusters—never rapid switchbacks (time-alternating flips), which fail when multi-day chats and user memories carry across intervals.

Common mistakes

  • Choosing session minutes or outbound messages sent as the primary metric just because leadership mentioned engagement time, rewarding empty scrolling or unanswered distant DMs.
  • Reporting only aggregate engagement or messages without splitting < 25 km local activity from >= 25 km global activity.
  • Running a user-level A/B test when users compete for finite inbox attention, inflating apparent lift by stealing replies from Control users.
  • Randomizing geographic cities while still allowing Treated viewers to see and message Control-city profiles globally, re-introducing the exact cross-arm interference that geo clusters were meant to prevent.
  • Running a naive user-level t-test on a cluster-randomized experiment: ignoring DE = 21.0 makes confidence intervals sqrt(21) = 4.58x too narrow and causes massive false-positive rates.
  • Measuring only the viewer side of the funnel while ignoring inbox overload on top recipients and visibility starvation among regular local users.
  • Slicing "local-intent users" using in-experiment behavior, which creates post-treatment selection bias because the new ranking itself alters how far away people message.
  • Declaring victory on Week-1 lift or shifting guardrail thresholds after peeking at the readout.

Follow-up questions

  • How can you estimate long-term member churn risk early if nearby connection rates dip during a short experiment? Treat short-term local reciprocal conversations as a leading indicator of long-term retention and quantify that relationship empirically using a surrogate model (a regression trained on historical experiments or longitudinal cohorts that predicts 60- or 90-day retention lift from 2-week changes in local chats, distant chats, and session time). For instance, if historical experiments show each -0.1 drop in weekly local reciprocal conversations predicts -0.08 percentage points of D60 retention while extra distant chats contribute near zero, you can compute the expected net retention impact before waiting three months. Always validate that surrogate prediction on a persistent cluster holdout over 8–12 weeks, because a new global-ranking mechanism can break historical proxy relationships.
  • Suppose overall outbound messages climb while real-world local meetups fall—how would you resolve that conflict and advise product leadership? Follow the pre-committed metric hierarchy: for a location-based dating app, real-world dates and local reciprocal conversations represent core user value (North Star and hard guardrails), whereas raw outbound messages are merely an upstream input. Diagnose why they diverged by decomposing message growth by distance and reply rate—typically global messages surge with low reply rates while local < 25 km conversations drop because distant profiles push nearby members below the fold. Rather than shipping a pure distance-blind ranking that cannibalizes core utility, propose and test a blended design—such as score = f(distance_decay, activity_score), a separate opt-in global roaming tab, or applying global backfill only in sparse rural areas when local candidates run low.
  • How should your cluster experiment handle frequent travelers who move across geographic boundaries during the test? Assign every member a sticky treatment arm based on their home cluster (inferred from pre-experiment nighttime or primary location, or first-exposure cluster for new sign-ups) so traveling does not flip a member's discovery experience mid-test, and restrict every member's candidate pool eligibility by their assigned arm rather than current GPS coordinates. Construct clusters using commuting zones or graph-partitioned interaction regions (instead of narrow zip codes) so routine daily travel stays inside one cluster, and log the exact percentage of sessions and messages crossing arms to verify contamination remains tiny (e.g., < 3%). Analyze all members by their originally assigned home cluster (intent-to-treat), and run a sensitivity check excluding frequent travelers identified from pre-period mobility to confirm travel dilution is not skewing the estimate.

Follow-up questions

Similar questions

More Grindr interview questions

All 2 Grindr questions →