PracHub
QuestionsPremiumLearningGuidesCheatsheetNEWCoaches
|Home/Statistics & Math/Zoox

Compute posterior for biased coin after 3H1T

Last updated: Mar 29, 2026

Quick Overview

This question evaluates a candidate's understanding of Bayesian inference, computation of posteriors and Bayes factors, posterior predictive probabilities, and decision-theoretic model selection in a simple biased-coin scenario.

  • Medium
  • Zoox
  • Statistics & Math
  • Data Scientist

Compute posterior for biased coin after 3H1T

Company: Zoox

Role: Data Scientist

Category: Statistics & Math

Difficulty: Medium

Interview Round: Technical Screen

You are given a coin known to be biased: one face lands with probability 2/3 and the other with probability 1/3, but you do not know whether Heads is the 2/3 face or Tails is. Assume prior P(Heads-heavy)=P(Tails-heavy)=1/2. You flip the coin 4 times and observe 3 Heads and 1 Tail (order unspecified). a) Compute the posterior P(Heads-heavy | 3H,1T). b) Compute the Bayes factor BF = P(data | Heads-heavy) / P(data | Tails-heavy). c) Compute the posterior predictive P(next toss is Head | 3H,1T). d) Generalize to n tosses with k Heads: derive a closed-form posterior and the decision rule (under 0–1 loss) for choosing Heads-heavy vs Tails-heavy; show BF as a simple power of 2. e) Does the order of outcomes matter under this model? Explain precisely. f) How would the posterior and predictive change under an asymmetric prior π = P(Heads-heavy) ≠ 1/2?

Quick Answer: This question evaluates a candidate's understanding of Bayesian inference, computation of posteriors and Bayes factors, posterior predictive probabilities, and decision-theoretic model selection in a simple biased-coin scenario.

Related Interview Questions

  • Solve estimation and probability brainteasers - Zoox (easy)
Zoox logo
Zoox
Oct 13, 2025, 9:49 PM
Data Scientist
Technical Screen
Statistics & Math
6
0

You are given a coin known to be biased: one face lands with probability 2/3 and the other with probability 1/3, but you do not know whether Heads is the 2/3 face or Tails is. Assume prior P(Heads-heavy)=P(Tails-heavy)=1/2. You flip the coin 4 times and observe 3 Heads and 1 Tail (order unspecified). a) Compute the posterior P(Heads-heavy | 3H,1T). b) Compute the Bayes factor BF = P(data | Heads-heavy) / P(data | Tails-heavy). c) Compute the posterior predictive P(next toss is Head | 3H,1T). d) Generalize to n tosses with k Heads: derive a closed-form posterior and the decision rule (under 0–1 loss) for choosing Heads-heavy vs Tails-heavy; show BF as a simple power of 2. e) Does the order of outcomes matter under this model? Explain precisely. f) How would the posterior and predictive change under an asymmetric prior π = P(Heads-heavy) ≠ 1/2?

Comments (0)

Sign in to leave a comment

Loading comments...

Browse More Questions

More Statistics & Math•More Zoox•More Data Scientist•Zoox Data Scientist•Zoox Statistics & Math•Data Scientist Statistics & Math
PracHub

Master your tech interviews with 7,500+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • For Universities
  • Student Access

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.