BBO Discussion Forums: simulation request - BBO Discussion Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

simulation request (and recommendations)

#1 User is offline   scoob 

  • PipPipPipPip
  • Group: Full Members
  • Posts: 344
  • Joined: 2003-February-14
  • Location:calgary, ab (canada)

Posted 2005-June-03, 07:19

1) can someone run the following simulation for me?

- 13-18hcp
- 5 card major
- 5332 / 5422 / 6322 shapes

a ) how often will this hand come up?
b ) out of those hands, how often will one (or both) of the doubletons contain neither an ace OR king?

2) can anyone recommend good simul software that can be purchased online?

thanks in advance!
0

#2 User is offline   mrsock 

  • Pip
  • Group: Members
  • Posts: 4
  • Joined: 2003-July-17
  • Location:UK

  Posted 2005-June-03, 07:59

1) According to my simulation of 10,000,000 deals,

a) South will get a hand fitting your description on approximately 3.9% of deals.

:( South will have an A or K in one or both of the doubletons on 64% of the deals that fit your description*. So I think the probability you are interested in is 36%.

*(49% of the 5332 hands, 78% of the 5422 hands, and 80% of the 6322 hands)



2) get the dealer.exe program for free. It's quite simple to use.

See http://www.dombo.org/henk/dealer.html
0

#3 User is offline   scoob 

  • PipPipPipPip
  • Group: Full Members
  • Posts: 344
  • Joined: 2003-February-14
  • Location:calgary, ab (canada)

Posted 2005-June-03, 10:00

thanks!

hmm, that's an even rarer occurence than i had imagined. which is good!

i have tried to use dealer but was unable to get it working correcty on my windows machine. i found an online interface to an older version that i've been using a little bit, but it's limited to 5000 deals i believe, and i'm not even sure how you get % results with it

i'd be interested to see the input coding you used if you happen to have it handy :)
0

#4 Guest_Jlall_*

  • Group: Guests

Posted 2005-June-03, 10:04

49 % of 5332 hands with 13-18 HCP have Ax or Kx? does this surprise anyone else?
0

#5 User is offline   Blofeld 

  • PipPipPipPipPip
  • Group: Full Members
  • Posts: 775
  • Joined: 2005-May-05
  • Location:Oxford
  • Interests:mathematics, science fiction, Tolkien, go, fencing, word games, board games, bad puns, juggling, Mornington Crescent, philosophy, Tom Lehrer, rock climbing, jootsing, drinking tea, plotting to take over the world, croquet . . . and most other things, really.

  Posted 2005-June-03, 10:17

I should point out that mrsock has answered a question slightly different from the one posed. In the case of 5332s the answer is doubtless correct, but with two doubletons scoob asked how often at least one doubleton will have neither ace or king, and mrsock gave figures that say how often both doubletons will have neither (assuming that he means what he said).

Justin, that figure will presumably also include AK, AQ, AJ, KQ or KJ holdings. In particular, I don't know whether the simulator will count these at full face value, so you may find that hands with KJ tight are getting counted as 13HCP even if you wouldn't assign that value to them, and boosting the numbers for this sort of thing.
0

#6 User is offline   MickyB 

  • PipPipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 3,290
  • Joined: 2004-May-03
  • Gender:Male
  • Location:London, England

Posted 2005-June-03, 10:35

A priori, a doubleton having A or K happens

2/13+(11/13)*2/12 = just under 0.30

So I'm surprised it is quite as large as 0.49 for 13-18 point hands. Instinctively it felt like it should be a fair bit less.
0

#7 User is offline   luke warm 

  • PipPipPipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 6,951
  • Joined: 2003-September-07
  • Gender:Male
  • Interests:Bridge, poker, politics

Posted 2005-June-03, 11:34

i'm not a mathmatician, but intuitively it seems wrong that in a 5422 hand, within the hcp constraints posted, the aces and kings are as or more likely to be in the doubletons than the long suits
"Paul Krugman is a stupid person's idea of what a smart person sounds like." Newt Gingrich (paraphrased)
0

#8 User is offline   scoob 

  • PipPipPipPip
  • Group: Full Members
  • Posts: 344
  • Joined: 2003-February-14
  • Location:calgary, ab (canada)

Posted 2005-June-03, 13:27

ok i finally got dealer working under windows (thanks cygwin!)

this is my input file:

n_hcp = (hcp(north) >= 13 && hcp(north) <= 18)
n_maj = (hearts(north) >= 5 || spades(north) >= 5)

s_dbl = (spades(north) == 2 && not hascard(north,AS) && not hascard(north,KS))
h_dbl = (hearts(north) == 2 && not hascard(north,AH) && not hascard(north,KH))
d_dbl = (diamonds(north) == 2 && not hascard(north,AD) && not hascard(north,KD))
c_dbl = (clubs(north) == 2 && not hascard(north,AC) && not hascard(north,KC))

n_ud = h_dbl || s_dbl || c_dbl || d_dbl
n_sv = (shape(north, any 0xxx + any 1xxx))

n_ubl = n_ud || n_sv

condition
  n_hcp && n_maj && n_ubl

generate
  1000000

action
  average "Opener" (hcp(north)),
  average "Responder" (hcp(south)),
  frequency (n_ud,0,1)


netting results like this:

Quote

Opener: 14.6311
Responder: 8.46342
Frequency :
    0      36177
    1      33718
Generated 1000000 hands
Produced 69895 hands
Initial random seed 1117826063
Time needed    2.525 sec

Opener: 14.6311
Responder: 8.46342
Frequency :
    0      36177
    1      33718
Generated 1000000 hands
Produced 69895 hands
Initial random seed 1117826063
Time needed    2.525 sec

Opener: 14.6311
Responder: 8.46342
Frequency :
    0      36177
    1      33718
