Assess Probability of Heads in Coin Tosses
Probability with Coin Tosses and the Normal Distribution
Context
Onsite data scientist screening question assessing basic probability and distribution knowledge.
Questions
-
A fair coin is tossed N times, with independent tosses. What is the probability of observing exactly k heads?
-
How does your answer change if the coin is biased, with probability p of heads on each toss?
-
Let X ~ N(μ, σ²). Derive P(a < X < b) and explain how to standardize a normal variable.
Hint
-
Use the binomial probability mass function (pmf) for parts (1) and (2).
-
Use the Z-score transformation to standardize a normal variable.
Constraints & Assumptions
-
Preserve the scope, facts, inputs, and requested outputs from the prompt above.
-
If the prompt leaves a detail unspecified, state a reasonable assumption before relying on it.
-
Keep the answer interview-ready: concise enough to present, but concrete enough to implement or evaluate.
Clarifying Questions to Ask
-
Clarify the random variables, distributional assumptions, independence assumptions, and desired output.
-
Show enough derivation for the interviewer to follow the reasoning.
-
Explain how you would validate the result with simulation or sensitivity checks.
What a Strong Answer Covers
-
A correct setup with definitions, formulas, and boundary conditions.
-
A step-by-step derivation or estimation plan.
-
Interpretation of the result, including uncertainty and practical limitations.
-
Checks for assumptions, edge cases, and numerical stability.
Follow-up Questions
-
How would the result change if the assumptions were relaxed?
-
Can you verify the answer with a simulation?
-
What is the most likely source of estimation error?