This recursive expected value calculation is what I implemented to solve my coinflip question. There’s a link to the Python code in that post for anyone who is curious about implementation.
This recursive expected value calculation is what I implemented to solve my coinflip question. There’s a link to the Python code in that post for anyone who is curious about implementation.