You have a special deck with 11 cards, with 10 red cards and 1 joker. starting with $1 we play a game:
- shuffle the deck
- we can choose to draw the top card. if it's red, we double our money, but if it's the joker, our money is multiplied by 1/2048. the card we drew is then discarded.
- repeat step 2 until you want to walk away: at any time, you can choose to stop drawing cards and take home however much you have.
a) how would you play this game? what's the minimum amount of money you are guaranteed to take home?
b) let's say you employ a strategy where you always draw n cards then stop. What value of n should you pick? how much money would you on average then have?
c) what strategy maximizes the expected value, and what is this value?
We now modify the game so that before drawing a card, you can bet any number between 0 and how much money you currently have. then, the bet is either doubled or multiplied by 1/2048 depending on whether you draw a red card or the joker.
d) does your strategy change? how should you now play, and what are the associated expectations?
e) what is the most amount of money you are guaranteed to win?
My approach:
Part a) If you ever draw a Joker, you continue to draw all the other cards. Hence minimum amount of money guaranteed is \$ 1/2 or 50 cents.
b) We will stop drawing after n cards when
$ E[n+1] <= E[n]:$ $$ \frac {10-n} {11-n} * 2^{n+1} <= \frac {10-n + 1} {11-n +1} * 2^{n} $$
This gives us $ n^2 -22n + 119 = 0 $ as our equation giving $ n <= 9.59 $
Hence we should stop after drawing 9 Red cards. However, if we get a Joker we obviously draw all cards then.
c) Assuming same strategy as above $$ E[x] = \frac {2}{11} * 2^9 + \frac {9} {11} * \frac {1} {2} = 93.5 $$
Not sure if this strategy is correct/optimal that maximizes EV.
Also no idea on the next part where we can bet any amount of the money we currently have
Let $S_0=1$ and $S_n$ denote a random variable modeling the cumulated winnings after the $n$-th card is revealed. Let $N$ denote the rank of the joker in the shuffled deck. Note that $N$ is a random variable.
The dynamic of the game is quite simple: $$S_1=2, S_2=2^2, \ldots, S_{N-1} = 2^{N-1}, S_{N} = \frac{2^{N-1}}{2^{11}},S_{N+1} = \frac{2^{N}}{2^{11}}\ldots, S_{11} = \frac 12.$$
We can find a good strategy via dynamic programming. We encode the current game state by $(r,j)$. The integer $r$ is the number of red cards left in the deck and $j$ is the number of joker ($j\in \{0,1\}$). Initially we are at the state $(10,1)$.
Let $W(r,j)$ denote the cumulated winnings for the state $(r,j)$. If you decide to stop at this state, by the dynamic your winnings are $$g(r,j) :=\begin{cases} 2^{10-r} &\text{if } j=1 \\ \frac{1}{2^{r+1}} &\text{if } j=0. \end{cases}$$ If you continue, your expected winnings are $\frac r{r+j} E[W(r-1,j)] + \frac j{r+j} E[W(r,j-1)]$.
Thus you continue playing iff $$g(r,j) < \frac r{r+j} E[W(r-1,j)] + \frac j{r+j} E[W(r,j-1)]$$ and $$E[W(r,j)] = \max\Big (g(r,j), \frac r{r+j} E[W(r-1,j)] + \frac j{r+j} E[W(r,j-1)] \Big).$$
Note the boundary condition $W(0,0) = \frac 12$. Consider the following Python implementation.
It computes the following matrix of earnings
arr, hence $E[W(10,1)] \approx 93.545454$, the exact value of which is most likely $\frac{1029}{11}$.The corresponding strategy is given by the matrix of moves
arr2.