BBO Discussion Forums: Math problem - BBO Discussion Forums

Jump to content

  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

Math problem

#1 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 2015-January-22, 16:35



I had this math problem today, LHO leads A (east plays 2), what is the best line?

1NT = 15-17.
0

#2 User is offline   Hanoi5 

  • PipPipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 4,080
  • Joined: 2006-August-31
  • Gender:Male
  • Location:Santiago, Chile
  • Interests:Bridge, Video Games, Languages, Travelling.

Posted 2015-January-22, 18:51

I ruff on the table, and play AK of spades, no Queen? I ruff a spade. I win if the Spade Queen is doubleton AND the King is onside (or with the doubleton holder) or spades are 3-3 and clubs 3-2. Finessing clubs seems to win only when the Spade Queen is doubleton and whenever the Club King is doubleton (onside).

View Postwyman, on 2012-May-04, 09:48, said:

Also, he rates to not have a heart void when he leads the 3.


View Postrbforster, on 2012-May-20, 21:04, said:

Besides playing for fun, most people also like to play bridge to win


My YouTube Channel
0

#3 User is offline   manudude03 

  • - - A AKQJT9876543
  • PipPipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 2,610
  • Joined: 2007-October-02
  • Gender:Male

Posted 2015-January-22, 21:05

View PostHanoi5, on 2015-January-22, 18:51, said:

Finessing clubs seems to win only when the Spade Queen is doubleton or whenever the Club King is doubleton (onside).


FYP.
Wayne Somerville
0

#4 User is offline   gszes 

  • PipPipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 3,653
  • Joined: 2011-February-12

Posted 2015-January-22, 23:03

a maddening problem lho looks like a 100% favorite to hold the club K
(surely rho would x 6c after this bidding with kx(x) of clubs). The problem
then boils down to distribution of the club suit itself.

Assumptions from the bidding are as follows lho has 2 cards in each suit besides clubs
while rho also has certain minimums based on the max number of cards in each suit that
lho can hold. Rho has at least 2 spades 3 hearts and 4 diamonds. This means rho has only
4 free spaces for clubs vs lho having 7. It is even worse that this since we have a
practical limit in clubs essentially needing 32 so this further reduces the empty spaces
in both hands by 2 and rho now has only 2 spaces for the third club and lho has 5 spaces for
the third club. This means taking the club finesse is down to around 29%. This means we are
pretty much forced to rely on the 33 spade break good luck:))))))))))))))))))))))))))))))
0

#5 User is offline   Mbodell 

  • PipPipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 2,871
  • Joined: 2007-April-22
  • Location:Santa Clara, CA

Posted 2015-January-23, 00:47

Let's consider it single dummy with no bidding:

We are down if clubs are 5-0, and down if clubs are 4-1 unless the stiff is the K or T and that doesn't take a trick.

If we finesse in clubs we have:

0 losers on: all 2=3 with the K onside.
1 loser on: all other 3-2, also 1=4 with stiff K or T and 4=1 with stiff T.
2+ losers on: all other 4-1 and all 5-0.

With no knowledge of honors or shape from bidding that works out to around:
0 losers: 13.56%
1 losers: 62.72%
2+ losers: 23.69%

Looking at spades alone (and not considering the bidding or the split in clubs), and playing spades from the top we get around:
0 losers on: all stiff Q or 4-2 with Qx doubleton
1 loser on: everything else

That works out to:
0 losers: 18.57%
1 losers: 81.43%

So at a high level (i.e., not correcting for conditional probability or the auction) going after clubs first gives you:
13 tricks: 13.56% * 18.57% = 2.52%
12 tricks: 13.56% * 81.43% + 62.72% * 18.57% = 22.69%
11 or less: 23.69% + 62.72% * 81.43% = 74.76%

Now instead if we play spades from the top for the ruff and then go after clubs we get:
Spades play for:
0 losers: Q stiff, doubleton, or tripleton.
1 loser: spade in 4 or longer suit

which works out to:
0 losers: 54.09%
1 loser: 45.91%

If we have to play clubs from the top we have:
0 losers: never
1 loser: all 3-2 + all 4-1 with stiff K or T
2+ losers: all others

which works out to:
0 losers: 0%
1 loser: 79.10%
2+ losers: 20.90%

Combining these we get:
13 tricks: never
12 tricks: 54.09% * 79.10% = 42.79%
11 or less: 57.21%

However, if the Q of spades drops stiff or doubleton we can then switch to clubs. We might choose to play the finesse or not, however, we also now have to worry about a spade ruff. If the Q drops singelton or doubleton onside, we probably want to play clubs from the top to make less likely a spade ruff. If the spade drops singleton or doubleton offside, we can now take the club finesse since RHO will not be able to give LHO a ruff with no spades.

