Article 7Z70 Main


Patterns and Freakness


 by Richard Pavlicek

How do you measure the freakness of a bridge hand? To most bridge players, the question is purely subjective, and you would get answers anywhere from “flat” or “square” for balanced hands to “wild and crazy” for fluke hands — the latter of which makes me wonder why Steve Martin never became a bridge player.

Years ago (I can’t believe it’s nearly 20) I worked out a method for this. The basic premise was that the flattest pattern (4-3-3-3) is given a “freakness” of zero (that surely makes sense) and all the other patterns gain points according to this rule:

Add 1 point for each card over four or under three in each suit.

The rule seemed to work OK at first; for example, 4-4-3-2 would get 1 point (one suit under three cards) and 5-3-3-2 would get 2 points (one suit over four, and one suit under three). Unfortunately, the scheme also awarded 2 points for 4-4-4-1 (one suit with two cards under three), thereby equating a balanced hand to a hand with a singleton. This had to be fixed. After some more thought I came up with two adjustments, which apply to the hand as a whole:

Add 1 point if the hand contains a singleton, or
Add 2 points if the hand contains a void.

Note that the above are exclusive; you cannot add both. If a hand contains a void, it gets 2 extra points period, even if it also happens to have a singleton.

So what’s the reason for all this? The purpose is to be able to quantify the freakness of a bridge hand on a linear scale, much like point count is used to evaluate its strength. I have used this formula for a number of computer applications, such as my deal database and “computer bidding” programs. It facilitates decision making based on the shape of a hand. For example, a balanced hand is now simply defined as a hand with a maximum freakness of 2.

Applying the formula to the 39 generic hand patterns gives pleasing results. The patterns are ranked in an order that feels right. When two different shapes produce the same freakness number, it usually is difficult to judge one as more freakish than the other. For example, the patterns 4-4-4-1 and 5-4-2-2 both calculate to 3 points, and it’s a moot question which should be considered more unbalanced.

Freakness Table
4-3-3-30
4-4-3-21
5-3-3-22
4-4-4-1, 5-4-2-23
5-4-3-1, 6-3-2-24
6-3-3-15
5-4-4-0, 5-5-2-1, 6-4-2-1, 7-2-2-26
5-5-3-0, 6-4-3-0, 7-3-2-17
6-5-1-1, 7-3-3-0, 7-4-1-18
6-5-2-0, 7-4-2-0, 8-2-2-1, 8-3-1-19
8-3-2-010
6-6-1-0, 7-5-1-0, 8-4-1-0, 9-2-1-111
9-2-2-0, 9-3-1-012
7-6-0-0, 8-5-0-0, 9-4-0-0, 10-1-1-113
10-2-1-0, 10-3-0-014
11-1-1-0, 11-2-0-016
12-1-0-018
13-0-0-020

Another pleasing aspect of the formula is the 0-to-20 scale, i.e., nice round numbers. Note that the extreme patterns grow quickly from 14 to 20, and the formula yields no freakness of 15, 17 or 19. I thought about the possibility of graduating the high-end values to 20, 19, 18, 17, etc., but this would only complicate the formula for no apparent advantage.

Deal Freakness

Once the formula for hand freakness is developed, it is easy to quantify the freakness of an entire deal. The nature of a deal is determined by the composition of the four hands, so the obvious conclusion would be:

The freakness of a deal is equal to the sum of the freaknesses of each hand.

Hence, the freakness of a deal ranges from 0 to 80, although the vast majority lie on the low end. There also are more unattainable numbers. For example, next to 80, the highest possible deal freakness would be 76 because if any of the 13-0-0-0 patterns were changed to 12-1-0-0, a second hand must also change. But we won’t be too worried about deals like that.

A curious puzzle is, “What is the lowest freakness value that cannot be obtained for a deal?” My calculations show the impossible numbers to be 79, 78, 77, 75, 73, 71 and 69, so the last would be the answer. Hmm… ‘69 was also the year of the moon landing and my wedding; some might say there’s a correlation.

Average Freakness

The next question that comes to mind is, “What is the average freakness of a bridge hand?” This is not easily answered. There is no simple way to calculate it (at least I couldn’t think of one) so I approached it by brute force — the old pickax method.

For each hand pattern, I calculated the total number of bridge hands it could produce. This is done with combinatorial arithmetic. The number of combinations of N items taken R at a time (often abbreviated NcR) is determined by the formula: C = N!/R!(N-R)!

The notation N! (N factorial) means the product of all integers from 1 through N. For example, 6! = 720. Also noteworthy is that 0! is defined as 1.

For example, to determine the number of 4-3-3-3 hands (say, with four spades) there are 13c4 ways to choose the spades, and 13c3 ways to choose each of the other suits. Multiplying (13c4 × 13c3 × 13c3 × 13c3) provides the total. But wait! That’s only the hands with four spades, so we must multiply by four to get the total number of 4-3-3-3 hands. This last factor indicates the number of ways the generic pattern can be permuted among the four suits, which will either be 4, 12 or 24, depending on the like digits in the pattern.

