Hand dealt vs. computer generated
#1
Posted 2016-August-27, 19:22
As bridge hands were manually dealt, there seemed to me less distributional hands, less competitive bidding, less seat of the pants decision-making.
I say this, as I remember when computer-generated hands first appeared at the English Bridge Union summer congress in Brighton in the late 1970s/early 1980s. There were quite a few complaints generally about how 'wild' they were - in effect, a lot more distributional than previously.
I presume most bridge hands, except for rubber bridge, are now computer-generated, and I wonder if other players have noticed this difference: hand dealt vs. computer-generated, or am I imagining this difference?
#2
Posted 2016-August-27, 20:01
The_Badger, on 2016-August-27, 19:22, said:
As bridge hands were manually dealt, there seemed to me less distributional hands, less competitive bidding, less seat of the pants decision-making.
I say this, as I remember when computer-generated hands first appeared at the English Bridge Union summer congress in Brighton in the late 1970s/early 1980s. There were quite a few complaints generally about how 'wild' they were - in effect, a lot more distributional than previously.
I presume most bridge hands, except for rubber bridge, are now computer-generated, and I wonder if other players have noticed this difference: hand dealt vs. computer-generated, or am I imagining this difference?
Controversial topic
No, I can not say I have felt that deals on BBO, for example, are particularly distributional, more than expected.
Also, writing a good random shuffling-algorithm is a very simple task, so I doubt that computer-deals,
generally, would be more distributional than predicted by the statistical odds.
Of course, it happens from time to time that dumb programmers do the most stupid things one would never imagine,
so I cannot guarantee every bridge-program in the world generates deals as predicted by the statistical odds
If your perception really has any basis in actual facts, however, there is one old theory going around:
When people hand-shuffle a deck, they are lazy and do not shuffle the cards enough.
If this leads to that cards of the same suit remain together in the deck more frequently,
than they would after a true random-shuffle,
the result would actually be that hand-dealt deals would be LESS distributional than they should be according to statistical odds.
#3
Posted 2016-August-27, 20:12
Stefan_O, on 2016-August-27, 20:01, said:
Outside of BBO, I think most computer-dealt hands use programs that incorporate the BigDeal dealing program, which is generally considered the gold standard, so they're probably about as good as is reasonably possible. We also had its author perform a statistical analysis of BBO deals, and he couldn't find any glaring anomalies, although our dealing algorithm is much simpler than BigDeal.
#4
Posted 2016-August-27, 21:17
'computer-hands' thing is a myth generated by club players.
Winner - BBO Challenge bracket #6 - February, 2017.
#6
Posted 2016-August-28, 03:25
Stefan_O, on 2016-August-27, 20:01, said:
When people hand-shuffle a deck, they are lazy and do not shuffle the cards enough.
If this leads to that cards of the same suit remain together in the deck more frequently,
than they would after a true random-shuffle,
the result would actually be that hand-dealt deals would be LESS distributional than they should be according to statistical odds.
Thanks for that Stefan_O
So there is a logical explanation after all.
Barmar said: Outside of BBO, I think most computer-dealt hands use programs that incorporate the BigDeal dealing program, which is generally considered the gold standard, so they're probably about as good as is reasonably possible. We also had its author perform a statistical analysis of BBO deals, and he couldn't find any glaring anomalies, although our dealing algorithm is much simpler than BigDeal.
So to check this myself, I analysed 100 random deals on BBO. Using the same player. The probability of holding either a 6 card or a 7 card suit in your hand works out about 20%.
And guess what, even though certain blocks of deals were more distributional, veering towards and over 30%, over the 100 deals the probability came out at, guess what, about 20%
Yes, it is a small sample for analysis but I now realise that computer-generated deals are statistically sound. Thanks for all your comments and observations.
#7
Posted 2016-August-28, 04:47
Phil, on 2016-August-27, 21:17, said:
Seems strange to me... as long as you deal 1-1-1-... (and not "goulash" 5-4-4 or similar), how can that generate wilder hands?
Any links to such research/analysis?
#8
Posted 2016-August-28, 06:00
#9
Posted 2016-August-28, 06:41
Executive summary: The system that the ACBL uses to generate hands is both plausibly insecure and statistically problematic.
When I say "plausibly insecure" I mean that someone could invest a relatively small amount of money, crack the ACBL's hand generator, and use the first hand of a tournament to predict all subsequent hands in real time.
When I say "statically flawed" I mean that the linear-congruential generator that the ACBL uses to generate pseudo random numbers only covers a relatively small portion of the space of hand deals and the process that the generator uses to walk through this space use a very simple process. If the phase of the hand generator program were to align with the phase of the the lcg all sorts of bad things would happen.
At the most basic level, and lcg is not cryptographically secure and should not be used for any kind of statistical simulation.
You can find a more detailed discussions at
http://bridgewinners...insecure/#new_1
http://www.metzdowd....ust/029965.html
I've informed both the ACBL and the USBF about these results and made the suggestion that they either swap out the prng for something real or, alternatively, just standardize on Big Deal instead. I know that Jan Martel is going to talk to some folks at the WBF about Big Deal. The ACBL had originally disputed that there is a problem and has now gone silent on the topic.
#10
Posted 2016-August-28, 11:23
helene_t, on 2016-August-28, 06:00, said:
Nyah... also in duplicate (hand-dealt) deals, you have the similar situation where declarer plays several rounds of trumps in a row, or just plays off any suit from the top, etc, which happens almost every deal.
This will result in several cards of the same suit laying adjacent when they stuff it back into the card-slots.
Next tourney, somebody takes the hands out, just puts them in a pile on top of each other, shuffles too poorly, and many may still remain adjacent,
which skews the suits to be more evenly spread out among the four hands, than after a sound random-shuffle.
#12
Posted 2016-August-28, 11:35
Stefan_O, on 2016-August-28, 11:25, said:
Is that response available online?
Here is a copy of an email that I received from an representative of the ACBL
Quote
I was following this conversation on the Bridgewinners website with some degree of amusement, as the degree of code cracking necessary to accomplish a read of the hand record set within a three hour period (a typical play session) does not currently exist. Here is the description of the program used by ACBL, provided by the programmer, Jim Lopushinsky. This was published in the September 2011 Bulletin.
"The following is an excerpt from a letter to the editor, with a response by Lopushinsky, published in the September 2011 issue of the ACBL Bridge Bulletin that may help shed some light on the dealing program used by the ACBL.
Bill Clough of Lynchburg VA wrote: “The question is whether the ACBL hands are random. Let’s look at some numbers. From the ACBL’s own web site, we can find that a huge number of deals can be generated as the random seed is 2^47, that is 140,737,488,355,328 or 1.4x10^14 possible deals. The seed is equal to the largest possible number of unique deals that can be generated.
“It is true that the total number of possible deals is closer to 2^96, but there are actually 53,644,737,765,488,792,839,237,440,000 or 5.3644x10^28 possible bridge deals.
“Surfing the web a few years back, I found an article that helped to understand these enormous numbers. If you have one atom of gold for each possible bridge deal, a gold cube could be formed 3.9 feet on a side and weigh 19 tons with a value more than $800 million.
“Doing the same for the ACBL deals, the cube of gold formed would be 1/1500 of an inch and weigh .05 microgram – less then the ink of the dot on an “i” – with a value of 1/5000 of a cent.
“So are the ACBL deals random? Yes, of course, they are random – as random as the generating program can make them.”
This was Lopushinsky’s response:
“The writer is correct as to the number of hands that can be generated from one seed, but the seed is arbitrarily assigned for each set of hands.
“The random number generator uses the linear congruential algorithm and 48-bit integer arithmetic. This will generate 2 to the 47th power different numbers before repeating without any outside influence (140,737,488,355,328 numbers).
“Outside influence occurs in the form of manually dealt hands, starting seed numbers, time of day, etc., to make the number of numbers virtually infinite, and to guarantee that the same hand will not be repeated. Ninety-six bits take part in the operation with the high 48 bits acting as the overflow.
“The operation works as follows: The hand record set number is used as the starting seed. This seed is multiplied by day of the month, current minute, current hour, current second, current day of week and current hundredth of second. This number is then multiplied by a large prime number (5DEECE66D in hexadecimal). Thirteen is then added to this. The lower 48 bits is then saved and used as the seed to generate the next random number. The overflow (48 high bits) is then doubled and multiplied by the range requested (1 - 52) and the overflow from this is used as the random number.”
The computer used to run the ACBL hand record generator is a stand alone desktop computer that is not connected to any network. Since Jim's retirement in May, I have been responsible for maintaining our stock of electronic hand records used by our Tournament Directors.
When we need additional hand records, we generate two thousand sets at a time (72,000 deals). The seed deal is manually entered at the beginning of the process, and is not part of any set subsequently produced. Sets are never reused, and the number of the set is not released publicly until after play. The date and time when the hand record was prepared (we keep a five thousand set buffer) does not leave ACBL Headquarters.
With so many of the variables involved in the hand record set creation process kept protected and secure, I doubt anyone will be cracking the security in sufficient time to make use of the data they develop.
Regards,
Keith Wells
ACBL Tournament Technical Analyst
6575 Windchase Blvd.
Horn Lake MS 38637-1523
ph: 662-253-3165
w: www.acbl.org
eml: keith.wells@acbl.org
#13
Posted 2016-August-28, 12:32
hrothgar, on 2016-August-28, 11:35, said:
Thanks hrothgar,
Interesting
Yes, making sure the algorithm cannot feasibly be "cracked"/reverse-engineered for foul purposes,
is certainly a much harder task than generating deals with expected random/percentage distributions.
Looks like a totally homebrewn approach, which is always suspect in crypto-contexts.
At least, I dont see they make any attempt at all to give a cryptographicly sound argument/proof/reference, why this would be a secure one from a reverse-engineering viewpoint.
Quote
Incidently, the same casual attitude the Nazi's maintained until the end -- years after the Enigma was cracked.
"We are just so sure nobody will ever figure this one out!"
#14
Posted 2016-August-28, 13:01
Stefan_O, on 2016-August-28, 12:32, said:
Looks like a totally homebrewn approach, which is always suspect in crypto-contexts.
The choice of the constant 5DEECE66D suggests that the function might share a common ancestry with
Java's java.util.Random
POSIX [ln]rand48
glibc [ln]rand48[_r]
#15
Posted 2016-August-28, 13:16
hrothgar, on 2016-August-28, 13:01, said:
Java's java.util.Random
POSIX [ln]rand48
glibc [ln]rand48[_r]
Mmmm... right... and which is listed among non secure LCGs on wikipedia...
"They also must not be used for cryptographic applications; see cryptographically secure pseudo-random number generator for more suitable generators."
https://en.wikipedia...ntial_generator
#16
Posted 2016-August-28, 18:21
#17
Posted 2016-August-29, 01:44
Phil, on 2016-August-27, 21:17, said:
'computer-hands' thing is a myth generated by club players.
I'd love a citation for this, in my admittedly small sample of playing poorly-hand-shuffled boards the distributions have certainly seemed flatter to me.
-- Bertrand Russell
#18
Posted 2016-August-29, 01:58
I wonder also if it is relevant to take into account that a new pack of cards typically comes sorted by suits, while an old pack of (perhaps well shuffled) cards with evident wear gets discarded.
Psyche (pron. sahy-kee): The human soul, spirit or mind (derived, personification thereof, beloved of Eros, Greek myth).
Masterminding (pron. mstr-mnding) tr. v. - Any bid made by bridge player with which partner disagrees.
"Gentlemen, when the barrage lifts." 9th battalion, King's own Yorkshire light infantry,
2000 years earlier: "morituri te salutant"
"I will be with you, whatever". Blair to Bush, precursor to invasion of Iraq
#19
Posted 2016-August-29, 05:29
It's a rather subjective thing, isn't it: thinking you've been dealt more than the 'average' number of 7-card or 8-card suits in a session. Because one remembers such deals, and forgets the flat deals which happened more often?
I have noticed that a lot of the BBO-hosted tourneys are described as 'goulash'. Haven't tried one myself, but if they mean what I think they mean, does it imply that the BBO dealer has a 'distributional' setting that can be switched on or off depending on the type of tourney? If so, is there a possibility that this switch gets inadvertantly turned on for a deal in one of the casual bridge clubs? Just asking....
Stefan_O, on 2016-August-27, 20:01, said:
Also, at our local U3A club (where all shuffling is by hand, I assure you - and the OP is very welcome if he's in our area), we play mostly Chicago scoring, but we still keep the cards of played tricks in front of us, duplicate-style. We don't gather them into tricks, rubber-style. Possibly this makes a difference?
#20
Posted 2016-August-29, 08:21
661_Pete, on 2016-August-29, 05:29, said:
These aren't dealt by the normal BBO dealer. They generate the hands themselves, and upload them into the tournament.
You can use a program like Dealer to specify hand distribution constraints.