Chance All Four Reaction Types Appear in Six Reactions

Last updated: November 29, 2026

Quick Overview

Under a simplified model, each reaction on a post is independently and uniformly one of four types (Like, Love, Haha, Wow). For a post with six reactions, what is the probability all four types appear at least once, and what is the expected number of distinct types?

Meta
Statistics & Math
Data Scientist
Meta
November 29, 2026
Data Scientist
Onsite
Statistics & Math
Medium

0

0

0 solved


Under a simplified model, each reaction on a post is independently and uniformly one of four types (Like, Love, Haha, Wow). For a post with six reactions, what is the probability all four types appear at least once, and what is the expected number of distinct types?

Inclusion-exclusion problems like this come up in Meta data science onsites, framed around Facebook reactions or emoji usage. The interviewer checks that you handle overlapping 'type missing' events correctly and use indicators for the expectation.

What the Interviewer Expects
  • Define events $A_i$: type i is missing
  • Apply inclusion-exclusion to get 1560/4096, about 0.381
  • Cross check with Stirling numbers: $4! \cdot S(6,4)$
  • Get expected distinct types $4(1 - (3/4)^6) \approx 3.29$
  • Discuss what non-uniform reaction mix does
Key Topics to Cover
Inclusion-exclusion
Surjections
Indicator variables
Occupancy problems
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
  • How many reactions are needed for a 90% chance all types appear?
  • How does a realistic mix where Like dominates change the answer?
  • What is the variance of the number of distinct types?
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

Six independent reactions, each uniform over 4 types. We want P(all 4 types appear)P(\text{all 4 types appear}) and E[D]E[D] where DD is the number of distinct types seen....

Approach

Let AiA_i be the event that type ii never appears. 'All types appear' is the complement of ⋃Ai\bigcup A_i. Any jj given types missing has probability ((4−j)/4)6((4-j)/4)^6. For E[D]E[D], sum indicators that ea...


Submit Your Answer
Markdown supported