I'm really lost. How can I approach this problem?
Beginning with $1 of capital, you choose a fixed proportion p of your capital to bet on a fair coin tossed repeatedly for 1000 times. Your returns is doubled if the toss lands head and you lose your it lands tail. For example, if p=0.25 and for the first toss your bet $0.25, and if heads appears you win $0.5, and so you have $1.50. You continue to bet $0.375 on the second attempt and if the second toss lands tail, you have $1.125 left.
Suppose p is chosen to maximise the chance of having at least a billion dollar after 1000 flips, what is the chance that you become a billionaire?
How can you use Python to code out this scenario and come out with an answer?
homework
-tag. - Björn Pollex