Estimate number of cards needed to be drawn from deck before full house
$begingroup$
Imagine we have a well-shuffled deck of cards and we keep drawing cards until there is at least one full house in the drawn cards. How many cards will we draw on average? I would be interested in both the exact solution (which is something around 12) but, more importantly, in a good quick way of estimating this value.
probability puzzle card-games
$endgroup$
|
show 2 more comments
$begingroup$
Imagine we have a well-shuffled deck of cards and we keep drawing cards until there is at least one full house in the drawn cards. How many cards will we draw on average? I would be interested in both the exact solution (which is something around 12) but, more importantly, in a good quick way of estimating this value.
probability puzzle card-games
$endgroup$
$begingroup$
If this is too hard, I would be interested in the same question but for other simple poker hands like a single pair or a three-of-a-kind
$endgroup$
– user132290
Dec 14 '18 at 23:48
$begingroup$
And the value of 12 quoted above comes from my computer simulations.
$endgroup$
– user132290
Dec 15 '18 at 12:13
$begingroup$
My computer simulation gives an average of $13.9$ with a standard deviation of $3.7$.
$endgroup$
– Jens
Dec 15 '18 at 13:13
$begingroup$
@Jens Indeed. The exact expectation I got is $13.893157dots$, which is amazingly close to your simulation result. The interesting question is how to get it with a back of the envelope calculation (I just honestly wrote the combinatorial sum and told my PC to compute it)..
$endgroup$
– fedja
Dec 15 '18 at 17:39
$begingroup$
How do you guys simulate this? My simulation gives 13.55 after 1 million runs. Do you also actually simulate a deck of cards, or do you calculate the probability somehow?
$endgroup$
– user132290
Dec 17 '18 at 21:51
|
show 2 more comments
$begingroup$
Imagine we have a well-shuffled deck of cards and we keep drawing cards until there is at least one full house in the drawn cards. How many cards will we draw on average? I would be interested in both the exact solution (which is something around 12) but, more importantly, in a good quick way of estimating this value.
probability puzzle card-games
$endgroup$
Imagine we have a well-shuffled deck of cards and we keep drawing cards until there is at least one full house in the drawn cards. How many cards will we draw on average? I would be interested in both the exact solution (which is something around 12) but, more importantly, in a good quick way of estimating this value.
probability puzzle card-games
probability puzzle card-games
asked Dec 14 '18 at 23:46
user132290user132290
536
536
$begingroup$
If this is too hard, I would be interested in the same question but for other simple poker hands like a single pair or a three-of-a-kind
$endgroup$
– user132290
Dec 14 '18 at 23:48
$begingroup$
And the value of 12 quoted above comes from my computer simulations.
$endgroup$
– user132290
Dec 15 '18 at 12:13
$begingroup$
My computer simulation gives an average of $13.9$ with a standard deviation of $3.7$.
$endgroup$
– Jens
Dec 15 '18 at 13:13
$begingroup$
@Jens Indeed. The exact expectation I got is $13.893157dots$, which is amazingly close to your simulation result. The interesting question is how to get it with a back of the envelope calculation (I just honestly wrote the combinatorial sum and told my PC to compute it)..
$endgroup$
– fedja
Dec 15 '18 at 17:39
$begingroup$
How do you guys simulate this? My simulation gives 13.55 after 1 million runs. Do you also actually simulate a deck of cards, or do you calculate the probability somehow?
$endgroup$
– user132290
Dec 17 '18 at 21:51
|
show 2 more comments
$begingroup$
If this is too hard, I would be interested in the same question but for other simple poker hands like a single pair or a three-of-a-kind
$endgroup$
– user132290
Dec 14 '18 at 23:48
$begingroup$
And the value of 12 quoted above comes from my computer simulations.
$endgroup$
– user132290
Dec 15 '18 at 12:13
$begingroup$
My computer simulation gives an average of $13.9$ with a standard deviation of $3.7$.
$endgroup$
– Jens
Dec 15 '18 at 13:13
$begingroup$
@Jens Indeed. The exact expectation I got is $13.893157dots$, which is amazingly close to your simulation result. The interesting question is how to get it with a back of the envelope calculation (I just honestly wrote the combinatorial sum and told my PC to compute it)..
$endgroup$
– fedja
Dec 15 '18 at 17:39
$begingroup$
How do you guys simulate this? My simulation gives 13.55 after 1 million runs. Do you also actually simulate a deck of cards, or do you calculate the probability somehow?
$endgroup$
– user132290
Dec 17 '18 at 21:51
$begingroup$
If this is too hard, I would be interested in the same question but for other simple poker hands like a single pair or a three-of-a-kind
$endgroup$
– user132290
Dec 14 '18 at 23:48
$begingroup$
If this is too hard, I would be interested in the same question but for other simple poker hands like a single pair or a three-of-a-kind
$endgroup$
– user132290
Dec 14 '18 at 23:48
$begingroup$
And the value of 12 quoted above comes from my computer simulations.
$endgroup$
– user132290
Dec 15 '18 at 12:13
$begingroup$
And the value of 12 quoted above comes from my computer simulations.
$endgroup$
– user132290
Dec 15 '18 at 12:13
$begingroup$
My computer simulation gives an average of $13.9$ with a standard deviation of $3.7$.
$endgroup$
– Jens
Dec 15 '18 at 13:13
$begingroup$
My computer simulation gives an average of $13.9$ with a standard deviation of $3.7$.
$endgroup$
– Jens
Dec 15 '18 at 13:13
$begingroup$
@Jens Indeed. The exact expectation I got is $13.893157dots$, which is amazingly close to your simulation result. The interesting question is how to get it with a back of the envelope calculation (I just honestly wrote the combinatorial sum and told my PC to compute it)..
$endgroup$
– fedja
Dec 15 '18 at 17:39
$begingroup$
@Jens Indeed. The exact expectation I got is $13.893157dots$, which is amazingly close to your simulation result. The interesting question is how to get it with a back of the envelope calculation (I just honestly wrote the combinatorial sum and told my PC to compute it)..
$endgroup$
– fedja
Dec 15 '18 at 17:39
$begingroup$
How do you guys simulate this? My simulation gives 13.55 after 1 million runs. Do you also actually simulate a deck of cards, or do you calculate the probability somehow?
$endgroup$
– user132290
Dec 17 '18 at 21:51
$begingroup$
How do you guys simulate this? My simulation gives 13.55 after 1 million runs. Do you also actually simulate a deck of cards, or do you calculate the probability somehow?
$endgroup$
– user132290
Dec 17 '18 at 21:51
|
show 2 more comments
1 Answer
1
active
oldest
votes
$begingroup$
A simpler question to address is, having drawn n cards, what is the probability of having a full house. Calculating this is equivalent to counting the number of possible hands with a full house, and then dividing my total possible hands.
To get this, we can count the invalid hands through casework, and then subtract this from the total possible hands:
Case 1 - no doubles/ triples:
$$ 4^n cdot binom{13}{n} $$
Case 2 - a triple/quadruple:
$$ 13 cdot left(4 cdot 4^{n-3} binom{12}{n-3} + 4^{n-4} binom{12}{n-4}right) $$
Case 3 - having k doubles:
$$ binom{13}{k} binom{13-k}{n-2k} binom{4}{2}^k 4^{n-2k} $$
Thus, the chance that we get a straight flush drawing n cards is:
$$ frac{binom{52}{n}- left( 4^n binom{13}{n} + 13 cdot left(4 cdot 4^{n-3} binom{12}{n-3} + 4^{n-4} binom{12}{n-4}right) + sum_{k=1}^n binom{13}{k} binom{13-k}{n-2k} binom{4}{2}^k 4^{n-2k} right)}{binom{52}{n}}$$
Putting this into WolframAlpha, we get these values:
Now, this doesn't account from when it happens, only how likely it is to happen after a certain number of draws. To get a closer number on that, you'd have to do some stricter case work, involving ordering.
Essentially, just calculate the number of ordered decks which will has a royal flush at exactly the $n$-th card.
Let $f(n)$ be the number of orderings of $n$ cards containing a royal flush. Using the methods of before, but not diving by $binom{52}{n}$ we get $f(n)$. From here, we can calculate exactly how many decks get a royal flush in exactly the $n$-th draw. We shall denote this number as g(n).
$$ g(n) = f(n)(52-n)! - g(n-1) $$
Then, simply take the sum:
$$ sum_{n=1}^{52} frac{n cdot g(n)}{52!} $$
Which, unfortunately, I am too lazy to evaluate... consider it an exercise :)
$endgroup$
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
return StackExchange.using("mathjaxEditing", function () {
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
});
});
}, "mathjax-editing");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "69"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3040015%2festimate-number-of-cards-needed-to-be-drawn-from-deck-before-full-house%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
$begingroup$
A simpler question to address is, having drawn n cards, what is the probability of having a full house. Calculating this is equivalent to counting the number of possible hands with a full house, and then dividing my total possible hands.
To get this, we can count the invalid hands through casework, and then subtract this from the total possible hands:
Case 1 - no doubles/ triples:
$$ 4^n cdot binom{13}{n} $$
Case 2 - a triple/quadruple:
$$ 13 cdot left(4 cdot 4^{n-3} binom{12}{n-3} + 4^{n-4} binom{12}{n-4}right) $$
Case 3 - having k doubles:
$$ binom{13}{k} binom{13-k}{n-2k} binom{4}{2}^k 4^{n-2k} $$
Thus, the chance that we get a straight flush drawing n cards is:
$$ frac{binom{52}{n}- left( 4^n binom{13}{n} + 13 cdot left(4 cdot 4^{n-3} binom{12}{n-3} + 4^{n-4} binom{12}{n-4}right) + sum_{k=1}^n binom{13}{k} binom{13-k}{n-2k} binom{4}{2}^k 4^{n-2k} right)}{binom{52}{n}}$$
Putting this into WolframAlpha, we get these values:
Now, this doesn't account from when it happens, only how likely it is to happen after a certain number of draws. To get a closer number on that, you'd have to do some stricter case work, involving ordering.
Essentially, just calculate the number of ordered decks which will has a royal flush at exactly the $n$-th card.
Let $f(n)$ be the number of orderings of $n$ cards containing a royal flush. Using the methods of before, but not diving by $binom{52}{n}$ we get $f(n)$. From here, we can calculate exactly how many decks get a royal flush in exactly the $n$-th draw. We shall denote this number as g(n).
$$ g(n) = f(n)(52-n)! - g(n-1) $$
Then, simply take the sum:
$$ sum_{n=1}^{52} frac{n cdot g(n)}{52!} $$
Which, unfortunately, I am too lazy to evaluate... consider it an exercise :)
$endgroup$
add a comment |
$begingroup$
A simpler question to address is, having drawn n cards, what is the probability of having a full house. Calculating this is equivalent to counting the number of possible hands with a full house, and then dividing my total possible hands.
To get this, we can count the invalid hands through casework, and then subtract this from the total possible hands:
Case 1 - no doubles/ triples:
$$ 4^n cdot binom{13}{n} $$
Case 2 - a triple/quadruple:
$$ 13 cdot left(4 cdot 4^{n-3} binom{12}{n-3} + 4^{n-4} binom{12}{n-4}right) $$
Case 3 - having k doubles:
$$ binom{13}{k} binom{13-k}{n-2k} binom{4}{2}^k 4^{n-2k} $$
Thus, the chance that we get a straight flush drawing n cards is:
$$ frac{binom{52}{n}- left( 4^n binom{13}{n} + 13 cdot left(4 cdot 4^{n-3} binom{12}{n-3} + 4^{n-4} binom{12}{n-4}right) + sum_{k=1}^n binom{13}{k} binom{13-k}{n-2k} binom{4}{2}^k 4^{n-2k} right)}{binom{52}{n}}$$
Putting this into WolframAlpha, we get these values:
Now, this doesn't account from when it happens, only how likely it is to happen after a certain number of draws. To get a closer number on that, you'd have to do some stricter case work, involving ordering.
Essentially, just calculate the number of ordered decks which will has a royal flush at exactly the $n$-th card.
Let $f(n)$ be the number of orderings of $n$ cards containing a royal flush. Using the methods of before, but not diving by $binom{52}{n}$ we get $f(n)$. From here, we can calculate exactly how many decks get a royal flush in exactly the $n$-th draw. We shall denote this number as g(n).
$$ g(n) = f(n)(52-n)! - g(n-1) $$
Then, simply take the sum:
$$ sum_{n=1}^{52} frac{n cdot g(n)}{52!} $$
Which, unfortunately, I am too lazy to evaluate... consider it an exercise :)
$endgroup$
add a comment |
$begingroup$
A simpler question to address is, having drawn n cards, what is the probability of having a full house. Calculating this is equivalent to counting the number of possible hands with a full house, and then dividing my total possible hands.
To get this, we can count the invalid hands through casework, and then subtract this from the total possible hands:
Case 1 - no doubles/ triples:
$$ 4^n cdot binom{13}{n} $$
Case 2 - a triple/quadruple:
$$ 13 cdot left(4 cdot 4^{n-3} binom{12}{n-3} + 4^{n-4} binom{12}{n-4}right) $$
Case 3 - having k doubles:
$$ binom{13}{k} binom{13-k}{n-2k} binom{4}{2}^k 4^{n-2k} $$
Thus, the chance that we get a straight flush drawing n cards is:
$$ frac{binom{52}{n}- left( 4^n binom{13}{n} + 13 cdot left(4 cdot 4^{n-3} binom{12}{n-3} + 4^{n-4} binom{12}{n-4}right) + sum_{k=1}^n binom{13}{k} binom{13-k}{n-2k} binom{4}{2}^k 4^{n-2k} right)}{binom{52}{n}}$$
Putting this into WolframAlpha, we get these values:
Now, this doesn't account from when it happens, only how likely it is to happen after a certain number of draws. To get a closer number on that, you'd have to do some stricter case work, involving ordering.
Essentially, just calculate the number of ordered decks which will has a royal flush at exactly the $n$-th card.
Let $f(n)$ be the number of orderings of $n$ cards containing a royal flush. Using the methods of before, but not diving by $binom{52}{n}$ we get $f(n)$. From here, we can calculate exactly how many decks get a royal flush in exactly the $n$-th draw. We shall denote this number as g(n).
$$ g(n) = f(n)(52-n)! - g(n-1) $$
Then, simply take the sum:
$$ sum_{n=1}^{52} frac{n cdot g(n)}{52!} $$
Which, unfortunately, I am too lazy to evaluate... consider it an exercise :)
$endgroup$
A simpler question to address is, having drawn n cards, what is the probability of having a full house. Calculating this is equivalent to counting the number of possible hands with a full house, and then dividing my total possible hands.
To get this, we can count the invalid hands through casework, and then subtract this from the total possible hands:
Case 1 - no doubles/ triples:
$$ 4^n cdot binom{13}{n} $$
Case 2 - a triple/quadruple:
$$ 13 cdot left(4 cdot 4^{n-3} binom{12}{n-3} + 4^{n-4} binom{12}{n-4}right) $$
Case 3 - having k doubles:
$$ binom{13}{k} binom{13-k}{n-2k} binom{4}{2}^k 4^{n-2k} $$
Thus, the chance that we get a straight flush drawing n cards is:
$$ frac{binom{52}{n}- left( 4^n binom{13}{n} + 13 cdot left(4 cdot 4^{n-3} binom{12}{n-3} + 4^{n-4} binom{12}{n-4}right) + sum_{k=1}^n binom{13}{k} binom{13-k}{n-2k} binom{4}{2}^k 4^{n-2k} right)}{binom{52}{n}}$$
Putting this into WolframAlpha, we get these values:
Now, this doesn't account from when it happens, only how likely it is to happen after a certain number of draws. To get a closer number on that, you'd have to do some stricter case work, involving ordering.
Essentially, just calculate the number of ordered decks which will has a royal flush at exactly the $n$-th card.
Let $f(n)$ be the number of orderings of $n$ cards containing a royal flush. Using the methods of before, but not diving by $binom{52}{n}$ we get $f(n)$. From here, we can calculate exactly how many decks get a royal flush in exactly the $n$-th draw. We shall denote this number as g(n).
$$ g(n) = f(n)(52-n)! - g(n-1) $$
Then, simply take the sum:
$$ sum_{n=1}^{52} frac{n cdot g(n)}{52!} $$
Which, unfortunately, I am too lazy to evaluate... consider it an exercise :)
answered Jan 4 at 4:29
Zachary HunterZachary Hunter
57611
57611
add a comment |
add a comment |
Thanks for contributing an answer to Mathematics Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
Use MathJax to format equations. MathJax reference.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3040015%2festimate-number-of-cards-needed-to-be-drawn-from-deck-before-full-house%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
$begingroup$
If this is too hard, I would be interested in the same question but for other simple poker hands like a single pair or a three-of-a-kind
$endgroup$
– user132290
Dec 14 '18 at 23:48
$begingroup$
And the value of 12 quoted above comes from my computer simulations.
$endgroup$
– user132290
Dec 15 '18 at 12:13
$begingroup$
My computer simulation gives an average of $13.9$ with a standard deviation of $3.7$.
$endgroup$
– Jens
Dec 15 '18 at 13:13
$begingroup$
@Jens Indeed. The exact expectation I got is $13.893157dots$, which is amazingly close to your simulation result. The interesting question is how to get it with a back of the envelope calculation (I just honestly wrote the combinatorial sum and told my PC to compute it)..
$endgroup$
– fedja
Dec 15 '18 at 17:39
$begingroup$
How do you guys simulate this? My simulation gives 13.55 after 1 million runs. Do you also actually simulate a deck of cards, or do you calculate the probability somehow?
$endgroup$
– user132290
Dec 17 '18 at 21:51