Problem 1
Suppose Bob starts with 1 credit. Everyday Bob can choose to go to a casino. On Day (with starting from 1), he has a chance to win his gambling. If he wins, he wins a prize of credits. If he loses, then he loses all of the credits accumulated so far, and he has no more money to gamble anymore. Optimally, how many days of gambling should Bob do?
Solution
Answer: days
Consider the marginal profit from each day. Bob should continue only while the expected marginal profit is positive; otherwise, the expected amount of money he has decreases.
On day , the expected revenue is . His accumulated money before that day is , so the expected loss is .
This is positive only for . Thus, optimally, Bob should gamble for days.
