PracHub
QuestionsPremiumLearningGuidesCheatsheetNEWCoaches
|Home/Statistics & Math/Boston Consulting Group

Compute posterior and predictive coin probabilities

Last updated: Mar 29, 2026

Quick Overview

This question evaluates Bayesian inference and probabilistic reasoning, focusing on posterior updating, posterior predictive probability, and the conditional expectation of a stopping time given observed outcomes.

  • medium
  • Boston Consulting Group
  • Statistics & Math
  • Data Scientist

Compute posterior and predictive coin probabilities

Company: Boston Consulting Group

Role: Data Scientist

Category: Statistics & Math

Difficulty: medium

Interview Round: Take-home Project

You have two coins: F is fair; B is biased with P(H)=0.7. You pick one coin uniformly at random and flip it three times. The first two flips are Heads (the third flip outcome is not yet observed). a) Compute P(picked B | first two flips are Heads). b) Compute P(next flip is Heads | first two flips are Heads). c) Continuing with the same coin, let T be the total number of flips until the first Tail occurs (including it). Compute E[T | first two flips are Heads], showing your derivation.

Quick Answer: This question evaluates Bayesian inference and probabilistic reasoning, focusing on posterior updating, posterior predictive probability, and the conditional expectation of a stopping time given observed outcomes.

Related Interview Questions

  • Defend MSE over MAE for car prices - Boston Consulting Group (medium)
  • Compute averages and binomial/Poisson probabilities - Boston Consulting Group (medium)
  • Calculate Probability and Statistics for Dice Roll Outcomes - Boston Consulting Group (easy)
  • Calculate Probability of Heads and Red Balls Drawing - Boston Consulting Group (easy)
  • Derive Probability of Even Sum in Bernoulli Trials - Boston Consulting Group (medium)
Boston Consulting Group logo
Boston Consulting Group
Oct 13, 2025, 9:49 PM
Data Scientist
Take-home Project
Statistics & Math
9
0

Bayesian coin: posterior, prediction, and stopping-time expectation

Context

  • You have two coins and will use the same coin for all flips:
    • Fair coin F: P(H) = 0.5
    • Biased coin B: P(H) = 0.7
  • You pick one coin uniformly at random (P(F) = P(B) = 0.5).
  • You flip the chosen coin three times. The first two flips are Heads (H, H). The third flip is not yet observed.

Tasks

(a) Compute P(B | first two flips are Heads).

(b) Compute P(next flip is Heads | first two flips are Heads).

(c) Continuing with the same coin, let T be the total number of flips until the first Tail occurs (including that Tail). Compute E[T | first two flips are Heads], and show your derivation.

Solution

Show

Comments (0)

Sign in to leave a comment

Loading comments...

Browse More Questions

More Statistics & Math•More Boston Consulting Group•More Data Scientist•Boston Consulting Group Data Scientist•Boston Consulting Group 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.