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

Home > Games
Quit as a winner (Posted on 2015-09-24) Difficulty: 4 of 5
You have a normal deck of 52 playing cards You draw cards one by one (Cards drawn are not returned to the deck).
A red card pays you a dollar. A black one fines you a dollar.
You can stop any time you want.

a. What is the optimal stopping rule in terms of maximizing expected payoff?
b. What is the expected payoff following this optimal rule?
c. What amount in dollars (integer values only ) are you willing to pay for one session (i.e. playing as long as you wish, not exceeding the deck), using your strategy?

Source will be disclosed after the solution is published.

No Solution Yet Submitted by Ady TZIDON    
Rating: 5.0000 (1 votes)

Comments: ( Back to comment list | You must be logged in to post comments.)
re: computer exploration | Comment 4 of 8 |
(In reply to computer exploration by Charlie)

Setting the stop value at 5 while still in the first third of the deck, at 4 while in the middle third of the deck and 3 in the last third of the deck increases the expected value to about 2.40.


wins      win fract   exp value
59046    0.59046 2.3965

DefDbl A-Z
Dim crlf$


Private Sub Form_Load()
 Form1.Visible = True
 
 Text1.Text = ""
 crlf = Chr$(13) + Chr$(10)
 
 wins = 0
 For tr = 1 To 100000
   If tr Mod 10000 = 0 Then Randomize Timer
   DoEvents
   red = 26: black = 26
   posn = 0
   v = 5
   For draw = 1 To 52
     If draw = 17 Then v = 4
     If draw = 34 Then v = 3
     r = Rnd(1)
     If r < black / (black + red) Then
       black = black - 1
       posn = posn - 1
     Else
       red = red - 1
       posn = posn + 1
       If posn >= v Then wins = wins + 1: ev = ev + posn: Exit For
     End If
   Next
   If tr = 100000 Then
     Text1.Text = Text1.Text & Str(v) & "    " & wins & "    " & wins / tr & Str(ev / tr) & crlf
   End If
 Next tr

 Text1.Text = Text1.Text & crlf & " done"
  
End Sub


  Posted by Charlie on 2015-09-24 15:38:36
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 (1)
Unsolved Problems
Top Rated Problems
This month's top
Most Commented On

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