Quote:
What's wrong with the reasoning below?
1st term counts 2nd term:
(4C2)3 * (3C1)(2C2) / [(3C1)(4C2)2 *(4C4)] = 6 times
2nd coef = -6
When you count hands with AA|KK|QQ, you aren't counting each AA|KK|QQ|QQ hand 6 times. You're counting each one twice, one for each QQ. We're talking specific hands with specific QQ's, not any QQ's. Then each AA|KK|KK|QQ|QQ is counted 2^2 = 4 times, and each AA|AA|KK|KK|QQ|QQ is counted 2^8 = 8 times.
For the earlier problem, when you count the ones with 1-8, you count the ones with exactly 1 duplicate twice, exactly 2 duplicates 2^2 = 4 times, exactly 3 duplicates 2^3 = 8 times, etc. It's the same problem.
I don't know what all of your factorials and combinatorics are all about. It should be a simple matter to figure how much each is being over counted.
A simulation would be worthless for this problem because it would take forever to distinguish the tiny differences we're talking about. But here's a simple calculation that shows the 2nd coefficient is -2. Just consider a 16 card deck with only A-J with 4 players, and compute the probability that exactly 3 players have AAKKQQ. That's just
Code:
> p = 18/C(16,2)*12/C(14,2)*6/C(12,2)*(6*4/2 + 6*4 + C(4,2))*4/C(10,2)
> p
[1] 0.00671328671328671
> 1/p
[1] 148.958333333333
where the 6*4/2 is ways for the 4th guy to get both cards A-Q without a pair, 6*4 is ways to get a J with an A,K,Q, and C(4,2) is ways to get JJ. Then we multiply by 4 since any of the 4 can be the guy without AA-QQ. Now we show that agrees with (1,-2,0,0):
Code:
> cards = 16
> players = 4
> p = C(players,3)*C(4,2)^3 / C(cards,6)/dfact(5) -
+ 2*C(players,4)*3*C(4,2)^2*dfact(3) / C(cards,8)/dfact(7)
> p
[1] 0.00671328671328671
> 1/p
[1] 148.958333333333
You can do more complicated examples with this second one, but the first calculation gets more complicated.
Quote:
Originally Posted by heehaww
I scaled the problem down so I could try without inclusion-exclusion.
4-handed, what's the probability of exactly 2 players getting AA vs KK?
> p3 = C(4,2)*C(4,2)^2 / C(52,4)/dfact(3) -
+ 2*C(4,3)*2*C(4,2)*dfact(3) / C(52,6)/dfact(5)
> p3
[1] 0.000265009440764849
> 1/p3
[1] 3773.45047449585
OR
> p3 = C(4,2)*12*6/C(52,2)/C(50,2) -
+ 2*C(4,3)*2*6*6*1*3/C(52,2)/C(50,2)/C(48,2)
> p3
[1] 0.000265009440764849
> 1/p3
[1] 3773.45047449585
Yours comes to 3773.44398723677. That differs by C(4,2)^2/C(52,8)/dfact(7). It also would agree with (1,-2,+4). I did it 3 different ways and got the same answer as yours. Then I scaled it down to a 12 card deck, and it's off from inclusion-exclusion in exactly the same way. Then I simed the 12 card deck, and it is consistent with the direct calculation but not inclusion-exclusion. So that seems real solid, but the inclusion-exclusion seems trivially solid. I'm missing something.
Last edited by BruceZ; 04-19-2014 at 02:48 AM.