Probability of rolling a straight in Yahtzee
$begingroup$
I am trying to compute a very specific probability given a game of Yahtzee.
Here are the rules:
- There are 5 fair, 5-sided dice with equal probability of rolling each number.
- You have 3 rolls to obtain a straight [1,2,3,4,5].
- Per Yahtzee rules, you can choose which dice to reroll, in order to obtain a straight. (ie, if on roll 1 you get [1,2,3,3,4], you can keep [1,2,3,4] and reroll 1 dice)
- Your first roll must have a 3 of a kind (ie: [1,2,3,3,3] or [1,1,3,3,3]
- First rolls with 4 of a kind, 5 of a kind, or a perfect straight DO NOT count (ie: [3,3,3,3,4])
I am trying to write this in terms of mathematic notation. My intuition is telling me that this is a conditional probability, where
$P(C)$ = probability that we get a 3 of a kind on roll 1
$P(A)$ = probability that we roll a straight in 3 rolls
$P(A mid C)$ = probability that we roll a straight in 3 rolls, given we get a 3 of a kind on roll 1
$$P(A mid C) = frac{P(A {cap} C)}{P(C)}$$
I am worried my intuition is incorrect. I ran simulations (verified correct, 20000 trials) that say the probability of getting 3 of a kind on the first roll is roughly 20.06%, and the probability of getting a straight, given you get 3 of a kind on the first roll, is roughly 4.34%.
However, plugging in these values to my conditional probability results in:
$$P(A mid C) = frac{0.0434}{0.2006} = 0.2163$$
I am confused - isn't $P(A mid C)$ the probability of getting a straight in 3 rolls, given you roll a 3 of a kind on the first try?
Any guidance would be very helpful - I wrote code simulations first, and now need to write a general verification of my result (0.0434) by hand.
Thanks!
probability dice conditional-probability
$endgroup$
add a comment |
$begingroup$
I am trying to compute a very specific probability given a game of Yahtzee.
Here are the rules:
- There are 5 fair, 5-sided dice with equal probability of rolling each number.
- You have 3 rolls to obtain a straight [1,2,3,4,5].
- Per Yahtzee rules, you can choose which dice to reroll, in order to obtain a straight. (ie, if on roll 1 you get [1,2,3,3,4], you can keep [1,2,3,4] and reroll 1 dice)
- Your first roll must have a 3 of a kind (ie: [1,2,3,3,3] or [1,1,3,3,3]
- First rolls with 4 of a kind, 5 of a kind, or a perfect straight DO NOT count (ie: [3,3,3,3,4])
I am trying to write this in terms of mathematic notation. My intuition is telling me that this is a conditional probability, where
$P(C)$ = probability that we get a 3 of a kind on roll 1
$P(A)$ = probability that we roll a straight in 3 rolls
$P(A mid C)$ = probability that we roll a straight in 3 rolls, given we get a 3 of a kind on roll 1
$$P(A mid C) = frac{P(A {cap} C)}{P(C)}$$
I am worried my intuition is incorrect. I ran simulations (verified correct, 20000 trials) that say the probability of getting 3 of a kind on the first roll is roughly 20.06%, and the probability of getting a straight, given you get 3 of a kind on the first roll, is roughly 4.34%.
However, plugging in these values to my conditional probability results in:
$$P(A mid C) = frac{0.0434}{0.2006} = 0.2163$$
I am confused - isn't $P(A mid C)$ the probability of getting a straight in 3 rolls, given you roll a 3 of a kind on the first try?
Any guidance would be very helpful - I wrote code simulations first, and now need to write a general verification of my result (0.0434) by hand.
Thanks!
probability dice conditional-probability
$endgroup$
1
$begingroup$
I think you are confusing $P(A cap C)$ and $P(A | C)$ in the calculation after your simulation. The numerator ($P(A cap C)$) shouldn't be $0.0434$, but the number of times you got $A$ and $C$, divided by the total amount of simulations. The result should then be $0.0434$. For the mathematical calculation of this probability, you should be more precise on how we choose which dice to reroll after each round.
$endgroup$
– Tki Deneb
Dec 4 '18 at 9:19
$begingroup$
@TkiDeneb Thank you - this helped clear some stuff up. Is it right to say that this is question is asking a conditional probability? Do you think that testing for the probability of A (get a straight) given C (get 3 of a kind on first roll) is the right verbal terminology?
$endgroup$
– Megan Byers
Dec 4 '18 at 19:11
1
$begingroup$
That depends on what you want. If you are looking for the probability to get $3$ of a kind in the first roll and then a straight in any attempt, you want $P(A cap C)$. (Imagine placing yourself before the first roll.) If you are looking for the probability to get a straight after you have already gotten $3$ of a kind, then you want $P(A mid C)$. (Imagine placing yourself after a first roll that had $3$ of a kind.)
$endgroup$
– Tki Deneb
Dec 4 '18 at 19:56
add a comment |
$begingroup$
I am trying to compute a very specific probability given a game of Yahtzee.
Here are the rules:
- There are 5 fair, 5-sided dice with equal probability of rolling each number.
- You have 3 rolls to obtain a straight [1,2,3,4,5].
- Per Yahtzee rules, you can choose which dice to reroll, in order to obtain a straight. (ie, if on roll 1 you get [1,2,3,3,4], you can keep [1,2,3,4] and reroll 1 dice)
- Your first roll must have a 3 of a kind (ie: [1,2,3,3,3] or [1,1,3,3,3]
- First rolls with 4 of a kind, 5 of a kind, or a perfect straight DO NOT count (ie: [3,3,3,3,4])
I am trying to write this in terms of mathematic notation. My intuition is telling me that this is a conditional probability, where
$P(C)$ = probability that we get a 3 of a kind on roll 1
$P(A)$ = probability that we roll a straight in 3 rolls
$P(A mid C)$ = probability that we roll a straight in 3 rolls, given we get a 3 of a kind on roll 1
$$P(A mid C) = frac{P(A {cap} C)}{P(C)}$$
I am worried my intuition is incorrect. I ran simulations (verified correct, 20000 trials) that say the probability of getting 3 of a kind on the first roll is roughly 20.06%, and the probability of getting a straight, given you get 3 of a kind on the first roll, is roughly 4.34%.
However, plugging in these values to my conditional probability results in:
$$P(A mid C) = frac{0.0434}{0.2006} = 0.2163$$
I am confused - isn't $P(A mid C)$ the probability of getting a straight in 3 rolls, given you roll a 3 of a kind on the first try?
Any guidance would be very helpful - I wrote code simulations first, and now need to write a general verification of my result (0.0434) by hand.
Thanks!
probability dice conditional-probability
$endgroup$
I am trying to compute a very specific probability given a game of Yahtzee.
Here are the rules:
- There are 5 fair, 5-sided dice with equal probability of rolling each number.
- You have 3 rolls to obtain a straight [1,2,3,4,5].
- Per Yahtzee rules, you can choose which dice to reroll, in order to obtain a straight. (ie, if on roll 1 you get [1,2,3,3,4], you can keep [1,2,3,4] and reroll 1 dice)
- Your first roll must have a 3 of a kind (ie: [1,2,3,3,3] or [1,1,3,3,3]
- First rolls with 4 of a kind, 5 of a kind, or a perfect straight DO NOT count (ie: [3,3,3,3,4])
I am trying to write this in terms of mathematic notation. My intuition is telling me that this is a conditional probability, where
$P(C)$ = probability that we get a 3 of a kind on roll 1
$P(A)$ = probability that we roll a straight in 3 rolls
$P(A mid C)$ = probability that we roll a straight in 3 rolls, given we get a 3 of a kind on roll 1
$$P(A mid C) = frac{P(A {cap} C)}{P(C)}$$
I am worried my intuition is incorrect. I ran simulations (verified correct, 20000 trials) that say the probability of getting 3 of a kind on the first roll is roughly 20.06%, and the probability of getting a straight, given you get 3 of a kind on the first roll, is roughly 4.34%.
However, plugging in these values to my conditional probability results in:
$$P(A mid C) = frac{0.0434}{0.2006} = 0.2163$$
I am confused - isn't $P(A mid C)$ the probability of getting a straight in 3 rolls, given you roll a 3 of a kind on the first try?
Any guidance would be very helpful - I wrote code simulations first, and now need to write a general verification of my result (0.0434) by hand.
Thanks!
probability dice conditional-probability
probability dice conditional-probability
edited Dec 4 '18 at 9:15
Tki Deneb
32710
32710
asked Dec 4 '18 at 8:12
Megan ByersMegan Byers
2616
2616
1
$begingroup$
I think you are confusing $P(A cap C)$ and $P(A | C)$ in the calculation after your simulation. The numerator ($P(A cap C)$) shouldn't be $0.0434$, but the number of times you got $A$ and $C$, divided by the total amount of simulations. The result should then be $0.0434$. For the mathematical calculation of this probability, you should be more precise on how we choose which dice to reroll after each round.
$endgroup$
– Tki Deneb
Dec 4 '18 at 9:19
$begingroup$
@TkiDeneb Thank you - this helped clear some stuff up. Is it right to say that this is question is asking a conditional probability? Do you think that testing for the probability of A (get a straight) given C (get 3 of a kind on first roll) is the right verbal terminology?
$endgroup$
– Megan Byers
Dec 4 '18 at 19:11
1
$begingroup$
That depends on what you want. If you are looking for the probability to get $3$ of a kind in the first roll and then a straight in any attempt, you want $P(A cap C)$. (Imagine placing yourself before the first roll.) If you are looking for the probability to get a straight after you have already gotten $3$ of a kind, then you want $P(A mid C)$. (Imagine placing yourself after a first roll that had $3$ of a kind.)
$endgroup$
– Tki Deneb
Dec 4 '18 at 19:56
add a comment |
1
$begingroup$
I think you are confusing $P(A cap C)$ and $P(A | C)$ in the calculation after your simulation. The numerator ($P(A cap C)$) shouldn't be $0.0434$, but the number of times you got $A$ and $C$, divided by the total amount of simulations. The result should then be $0.0434$. For the mathematical calculation of this probability, you should be more precise on how we choose which dice to reroll after each round.
$endgroup$
– Tki Deneb
Dec 4 '18 at 9:19
$begingroup$
@TkiDeneb Thank you - this helped clear some stuff up. Is it right to say that this is question is asking a conditional probability? Do you think that testing for the probability of A (get a straight) given C (get 3 of a kind on first roll) is the right verbal terminology?
$endgroup$
– Megan Byers
Dec 4 '18 at 19:11
1
$begingroup$
That depends on what you want. If you are looking for the probability to get $3$ of a kind in the first roll and then a straight in any attempt, you want $P(A cap C)$. (Imagine placing yourself before the first roll.) If you are looking for the probability to get a straight after you have already gotten $3$ of a kind, then you want $P(A mid C)$. (Imagine placing yourself after a first roll that had $3$ of a kind.)
$endgroup$
– Tki Deneb
Dec 4 '18 at 19:56
1
1
$begingroup$
I think you are confusing $P(A cap C)$ and $P(A | C)$ in the calculation after your simulation. The numerator ($P(A cap C)$) shouldn't be $0.0434$, but the number of times you got $A$ and $C$, divided by the total amount of simulations. The result should then be $0.0434$. For the mathematical calculation of this probability, you should be more precise on how we choose which dice to reroll after each round.
$endgroup$
– Tki Deneb
Dec 4 '18 at 9:19
$begingroup$
I think you are confusing $P(A cap C)$ and $P(A | C)$ in the calculation after your simulation. The numerator ($P(A cap C)$) shouldn't be $0.0434$, but the number of times you got $A$ and $C$, divided by the total amount of simulations. The result should then be $0.0434$. For the mathematical calculation of this probability, you should be more precise on how we choose which dice to reroll after each round.
$endgroup$
– Tki Deneb
Dec 4 '18 at 9:19
$begingroup$
@TkiDeneb Thank you - this helped clear some stuff up. Is it right to say that this is question is asking a conditional probability? Do you think that testing for the probability of A (get a straight) given C (get 3 of a kind on first roll) is the right verbal terminology?
$endgroup$
– Megan Byers
Dec 4 '18 at 19:11
$begingroup$
@TkiDeneb Thank you - this helped clear some stuff up. Is it right to say that this is question is asking a conditional probability? Do you think that testing for the probability of A (get a straight) given C (get 3 of a kind on first roll) is the right verbal terminology?
$endgroup$
– Megan Byers
Dec 4 '18 at 19:11
1
1
$begingroup$
That depends on what you want. If you are looking for the probability to get $3$ of a kind in the first roll and then a straight in any attempt, you want $P(A cap C)$. (Imagine placing yourself before the first roll.) If you are looking for the probability to get a straight after you have already gotten $3$ of a kind, then you want $P(A mid C)$. (Imagine placing yourself after a first roll that had $3$ of a kind.)
$endgroup$
– Tki Deneb
Dec 4 '18 at 19:56
$begingroup$
That depends on what you want. If you are looking for the probability to get $3$ of a kind in the first roll and then a straight in any attempt, you want $P(A cap C)$. (Imagine placing yourself before the first roll.) If you are looking for the probability to get a straight after you have already gotten $3$ of a kind, then you want $P(A mid C)$. (Imagine placing yourself after a first roll that had $3$ of a kind.)
$endgroup$
– Tki Deneb
Dec 4 '18 at 19:56
add a comment |
0
active
oldest
votes
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%2f3025274%2fprobability-of-rolling-a-straight-in-yahtzee%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
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%2f3025274%2fprobability-of-rolling-a-straight-in-yahtzee%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
1
$begingroup$
I think you are confusing $P(A cap C)$ and $P(A | C)$ in the calculation after your simulation. The numerator ($P(A cap C)$) shouldn't be $0.0434$, but the number of times you got $A$ and $C$, divided by the total amount of simulations. The result should then be $0.0434$. For the mathematical calculation of this probability, you should be more precise on how we choose which dice to reroll after each round.
$endgroup$
– Tki Deneb
Dec 4 '18 at 9:19
$begingroup$
@TkiDeneb Thank you - this helped clear some stuff up. Is it right to say that this is question is asking a conditional probability? Do you think that testing for the probability of A (get a straight) given C (get 3 of a kind on first roll) is the right verbal terminology?
$endgroup$
– Megan Byers
Dec 4 '18 at 19:11
1
$begingroup$
That depends on what you want. If you are looking for the probability to get $3$ of a kind in the first roll and then a straight in any attempt, you want $P(A cap C)$. (Imagine placing yourself before the first roll.) If you are looking for the probability to get a straight after you have already gotten $3$ of a kind, then you want $P(A mid C)$. (Imagine placing yourself after a first roll that had $3$ of a kind.)
$endgroup$
– Tki Deneb
Dec 4 '18 at 19:56