Compute posterior and predictive coin probabilities

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.

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.

|Home/Statistics & Math/Boston Consulting Group
Boston Consulting Group logo
Boston Consulting Group
Oct 13, 2025, 9:49 PM
mediumData ScientistTake-home ProjectStatistics & Math
16
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.

Loading comments...