The values of the combinatorials (13c0 to 13c13) are shown in the chart below. Note the equality of any two numbers that add to 13, which should be obvious from the formula.

13c013c113c213c313c413c513c613c713c813c913c1013c1113c1213c13
11378286715128717161716128771528678131

A calculation for all of the generic hand patterns is shown in the table that follows. To verify its accuracy, consider that the total of the hands column should equal the total number of bridge hands, which is 52c13 or 635,013,559,600. It does. Check it if you wish — just pretend you are balancing Bill Gates’s checkbook.

All that remains is to multiply the hand total of each pattern by its freakness in the right column (the first one shows that I wasted my time calculating 4-3-3-3 hands), add the results and divide by 635,013,559,600. The final tallies are shown at the end.

Rounding to two decimal places, the average freakness of a bridge hand is 2.98, and the average freakness of a full deal is four times that, or 11.93.

Number of Hands by Patterns
PatternCalculationHandsF
4-3-3-34 × 13c4 × (13c3)366,905,856,1600
4-4-3-212 × (13c4)2 × 13c3 × 13c2136,852,887,6001
5-3-3-212 × 13c5 × (13c3)2 × 13c298,534,079,0722
4-4-4-14 × (13c4)3 × 13c119,007,345,5003
5-4-2-212 × 13c5 × 13c4 × (13c2)267,182,326,6403
5-4-3-124 × 13c5 × 13c4 × 13c3 × 13c182,111,732,5604
6-3-2-212 × 13c6 × 13c3 × (13c2)235,830,574,2084
6-3-3-112 × 13c6 × (13c3)2 × 13c121,896,462,0165
5-4-4-012 × 13c5 × (13c4)2 × 13c07,895,358,9006
5-5-2-112 × (13c5)2 × 13c2 × 13c120,154,697,9926
6-4-2-124 × 13c6 × 13c4 × 13c2 × 13c129,858,811,8406
7-2-2-24 × 13c7 × (13c2)33,257,324,9286
5-5-3-012 × (13c5)2 × 13c3 × 13c05,684,658,4087
6-4-3-024 × 13c6 × 13c4 × 13c3 × 13c08,421,716,1607
7-3-2-124 × 13c7 × 13c3 × 13c2 × 13c111,943,524,7367
6-5-1-112 × 13c6 × 13c5 × (13c1)24,478,821,7768
7-3-3-012 × 13c7 × (13c3)2 × 13c01,684,343,2328
7-4-1-112 × 13c7 × 13c4 × (13c1)22,488,234,3208
6-5-2-024 × 13c6 × 13c5 × 13c2 × 13c04,134,297,0249
7-4-2-024 × 13c7 × 13c4 × 13c2 × 13c02,296,831,6809
8-2-2-112 × 13c8 × (13c2)2 × 13c11,221,496,8489
8-3-1-112 × 13c8 × 13c3 × (13c1)2746,470,2969
8-3-2-024 × 13c8 × 13c3 × 13c2 × 13c0689,049,50410
6-6-1-012 × (13c6)2 × 13c1 × 13c0459,366,33611
7-5-1-024 × 13c7 × 13c5 × 13c1 × 13c0689,049,50411
8-4-1-024 × 13c8 × 13c4 × 13c1 × 13c0287,103,96011
9-2-1-112 × 13c9 × 13c2 × (13c1)2113,101,56011
9-2-2-012 × 13c9 × (13c2)2 × 13c052,200,72012
9-3-1-024 × 13c9 × 13c3 × 13c1 × 13c063,800,88012
7-6-0-012 × 13c7 × 13c6 × (13c0)235,335,87213
8-5-0-012 × 13c8 × 13c5 × (13c0)219,876,42813
9-4-0-012 × 13c9 × 13c4 × (13c0)26,134,70013
10-1-1-14 × 13c10 × (13c1)32,513,36813
10-2-1-024 × 13c10 × 13c2 × 13c1 × 13c06,960,09614
10-3-0-012 × 13c10 × 13c3 × (13c0)2981,55214
11-1-1-012 × 13c11 × (13c1)2 × 13c0158,18416
11-2-0-012 × 13c11 × 13c2 × (13c0)273,00816
12-1-0-012 × 13c12 × 13c1 × (13c0)2202818
13-0-0-04 × 13c13 × (13c0)3420

Total number of hands (above)635,013,559,600
Total hands × freakness points1,894,153,566,372
Average hand freakness2.9828553071609
Average deal freakness11.9314212286436

Deal Patterns

