Do Reaction Types Depend on Country in Facebook Feed

Last updated: November 29, 2026

Quick Overview

Given a contingency table of reaction counts (Like, Love, Haha, Angry) by country for one week, test whether the reaction mix depends on country and explain how you would report which cells drive the result.

Meta
Statistics & Math
Data Scientist
Meta
November 29, 2026
Data Scientist
Technical Screen
Statistics & Math
Easy

0

0

0 solved


Given a contingency table of reaction counts (Like, Love, Haha, Angry) by country for one week, test whether the reaction mix depends on country and explain how you would report which cells drive the result.

A Meta product analytics screen question about Facebook reactions that checks the chi-square test of independence and its assumptions. The interviewer also wants to hear why huge counts make almost any difference significant and how to report effect size.

What the Interviewer Expects
  • Set up the null of independence and the expected counts
  • Compute the chi-square statistic and degrees of freedom
  • Check expected-count and independence assumptions
  • Use standardized residuals to locate the drivers
  • Report an effect size such as Cramer's V
Key Topics to Cover
chi-square test of independence
contingency tables
standardized residuals
Cramer's V
clustered observations
How to Approach This
  1. Define your hypotheses (H0 and H1) clearly before performing any test.
  2. Calculate required sample size BEFORE running an experiment, using power analysis.
  3. Remember the Central Limit Theorem: sample means become approximately normal with large n.
  4. Watch for Simpson's paradox. Always segment data by key dimensions.
  5. Distinguish between statistical significance and practical significance.
Possible Follow-up Questions
  • Each user can react many times; how does that affect the test?
  • What would you do if some countries have expected counts under 5?
  • How would you test whether one country's mix changed week over week?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Browse Statistics Questions
Sample Answer
Clarify
  • Rows: countries (rr of them). Columns: reaction types (c=4c = 4).
  • Cell OijO_{ij}: reactions of type jj in country ii during the week.
  • Question: is P(type∣country)P(\text{type} \mid \text{country}) the same ...
Approach

Under H0H_0 (independence) the expected count is Eij=RiCjT,E_{ij} = \frac{R_i C_j}{T}, with row totals RiR_i, column totals CjC_j, grand total TT. The statistic


Submit Your Answer
Markdown supported