Say we were to play a game. We started off with \$100 and kept flipping a fair coin. If it turned out heads, we won \$1, else our money got inverted. For example, if on the first flip we got heads, then we'd have \$101. And if we got tails, we'd have \$0.01. What is the expected value of the money we have after N flips?
One way to think about it is to use recursion, i.e. to find the recursive relation between f(n) and f(n-1), where f(n) is the expected money after n flips. Without too much effort we can find: $$f(n) = \frac{1}{2}(f(n-1)+1) + \frac{1}{2f(n-1)}$$ However, if we use this relation, we'll have our money go down exponentially fast, which goes against common sense.
For example, if we use the above relation, starting off with \$100, after 7 flips, we'll have around \$1. But a simple computer simulation shows it should be slightly above \$18.
Can anyone help shed some light on this problem?
Expectation is linear but you have a non-linear term ($1/f(n)$, although i believe it should be $1/f(n-1)$, but that's a minor point). What makes you think you can compute expectation $f(n)$ by naively plugging in expectation $f(n-1)$ into a simple recurrence for the random variable that is non-linear?
In any event, if your current amount of money is a bit large (say, 3 dollars or more) then with probability $ 1- 1/2^k$ you will get the inverse and hence very little on the $k$th flip, and then with probability $1/2$ you will afterwards get close to 1 dollar and then no matter what happens, your amount will stay low with high probability.