St. Petersburg paradox
en.wikipedia.org
en.wikipedia.org
Fortunately, there is a huge difference between "infinite" and "really large," which is often key. So applying these results to the real world often doesn't work out.
As the Wikipedia article points out, although the expected value of the game is infinite if the casino has infinite money, it's not only finite but quite small if the casino has finite money. Even if the casino were backed by the entire world GDP, the expected value of the game is only around $50.
This to me is a satisfying resolution to the problem presented.
Even if the house had unlimited resources, it'd be hard to convince me to pay a large amount of money to play -- assuming I could only pay once.
[1] http://blogs.reuters.com/felix-salmon/2014/04/04/stop-adding...
However, that analysis assumes that additional money always adds some additional usefulness, and then you can make the problem reappear. To get rid of it entirely you have to declare that there is some point beyond which provides zero additional value no matter how much more money you add. And as you say, such a point surely exists.
No, you merely have to declare that there is some amount of utility which can never be obtained no matter how much money you have. (Or as the Simpsons put it: There's one thing you can't buy: A dinosaur.)
In mathematical terms, if your utility function is f(x) = 1 - 1/x, every marginal dollar adds utility; but the added utility is never enough to make the gamble profitable.
Utility function analysis is arbitrary just as the article says. Compare this to ergodic theory (used for proper dynamic system analysis), where you can clearly derive the value function over number of plays, including infinite number.
What an ergodic process is you can see here: https://en.wikipedia.org/wiki/Ergodic_process By computing the limit of the ensemble average you will derive the logarithmic utility function. This works for finite resources as well, but then you can also derive the time it takes to bankrupt the bank, as well as probability of that ever happening.
The paradox wants you to imagine that, for very small probabilities, you can get utilities indefinitely large. The paradox wants you to say, I'll devote my entire life to earning as much money as possible and spending it all on this game because the payoff is so large that this is worth it for the tinest chance. But if there's an upper bound on the human utility function, then this doesn't work. It doesn't work because when you imagine how happy you'd be with arbitrarily large wealth, you don't imagine an arbitrarily large utility, you imagine the "max utility" situation described above where every day is like the best day of your life, which is nice but not as nice as would be required to justify almost certainly throwing your life away for a small chance of this.
The only case where economics cannot avoid dealing with infinite quantities, is with dynamic issues, since most models assume that various quantities though finite at a given point, could grow without bound (e.g. GDP). One case this comes up is in debt, especially national debt. Most models posit a transversality/"no ponzi" condition, that states that the present value of debt at time t will converge to zero as t goes to infinity. On the other hand, if national debt was a constant proportion of GDP (which in the long run should grow at the same rate as the risk free interest rate) then this would in fact be false, and national debt is a kind of free money that comes out of nowhere, i.e. a real ponzi scheme.
Imposing a finiteness condition (e.g. and end to the universe) would imply that in the far future, some generation will pay for current consumption that is based on either national debt, or the corresponding internal borrowing from future generations (e.g. social security as understood in the overlapping generations model). That is why, in my opinion, it is completely wrong to say that household finances don't apply to government. The only difference is the kind of consumption and investment being done, but the financial constraints are identical.
The expected win is infinite because very rare scenarios have huge payouts. However, any one play of the game has a 50% chance of paying out nothing. If I get to play the game a large enough number of times for the rare scenarios to actually occur, then I would be willing to pay a higher price than if I only got one shot at it.
However! Suppose you were allowed to modify things ever so slightly. Suppose you get to say, "Sure, I'll pay $1 million to play. But instead of playing once and taking my winnings, I want to play a million times, and only take one millionth of whatever I win each time." You haven't done anything to change the average payout of the game. But you've made it a much better idea to play, by reducing the variance.
That's what it means to say the game has infinite expected value. You really should be willing to pay anything to play it, as long as you're allowed to repeat the game over and over.
Of course, if you're stuck with playing the game just once, then lots of games look like a bad idea despite having a positive expected value. The St. Petersburg game is hardly alone here. For example, suppose you have a 1-in-a-million chance of winning $10 billion, but it costs $1000 to play. Should you play? The expected value is good, but I don't think most people would touch it. Not much of a paradox there.
I'd happily take those odds.
Arguably you could model this with hidden variables. So: A mathematician might go to vegas and spend 1,000$ gamboling with the expectation that they will lose that money. With novelty being the reason that becomes a reasonable trade-off.
In that context maximizing expected utility becomes hard because you can't accurately model your utility function.
Not quite. The expected win is infinite because of the one single scenario where the games continues on an infinite basis.
The average win is approx $46 if the bankroll is all the money in the world.
On a related note, we don't have a way of measuring the value of money beyond quantities we subconsciously label " all the money". Is it better to have $10^90 or $10^100? In the computation of the expectation, the difference is crucial. To a human player, there is no distinction.
With the other half... half of the time you win at least $4. With the other half of that... half of the time you win at least $8. With the other half of that... half of the time you win at least $16.
So, if you simulate the average winnings in a single round, you get data like this:
[8, 2, 8, 2, 8, 32, 8, 8, 4, 4, 2, 4, 4, 16, 2, 2, 16, 4, 8, 2]
Which even with losses of $3 and $1 for most games still works out to a $44 profit at $5 game.
However, and this is the point of the paradox, if you run the numbers for 100 rounds, you start to see average winnings per round like:
[6.48, 6.6, 15.68, 10.02, 10.26, 17.04, 5.86, 11.96, 8.92, 7.34, 6.56, 17.14, 9.92, 9.64, 11.48, 12.44, 19.64, 171.42, 12.82, 5.9]
So if you had played those 20 times, at $5/game * 100 rounds you would have a $27,000 profit on $10000.
If I pay 4 dollars to play, I have a 25% chance each game of at least breaking even and being able to continue playing.
Why are you modeling it that way? Nothing in the game requires that a player spend the bank to $0.
So an answer to the paradox is that some people, like yourself, have intuition about the Kelly criterion: that they should limit the portion of their bankroll that they bet.
I think this can also be said as "The market can remain irrational longer than you can remain solvent".
Rather than try to keep track of profit and loss it just plays for 1000 rounds and figures out the max cost per game that would have broken even. There's different ways of doing it obviously.. like assign actual values to starting money and cost per game and then play until a 20% profit or bankruptcy.
From what I see for 1000 rounds, paying $6 would mean a profit 100% of the time. Also, average breakeven should probably take the 90th percentile.
#!/usr/bin/env python3
import random
def play():
profit = 2
while True:
if random.choice([0,1]):
return profit
profit *=2
def simulate():
profit = 0
plays = 0
max_win = 0
threshold=10
for i in range(1, 1001):
win = play()
profit += win
max_win = max(win, max_win)
print("Round: {}, win: {}, Max win: {}, profit: {}, Breakeven cost: {:0.2f}".format(i, win, max_win, profit, profit/i))
return profit/i
def avg(l):
return sum(l) / len(l)
def main():
breakevens = []
for _ in range(1000):
be = simulate()
breakevens.append(be)
print("Lowest breakeven cost: {:0.2f}".format(min(breakevens)))
print("Average breakeven cost: {:0.2f}".format(avg(breakevens)))
print("Highest breakeven cost: {:0.2f}".format(max(breakevens)))
if __name__ == "__main__":
main()Only a bounded utility function is a solution - there must be some amount of money where literally even a trillion dollars more doesn't matter.
That seems acceptable, but it still means this game is worth some amount to play, and that amount can still grow very large before reaching your bound. Also there must be some things which we can't bound.
There is a very related problem called Pascal's Mugging: http://wiki.lesswrong.com/wiki/Pascal's_mugging
In Pascal's mugging, a mugger asks you to pay him $5, or he will kill 3↑↑↑3 people (an incomprehensibly huge number, that for all intents in purposes, might as well be infinity.) He says that he is the matrix lord and likes playing games with simulated people.
This is of course, incredibly unlikely. But is the probability he is telling the truth greater than 1/3↑↑↑3? Is $5 worth more than a human life? If so you should pay him.
This is a general problem with expected utility. EU only cares about the average utility. The utility of all the possible outcomes, weighted by their probability. A single outlier can throw the average case off a lot.
EU is forced to trade away utility from the majority of probable outcomes to really weird unlikely outcomes, like the mugger, or winning an infinite series of coin flips. EU is optimal in most everyday problems, but it can fail in extreme cases.
However, many perturbations of this lottery can actually be good bets.
For example, suppose you gain 3^n dollars with probability 2^{-n}. Then you have a 1/128 chance of winning $2187, a 1/256 change of winning $6561, and this game starts looking much nicer.
The "Pascal's Mugging" divergence is a different problem, where Solomonoff-style priors imply negative-exponential probabilities of Busy-Beaverish payoffs. Ordinary priors don't really have this problem.
Any reasonable prior should have similar cases. Unless you really believe the mugger being a matrix lord has 0 probability, or that God has 0 probability, etc, you are forced to act as if they are true. Which results in wasted effort in the vast majority of possible outcomes, in exchange for a massive payoff in incredibly rare outcomes.
Assigning 0 probability is not something you should do lightly. It would mean you could wake up and find yourself outside of the matrix, and you still would not believe it had any chance of being true. It would mean God himself could come to and say "yeah it's all real." And you would be forced to believe there is still 0 probability he exists.
Our inability to reason about infrequent events means that a casino that plays this game may look like a very attractive proposition, because in practice (finite small-scale simulation) the expected payouts are quite reasonable. So it would behoove the casino to leverage itself up to its eyeballs to maximize the return on investment.
While the numbers for the "finite versions" part of the article seem quite reasonable, it's easy to forget that when leverage comes into play, a game like this can not only bankrupt the casino, but can ripple back to all of the investors (lenders) as a loss that far exceeds the profits in the history of the casino.
This is why all games of chance have a "bank wins" feature.
The equation should be: 1/4 x $2 + 1/8 x $4 ...
Still goes to infinity, but at half the pace.
If you invested 1024$ (10 successive head rolls), you have less than 1/1024 chance of seeing it back.
Of course, you start from 2$ and not 0$ (I have simplified a few things to drive the point).
How much is a $1 lottery ticket worth? It is probably 40 cents depending on the probability. It's worth zero for all the people who lose and millions of dollar for the luck one. There is no "between" value which is what expected value represents.
How high would X have to be for you to be willing to play the game?
That's not the usual meaning of the word paradox.
But before I criticize these "attempts" at solving this problem by these deft mathematicians, I'd like to see a single video example of 10 coin tosses all coming up either heads or tails.
After we can all see that this can happen, then we can start worrying about how much money a casino in the real world would charge for such game being played in the real world, by real players, with real coins.
It is amazing that out of all mathematicians listed on Wikipedia that attempted this, only one considered actually sampling (supposedly simulated coin tosses).
This can be easily simulated, but they'd rather stay within the comfy confines of calculation, so that presumably they can publish more papers.
This focus on the theoretical side of things, the 'comfy confines of calculation', isn't a bad thing, the paradox is still an interesting thought experiment.
A real coin toss is, say, at least 25% probability for heads and at least 25% probability for tails. Therefore you can multiply the winnings by 4 and not by 2, which will give you a divergent series even with a real, "unfair" coin.
And there are several more.
Not that hard to do. Just a matter of perseverance and a bit of luck. Yes, it could be faked, but I trust him.