Dataford
Popular roles
Software EngineerData AnalystData ScientistData EngineerBusiness AnalystAI EngineerMachine Learning EngineerProduct Manager
Browse
Browse All RolesEvery role hub, from analyst to MLBrowse All CompaniesCompany-specific interview loopsAll Interview GuidesThe full guide library
Top questions by role
Software EngineerData AnalystData ScientistData EngineerBusiness AnalystAI EngineerMachine Learning EngineerProduct Manager
Top questions by skill
SQLPythonStatisticsMachine LearningA/B TestingSystem DesignGenerative AIProduct SenseMetricsBehavioral
Browse all questions →Try a mock interview
ExperiencesCoaching
New
Practice
Mock InterviewsTimed interview simulations with feedbackSuccess PathYour 6-week structured planModulesCurated lessons by topicWebinarsTalks from ex-Big Tech data leadsPlaygroundA free-form scratch editor
Learn
BlogInterview strategy and career adviceTech Job Market ReportHiring trends across data and AI rolesFor UniversitiesDataford for career centersAbout DatafordWho we are and how we build
Pricing
Get started

Biased Coin Test for Reels

HardStatistics & Probability00:00
Practice interviewer
In session
5 left
00:00

Whenever you're ready, walk me through how you'd approach this.

You need to log in / sign up to chat or submit.

Problem

Business Context

A social app ranking team uses a simple Bernoulli randomizer in an experiment to decide whether an eligible impression gets a new ranking policy or the baseline policy. Before trusting downstream AARRR funnel reads on metrics like saves, the team wants to verify that the randomizer behaves like a fair coin. A Sample Ratio Mismatch (SRM) alert was triggered because treatment assignment looked slightly imbalanced.

Problem Statement

Treat each assignment as a coin flip: Heads = treatment, Tails = control. You suspect the coin is biased away from 50/50. Test this statistically using the observed assignments.

Given Data

MetricValue
Total assignment events10,000
Treatment assignments (Heads)5,230
Control assignments (Tails)4,770
Expected treatment probability under fair coin0.50
Significance level0.05

Assume assignments are independent and the logging pipeline is correct. Ignore CUPED here because this is a randomization-validity check, not an outcome analysis.

Requirements

  1. State the null and alternative hypotheses for whether the coin is fair.
  2. Use a one-sample proportion z-test to test whether the treatment probability differs from 0.50.
  3. Compute the sample proportion, standard error under the null, z-statistic, and two-sided p-value.
  4. Construct a 95% confidence interval for the true treatment-assignment probability.
  5. Decide whether this looks like evidence of bias or just sampling noise.
  6. Briefly explain how this relates to SRM detection in a social app experiment.

Assumptions

  • Each assignment is an independent Bernoulli trial.
  • The null proportion is exactly 0.50.
  • Normal approximation is valid because both np0n p_0np0​ and n(1−p0)n(1-p_0)n(1−p0​) are large.