Given observed coin flips, how would you find the probability that the coin is biased?

Quick Overview

Asks how to compute the probability that a coin is biased after observing a set of flips. Tests Bayesian reasoning with priors and likelihoods, the Beta-Binomial update, and the difference between a posterior probability and a p-value.

Given observed coin flips, how would you find the probability that the coin is biased?

Role: Data Scientist

Category: Statistics & Math

Difficulty: medium

Interview Round: Other

You observe the outcome of some coin flips, for example k heads in n flips. Given that outcome, how would you find the probability of the coin being biased? ```hint Which way the probability runs The flips tell you how likely the data is under each hypothesis. Think about what else you need to turn that into the probability of a hypothesis. ``` ```hint Pin down "biased" Decide what "biased" means precisely: one specific alternative value of p, or a whole range of values. ``` ### What a Strong Answer Covers - The problem framed as competing hypotheses with prior probabilities. - The likelihood of k heads in n flips under each hypothesis. - Bayes' theorem applied to get the posterior probability that the coin is biased. - How to handle an unknown amount of bias with a prior over p, such as a Beta prior and its conjugate update. - How the answer depends on the prior and on the definition of "biased." ### Follow-up Questions - How would a frequentist approach this, and why is a p-value not the probability that the coin is fair? - How many flips would you need to tell a coin with p = 0.55 apart from a fair one? - What prior would you choose, and how much does it still matter after 1,000 flips?

Overview: Asks how to compute the probability that a coin is biased after observing a set of flips. Tests Bayesian reasoning with priors and likelihoods, the Beta-Binomial update, and the difference between a posterior probability and a p-value.

Nov 25, 2026
mediumData ScientistOtherStatistics & Math
0
0

You observe the outcome of some coin flips, for example k heads in n flips. Given that outcome, how would you find the probability of the coin being biased?

What a Strong Answer Covers Guidance

  • The problem framed as competing hypotheses with prior probabilities.
  • The likelihood of k heads in n flips under each hypothesis.
  • Bayes' theorem applied to get the posterior probability that the coin is biased.
  • How to handle an unknown amount of bias with a prior over p, such as a Beta prior and its conjugate update.
  • How the answer depends on the prior and on the definition of "biased."

Follow-up Questions Guidance

  • How would a frequentist approach this, and why is a p-value not the probability that the coin is fair?
  • How many flips would you need to tell a coin with p = 0.55 apart from a fair one?
  • What prior would you choose, and how much does it still matter after 1,000 flips?