Jump to content

BebopKid

Full Members
  • Posts

    230
  • Joined

  • Last visited

Everything posted by BebopKid

  1. I know I can watch the tournament status for tables that haven't finished the round, but when the next round starts, what is the easiest way to find all the ones that didn't finish so I can adjust them? Thanks, BLW
  2. Not my discovery. It is already known by many. I'm only trying to enlighten others and help spread knowledge.
  3. Since you are the mathematical type, I suggest you try proving (mathematically, that is) that this config generates exactly the hands you are looking for (and with the same chances). Instead of 13 cards, you can try with a lesser number of cards in a suit and try it out by hand and see if it matches. Great idea! I'll post that tonight if I have time
  4. Please do run a simulation and show results that match your hypothesis. I've already gone over the mathematics of it. Probability says that 6-3-2-2 occurs more often than 6-3-3-1.
  5. I hope I didn't imply, by the way, that this was an original idea of mine. This has been taught many times by many people before I started playing bridge. A bridge instructor at our local club, also brought this back with him from the Instructor Training given at the ACBL in Nashville this year. So please don't give me credit for proving something that someone else came up with.
  6. If you read my first post, I asked for no insults. If you have something positive or constructive to comment, please do so. I am happy for everyone that can keep quoting the same things to me. Please test and results from your trials as I have done. Here are the results from Richard Pavlicek's deal generator. Okay, using Richard Pavlicek's deal generator with this RPD config D 65000:1000000000 123WS=6 123WS=3 01234WS=4 0123WS=2 This finds hands that meet the following requirements 1. any deal with a hand having a 6 card spade suit 2. any deal with a hand having a 3 card spade suit from set (1) 3. exclude any deal with a hand having a 4 card spade suit from set (2) 4. exclude any deal with a hand having a 2 card spade suit from set (3) If you do not believe this is not an accurate test, please post the configuration file for a test you believe to be accurate. Here are the results: 308912 hands with a 6 card spade suit in any hand 195462 hands with a 6-3 spade fit between any 2 hands 170625 hands without a 6-3-4-0 spade distribution -> 24837 hand with a 6-3-4-0 spade distribution 65000 hands without a 6-3-2-2 spade distribution -> 105625 hands with a 6-3-2-2 spade distribution -> 65000 hands with a 6-3-3-1 spade distribution So: 54.04% are 2-2 split 33.25% are 3-1 split 12.71% are 4-0 split
  7. Sorry, I've been off line for a while. Plus I was sick, and apparently not using the same algorithm for checking the BigDeal numbers that I used for my own numbers where I did check all the hands/suits. Teaches me not to rush Here are the results I got from the BigDeal numbers by looking through all the dealt hands for 5-4 distribution and 6-3 distribution. 9 card-fit with 5-4 had this distribution for the other hands: 3-1 split 52.2% 2-2 split 42.6% 4-0 split 5.1% I used 64452 hands for this analysis. 9 card-fit with 6-3 had this distribution for the other hands: 3-1 split 33.3% 2-2 split 54.3% 4-0 split 12.4% I used 26854 hands for this analysis. This is tending to back up what I learned from my teachers, that 3-1 split occurs less often than 2-2 split with a 6-3 declarer combination. I am going to look for Richard Pavlicek's deal generator as suggested by jdeegan. I will post the results here when I'm done. Also I have learned quite a bit through research this week. I have implemented a Mersenne Twister for random number in my own deal generator. I am planning to write a very usable graphical interface with lots of export options and post it on my web site for people to use. But I'm mostly doing it for the fun of it. (What a geek!) It will be a while before it's ready as it is a pretty big endeavor. I appreciate all the comments.
  8. When using programs like BigDeal I expected the hands to follow the probabilities published for hand and suit probabilities. See Hand pattern probabilities as an example. I used BigDealX to generate 65000 deals, which is of course 260000 NS suits to look at. 65000 * 4 Of those suits, 2422 were 6322 in some combination of NS 63 EW 22. That is less than 0.931%. From the Hand Pattern Probabilities, the number should be 5.64% for totally random deals. Every suit combination and hand pattern total has significant error from the 65000 deal sample. Could someone who understands this please explain it to me? I have received much flack for thinking that random deals should tend toward the hand pattern probabilities with large samples. If they don't, then how do I make sense of the probabilities. Are the probabilities useless? Before using other people's generators, I wrote my own with a random shuffle algorithm that mimics a human card shuffle. Any time I generate 65000 deals with my generator, it conforms within close proximity to the probabilities. Because of that, I have been told that my generator is not random. I am completely confused at this point. Please only respond if you want to help me, not insult me. I have had enough of that.
  9. Try it out. It works. It comes up with the expected results. Anything else?
  10. Excel macro with sheets in the workbook: "Hands", "Distributions", and "Summary" Dim Deck(52) As Integer, DeckS(52) As Integer ' DeckS has the hands sorted by suit and rank, so that the Deck remains the unsorted master to retain random distribution ' Face value is card mod 13 ' Suit value is int(card / 13) ' Examples: 51 is Ace of Spades, 3 is 4 of Clubs Dim Faces(13) As String ' Faces contains a map to card ranks Sub start_deck() Dim i As Integer For i = 0 To 51 Deck(i) = i Next i = 0 Faces(i) = "2" i = i + 1 Faces(i) = "3" i = i + 1 Faces(i) = "4" i = i + 1 Faces(i) = "5" i = i + 1 Faces(i) = "6" i = i + 1 Faces(i) = "7" i = i + 1 Faces(i) = "8" i = i + 1 Faces(i) = "9" i = i + 1 Faces(i) = "T" i = i + 1 Faces(i) = "J" i = i + 1 Faces(i) = "Q" i = i + 1 Faces(i) = "K" i = i + 1 Faces(i) = "A" End Sub Sub shuffle() ' Perform a realistic shuffle Dim Deck1(26) As Integer, Deck2(26) As Integer ' Two half decks of equal size to be shuffled Dim i As Integer, j As Integer, k As Integer Dim total As Integer, flex As Integer Dim i1 As Integer, i2 As Integer, i3 As Integer Dim pick As Integer total = 4 ' number of shuffles flex = 4 ' maximum cards from each half deck to be shuffled per iteration For j = 1 To total ' Make two half decks For i = 0 To 25 Deck1(i) = Deck(i) Deck2(i) = Deck(i + 26) Next i1 = 0 ' number of cards shuffled so far on this iteration i2 = 26 ' number of cards left in half deck 1 i3 = 26 ' number of cards left in half deck 2 Do While i1 < 52 ' keep shuffling until the deck is full If i2 > 0 Then ' make sure cards are left in half deck 1 pick = Int(Rnd * flex + 1) ' randomly choose number of cards to be shuffled For k = 1 To pick ' add each shuffled card to the deck If i2 > 0 Then i2 = i2 - 1 Deck(i1) = Deck1(i2) i1 = i1 + 1 End If Next End If If i3 > 0 Then ' make sure cards are left in half deck 2 pick = Int(Rnd * 6 + 1) ' randomly choose number of cards to be shuffled For k = 1 To pick ' add each shuffled card to the deck If i3 > 0 Then i3 = i3 - 1 Deck(i1) = Deck2(i3) i1 = i1 + 1 End If Next End If Loop Next End Sub Sub sort_hands() Dim i As Integer, j As Integer, temp As Integer, hand As Integer For i = 0 To 52 DeckS(i) = Deck(i) ' copy deck order to a second eck to be sorted Next For hand = 0 To 3 ' sort by hand For i = 0 + 13 * hand To 12 + 13 * hand - 1 ' use a selection sort to sort by suit and rank For j = i + 1 To 12 + 13 * hand If DeckS(i) < DeckS(j) Then temp = DeckS(i) DeckS(i) = DeckS(j) DeckS(j) = temp End If Next Next Next End Sub Function sort_hand(ByVal Cards, idx) As String ' break each hand into suits Dim retval As String, hand As Integer, suit As Integer, i As Integer Dim temp As Integer retval = "" For suit = 0 To 2 ' use a modifed selection sort For i = suit + 1 To 3 If Cards(idx, suit) < Cards(idx, i) Then temp = Cards(idx, suit) Cards(idx, suit) = Cards(idx, i) Cards(idx, i) = temp End If Next Next For suit = 0 To 3 retval = retval + Str(Cards(idx, suit)) Next sort_hand = retval End Function Function sort_suit(ByVal Cards, idx) As String ' break each suit into hands Dim retval As String, hand As Integer, suit As Integer, i As Integer Dim temp As Integer retval = "" For hand = 0 To 2 ' use a modified selection sort For i = hand + 1 To 3 If Cards(hand, idx) < Cards(i, idx) Then temp = Cards(hand, idx) Cards(hand, idx) = Cards(i, idx) Cards(i, idx) = temp End If Next Next For hand = 0 To 3 retval = retval + Str(Cards(hand, idx)) Next sort_suit = retval End Function Sub print_dist(row As Long) ' output the distributions to the worksheet Dim i As Integer, suit As Integer Dim Hands(4, 4) As Integer, hand As Integer Dim Suits(4, 4) As Integer Dim temp As Integer i = 0 For hand = 0 To 3 'count the distribution of hands For suit = 3 To 0 Step -1 temp = 0 Do While (DeckS(i) >= suit * 13 And i < (hand + 1) * 13) temp = temp + 1 i = i + 1 Loop Hands(hand, suit) = temp Next Next Worksheets("Distributions").Range("A" & row).Value = sort_hand(Hands, 0) Worksheets("Distributions").Range("B" & row).Value = sort_hand(Hands, 1) Worksheets("Distributions").Range("C" & row).Value = sort_hand(Hands, 2) Worksheets("Distributions").Range("D" & row).Value = sort_hand(Hands, 3) Worksheets("Distributions").Range("E" & row).Value = sort_suit(Hands, 3) Worksheets("Distributions").Range("F" & row).Value = sort_suit(Hands, 2) Worksheets("Distributions").Range("G" & row).Value = sort_suit(Hands, 1) Worksheets("Distributions").Range("H" & row).Value = sort_suit(Hands, 0) End Sub Sub print_deal(row As Long) ' output the hands to the worksheet Dim i As Integer, suit As Integer Dim Hands(4) As String, hand As Integer Dim Suits(4) As String i = 0 For hand = 0 To 3 'insert a decimal character between the suits Hands(hand) = "" For suit = 3 To 0 Step -1 Do While (DeckS(i) >= suit * 13 And i < (hand + 1) * 13) Hands(hand) = Hands(hand) + Faces(DeckS(i) Mod 13) Suits(suit) = Suits(suit) + Faces(DeckS(i) Mod 13) i = i + 1 Loop If suit > 0 Then Hands(hand) = Hands(hand) + "." If hand < 3 Then Suits(suit) = Suits(suit) + "." Next Next Worksheets("Hands").Range("A" & row).Value = Hands(0) Worksheets("Hands").Range("B" & row).Value = Hands(1) Worksheets("Hands").Range("C" & row).Value = Hands(2) Worksheets("Hands").Range("D" & row).Value = Hands(3) Worksheets("Hands").Range("E" & row).Value = Suits(3) Worksheets("Hands").Range("F" & row).Value = Suits(2) Worksheets("Hands").Range("G" & row).Value = Suits(1) Worksheets("Hands").Range("H" & row).Value = Suits(0) End Sub Sub deal() Dim total As Long, i As Long total = 65000 'number of deals Call start_deck 'initialize all 52 cards For i = 1 To total If i Mod 500 = 0 Then Worksheets("Distributions").Range("I1").Value = i ' show progess on the worksheet Call shuffle 'shuffle the cards Call sort_hands 'sort the hands by suit and rank Call print_deal(i + 1) Call print_dist(i + 1) 'print the distribution to the worksheet Next Worksheets("Distributions").Range("A:H").Copy 'copy the distributions Worksheets("Distributions").Range("J1").PasteSpecial 'paste the distributions to the columns where summary formulas are pointed End Sub
  11. Thanks for the suggestion Hannie. And Stephen. I made 65,000 deals, of those 27411 deals had 6/3 suit splits between two hands 14681 split 2-2 (53.56%) 9155 split 3-1 (33.40%) 3575 split 4-0 (13.04%) 64348 deals had 5/4 suit splits between two hands 33606 split 3-1 (52.23%) 27478 split 2-2 (42.70%) 3264 split 4-0 (5.07%) Could someone please explain why these deals do not match Pavlicek's calculations but instead match my probability calculations?
  12. I need some help explaining these numbers. I ran through 400 hands generated by Bridge Baron 16. 200 with NS having 6 spades in North and 3 Spades in South, the opponents hands were 17 4-0 split 90 3-1 split 93 2-2 split 200 with NS having 5 spades in North and 4 Spades in South, the opponents hands were 21 4-0 split 105 3-1 split 74 2-2 split This is closer to my predictions than to Pavlicek's predictions. After so many people telling me I was wrong, I'm confused that the samples conformed somewhat close to my predictions made from my inadequate knowledge of probability theory. Can someone please tell me where I went wrong with the samples? I can give the 400 deal #'s to anyone who would like to verify.
  13. Since I have over 20 hours of college math, I didn't use the non-math method. What university, who was the professor and what grade did you get? Did the math include probability theory? Sorry, this statement of yours is quite annoying. You don't have to answer the questions above, but making statements like these to try and support your argument only shows that you don't have a convincing logical argument which is pertinent to the discussion at hand. When I have already stated the Math as my argument, and no one seems to understand that, I have not much more to argue. I'm looking at the evidence, and see clearly that my method for the distribution of the cards fits in with the probability theory. I have explained my method. I've even tested it in practice. I've then looked at the evidence from the test which matches the probabilities that I generated using probability theory. It's staring me right in the face, so yes the Earth does revolve around the Sun. "E pur si muove."
  14. Okay there are 4.95919E+14 unique 26 card layouts for 1 pair. Combination (52,26) I ignored which hand specific high cards were in. I have the percent that between the 2 hands there are a fixed number of HCP. I agree on the concept that HCP aren't the only determinant, but here are the HCP layouts that I came up with. HCP Percent % Cummulative (those HCP or higher) 0 0.0000513% 100.0000000% 1 0.0004846% 99.9999487% 2 0.0019990% 99.9994641% 3 0.0063868% 99.9974652% 4 0.0179859% 99.9910784% 5 0.0426910% 99.9730925% 6 0.0927186% 99.9304015% 7 0.1856480% 99.8376830% 8 0.3411376% 99.6520350% 9 0.5877062% 99.3108974% 10 0.9546726% 98.7231912% 11 1.4634633% 97.7685186% 12 2.1239452% 96.3050553% 13 2.9433742% 94.1811101% 14 3.8833877% 91.2377359% 15 4.8918758% 87.3543482% 16 5.9072842% 82.4624724% 17 6.8310913% 76.5551882% 18 7.5662308% 69.7240969% 19 8.0467824% 62.1578661% 20 8.2221673% 54.1110837% 21 8.0467824% 45.8889163% 22 7.5662308% 37.8421339% 23 6.8310913% 30.2759031% 24 5.9072842% 23.4448118% 25 4.8918758% 17.5375276% 26 3.8833877% 12.6456518% 27 2.9433742% 8.7622641% 28 2.1239452% 5.8188899% 29 1.4634633% 3.6949447% 30 0.9546726% 2.2314814% 31 0.5877062% 1.2768088% 32 0.3411376% 0.6891026% 33 0.1856480% 0.3479650% 34 0.0927186% 0.1623170% 35 0.0426910% 0.0695985% 36 0.0179859% 0.0269075% 37 0.0063868% 0.0089216% 38 0.0019990% 0.0025348% 39 0.0004846% 0.0005359% 40 0.0000513% 0.0000513% Algorithm used: I cycled through every possible combination of A's, K's, Q's, and J's using "for" loops. I added their HCP and determined how many cards where left to fill in the other cards. Multiplying the number of combinations of the remaining cards times the number of combinations that could made. Then add up each of these for all layouts with those HCP's. Ex. For 9 HCP, using four cards, there are 304 possible combinations. For the other 22 cards out of 36 with no point value, there are 3796297200 possible combinations. So for 9 HCP using 4 cards, there are 1.154074E12
  15. I found this on the Internet at Bridge Hands, does this sound right? I havenot had time to write my own validation program yet, but I will.
  16. Those odds are not taking into account the actual layouts of 52 cards. They are using a simplistic method which may be close you for, but not close enough for me or the experts and world class players that I've taken lessons from. Check the Encyclopedia of Bridge. We have a hard copy at our Bridge House, come by and I'll show you :) . It will verify the numbers I gave you. But there are also many places you can find the statistics on the Internet if you search for them, but here are is one such list of calculations. http://www.durangobill.com/BrSuitStats.html So I'll stand by by original answer of the probability of the suit break.
  17. Hating to get into another probability debate, I thought I remember somewhere the odds being 2.5%-5% should be passout 2.5%-5% should be slam 35%-40% should be game The rest partscore. I have no idea where I heard this and it may be wrong
  18. Since I have over 20 hours of college math, I didn't use the non-math method. I calculated the odds using probability and then dealt over 130,000 hands to validate my calculations. I may have made a typo or rounding error, but they are close. This is also backed up by lessons with people such as Gordon Campbell, a member of the Canadian National Team that won in Salt Lake City a few years ago. The layout of cards in two hands do affect the probability of the cards in the other two hands, because if you swap 63 to 54 you have to affect 2 other cards in each of the two hands, which affects the layout of other suits in the two hands. After you've dealt 130,000 hands, please let me know your results. You method is good for quick answers and intermediate players, but full knowledge of the probabilities helps later on. (and no, I'm not there yet, I'm still intermediate)
  19. That is interesting. I have one partner who always bids over 1C no matter what because we play clubs as short as 2. He says we agree that I can pass it and he won't pass it. He might pass me there. Otherwise, great bid.
  20. I calculated them using probability and combinations. 6322 occurs 5.642490% of all hands (~54.2%) 6331 occurs 3.448188% of all hands (~33.1%) 6430 occurs 1.326226% of all hands (~12.7%) jdonn has forgotten that you need to look at the whole suit and not just the 5 missing cards. if the declarer dummy is 5-4 then the odds would be 5431 occurs 12.930705% of all hands (~52.2%) 5422 occurs 10.579668% of all hands (~42.8%) 5440 occurs 1.243337% of all hands (~5.0%) I have no idea where jdonn came up with his percentages, but they are not correct. [edit] The combined total has no effect on the probable layout of the cards, it's the probability of the suits that is accurate.[/edit] [edit again]I dealt over 130,000 hands to match the probability and came up with my predicted result.[/edit again]
  21. Holding 6-3 in declarer/dummy: 2-2 split is 54.1% 3-1 split is 16.7% 1-3 split is 16.7% 4-0 split is 6.25% 0-4 split is 6.25% 3-1 split with Singleton K is 4.175% Best line of play: finesse to QS, then lead AS Works 58.275 % of the time.
×
×
  • Create New...