Probability and expected number of turns in coin flipping game?

Suppose we play a coin game: we flip a coin, upon tails you get one dollar from me, upon heads I get one dollar from you. We repeat this until one of us is broke.

Now, at the beginning of the game, I have $4 and you have $6.

1. What is the chance of me winning the game? (thus ending up with $10, leaving you broke)

2. What is the expected number of turns we have to take until the game finishes? (i.e. until one of us is broke)

Intuitively I feel the answer to Q1 should be , but I can't seem to calculate this properly. No idea how to approach Q2. I can see that and (with being the number of turns from a game situation where I have n dollar) but I don't know how to resolve this to a definite result.

Re: Probability and expected number of turns in coin flipping game?

Re: Probability and expected number of turns in coin flipping game?

Thanks, didn't know the right term for this kind of problem. But unfortunately that doesn't help me much. Well it does confirm the probability is indeed 4/10, but it doesn't really explain how to calculate this. The linear homogenous recurrence relation mentioned by wikipedia is exactly where I'm stuck at.

Would anyone happen to know how to prove that when given ?

Re: Probability and expected number of turns in coin flipping game?

The auxiliary equation associated with the recurrence is:

With the root r = 1 of multiplicity 2, we know will take the form:

Using we find and using we find:

Thus:

Re: Probability and expected number of turns in coin flipping game?

Awesome, thank you very much!

In the mean time I found a less sophisticated solution myself:

means

Let's say , and we already know that , so we can say .

Then also , and therefore (by induction) we have .

Since , we have so .

Re: Probability and expected number of turns in coin flipping game?

Just in case, similar to my own method for Q1, for Q2 I found so .

I'm not too familiar with that auxiliary equation method so I'll get my head around that, as it seems much more powerful in situations like these.