So now the spade situation is:
Case 1: Q or Qx with RHO = 9.29%
Case 2: Q or Qx with LHO = 9.29%
Case 3: Qxx with anyone = 35.52%
Case 4: Qxxx or Qxxxx or Qxxxxx with anyone = 45.90%

In case 4 we are dead, in case 1 we get the finesse clubs percentages we started with, in case 3 we get the clubs from the top just above, but in case 2 we also play clubs from the top, but we now lose on Kx offside due to the spade ruff available.

Combining this we get:
13 tricks: case 1 with 0 club losers (start) = 9.29% * 13.56% = 1.26%
12 tricks: case 1 with 1 club loser (start) + case 2 with 1 club loser (above - Kx offside) + case 3 with 1 club loser (above)
= 9.29% * 62.72% + 9.29% * (79.1% - 13.56%) + 35.52% * 79.1% = 40.01%
11 or fewer: 58.73%

So the extra flexibility of playing clubs differently if the spade Q is short lets us occasionally take all the tricks, but costs us slightly overall due to the increased ruff chance.

Now all of that was ignoring the bidding. It is unlikely, but not impossible, that the spade Q is stiff with LHO given the 1nt bid. The points suggest that many cards are also more likely to be with LHO, making the club finesse more likely to occur. But does that make up for the 41.28% chance playing spades first compared to the club finesse first which only wins 25.21% of the time?

If we assume LHO has AK of hearts at least, then there are 13 missing HCP and LHO needs 8-10 of the 13. There are 6 missing honor cards and thus 64 ways to arrange those honors between LHO and RHO, but only 19 of these ways give LHO between 8-10 points. And of those LHO has the CK 14 (the SQ 12). While everything isn't exactly equally likely that make the chances of the club K onside about 73.7%.

So 2=3 shape in clubs is about 33.9%. Before we were saying that Kx onside was 13.56% of that (4/10 of that). But now we are saying of the 10 2=3, the 4 with the K onside count for weight of around 3, the 6 with the K offside count for weight of about 1. This makes Kx onside be about 12/18 of 33.9 or 22.6%. Perhaps slightly more when we don't allow 0=5 or 1=4 shapes either, so call that 26.93%.

I don't think this will be enough to make playing on clubs better. Because we'll make at least 12 tricks this 26.93% as well as the roughly 50% of the time we have 1 club loser times the 18% of the times spades from the top come in and that will only get us to about 35-40%. Certainly better than the ~25% of the original calculation of this order of play, but not as good as the 41-odd percent of the spades first line from above. And the spade first line will go up a bit with the K likely to be onside, as we are less likely to get a ruff.
1

#6 User is offline   whereagles 

  • PipPipPipPipPipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 14,900
  • Joined: 2004-May-11
  • Gender:Male
  • Location:Portugal
  • Interests:Everything!

Posted 2015-January-23, 02:58

The solution to this problem is:

Stay out of bad slams :)
0

#7 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 2015-January-23, 03:28

I forgot to add that in Spain people do not open 1NT with 5 card major. And rarely with singletons, so spades won't be 5-1/1-5 and clubs won't be 1-4
0

#8 User is offline   Mbodell 

  • PipPipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 2,871
  • Joined: 2007-April-22
  • Location:Santa Clara, CA

Posted 2015-January-24, 20:00

Ok, so I decided to script this. I wasn't sure about the NT so I considered 3 different NT styles:

Strict NT where 2-4 S, 2-4 H, 2-5 D, 2-5 C
no 5M but 6m ok NT where 2-4 S, 2-4 H, 2-6 D, 2-6 C
loose NT where 2-5 S, 2-5 H, 2-6 D, 2-6 C

In the last one I allowed 5M422 hands to be opened 1nt, could restrict that too, but shouldn't materially effect the which line is best or the rough percentages.

I simulated 1,000,000 hands (with N and S fixed, W fixed with H AK, E fixed with H 2) and figured out which lines work with what percentage.

Quote

There were 1000000 hands dealt
There were 188643 inclusive NT hands dealt (18.8643%)
There were 151460 6 minor but no 5 major NT hands dealt (15.146%)
There were 144720 srtict balanced no 5 major NT hands dealt (14.472%)
There were 422712 times line1 - spades first - worked (42.2712%)
There were 260554 times line2 - club finesse first - worked (26.055400000000002%)
With a strict NT shape, line 1 - spades first - works (53.65%) while line 2 - club finesse first - works (39.26%)
With a 6 minor ok but 5M not NT shape, line 1 - spades first - works (53.68%) while line 2 - club finesse first - works (40.97%)
With a normal NT shape, line 1 - spades first - works (53.44%) while line 2 - club finesse first - works (45.43%)


