When IBM Watson landed on a Daily Double in Jeopardy!, it chose its bet by comparing action values built from a learned win-probability function and its confidence of answering correctly:
where is Watson's current score. Maximising alone took "a frightening amount of risk", so two safeguards were added: subtract a fraction of the standard deviation of the two afterstate values, and forbid any bet whose wrong-answer value would fall below a floor.
Implement watson_wager(score, p_dd, v_hat, kappa=0.0, floor=None, min_bet=5):
min_bet to score inclusive (assume score min_bet).v_hat(x) returns the win probability after moving to score x; call it with a single number.floor is not None, discard bets with floor. If every legal bet is discarded, bet min_bet.Return (bet, q, v_wrong): the chosen bet, its unadjusted , and .