First to flip N heads wins?
$begingroup$
Everyone knows the classic problem of A and B playing a game, with the first to flip heads winning the game. I understand that we can easily solve for the probability of A winning if she flips first, which is $2/3$, since $p_A=p_A/2 + (1-p_A)/2$.
Now what if I generalise the problem to $N$ heads, such that the first to flip a total of $N$ heads wins? I’m unsure of how to construct the recursion relation here. My gut tells me the probabilities of either player winning if $Nrightarrowinfty$ is $1/2$. Could someone guide me on this? Thank you!
probability probability-theory recurrence-relations
$endgroup$
add a comment |
$begingroup$
Everyone knows the classic problem of A and B playing a game, with the first to flip heads winning the game. I understand that we can easily solve for the probability of A winning if she flips first, which is $2/3$, since $p_A=p_A/2 + (1-p_A)/2$.
Now what if I generalise the problem to $N$ heads, such that the first to flip a total of $N$ heads wins? I’m unsure of how to construct the recursion relation here. My gut tells me the probabilities of either player winning if $Nrightarrowinfty$ is $1/2$. Could someone guide me on this? Thank you!
probability probability-theory recurrence-relations
$endgroup$
add a comment |
$begingroup$
Everyone knows the classic problem of A and B playing a game, with the first to flip heads winning the game. I understand that we can easily solve for the probability of A winning if she flips first, which is $2/3$, since $p_A=p_A/2 + (1-p_A)/2$.
Now what if I generalise the problem to $N$ heads, such that the first to flip a total of $N$ heads wins? I’m unsure of how to construct the recursion relation here. My gut tells me the probabilities of either player winning if $Nrightarrowinfty$ is $1/2$. Could someone guide me on this? Thank you!
probability probability-theory recurrence-relations
$endgroup$
Everyone knows the classic problem of A and B playing a game, with the first to flip heads winning the game. I understand that we can easily solve for the probability of A winning if she flips first, which is $2/3$, since $p_A=p_A/2 + (1-p_A)/2$.
Now what if I generalise the problem to $N$ heads, such that the first to flip a total of $N$ heads wins? I’m unsure of how to construct the recursion relation here. My gut tells me the probabilities of either player winning if $Nrightarrowinfty$ is $1/2$. Could someone guide me on this? Thank you!
probability probability-theory recurrence-relations
probability probability-theory recurrence-relations
edited Dec 18 '18 at 6:09
user107224
asked Dec 18 '18 at 1:36
user107224user107224
463314
463314
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
$begingroup$
We can solve this question through states. Suppose $p_{i,j}$ denotes the probability that $A$ wins if he starts first, with $i$ heads, and $B$ starts with $j$ heads. Note that $p_{N,j}=1$ and $p_{i,N}$ for $i<N$ is $0$. (Here, I will let $p_{N,N}=1$ for convenience.) Now, consider the first turn when at least one person flips a head. Clearly, the probability that it is only $A$, only $B$, or both is equal, so we have the recurrence $p_{i,j}=frac{1}{3}left(p_{i+1,j}+p_{i,j+1}+p_{i+1,j+1}right)$. This is very similar to Pascal's triangle, and the closed form for this can be computed explicitly through finite differences.
$endgroup$
add a comment |
$begingroup$
Use the Negative Binomial Distribution. The probably of $X$ number of trials to obtain $N$ successes is
$f(x;N,p_A)=binom{x-1}{N-1}p_A^N(1-p_A)^{x-N}$, for $x=N,N+1,...$
Since this is likely a fair coin, $f(x;N,0.5)=binom{x-1}{N-1}times 0.5^x$
$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%2f3044685%2ffirst-to-flip-n-heads-wins%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
$begingroup$
We can solve this question through states. Suppose $p_{i,j}$ denotes the probability that $A$ wins if he starts first, with $i$ heads, and $B$ starts with $j$ heads. Note that $p_{N,j}=1$ and $p_{i,N}$ for $i<N$ is $0$. (Here, I will let $p_{N,N}=1$ for convenience.) Now, consider the first turn when at least one person flips a head. Clearly, the probability that it is only $A$, only $B$, or both is equal, so we have the recurrence $p_{i,j}=frac{1}{3}left(p_{i+1,j}+p_{i,j+1}+p_{i+1,j+1}right)$. This is very similar to Pascal's triangle, and the closed form for this can be computed explicitly through finite differences.
$endgroup$
add a comment |
$begingroup$
We can solve this question through states. Suppose $p_{i,j}$ denotes the probability that $A$ wins if he starts first, with $i$ heads, and $B$ starts with $j$ heads. Note that $p_{N,j}=1$ and $p_{i,N}$ for $i<N$ is $0$. (Here, I will let $p_{N,N}=1$ for convenience.) Now, consider the first turn when at least one person flips a head. Clearly, the probability that it is only $A$, only $B$, or both is equal, so we have the recurrence $p_{i,j}=frac{1}{3}left(p_{i+1,j}+p_{i,j+1}+p_{i+1,j+1}right)$. This is very similar to Pascal's triangle, and the closed form for this can be computed explicitly through finite differences.
$endgroup$
add a comment |
$begingroup$
We can solve this question through states. Suppose $p_{i,j}$ denotes the probability that $A$ wins if he starts first, with $i$ heads, and $B$ starts with $j$ heads. Note that $p_{N,j}=1$ and $p_{i,N}$ for $i<N$ is $0$. (Here, I will let $p_{N,N}=1$ for convenience.) Now, consider the first turn when at least one person flips a head. Clearly, the probability that it is only $A$, only $B$, or both is equal, so we have the recurrence $p_{i,j}=frac{1}{3}left(p_{i+1,j}+p_{i,j+1}+p_{i+1,j+1}right)$. This is very similar to Pascal's triangle, and the closed form for this can be computed explicitly through finite differences.
$endgroup$
We can solve this question through states. Suppose $p_{i,j}$ denotes the probability that $A$ wins if he starts first, with $i$ heads, and $B$ starts with $j$ heads. Note that $p_{N,j}=1$ and $p_{i,N}$ for $i<N$ is $0$. (Here, I will let $p_{N,N}=1$ for convenience.) Now, consider the first turn when at least one person flips a head. Clearly, the probability that it is only $A$, only $B$, or both is equal, so we have the recurrence $p_{i,j}=frac{1}{3}left(p_{i+1,j}+p_{i,j+1}+p_{i+1,j+1}right)$. This is very similar to Pascal's triangle, and the closed form for this can be computed explicitly through finite differences.
answered Dec 18 '18 at 2:53
william122william122
54912
54912
add a comment |
add a comment |
$begingroup$
Use the Negative Binomial Distribution. The probably of $X$ number of trials to obtain $N$ successes is
$f(x;N,p_A)=binom{x-1}{N-1}p_A^N(1-p_A)^{x-N}$, for $x=N,N+1,...$
Since this is likely a fair coin, $f(x;N,0.5)=binom{x-1}{N-1}times 0.5^x$
$endgroup$
add a comment |
$begingroup$
Use the Negative Binomial Distribution. The probably of $X$ number of trials to obtain $N$ successes is
$f(x;N,p_A)=binom{x-1}{N-1}p_A^N(1-p_A)^{x-N}$, for $x=N,N+1,...$
Since this is likely a fair coin, $f(x;N,0.5)=binom{x-1}{N-1}times 0.5^x$
$endgroup$
add a comment |
$begingroup$
Use the Negative Binomial Distribution. The probably of $X$ number of trials to obtain $N$ successes is
$f(x;N,p_A)=binom{x-1}{N-1}p_A^N(1-p_A)^{x-N}$, for $x=N,N+1,...$
Since this is likely a fair coin, $f(x;N,0.5)=binom{x-1}{N-1}times 0.5^x$
$endgroup$
Use the Negative Binomial Distribution. The probably of $X$ number of trials to obtain $N$ successes is
$f(x;N,p_A)=binom{x-1}{N-1}p_A^N(1-p_A)^{x-N}$, for $x=N,N+1,...$
Since this is likely a fair coin, $f(x;N,0.5)=binom{x-1}{N-1}times 0.5^x$
answered Dec 18 '18 at 2:52
Steve SchroederSteve Schroeder
1759
1759
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%2f3044685%2ffirst-to-flip-n-heads-wins%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