If you ignore the odd floating point quirk there we see that when we ignore the bidding restrictions on shape and points that the spades first line works 42.3% compared to 26.1% for the club line. That is very close to the 42.8% and 25.2% that I had calculated in my Q&D by hand calculations.

If you restrict the W hand by HCP and shapes you see the odds of making go up, but the spades first line is always around 53.5%, the club finesse line depends on how strict or loose you are on the shapes and varies from around 39-45% or so. That is slightly better for each line than I figured in my Q&D calculations including points and shape (I thought it was going to be 45-50% for the spades first and 35-40% for the club finesse).

So interesting to see that given the bidding and opening lead and what that implies, we are actually in a marginally good slam - so long as we play on spades first.

Anyone that wants to check and validate my script code can see that here
3

#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 2015-January-25, 03:33

Thanks a lot, I was neededing this.

If a suit can only break 4-2 or 3-3, it is 60% of the queen falling doubleton or tripleton. The 53% should be because of 4-1 clubs. I wonder why it drops so little when you allow 5 card major.



A rule of thumb could go like this: Club finesse plays for West to have a specific lenght: 2 and a card: K
Spade finesse plays for West for a specific length: 3 and a card: Q

But spade has 2 winning cases: when either player has Qxx. 2 is usually better than one. Even when Q offside is not likelly.
0

#10 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 2015-January-25, 04:06

I looked at the code, and I think there is a small thing missing: When west has Qx and East has Kx we go down on a spade ruff.
1

#11 User is offline   Mbodell 

  • PipPipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 2,871
  • Joined: 2007-April-22
  • Location:Santa Clara, CA

Posted 2015-January-25, 04:17

View PostFluffy, on 2015-January-25, 04:06, said:

I looked at the code, and I think there is a small thing missing: When west has Qx and East has Kx we go down on a spade ruff.


That is handled by the following lines:

Quote

if {$club_loser_top == 1} {
# Still need to avoid the ruff
if {!($clubs_west == 3 && [east has KC])} {
set line1 1
}
}


Note that this is in line 1, when West has 1 or 2 spades and the Q (obviously in the NT openers this will just be 2 spades - but I keep track of both for the overall count). If West has 3 clubs and East the CK we go down.

There is an extremely unlikely line that isn't covered: When spades are 3-3 and East has the SQ and the stiff K of clubs. If East plays the spade Q on the second round of spades, we'll think the spades are split 4-2 and we'll go over in diamonds and take a club finesse. We'll now lose 2 club tricks. If east doesn't find this play, we'll ruff the third round of spades and play clubs from the top and only lose the one club. But it is quite unlikely that East has Qxx of spades and stiff K of clubs, given west is the one with the points (but AKQ of H and KQJ of D is still 15 points). It is also quite unlikely that East finds that play. But what a defense if she does!
2

#12 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 2015-January-25, 06:36

I've been there:

-Partner, are you void in clubs?
-What? oh sorry this is a spade. Sorry, I have a club here.
Later on...

Sorry partner, I had a spade between my clubs, surely if I had it right we would put 2 down.
0

#13 User is offline   suokko 

  • PipPipPipPip
  • Group: Full Members
  • Posts: 289
  • Joined: 2005-October-18
  • Gender:Male
  • Location:Helsinki (Finland)
  • Interests:*dreaming*

Posted 2015-January-31, 05:36

Sorry to crash the simulation party a bit late. But here is my take on simulations with a bit different per cents to success but same line winning.

The simulation code that I used for exhaust mode. Exhaust mode generates all possible remaining hands when two hands are known.
Spoiler


Results:
condition west1NTstrict meaning only 4333 4432 and 5332 shapes allowed with no 5M
♠Q onside: 0.704208
♣K onside: 0.889556
Club finesse: 0.369362
Spade finesse: 0.421982
Spade ruff: 0.580242
Generated 2704156 hands
Produced 224820 hands
Initial random seed 1422703180
Time needed    0.278 sec

condition west1NTno5M meaning all balanced and semibalanced shapes without 5M or 22M
♠Q onside: 0.686543
♣K onside: 0.872162
Club finesse: 0.442801
Spade finesse: 0.425987
Spade ruff: 0.548297
Generated 2704156 hands
Produced 262285 hands
Initial random seed 1422703358
Time needed    0.323 sec

