Two Plus Two Newer Archives  

Go Back   Two Plus Two Newer Archives > Internet Gambling > Software
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 03-12-2007, 01:19 PM
jtollison78 jtollison78 is offline
Senior Member
 
Join Date: Aug 2004
Posts: 272
Default the random number problem


I remember seeing someone comment(Prock maybe?) on there being several mechanical difficulties to producing useful simulations including something called the random number problem. This stuck out as I wondered if it had anything to do with a small random number seed that led to the site being cracked years ago.

If anyone could comment on the random number problem as it relates to simulations and/or any other problem I might run into while trying to write my own simulations, I would be thankful.

If my memory is doing me a greater diservice than normal, and this makes no sense, please ignore me.

Thanks,
John
Reply With Quote
  #2  
Old 03-15-2007, 11:25 PM
Andrew Prock Andrew  Prock is offline
Senior Member
 
Join Date: Sep 2002
Location: oakland
Posts: 346
Default Re: the random number problem

I'm not sure which problem that you're talking about. But the problems that I've encountered have to do with selecting scenarios for monte carlo evaluation. One pseudo random number is easy to generate. Take the problem of selecting cards at random.

If you select two cards purely at random, there is a chance you will select the same card. If you have many hands to fill out, and you pick purely random cards, then the more cards you select, the greater the chance of a collision. This is why the old version of PokerStove would go very slow with lots of random hands.

The problem is that if you select cards for a specific hand first, and remove those cards from the deck, then you're not generating scenarios uniformly over all possible scenarios. For monte carlo to work, the scanrios generated must be drawn uniformly from all possible scenarios.

Solving this problem efficiently is non-trivial.

I hope that helps.

- Andrew
Reply With Quote
  #3  
Old 03-16-2007, 12:00 PM
A.Nironen A.Nironen is offline
Senior Member
 
Join Date: Oct 2006
Posts: 118
Default Re: the random number problem

[ QUOTE ]
The problem is that if you select cards for a specific hand first, and remove those cards from the deck, then you're not generating scenarios uniformly over all possible scenarios. For monte carlo to work, the scanrios generated must be drawn uniformly from all possible scenarios.

Solving this problem efficiently is non-trivial.


[/ QUOTE ]

The problem is solved long ago. Google for Fisher-Yates shuffle algorithm. (I invented it indepedently [img]/images/graemlins/smile.gif[/img] )
Reply With Quote
  #4  
Old 03-16-2007, 02:17 PM
Andrew Prock Andrew  Prock is offline
Senior Member
 
Join Date: Sep 2002
Location: oakland
Posts: 346
Default Re: the random number problem

woot!

tx for the ref

[img]/images/graemlins/smile.gif[/img]

- Andrew
Reply With Quote
  #5  
Old 03-17-2007, 01:31 PM
Lottery Larry Lottery Larry is offline
Senior Member
 
Join Date: Jun 2003
Location: Home Poker in da HOOWWSSS!
Posts: 6,198
Default Re: the random number problem

I didn't understand this:

[ QUOTE ]
The problem is that if you select cards for a specific hand first, and remove those cards from the deck, then you're not generating scenarios uniformly over all possible scenarios. For monte carlo to work, the scanrios generated must be drawn uniformly from all possible scenarios.


[/ QUOTE ]

Isn't it the POINT of selecting specific hands to get the scenarios for a pre-existing condition that affects the other cards? All you are really doing is filtering the entire set of simulations by choosing only those with XY in a specific hand.

Why would that make any real difference in the results?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:42 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.