From Newsgroup: rec.puzzles
richard@cogsci.ed.ac.uk (Richard Tobin) writes:
In article <10heml0$29ci5$1@dont-email.me>,
David Entwistle <qnivq.ragjvfgyr@ogvagrearg.pbz> wrote:
I've read the Wikipedia page:
https://en.wikipedia.org/wiki/St._Petersburg_paradox
but the answer provided, that the expected value (E) is given by:
E = 1/2 x 2 + 1/4 x 4 + 1/8 x 8 + ... 1/n x 2^(n-1)
[that should be 1/2^n x 2^n - each term is equal to 1]
doesn't seem right. As I understand it, there's only one payout per game, >>so you shouldn't add the series of probability-of-payout x payout, for all >>rounds.
A single game consists of tossing a coin until it comes up heads.
If that happens on the kth toss, you win 2^k.
The Wikipedia article is confusing because it refers to the "stake"
doubling as if you had to pay for each toss. You pay once at the
start of the game. It's the prize that doubles with each toss.
There's no real paradox here. Paying an amount based on your expected
gain is only sensible under conditions where your actual gain is
likely to be similar to your expected gain, which is not the case here.
It's a disconnect between the modal (1) or median (1.5) gain and the
mean gain (oo). I think it's worthy of the title "paradox" though. There
are two equally valid seeming thought processes that lead to
contradictory conclusions.
If I could play the game as many times as I wanted, I'd definitely pay
the $25 that is mooted in the wikipedia article to play. However, if it
was a single shot, and I had no collaborators to share risk with, the mathematician in my head has to be gagged, and I don't think I'd
stretch to $10. I'd rather have a couple of beers.
Assuming you have savings of $100 you're prepared to lose, a quick sim
with some non-bizarro heuristics (that remove the infinity) does imply
that a stake of 6 or below leaves you with a better than evens chance of
ending up in profit:
stake,stash: results from 10000 trials (which can consist of many games) 10,100: 7685 losses, 2315 wins averaging 49.1487, 3 broke the bank
8,100: 6743 losses, 3257 wins averaging 57.1332, 6 broke the bank
8,100: 6710 losses, 3290 wins averaging 916.9998, 7 broke the bank
7,100: 5700 losses, 4300 wins averaging 585.0954, 30 broke the bank
7,100: 5723 losses, 4277 wins averaging 457.4633, 26 broke the bank
7,100: 5700 losses, 4300 wins averaging 2211.0101, 28 broke the bank
6,100: 4895 losses, 5105 wins averaging 2197.5716, 86 broke the bank
6,100: 4837 losses, 5163 wins averaging 2023.9142, 91 broke the bank
6,100: 4837 losses, 5163 wins averaging 2490.1608, 97 broke the bank
Here, "broke the bank" means your winnings exceeded 1000 times your
initial stash.
The heuristics are that once you've reached a pot over your initial
stash, you stop playing once you've burnt into half of that nett gain.
(So if you play and reach 250, you'd be prepared to play until 175, and
then you'd just bank the 75 nett winnings.)
If you've got no stash, only enough for the initial stake, then no
stake is low enough to give you a decent chance of winning, despite
the fact that you can still on average win decently when you win:
6,6: 8793 losses, 1207 wins averaging 0.6217, 3 broke the bank
5,5: 8762 losses, 1238 wins averaging 19.5844, 20 broke the bank
4,4: 8628 losses, 1372 wins averaging 164.3171, 75 broke the bank
3,3: 7482 losses, 2518 wins averaging 114.5152, 224 broke the bank
2,2: 6588 losses, 3412 wins averaging 757.5208, 1137 broke the bank
Phil
--
We are no longer hunters and nomads. No longer awed and frightened, as we have gained some understanding of the world in which we live. As such, we can cast aside childish remnants from the dawn of our civilization.
-- NotSanguine on SoylentNews, after Eugen Weber in /The Western Tradition/
--- Synchronet 3.21a-Linux NewsLink 1.2