condition west1NT adding 5M332 hands to the previous simulation
♠Q onside: 0.68623
♣K onside: 0.873573
Club finesse: 0.451725
Spade finesse: 0.435276
Spade ruff: 0.560902
Generated 2704156 hands
Produced 294843 hands
Initial random seed 1422703487
Time needed    0.329 sec

0

#14 User is offline   Mbodell 

  • PipPipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 2,871
  • Joined: 2007-April-22
  • Location:Santa Clara, CA

Posted 2015-January-31, 12:38

View Postsuokko, on 2015-January-31, 05:36, said:

Sorry to crash the simulation party a bit late. But here is my take on simulations with a bit different per cents to success but same line winning.


I assumed that West had the K to go with the A for their opening lead. You did not. That likely accounts for much of the difference.
0

#15 User is offline   suokko 

  • PipPipPipPip
  • Group: Full Members
  • Posts: 289
  • Joined: 2005-October-18
  • Gender:Male
  • Location:Helsinki (Finland)
  • Interests:*dreaming*

Posted 2015-January-31, 15:53

View PostMbodell, on 2015-January-31, 12:38, said:

I assumed that West had the K to go with the A for their opening lead. You did not. That likely accounts for much of the difference.


True. I would assume A lead to slam must be AK. But I probably should prevent DKQJ if no HK. But even with that opening leader might try to take A if thinking that there is sure trump trick. That why I didn't assume HK has to be with opening leader. Some lead agreements even make A lead to 5+ levels deny king. Too bad that kind of information is rarely provided in posts.
0

#16 User is offline   Mbodell 

  • PipPipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 2,871
  • Joined: 2007-April-22
  • Location:Santa Clara, CA

Posted 2015-February-01, 01:52

View Postsuokko, on 2015-January-31, 05:36, said:

The simulation code that I used for exhaust mode. Exhaust mode generates all possible remaining hands when two hands are known.


I'm impressed that your exhaust mode solves all possible hands in less than a second.
0

#17 User is offline   suokko 

  • PipPipPipPip
  • Group: Full Members
  • Posts: 289
  • Joined: 2005-October-18
  • Gender:Male
  • Location:Helsinki (Finland)
  • Interests:*dreaming*

Posted 2015-February-01, 14:15

View PostMbodell, on 2015-February-01, 01:52, said:

I'm impressed that your exhaust mode solves all possible hands in less than a second.


It uses bit vector permutations to select how to distribute unknown cards for each hand. Bit vector is enough because only two hands can hold remaining unknown cards when two hands are completely known. That vector is then converted to bit hand presentation with bitwise operations. That part is about 10 times faster than generating a random deal using rng.

The remaining works is done by the script interpreted that is slow for complex scripts. In this case relaxing 1NT requirements produces more matching deals for analyze steps showing how much analyze scripts takes even in this fairly trivial looking case.

If no cards are known for remaining hands then there is 10 million possible deals to generate. Even that takes just under a second if using a very simple script.
0

#18 User is offline   lamford 

  • PipPipPipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 6,416
  • Joined: 2007-October-15

Posted 2015-February-01, 14:38

View Postgszes, on 2015-January-22, 23:03, said:

(surely rho would x 6c after this bidding with kx(x) of clubs).

Why on earth would he do that? He has no intention of helping you with the play.
I prefer to give the lawmakers credit for stating things for a reason - barmar
0

#19 User is offline   gszes 

  • PipPipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 3,653
  • Joined: 2011-February-12

Posted 2015-February-03, 14:10

View Postlamford, on 2015-February-01, 14:38, said:

Why on earth would he do that? He has no intention of helping you with the play.


:)))) after this bidding I would sincerely expect my p to rise from the table leave
for the bar and never return if I could not find x with kx(x) on this bidding. I will
gladly help declarer a bit with their play on hands where they should have no chance
whatsoever and will keep yet another of my limited supply of cherished partners:)
0

#20 User is offline   gszes 

  • PipPipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 3,653
  • Joined: 2011-February-12

Posted 2015-February-03, 14:25

We have some highly talented programmers here but I have a question ==
what kind of calculations and why would you use to solve this problem ----
at the table ? If you can do these types of calculations in your head that is
great or else it seems to more of a case of trivial pursuit rather than any sort
of useful technique..
I realize there is genius out there but our game is supposed to be mental not
based on the ability to use a calculator or type programs faster than anyone else.
Localizing the problem down to determining if the club finesse or depending on 33
spades or the Q falling doubleton is mental try doing the rest that way its sort of
fun though frustrating at times.
0

  • 2 Pages +
  • 1
  • 2
  • 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