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
November 29, 20260
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
How to Approach This
- Define your hypotheses (H0 and H1) clearly before performing any test.
- Calculate required sample size BEFORE running an experiment, using power analysis.
- Remember the Central Limit Theorem: sample means become approximately normal with large n.
- Watch for Simpson's paradox. Always segment data by key dimensions.
- 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 QuestionsSample Answer
Clarify
Six independent reactions, each uniform over 4 types. We want and where is the number of distinct types seen....
Approach
Let be the event that type never appears. 'All types appear' is the complement of . Any given types missing has probability . For , sum indicators that ea...