KatInterview

Design an Experiment for Interest-Based Friend Recommendations

Statistics & ExperimentsModel answer
MediumModel answerStatistics & Experimentsexperimentationcausal-inferenceproduct-metrics

Last updated

Design a randomized experiment to measure whether recommending connections based on predicted interest improves discovery and retention.

Context

A social platform is reconsidering how it surfaces new connections to users. The current system suggests accounts primarily through mutual connections and network proximity. The product team proposes an alternative approach: surface recommendations through proactive messages sent to users' devices, where the accounts shown are selected by a machine learning model predicting interest rather than just social ties.

Before launching this feature, leadership wants evidence that it genuinely improves how users discover valuable connections over time, without harming trust or engagement.

Your Task

Design an experiment to evaluate this proposed change. Your design should address:

  1. Success Metrics: What primary outcome would you measure to determine whether the new approach works? What secondary or safety metrics would you track to catch unintended consequences?

  2. Randomization Strategy: How would you assign users to treatment and control? What challenges arise when testing features in a social network, and how does your design account for them?

  3. Handling Non-Compliance: Not all users have messages enabled, and engagement levels vary widely. How do you estimate the effect when treatment delivery is incomplete?

  4. Interpreting Results: Suppose your primary metric shows a 0.5% improvement in the treatment group. At a scale of billions of users, this will almost certainly be statistically significant. How would you decide whether it's worth launching?

Constraints

  • The platform has approximately 2 billion daily active users.
  • Delivery of outbound messages depends on device state, app version, and user permissions.
  • Users interact within a social graph, so one user's treatment may affect another's experience.
  • You must identify at least two sources of bias that could invalidate your results if ignored.

Hints

Hint 1

Think about what happens when a treated user connects with someone in the control group—does this violate the independence assumption?

Hint 2

Statistical significance is nearly automatic at this scale. Focus on whether the effect size matters for the business.

Hint 3

Consider the difference between 'assigned to treatment' and 'actually received treatment'—which population should drive your conclusions?