Measuring Social Engagement: Friends vs. Strangers in a Feed
Statistics & ExperimentsModel answerLast updated
Design metrics, observational analysis, and experiments to test whether friend content drives stronger social interaction than stranger content in a social feed.
You work on a social media platform where users currently see content primarily from their friends. The team wants to test introducing content from strangers (people the viewer doesn't follow) into the main feed for the first time.
Before launch, you need to answer a core question: does content from friends actually drive more "social" behavior—comments, shares, and back-and-forth interaction—than content from strangers?
You have access to:
- Impression and engagement logs (views, reactions, comments, shares)
- The social graph (who follows whom)
- Content metadata (type, author, timestamp)
Address the following:
-
Validate the core hypothesis observationally. How would you measure whether friend content truly drives more social interaction than stranger content, using existing data? Define what "social" means quantitatively, identify confounders, and describe the analysis approach.
-
Design a launch experiment. You're introducing stranger content into the feed for the first time. Design an A/B test to determine whether the launch succeeds. Specify randomization strategy, treatment variants, key metrics, guardrails, sample size considerations, and duration.
-
Interpret results and make a decision. How would you analyze the experiment results, accounting for displacement of friend content, segment effects, and trade-offs? What would drive your launch decision?
-
Quantify alternative value. If stranger content generates less per-impression engagement, what other value might it provide to the platform, and how would you measure it?
Hints
Hint 1
Socialness should capture two-way interaction—comments and shares, not just passive consumption
Hint 2
Observational comparisons are biased by ranking position and content selection; use within-post or within-user fixed effects to control for confounders
Hint 3
Design a dose-response experiment with multiple treatment arms (e.g., 5%, 10%, 20% stranger content) to find the optimal mix and measure displacement
Model answer
Medium Try it yourself first — then compare your approach, complexity and edge cases.
Model Answer
Part 1: Validate the hypothesis observationally
Define "social" with precision. Social engagement means interactions involving other people, not passive consumption. Key metrics per impression:
- Comment rate, especially threaded replies showing back-and-forth conversation
- Share rate, including both public reshares and private sends
- Reaction rate (weaker signal—often one-click and passive)
- Composite metric: weighted sum like
2×comments + 1.5×shares + 0.5×reactions, with weights calibrated to long-term user retention or revenue
Avoid conflating "social" with "engaging." Dwell time and click rate measure consumption, not social interaction.
The confounding problem. You can't simply compare raw engagement rates. Friend content and stranger content differ in multiple ways:
- Ranking position: Friend posts appear higher in the feed and naturally get more engagement
- Content mix: Friends post more photos and personal updates; public creators skew toward video and news
- Selection bias: Ranking algorithms already filter which stranger posts appear (via Groups, Pages, reshares), choosing high-quality candidates
- Viewer heterogeneity: Power users see and engage with everything more
Analysis approach—within-post comparison. The cleanest method: find posts seen by both friends and non-friends of the author (public posts, viral reshares). For each post, compare engagement from the two audience types. This removes post quality as a confounder.
Build an impression-level dataset:
viewer_id | post_id | author_id | is_friend | position | surface | content_type | engaged
Fit a regression with two-way fixed effects:
engaged = β·is_friend + α_viewer + γ_post + δ·f(position, surface) + ε
α_viewer: viewer fixed effects control for user activity levelsγ_post: post fixed effects control for content qualityδ·f(position, surface): controls for ranking position and surface (feed vs. explore vs. search)β: the causal effect of the friend relationship on social engagement
Use logistic regression for binary outcomes or OLS for rates, with clustered standard errors (by viewer and post).
Robustness checks:
- Propensity score matching on position, content type, author popularity
- Inverse propensity weighting if you have experimental position data
- Separate analyses by engagement type (comments vs. reactions) and relationship strength (close friends vs. weak ties)
Expected finding: Friend content likely shows 2–5× higher comment and share rates, even after controlling for position and quality.
Part 2: Design the launch experiment
Randomization unit: User level. Each user is assigned to one treatment group and sees a consistent feed experience. Impression-level randomization would create jarring inconsistency.
Treatment arms (dose-response design):
| Arm | Stranger content cap |
|---|---|
| Control | 0% (baseline) |
| T1 | Up to 5% of feed slots |
| T2 | Up to 10% |
| T3 | Up to 20% |
Multiple doses reveal the shape of the trade-off curve and help find the optimal insertion rate, not just yes/no.
Primary success metric: Total daily social interactions per user (comments + shares on both friend and stranger content combined). This captures the net effect, including any displacement.
Secondary metrics:
- Daily active sessions per user
- Time spent (session duration)
Guardrails (non-inferiority tests):
- Friend-to-friend engagement: interactions on friend content must not drop >2%
- Content creation rate: posts per user (friends might post less if they get less feedback)
- Retention: D7 and D30 return rates
- Negative signals: hide rate, "show me less of this" feedback, unfollows
- User satisfaction: survey scores
Sample size. For a primary metric like daily engagement with mean 5 interactions, standard deviation 12 (heavy-tailed), and minimum detectable effect of 2%, using CUPED variance reduction (cuts variance by ~40%):
n ≈ 2(1.96 + 0.84)² × (0.6×12)² / (0.1)²
≈ 450,000 users per arm
For retention (e.g., D7 = 60%, MDE = 0.3pp), you'd need ~800k per arm. Size for the more demanding constraint.
Duration:
- Minimum 3–4 weeks to capture weekly cycles and let novelty effects stabilize
- Long-term holdout (1–5% of users) for 2–3 months to measure habit formation and network effects (do friends post less over time when they get less engagement?)
Interference considerations. Standard user-level randomization misses network spillovers:
- Treated users engage less with friends → friends (in control group) receive less feedback
- Stranger content creators gain reach, which affects their future posting behavior
If feasible, supplement with graph-cluster randomization (randomize friend groups together) to measure these second-order effects.
Part 3: Interpret results and decide
Decompose the total effect:
Δ total engagement = Δ friend engagement + Δ stranger engagement
Calculate the displacement ratio:
displacement = −Δ friend engagement / Δ stranger engagement
- Ratio near 0: purely additive (best case)
- Ratio near 0.5: each stranger interaction costs half a friend interaction
- Ratio near 1: complete cannibalization
- Ratio >1: net negative (launch fails)
Check the dose-response curve. Plot total engagement vs. stranger content percentage. Find the dose where marginal benefit equals marginal cost. That's your optimal insertion cap.
Segment analysis (pre-registered):
- Friend graph size: Users with few friends likely benefit most (low friend inventory). Users with 500+ friends may see pure displacement.
- Engagement level: Highly engaged users vs. casual users
- Market and demographics: Different cultures may value friend vs. stranger content differently
- New vs. tenured users: New users with sparse graphs need more content
Validity checks:
- Sample ratio mismatch (SRM)—equal assignment across arms
- Time-series plot to detect novelty decay
- Agreement between observational effect (Part 1) and experimental control vs. T1 comparison
Launch decision framework: Ship if:
- Primary metric improves significantly in at least one treatment arm
- All guardrails pass (friend engagement within tolerance, retention flat or up, negative feedback flat or down)
- The effect is durable (no decay over the experiment period)
Rollout strategy:
- Start with personalized insertion: high caps for users with small friend graphs, low or zero for users with large graphs
- Ramp gradually: 5% → 25% → 50% → 100% of users over 4–6 weeks, monitoring metrics continuously
- Build a feedback loop: adjust per-user caps based on observed engagement patterns
Part 4: Quantify alternative value
If stranger content underperforms on per-impression engagement, it may still provide significant value:
1. Reach and discovery. Stranger content exposes users to new creators, topics, and communities.
- Metric: New follows or community joins per user
- Metric: Diversity of content consumed (entropy over topic categories)
2. Inventory and session extension. Users with few friends would have shorter sessions without stranger content.
- Metric: Session length for low-inventory users (segmented by friend count)
- Counterfactual: impressions delivered vs. impressions available from friends alone
3. Creator ecosystem health. Emerging creators need reach to grow. A platform that only rewards established friend networks stagnates.
- Metric: Distribution equity—percentage of impressions going to creators with <1k followers
- Metric: New creator retention—do new accounts who receive stranger distribution post more and stick around?
4. Long-term network growth. New connections form when users discover and follow strangers, which increases future friend inventory and engagement.
- Metric: New connection formation rate
- Metric: 90-day cohort engagement—users who formed new connections via stranger content
5. Content quality signal. Stranger content that performs well despite the friend handicap is exceptionally strong and can be used to improve ranking models.
Quantification approach: Build a long-term value model that weights immediate engagement, new connections, creator retention, and user retention. Estimate the lifetime value (LTV) contribution of each component using historical cohort data or causal forests. Then compute:
LTV per stranger impression = w₁·engagement + w₂·new_follows + w₃·creator_health + w₄·retention_lift
Compare to LTV per friend impression to find the optimal stranger content mix that maximizes long-term platform value, not just short-term engagement.