Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and the Yahoo Answers website is now in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
Trending News
Drawing card question, any guess?
Suppose you take the spades out of a game of cards and pick them at random while calling "Ace, King" etc down to 2 in that order. The probability that your call never agrees with the drawn card is a number P close to 1/e.
http://mathworld.wolfram.com/Derangement.html
Suppose you take the Spades and the Clubs and you draw them while calling "Ace King"... down to two, twice in a row. Then the probability Q of having only miscalls should be close to P^2.
Can you find some heuristic argument to guess whether Q will be greater, less than or equal to P^2?
@ CDA Thx for answering; this question starts from the derangement problem but is somehow a 2-fold derangement problem. I agree that Spades and Clubs are not absolutely essential. However the fact that you have 2 distinct collections of cards is. You could also say that you have n pairs and each pair is assigned 2 spots among 2n spots. What is then the probability Q that none of the 2n objects is in one of the 2 spots allotted to the pair it belongs to? More specifically how does it compare to P^2, P being the derangement probability of order n.
@ Brian Good start!
@ Scythian: This is great. Did you use 1000 or 100 in the second case? This would help to guess the asymptotics of the difference P^2 - Q.
@ Scythian: How did you come up with 80, 4752 or 440192? General formula?
@ Sharmistha: this problem is not a mixture of 2 independent derangement problems. Hence in general Q and P^2 do not agree. n = 3 might be the only value for which they do agree. Just look at Scythian's answer and it will be clear.
@ Scythian. Thx for your last edit. You don't need to assume that Clubs and Spades are distinguishable. Shuffling the Spades of two games would give the same situation. So you can factor out 2^n top and bottom and the odds are unchanged. I agree that a formula seems hard to get. It would be nice however to see how Q differs from 1/e^2 for large n.
@ Scythian. Brian's argument has convinced me that Q< P^2, at least for n > 3. Now that Q tends to 1/e^2 is so likely i don't need confirmation:
The probability for a pair to escape the allotted spots is (2n-2)(2n-3) / (2n-1)(2n). This is basically 1-2/n up to higher order terms. For the classical derangement you have (1- 1/n) for any card to be misplaced and taking the n'th power gives you a good approximation. I assume it's the same here and (1-2/n)^n tends to e^(-2). So what I would like now is to understand the difference d = (1/e^2) - Q as a function of n. On your values for 3,4,5 it looks like d ~ c/n with c ~1/7, but that does not agree with your simulation for n = 1000.
Edit Here is a formula for Q_n if n = 13
http://www.wolframalpha.com/input/?i=sum+%28sum%28...
I tested it for n = 26 and it looks like Q_n ~ (1/e^2) (1 - 1/(2n)) + lower order terms. This does not answer my initial question which was to understand the difference between Q and P^2.
@ Scythian; apart from proving this trend, the question would be to understand it heuristically.
The formula is just a double application of exclusion inclusion: k represents the number of pairs for which there is at least one positive hit and then j represents the number of pairs for which both hits are positive.
@ Sharmistha: Q is not identified as a partial sum of an exponential series. How did you get 0.073?
@ Brian. I don't think that this is the case. To check that I would need to rearrange the formula according to j, the double hits corresponding to j > 0. In any case the exclusion inclusion principle is great to have formulas but not so much to understand what's going on.
5 Answers
- Scythian1950Lv 78 years agoFavorite Answer
I think in the limiting case, as P -> 1/e, the Q of your Spades and Club drawing game will be close to P², that is, √Q -> 1/e, but only slightly less. Let me think about some more why that should be. I've done some Monte Carlos on this, and results so far seem to agree with this. I'll run a much longer trial overnight to see what comes out.
Edit: Okay, seeing that Subfactorial(13)/13! is very nearly the same as 1/e = 0.367879..., Monte Carlo trials can be done with just 13 (or 26) cards as posed by this question. After 10 million trials of each, the percentages of failure to match is as follows:
With 13 cards......0.367688
With 26 cards......0.360783²
S(13)/13! or 1/e....0.367879
If instead of using 13 cards, we used 1000 cards, after 100,000 trials, the difference is even smaller:
With 1000 cards...0.367898
With 2000 cards...0.367423��
S(1000)/1000!.......0.367879
Edit: Let me tabulate exact calculations of number of derangements in the case of 3 & 6 cards, 4 & 8 cards, and 5 & 10 cards (standard and double derangements)
3 cards: 2 out of 6 = 0.333333
6 cards: 80 out of 720 = 0.333333²
4 cards: 9 out of 24 = 0.375000
8 cards: 4752 out of 40320 = 0.343303²
5 cards: 44 out of 120 = 0.366667
10 cards: 440192 out of 3628000 = 0.348289²
The pattern is that both approach 1/e = 0.367879, but the square root of the double derangement approaches it more slowly than the standard derangement.
Edit 2: It has proven really tricky to edit this answer correctly, took too many tries.
Edit 3: See Edit 2. I used 1000 & 2000 cards, running 100,000 trials each. Also, I used software routine to tabulate all possible permutations, including the 10 card "double derangement" scenario, rejecting the permutations that resulted in a match. I did not use a formula, because then otherwise I could have worked out the numbers exactly for the 26 card "double derangement" scenario, as we can easily work out for the 13 card straight derangement scenario. A detail of utmost importance is that Spades and Clubs are distinguishable when tabulating the permutations. Otherwise, we'd end up with a kind of a Bose-Einstein statistics kind of thing, where the total number is reduced by a factor of 2^n, which would throw off odds in an actual game play. For example, with a 4 card "double derangement", there are 4! permutations, but if suits were indistinguishable, then there are only 6.
Obviously, if the Spades and Clubs were dealt into 2 separate piles (you know, the separate but equal thing), and 1 card was drawn from each in parallel succession, then P² = Q exactly. But it gets tremendously more complicated if the suits were mixed up between those equal sized 2 piles.
Edit 4: In all the different simulations and direct computations I've done, for large n Q does seem to trend upwards towards 1/e², and doesn't get past it. I've had to run some pretty large trials to convince myself that it doesn't end up with a slightly lower value asymptotically. If it's important to you, maybe I can run a super large trial?
Edit 5: Okay, why don't you hold on while I run some large trials for n = 1000 or greater.
Edit 6: gianlino, using that terrifying-looking formula you've just posted, I plugged in 1000 in place of 13, and ended up with 0.367787 (which is the sq root). Which is pretty close to the results I've been getting at attempted 1M trial runs. So we do agree that (1/e²)(1 - 1/(2n)) is the trend, so now what is the question?
Edit 7: Okay, I understand the question now. I haven't quite figured that one out yet.
- 8 years ago
I will try to give a simplified answer as follows
The derangement ( no of ways miscalls) of 13 cards of spades 13!(1-1/1!+1/2!-1/3!+......(-1)^13/13!)out of a total of 13! ways the calls can be given. Hence P = (1-1/1!+1/2!-1/3!+.........-1/13!). Thus P= first 14 terms of 1/e series. Now the 15 th term is +ve and > 16 th term for 1/e series . This means 1/e is slightly greater than P. Now if we say P= 1/e then Q=P^2 is 1/e^2 but actually slightly less than 1/e^2 because the probabilities are fractions. However , to answer the question I feel Q has to be always equal to P^2 as the 2 fold derangement problem is actually two independent derangement problems combined which by the multiplication rule of probabilities should give Q=P^2. But you can always work out the full number of terms in either case and confirm the result which I believe would be the same.
@Giliano you are right. Now if you have identified that the first probability classical case or P= first fourteen terms of 1/e series and second probability is first 27 terms of 1/e^2 series we can easily see from the first five terms of each of these series P = 0.375 or P^2=0.141 where as Q = 0.073 for first five terms. So for a finite series out of an infinite series as is the case here Q is definitely less than P^2 higher terms being inconsequential under finite conditions as they impact little on the out come.
Source(s): Because 1/e^2= 1-2/1!+4/2!-8/3!+16/4!-32/5!+.... I did it for 5 terms got the direction. You have to do it for 14 terms for P and 27 terms for Q which are the club and club and spade suits. My contention is it would give the same result that is P^2>Q. Yes Q is the first 27 terms of the exponential series 1/e^2 and the difference between 1/e^2-Q as a function of n can be worked out depending on the value of n and putting it in the series is what I feel. It also matches with one of your earlier comments @scythian which is correct. It also clearly shows that upto n=3 ie n<=3 Q>P^2 whereas for n>3 it is P^2>Q - BrianLv 78 years ago
I'm just thinking out loud here. For a given pair, there is 50% chance that one
of the cards will be assigned one of the first 13 spots and the other card assigned
one of the second group of 13 spots. This would be business as usual. But there
would also be a 50% chance that both cards are either among the first 13 spots
or the second group of 13 spots. In this case the likelihood that one of the cards
would be in the correct spot would increase, and hence have the effect of
decreasing Q. So although the precise calculation of Q would be complicated,
I would expect that Q < P^2. Perhaps I've misinterpreted.
Edit: On second thought, if the two cards were both in either the first group
or second group of 13 then there would be no representation of that denomination
in the other group. So although the probability that one of the cards is in the
right spot for one group of 13 is doubled, it is reduced to nil for the other, the net
result being a wash. Can we then extend that result when we consider the
distribution of all the pairs between the two groups of 13? Probably, since the
ordering of the cards is random. I'm looking forward to Scythian's computer results.
Edit #2: I'm just trying to get my head around this. Is then the 'redundancy' of
double hits for one or more pairs the primary reason why Q < P^2 for a double
derangement?
- Anonymous8 years ago
Are you talking about the derangement problem?
This is to do with getting a set of numbers, cards, letters etc in the right order, or getting them all in the wrong place. Like putting letters in envelopes at random.
It has nothing to do with taking out all the spades, clubs or whatever.
The probability of getting every card, out of a set of n cards, in the wrong place is 1/e as n gets large.
Meaning that it is more likely than not that at least one card will be in the right place. (Pr = 1 - 1/e)
For n = 52 the Pr is certainly very close to 1/e.
- Anonymous5 years ago
they practice. you never drew a random card. they gave you one without you even noticing.