PracHub
QuestionsPremiumLearningGuidesCheatsheetNEWCoaches
|Home/Statistics & Math/Capital One

Compute optimal stopping in a die-rolling game

Last updated: Mar 29, 2026

Quick Overview

This question evaluates a candidate's grasp of optimal stopping theory, expected value computation, and finite-horizon decision-making under uncertainty, including recognition of threshold-based policies and backward-induction reasoning relevant to data scientist roles.

  • medium
  • Capital One
  • Statistics & Math
  • Data Scientist

Compute optimal stopping in a die-rolling game

Company: Capital One

Role: Data Scientist

Category: Statistics & Math

Difficulty: medium

Interview Round: Technical Screen

Consider three sequential die-rolling games with a fair six-sided die (pips 1–6). You may observe each roll and decide whether to stop and take the shown value in dollars. If you have not stopped before the last allowed roll, you must take the last roll’s value. Game A: Up to three rolls, no costs. Find the optimal stopping policy and exact expected payoff. Game B: Up to three rolls; if you choose to continue after roll 1 or roll 2, you must pay $1 before rolling again (each continuation costs $1). Find the optimal stopping thresholds and exact expected payoff. Game C: Up to three rolls; the second and third rolls each require paying $1 to roll (i.e., you always pay $1 to access roll 2 if you continue from roll 1, and another $1 to access roll 3 if you continue from roll 2). Find the optimal policy and expected payoff. Bonus: Generalize Game B to an n-sided die with faces 1..n and a continuation cost c; derive the stopping threshold(s) as a function of n and c.

Quick Answer: This question evaluates a candidate's grasp of optimal stopping theory, expected value computation, and finite-horizon decision-making under uncertainty, including recognition of threshold-based policies and backward-induction reasoning relevant to data scientist roles.

Related Interview Questions

  • Compute Optimal Die Re-roll Strategy - Capital One (easy)
  • How do you compute expected return for two projects? - Capital One (easy)
  • Compute gala vs online break-even donors - Capital One (Medium)
  • Model network-service unit economics and breakeven - Capital One (Medium)
  • Compute credit-card portfolio profit and breakeven - Capital One (Medium)
Capital One logo
Capital One
Oct 13, 2025, 9:49 PM
Data Scientist
Technical Screen
Statistics & Math
4
0

Optimal stopping with a fair die (3-roll horizon)

You observe outcomes of fair six-sided die rolls (faces 1–6) and may stop after any roll to take the shown value in dollars. If you have not stopped before the final allowed roll, you must take the last roll’s value. Use backward induction to find the optimal policy and expected payoff for each game.

Assumptions:

  • The die is fair (each face has probability 1/6).
  • You observe each roll before deciding whether to stop.
  • Where a fee applies, it is paid immediately before taking the next roll (only if you choose to continue).

Game A (no costs)

  • Up to three rolls; no fees to continue.
  • Find the optimal stopping rule at each roll and the exact expected payoff.

Game B (optional continuation cost)

  • Up to three rolls; if you choose to continue after roll 1 or roll 2, you must pay 1beforethenextroll(eachcontinuationcosts1 before the next roll (each continuation costs 1beforethenextroll(eachcontinuationcosts 1).
  • Find the optimal stopping thresholds (by face value) and the exact expected payoff.

Game C (per-roll access fee)

  • Up to three rolls; the second and third rolls each require paying 1toroll(i.e.,ifyoucontinuefromroll1youpay1 to roll (i.e., if you continue from roll 1 you pay 1toroll(i.e.,ifyoucontinuefromroll1youpay 1 to access roll 2, and if you continue from roll 2 you pay $1 to access roll 3).
  • Find the optimal policy and expected payoff.

Bonus (generalization)

  • Generalize Game B to an n-sided die with faces {1, 2, …, n} and a continuation cost c each time you choose to roll again (up to three rolls total). Derive the stopping thresholds at roll 1 and roll 2 as functions of n and c.

Solution

Show

Comments (0)

Sign in to leave a comment

Loading comments...

Browse More Questions

More Statistics & Math•More Capital One•More Data Scientist•Capital One Data Scientist•Capital One 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.