Generated 1000000 hands
Produced 69895 hands
Initial random seed 1117826063
Time needed    2.525 sec


which seems to be inline with what mrsock came up with...
0

#9 User is offline   Fluffy 

  • World International Master without a clue
  • PipPipPipPipPipPipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 17,404
  • Joined: 2003-November-13
  • Gender:Male
  • Location:madrid

Posted 2005-June-04, 20:33

Jlall, on Jun 3 2005, 04:04 PM, said:

49 % of 5332 hands with 13-18 HCP have Ax or Kx? does this surprise anyone else?

Without the 13-18 HCP assertion a doubletion will have either Ace or King or both 1- (11/13*10/12) times wich my calculator says 29.5%, having 2-8 HCP above average doesn't seem worth extra 20%.


Woops! Micky already said so :).
0

#10 User is offline   DenisO 

  • PipPipPipPip
  • Group: Full Members
  • Posts: 399
  • Joined: 2003-February-23
  • Gender:Male
  • Location:BOLTON, ENGLAND

Posted 2005-June-05, 00:30

mrsock, on Jun 3 2005, 01:59 PM, said:



2) get the dealer.exe program for free.  It's quite simple to use.

See http://www.dombo.org/henk/dealer.html

This seems to be for Unix machines - Is there a version that works for Windows XP - without need for any specialised knowledge of compilers etc.

Denis
0

#11 User is offline   DenisO 

  • PipPipPipPip
  • Group: Full Members
  • Posts: 399
  • Joined: 2003-February-23
  • Gender:Male
  • Location:BOLTON, ENGLAND

Posted 2005-June-05, 04:42

Found it - ie the Paul Baxter version :)
0

#12 User is offline   Zoltan 

  • PipPip
  • Group: Members
  • Posts: 12
  • Joined: 2004-April-11

Posted 2005-June-05, 06:02

Nice code scoob!

But...

n_hcp = (hcp(north) >= 13 && hcp(north) <= 18)

Why not

n_hcp = (hcp(north) > 12 && hcp(north) < 19)

?

:)

Zoltan
0

#13 User is offline   Fluffy 

  • World International Master without a clue
  • PipPipPipPipPipPipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 17,404
  • Joined: 2003-November-13
  • Gender:Male
  • Location:madrid

Posted 2005-June-05, 06:59

cos it is clearer, wich is a very important fact if your codeis gonna be used by other people.
0

#14 User is offline   Zoltan 

  • PipPip
  • Group: Members
  • Posts: 12
  • Joined: 2004-April-11

Posted 2005-June-05, 08:16

Thx, was a little joke.

Btw, can I get some codes for dealer program? I'l be :)

You can find my registered email address in my profile.

Thx, nice people are on BBO and Forum!

Zoltan
0

#15 User is offline   pigpenz 

  • PipPipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 2,553
  • Joined: 2005-April-25

Posted 2005-June-05, 16:46

Bridge Browser can let you look up million of hands played on Bridge Base or OK Bridge and I am not sure if you can enter in constraints or not....the best simulator I have ever seen is by Fred Gittelman and it was in Bridge BASE III, but he says he doesnt have any copies anymore, or atleast that he can get at very easily....Maybe if we all pull on his strings alittle bit we can get him to start selling it again.
0

#16 User is offline   scoob 

  • PipPipPipPip
  • Group: Full Members
  • Posts: 344
  • Joined: 2003-February-14
  • Location:calgary, ab (canada)

Posted 2005-June-06, 06:02

i should have mentioned that i do in fact own a copy of BrBr already, and it's been endlessly useful to me. now that i've gotten henk's dealer working for me, i've all my needs covered :P
0

#17 User is offline   vang 

  • PipPipPipPip
  • Group: Full Members
  • Posts: 278
  • Joined: 2004-February-18
  • Gender:Male
  • Location:Romania
  • Interests:Linux

Posted 2005-June-06, 06:31

another good and free dealer is
http://bridge.thomasoandrews.com/deal/
0

#18 User is offline   inquiry 

  • PipPipPipPipPipPipPipPipPipPip
  • Group: Admin
  • Posts: 14,566
  • Joined: 2003-February-13
  • Gender:Male
  • Location:Amelia Island, FL
  • Interests:Bridge, what else?

Posted 2005-June-06, 06:31

scoob, on Jun 6 2005, 08:02 AM, said:

i should have mentioned that i do in fact own a copy of BrBr already, and it's been endlessly useful to me. now that i've gotten henk's dealer working for me, i've all my needs covered :)

You most certainly can add constraints to bridgebrowser, but you will not necessarily get 1000's of hands that meet those constraints. So a good simulator still has uses. But Bridgebrowser does put you in the relm of real world hands and has a functional windows interface.
--Ben--

#19 User is offline   scoob 

  • PipPipPipPip
  • Group: Full Members
  • Posts: 344
  • Joined: 2003-February-14
  • Location:calgary, ab (canada)

Posted 2005-June-06, 10:34

inquiry, on Jun 6 2005, 06:31 AM, said:

scoob, on Jun 6 2005, 08:02 AM, said:

i should have mentioned that i do in fact own a copy of BrBr already, and it's been endlessly useful to me.  now that i've gotten henk's dealer working for me, i've all my needs covered :rolleyes:

You most certainly can add constraints to bridgebrowser, but you will not necessarily get 1000's of hands that meet those constraints. So a good simulator still has uses. But Bridgebrowser does put you in the relm of real world hands and has a functional windows interface.

this was the main reason i started looking for a simulator to accompany my copy of BrBr. also, i've been able to constrain much more complicated hands via dealer than i can with BrBr - but that could easily just be that i don't know how to untap BrBr's full power.

i intend to pick the author's brain thoroughly next week when i see him :blink:
0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users