Coin flipping and Bayes' theorem… but where does binomial theorem come in?Bayes' Law and Coin Flipshi, for...
Capacitor electron flow
Why didn’t Eve recognize the little cockroach as a living organism?
How to split IPA spelling into syllables
Why do Radio Buttons not fill the entire outer circle?
"Oh no!" in Latin
Is divisi notation needed for brass or woodwind in an orchestra?
Highest stage count that are used one right after the other?
How can I, as DM, avoid the Conga Line of Death occurring when implementing some form of flanking rule?
Did I make a mistake by ccing email to boss to others?
A seasonal riddle
How to test the sharpness of a knife?
Why does the frost depth increase when the surface temperature warms up?
Why is participating in the European Parliamentary elections used as a threat?
Is this saw blade faulty?
Reason why a kingside attack is not justified
Weird lines in Microsoft Word
Can a Knock spell open the door to Mordenkainen's Magnificent Mansion?
How to get directions in deep space?
Strange behavior in TikZ draw command
How can a new country break out from a developed country without war?
Magnifying glass in hyperbolic space
Derivative of an interpolated function
Hashing password to increase entropy
Reasons for having MCU pin-states default to pull-up/down out of reset
Coin flipping and Bayes' theorem… but where does binomial theorem come in?
Bayes' Law and Coin Flipshi, for an independent event, like flipping a fair coin does Pr(Amid B) always equal to Pr(Bmid A)?Bayes factor for fair and biased coininterpretting prior and posteriorBayes Rule in 2 Fair and 1 Biased coinCoin toss how fair is the coin?If a coin toss is observed to come up as heads many times, does that affect the probability of the next toss?Using Bayes Theorem to calculate the probability of a coin being biased given a specific test resultIs it best to approach solving this question using Binomial Distribution and Conditional Probability in the following way?Bayes Theorem to find probability of getting a sum given a coin toss
$begingroup$
Consider the following question:
You are face with two identical coins. One is fair, and the
other comes up Heads 90% of the time. You flip coins, which
results in THHHTHHHTH (seven heads, three tails). What is the probability that
the coin you’ve been flipping is the unfair one?
Is it safe to assume order is irrelevant and to look for probability of seven heads and three tails with binomial distribution:
Let F be event that coin is fair, B be event that coin is biased, T be the observed toss. Then, using Bayes':
$$
P(B|T)=frac{P(T|B)times P(B)} {P(T)}
$$
$
P(T|B)=binom{10}{7} times 0.9^7times 0.1^3 =0.0574
$
$
P(B)=0.5
$
$
P(T)=P(T|F)cdot P(F) + P(T|B)cdot P(B) = 0.1172
$
Thus the probability that the coin flipped is biased is 24.5%
Is this reasoning correct?
probability conditional-probability binomial-distribution bayes-theorem
$endgroup$
add a comment |
$begingroup$
Consider the following question:
You are face with two identical coins. One is fair, and the
other comes up Heads 90% of the time. You flip coins, which
results in THHHTHHHTH (seven heads, three tails). What is the probability that
the coin you’ve been flipping is the unfair one?
Is it safe to assume order is irrelevant and to look for probability of seven heads and three tails with binomial distribution:
Let F be event that coin is fair, B be event that coin is biased, T be the observed toss. Then, using Bayes':
$$
P(B|T)=frac{P(T|B)times P(B)} {P(T)}
$$
$
P(T|B)=binom{10}{7} times 0.9^7times 0.1^3 =0.0574
$
$
P(B)=0.5
$
$
P(T)=P(T|F)cdot P(F) + P(T|B)cdot P(B) = 0.1172
$
Thus the probability that the coin flipped is biased is 24.5%
Is this reasoning correct?
probability conditional-probability binomial-distribution bayes-theorem
$endgroup$
$begingroup$
I get $P(T) = 0.087$. Are you certain that you remembered to multiply by both $P(F) = 0.5$ and $P(B) = 0.5$?
$endgroup$
– Arthur
Mar 12 at 14:13
add a comment |
$begingroup$
Consider the following question:
You are face with two identical coins. One is fair, and the
other comes up Heads 90% of the time. You flip coins, which
results in THHHTHHHTH (seven heads, three tails). What is the probability that
the coin you’ve been flipping is the unfair one?
Is it safe to assume order is irrelevant and to look for probability of seven heads and three tails with binomial distribution:
Let F be event that coin is fair, B be event that coin is biased, T be the observed toss. Then, using Bayes':
$$
P(B|T)=frac{P(T|B)times P(B)} {P(T)}
$$
$
P(T|B)=binom{10}{7} times 0.9^7times 0.1^3 =0.0574
$
$
P(B)=0.5
$
$
P(T)=P(T|F)cdot P(F) + P(T|B)cdot P(B) = 0.1172
$
Thus the probability that the coin flipped is biased is 24.5%
Is this reasoning correct?
probability conditional-probability binomial-distribution bayes-theorem
$endgroup$
Consider the following question:
You are face with two identical coins. One is fair, and the
other comes up Heads 90% of the time. You flip coins, which
results in THHHTHHHTH (seven heads, three tails). What is the probability that
the coin you’ve been flipping is the unfair one?
Is it safe to assume order is irrelevant and to look for probability of seven heads and three tails with binomial distribution:
Let F be event that coin is fair, B be event that coin is biased, T be the observed toss. Then, using Bayes':
$$
P(B|T)=frac{P(T|B)times P(B)} {P(T)}
$$
$
P(T|B)=binom{10}{7} times 0.9^7times 0.1^3 =0.0574
$
$
P(B)=0.5
$
$
P(T)=P(T|F)cdot P(F) + P(T|B)cdot P(B) = 0.1172
$
Thus the probability that the coin flipped is biased is 24.5%
Is this reasoning correct?
probability conditional-probability binomial-distribution bayes-theorem
probability conditional-probability binomial-distribution bayes-theorem
edited Mar 13 at 9:50
Lawrence
asked Mar 12 at 13:56
LawrenceLawrence
32
32
$begingroup$
I get $P(T) = 0.087$. Are you certain that you remembered to multiply by both $P(F) = 0.5$ and $P(B) = 0.5$?
$endgroup$
– Arthur
Mar 12 at 14:13
add a comment |
$begingroup$
I get $P(T) = 0.087$. Are you certain that you remembered to multiply by both $P(F) = 0.5$ and $P(B) = 0.5$?
$endgroup$
– Arthur
Mar 12 at 14:13
$begingroup$
I get $P(T) = 0.087$. Are you certain that you remembered to multiply by both $P(F) = 0.5$ and $P(B) = 0.5$?
$endgroup$
– Arthur
Mar 12 at 14:13
$begingroup$
I get $P(T) = 0.087$. Are you certain that you remembered to multiply by both $P(F) = 0.5$ and $P(B) = 0.5$?
$endgroup$
– Arthur
Mar 12 at 14:13
add a comment |
2 Answers
2
active
oldest
votes
$begingroup$
Apart from a minor possible mistake I pointed out in a comment above, this looks good.
Is it safe to assume order is irrelevant and to look for probability of seven heads and three tails with binomial distribution
Let's see: With the binomial distribution, the final formula you get is
$$
frac{binom{10}3cdot 0.9^7cdot 0.1^3cdotfrac12}{frac12cdotbinom{10}3cdot 0.9^7cdot 0.1^3 + frac12cdotbinom{10}3cdot0.5^{10}}
$$
What happens if we don't use the binomial distribution and instead care about order? We get
$$
frac{ 0.9^7cdot 0.1^3cdotfrac12}{frac12cdot 0.9^7cdot 0.1^3 + frac12cdot0.5^{10}}
$$
which, you may notice, has exactly the same value because algebraically we have only simplified the fraction by $binom{10}3$. So not only is it safe to assume; it doesn't matter one way or the other.
One final notational nitpick: Is there a specific reason you use both $B$ and $L$ rather than, say, $B$ and $overline B$?
$endgroup$
$begingroup$
Of course it seems so obvious now! Thanks. only used B and F because the notation didn't occur to me.
$endgroup$
– Lawrence
Mar 13 at 9:48
$begingroup$
@Lawrence The only real harm is the mental overhead of remembering one extra letter. On the other hand, applying $overline{phantom B}$ isn't completely without mental overhead either. So it's not really that important. However, once you start having more events that need to be negated, the difference becomes clearer. If you have a coin and a die, both of which can be either fair or biased, and you also wonder whether it's raining outside, having three letters with overlines starts becoming a lot easier than having six letters.
$endgroup$
– Arthur
Mar 13 at 9:59
add a comment |
$begingroup$
Although it does not matter in calculation as demonstrated by Arthur, yet the condition indicates the specific order of the $10$ tosses. So ($F-$ fair, $U-$ unfair):
$$P(Fcap HHHHTTHHTH)=frac12cdot frac{1}{2^{10}};\
P(Ucap HHHHTTHHTH)=\
frac12cdot left(frac{9}{10}right)^7cdot left(frac1{10}right)^3;\
P(U|HHHHTTHHTH)=frac{P(Ucap HHHHTTHHTH)}{P(Fcap HHHHTTHHTH)+P(Ucap HHHHTTHHTH)}=\
frac{frac{9^7}{2cdot 10^{10}}}{frac{9^7}{2cdot 10^{10}}+frac{1}{2^{11}}}approx 0.3288.$$
$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%2f3145118%2fcoin-flipping-and-bayes-theorem-but-where-does-binomial-theorem-come-in%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$
Apart from a minor possible mistake I pointed out in a comment above, this looks good.
Is it safe to assume order is irrelevant and to look for probability of seven heads and three tails with binomial distribution
Let's see: With the binomial distribution, the final formula you get is
$$
frac{binom{10}3cdot 0.9^7cdot 0.1^3cdotfrac12}{frac12cdotbinom{10}3cdot 0.9^7cdot 0.1^3 + frac12cdotbinom{10}3cdot0.5^{10}}
$$
What happens if we don't use the binomial distribution and instead care about order? We get
$$
frac{ 0.9^7cdot 0.1^3cdotfrac12}{frac12cdot 0.9^7cdot 0.1^3 + frac12cdot0.5^{10}}
$$
which, you may notice, has exactly the same value because algebraically we have only simplified the fraction by $binom{10}3$. So not only is it safe to assume; it doesn't matter one way or the other.
One final notational nitpick: Is there a specific reason you use both $B$ and $L$ rather than, say, $B$ and $overline B$?
$endgroup$
$begingroup$
Of course it seems so obvious now! Thanks. only used B and F because the notation didn't occur to me.
$endgroup$
– Lawrence
Mar 13 at 9:48
$begingroup$
@Lawrence The only real harm is the mental overhead of remembering one extra letter. On the other hand, applying $overline{phantom B}$ isn't completely without mental overhead either. So it's not really that important. However, once you start having more events that need to be negated, the difference becomes clearer. If you have a coin and a die, both of which can be either fair or biased, and you also wonder whether it's raining outside, having three letters with overlines starts becoming a lot easier than having six letters.
$endgroup$
– Arthur
Mar 13 at 9:59
add a comment |
$begingroup$
Apart from a minor possible mistake I pointed out in a comment above, this looks good.
Is it safe to assume order is irrelevant and to look for probability of seven heads and three tails with binomial distribution
Let's see: With the binomial distribution, the final formula you get is
$$
frac{binom{10}3cdot 0.9^7cdot 0.1^3cdotfrac12}{frac12cdotbinom{10}3cdot 0.9^7cdot 0.1^3 + frac12cdotbinom{10}3cdot0.5^{10}}
$$
What happens if we don't use the binomial distribution and instead care about order? We get
$$
frac{ 0.9^7cdot 0.1^3cdotfrac12}{frac12cdot 0.9^7cdot 0.1^3 + frac12cdot0.5^{10}}
$$
which, you may notice, has exactly the same value because algebraically we have only simplified the fraction by $binom{10}3$. So not only is it safe to assume; it doesn't matter one way or the other.
One final notational nitpick: Is there a specific reason you use both $B$ and $L$ rather than, say, $B$ and $overline B$?
$endgroup$
$begingroup$
Of course it seems so obvious now! Thanks. only used B and F because the notation didn't occur to me.
$endgroup$
– Lawrence
Mar 13 at 9:48
$begingroup$
@Lawrence The only real harm is the mental overhead of remembering one extra letter. On the other hand, applying $overline{phantom B}$ isn't completely without mental overhead either. So it's not really that important. However, once you start having more events that need to be negated, the difference becomes clearer. If you have a coin and a die, both of which can be either fair or biased, and you also wonder whether it's raining outside, having three letters with overlines starts becoming a lot easier than having six letters.
$endgroup$
– Arthur
Mar 13 at 9:59
add a comment |
$begingroup$
Apart from a minor possible mistake I pointed out in a comment above, this looks good.
Is it safe to assume order is irrelevant and to look for probability of seven heads and three tails with binomial distribution
Let's see: With the binomial distribution, the final formula you get is
$$
frac{binom{10}3cdot 0.9^7cdot 0.1^3cdotfrac12}{frac12cdotbinom{10}3cdot 0.9^7cdot 0.1^3 + frac12cdotbinom{10}3cdot0.5^{10}}
$$
What happens if we don't use the binomial distribution and instead care about order? We get
$$
frac{ 0.9^7cdot 0.1^3cdotfrac12}{frac12cdot 0.9^7cdot 0.1^3 + frac12cdot0.5^{10}}
$$
which, you may notice, has exactly the same value because algebraically we have only simplified the fraction by $binom{10}3$. So not only is it safe to assume; it doesn't matter one way or the other.
One final notational nitpick: Is there a specific reason you use both $B$ and $L$ rather than, say, $B$ and $overline B$?
$endgroup$
Apart from a minor possible mistake I pointed out in a comment above, this looks good.
Is it safe to assume order is irrelevant and to look for probability of seven heads and three tails with binomial distribution
Let's see: With the binomial distribution, the final formula you get is
$$
frac{binom{10}3cdot 0.9^7cdot 0.1^3cdotfrac12}{frac12cdotbinom{10}3cdot 0.9^7cdot 0.1^3 + frac12cdotbinom{10}3cdot0.5^{10}}
$$
What happens if we don't use the binomial distribution and instead care about order? We get
$$
frac{ 0.9^7cdot 0.1^3cdotfrac12}{frac12cdot 0.9^7cdot 0.1^3 + frac12cdot0.5^{10}}
$$
which, you may notice, has exactly the same value because algebraically we have only simplified the fraction by $binom{10}3$. So not only is it safe to assume; it doesn't matter one way or the other.
One final notational nitpick: Is there a specific reason you use both $B$ and $L$ rather than, say, $B$ and $overline B$?
answered Mar 12 at 14:20
ArthurArthur
118k7118202
118k7118202
$begingroup$
Of course it seems so obvious now! Thanks. only used B and F because the notation didn't occur to me.
$endgroup$
– Lawrence
Mar 13 at 9:48
$begingroup$
@Lawrence The only real harm is the mental overhead of remembering one extra letter. On the other hand, applying $overline{phantom B}$ isn't completely without mental overhead either. So it's not really that important. However, once you start having more events that need to be negated, the difference becomes clearer. If you have a coin and a die, both of which can be either fair or biased, and you also wonder whether it's raining outside, having three letters with overlines starts becoming a lot easier than having six letters.
$endgroup$
– Arthur
Mar 13 at 9:59
add a comment |
$begingroup$
Of course it seems so obvious now! Thanks. only used B and F because the notation didn't occur to me.
$endgroup$
– Lawrence
Mar 13 at 9:48
$begingroup$
@Lawrence The only real harm is the mental overhead of remembering one extra letter. On the other hand, applying $overline{phantom B}$ isn't completely without mental overhead either. So it's not really that important. However, once you start having more events that need to be negated, the difference becomes clearer. If you have a coin and a die, both of which can be either fair or biased, and you also wonder whether it's raining outside, having three letters with overlines starts becoming a lot easier than having six letters.
$endgroup$
– Arthur
Mar 13 at 9:59
$begingroup$
Of course it seems so obvious now! Thanks. only used B and F because the notation didn't occur to me.
$endgroup$
– Lawrence
Mar 13 at 9:48
$begingroup$
Of course it seems so obvious now! Thanks. only used B and F because the notation didn't occur to me.
$endgroup$
– Lawrence
Mar 13 at 9:48
$begingroup$
@Lawrence The only real harm is the mental overhead of remembering one extra letter. On the other hand, applying $overline{phantom B}$ isn't completely without mental overhead either. So it's not really that important. However, once you start having more events that need to be negated, the difference becomes clearer. If you have a coin and a die, both of which can be either fair or biased, and you also wonder whether it's raining outside, having three letters with overlines starts becoming a lot easier than having six letters.
$endgroup$
– Arthur
Mar 13 at 9:59
$begingroup$
@Lawrence The only real harm is the mental overhead of remembering one extra letter. On the other hand, applying $overline{phantom B}$ isn't completely without mental overhead either. So it's not really that important. However, once you start having more events that need to be negated, the difference becomes clearer. If you have a coin and a die, both of which can be either fair or biased, and you also wonder whether it's raining outside, having three letters with overlines starts becoming a lot easier than having six letters.
$endgroup$
– Arthur
Mar 13 at 9:59
add a comment |
$begingroup$
Although it does not matter in calculation as demonstrated by Arthur, yet the condition indicates the specific order of the $10$ tosses. So ($F-$ fair, $U-$ unfair):
$$P(Fcap HHHHTTHHTH)=frac12cdot frac{1}{2^{10}};\
P(Ucap HHHHTTHHTH)=\
frac12cdot left(frac{9}{10}right)^7cdot left(frac1{10}right)^3;\
P(U|HHHHTTHHTH)=frac{P(Ucap HHHHTTHHTH)}{P(Fcap HHHHTTHHTH)+P(Ucap HHHHTTHHTH)}=\
frac{frac{9^7}{2cdot 10^{10}}}{frac{9^7}{2cdot 10^{10}}+frac{1}{2^{11}}}approx 0.3288.$$
$endgroup$
add a comment |
$begingroup$
Although it does not matter in calculation as demonstrated by Arthur, yet the condition indicates the specific order of the $10$ tosses. So ($F-$ fair, $U-$ unfair):
$$P(Fcap HHHHTTHHTH)=frac12cdot frac{1}{2^{10}};\
P(Ucap HHHHTTHHTH)=\
frac12cdot left(frac{9}{10}right)^7cdot left(frac1{10}right)^3;\
P(U|HHHHTTHHTH)=frac{P(Ucap HHHHTTHHTH)}{P(Fcap HHHHTTHHTH)+P(Ucap HHHHTTHHTH)}=\
frac{frac{9^7}{2cdot 10^{10}}}{frac{9^7}{2cdot 10^{10}}+frac{1}{2^{11}}}approx 0.3288.$$
$endgroup$
add a comment |
$begingroup$
Although it does not matter in calculation as demonstrated by Arthur, yet the condition indicates the specific order of the $10$ tosses. So ($F-$ fair, $U-$ unfair):
$$P(Fcap HHHHTTHHTH)=frac12cdot frac{1}{2^{10}};\
P(Ucap HHHHTTHHTH)=\
frac12cdot left(frac{9}{10}right)^7cdot left(frac1{10}right)^3;\
P(U|HHHHTTHHTH)=frac{P(Ucap HHHHTTHHTH)}{P(Fcap HHHHTTHHTH)+P(Ucap HHHHTTHHTH)}=\
frac{frac{9^7}{2cdot 10^{10}}}{frac{9^7}{2cdot 10^{10}}+frac{1}{2^{11}}}approx 0.3288.$$
$endgroup$
Although it does not matter in calculation as demonstrated by Arthur, yet the condition indicates the specific order of the $10$ tosses. So ($F-$ fair, $U-$ unfair):
$$P(Fcap HHHHTTHHTH)=frac12cdot frac{1}{2^{10}};\
P(Ucap HHHHTTHHTH)=\
frac12cdot left(frac{9}{10}right)^7cdot left(frac1{10}right)^3;\
P(U|HHHHTTHHTH)=frac{P(Ucap HHHHTTHHTH)}{P(Fcap HHHHTTHHTH)+P(Ucap HHHHTTHHTH)}=\
frac{frac{9^7}{2cdot 10^{10}}}{frac{9^7}{2cdot 10^{10}}+frac{1}{2^{11}}}approx 0.3288.$$
answered Mar 12 at 15:22
farruhotafarruhota
21.3k2841
21.3k2841
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%2f3145118%2fcoin-flipping-and-bayes-theorem-but-where-does-binomial-theorem-come-in%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$
I get $P(T) = 0.087$. Are you certain that you remembered to multiply by both $P(F) = 0.5$ and $P(B) = 0.5$?
$endgroup$
– Arthur
Mar 12 at 14:13