Most bridge players know there are 39 generic hand patterns. But what about generic deal patterns? How many possible deal shapes exist? I doubt that anyone could answer this — myself included until I wasted some time recently. It is easy to calculate the number of possible deals, but enumerating the distinct patterns eludes any simple formula.

First, it is necessary to define the term “generic” for a deal pattern, as different interpretations are possible. Assume any one hand, say North, has a specific shape, say 5-3-3-2. Which other hand patterns could combine with this to produce a deal? One such possibility would be 5-3-3-2 3-4-2-4 4-1-4-4 1-5-4-3. The suits must align with the original pattern so each adds to 13, but the order of the hands doesn’t matter. Also, we are not concerned with permutations of the original 5-3-3-2, as this would create the same permutations in the other hands, i.e., the same generic deal.

Now, for some real number crunching. My first step was to calculate the number of deal shapes that could be produced by each of the 39 generic hand patterns. For example, if Hand 1 has 4-3-3-3 pattern, there are 96,537 possible deal shapes, but these are not generic. They include duplications from rotations or flip-flops between other hands, as well as many match-ups from other groups. I expanded each of the 96,537 shapes to find the number of deals it could produce, and this total is shown in the last column. [See table at end.]

To verify the calculations, I also included the permutation factor (4, 12 or 24) in the deal total, so in theory the grand total of the last column should equal the total number of bridge deals: 52!/(13!)4.

Needless to say, I was quite pleased when the totals agreed. That’s the good news. The bad news was that I still had no answer. Somehow, I had to weed out the duplicates among 2,571,711 shapes. This could only be done by sorting, so I encoded each hand pattern as an index from 1-560 (that’s the number of hand patterns including permutations) and packed the three highest, in order, into a 32-bit value (the missing pattern could always be recalculated). Even with this coding, it produced a file of 10+ megabytes, which was tough to sort; but I’m persistent. After finally sorting the file, it was an easy matter to determine the number of generic deal patterns: 412,666.

Hmm… ending 666 (the sign of the devil) may not be a coincidence!

Number of Deals by Patterns
Hand 1ShapesTotal Number of Deals
4-3-3-396,5375,652,079,478,333,572,557,297,024,000
4-4-3-294,53011,561,071,660,227,762,049,016,640,000
5-3-3-292,3678,323,971,595,363,988,675,291,980,800
4-4-4-190,7751,605,704,397,253,855,840,141,200,000
5-4-2-290,4445,675,435,178,657,265,005,880,896,000
5-4-3-188,6956,936,642,996,136,657,229,409,984,000
6-3-2-286,0763,026,898,761,950,541,336,469,811,200
6-3-3-184,4081,849,771,465,636,441,927,842,662,400
5-4-4-083,625666,984,903,474,678,579,750,960,000
5-5-2-184,8551,702,630,553,597,179,501,764,268,800
6-4-2-182,6472,522,415,634,958,784,447,058,176,000
7-2-2-277,748275,172,614,722,776,485,133,619,200
5-5-3-081,705480,229,130,501,768,577,420,691,200
6-4-3-079,575711,450,563,706,323,818,401,024,000
7-3-2-176,2361,008,966,253,983,513,778,823,270,400
6-5-1-177,532378,362,345,243,817,667,058,726,400
7-3-3-073,392142,290,112,741,264,763,680,204,800
7-4-1-173,192210,201,302,913,232,037,254,848,000
6-5-2-076,125349,257,549,455,831,692,669,593,600
7-4-2-071,859194,031,971,919,906,495,927,552,000
8-2-2-166,246103,189,730,521,041,181,925,107,200
8-3-1-164,95363,060,390,873,969,611,176,454,400
8-3-2-063,76258,209,591,575,971,948,778,265,600
6-6-1-069,55238,806,394,383,981,299,185,510,400
7-5-1-067,41058,209,591,575,971,948,778,265,600
8-4-1-061,21524,253,996,489,988,311,990,944,000
9-2-1-153,6679,554,604,677,874,183,511,584,000
9-2-2-052,6744,409,817,543,634,238,543,808,000
9-3-1-051,6455,389,776,997,775,180,442,432,000
7-6-0-060,4802,985,107,260,306,253,783,500,800
8-5-0-056,3851,679,122,833,922,267,753,219,200
9-4-0-048,675518,247,788,247,613,504,080,000
10-1-1-140,537212,324,548,397,204,078,035,200
10-2-1-039,780587,975,672,484,565,139,174,400
10-3-0-038,28082,919,646,119,618,160,652,800
11-1-1-027,02713,363,083,465,558,298,617,600
11-2-0-026,5206,167,576,984,103,830,131,200
12-0-0-015,015171,321,582,891,773,059,200
13-0-0-05565337,912,392,291,465,600
Totals: 2,571,71153,644,737,765,488,792,839,237,440,000

Article 7Z70 MainTop Patterns and Freakness

© 2000 Richard Pavlicek