All about flooble | fun stuff | Get a free chatterbox | Free JavaScript | Avatars    
perplexus dot info

Home > Probability
Pick a card, any card.. (Posted on 2008-03-11) Difficulty: 3 of 5
You sit down with a well mixed deck containing A cards marked "+" and B cards marked "—". You may draw cards from this deck as long as you want, i.e., you can stop playing at any point. Each time you draw a + card you are given $1 and each time you draw a — card you have to pay $1. Cards are not replaced after having been drawn.

What would be a fair amount to pay for the right to play (i.e., what is the expected payoff) and under what circumstance should a player cease drawing?

See The Solution Submitted by FrankM    
Rating: 2.7500 (4 votes)

Comments: ( Back to comment list | You must be logged in to post comments.)
Solution solution--I think | Comment 1 of 37

If the best strategy is to keep drawing until the minuses equal or exceed the pluses, then, as one plays, the number of pluses drawn will exceed the number of minuses drawn by A - B.  This is true even if the number of minuses goes to zero before the number of pluses does so, and eventually you are assured that at some point the pluses will get down to the level of the minuses.

So the expected payoff (fair amount to pay to play) is A - B.

Admittedly I did not realize this until I was looking to explain the results of a computer program, which produced this payoff matrix:

 

 B= 1  2  3  4  5  6  7  8  9
A



1  0  0  0  0  0  0  0  0  0
2  1  0  0  0  0  0  0  0  0
3  2  1  0  0  0  0  0  0  0
4  3  2  1  0  0  0  0  0  0
5  4  3  2  1  0  0  0  0  0
6  5  4  3  2  1  0  0  0  0
7  6  5  4  3  2  1  0  0  0
8  7  6  5  4  3  2  1  0  0
9  8  7  6  5  4  3  2  1  0

based in the recursion E(a,b) = (a/(a+b))*(E(a-1,b) + 1) + (b/(a+b))*(E(a,b-1) - 1), with E(x,x) = 0 and e(x,0)=x.

DECLARE FUNCTION e! (p!, m!)
FOR p = 1 TO 9
FOR m = 1 TO 9
  PRINT e(p, m);
NEXT
PRINT
NEXT

FUNCTION e (p, m)
 IF m >= p THEN e = 0: EXIT FUNCTION
 IF m = 0 THEN e = p: EXIT FUNCTION
 e = (p / (p + m)) * (e(p - 1, m) + 1) + (m / (p + m)) * (e(p, m - 1) - 1)
END FUNCTION

 


  Posted by Charlie on 2008-03-11 14:41:49
Please log in:
Login:
Password:
Remember me:
Sign up! | Forgot password


Search:
Search body:
Forums (0)
Newest Problems
Random Problem
FAQ | About This Site
Site Statistics
New Comments (24)
Unsolved Problems
Top Rated Problems
This month's top
Most Commented On

Chatterbox:
Copyright © 2002 - 2024 by Animus Pactum Consulting. All rights reserved. Privacy Information