two types of coins, decide which type it is based on 100 flips The 2019 Stack Overflow Developer Survey Results Are In Unicorn Meta Zoo #1: Why another podcast? Announcing the arrival of Valued Associate #679: Cesar Manarahow do I interpret the following hypothesis test?Determine if many coins are fairYou observe k heads out of n tosses. Is the coin fair?Binary variance? Comparing two sacks of uneven coins or two heterogenous groups of peopleCheck whether a coin is fairHow to test if the proportion of subjects being significant - is significantly different than expected by chance?How can I compute the probability of type 1 error and power?Hypothesis testing: rejection region depends on significance level or vice versa?Bias caused by optional stoppingTest for average of independent, non-Identical binomial distributions
How do spell lists change if the party levels up without taking a long rest?
should truth entail possible truth
Can withdrawing asylum be illegal?
US Healthcare consultation for visitors
Is there a writing software that you can sort scenes like slides in PowerPoint?
Am I ethically obligated to go into work on an off day if the reason is sudden?
Could an empire control the whole planet with today's comunication methods?
The following signatures were invalid: EXPKEYSIG 1397BC53640DB551
Can I visit the Trinity College (Cambridge) library and see some of their rare books
Single author papers against my advisor's will?
Is it ethical to upload a automatically generated paper to a non peer-reviewed site as part of a larger research?
Can we generate random numbers using irrational numbers like π and e?
how can a perfect fourth interval be considered either consonant or dissonant?
Can the DM override racial traits?
How to make Illustrator type tool selection automatically adapt with text length
A phrase ”follow into" in a context
Student Loan from years ago pops up and is taking my salary
Huge performance difference of the command find with and without using %M option to show permissions
Why are PDP-7-style microprogrammed instructions out of vogue?
Using dividends to reduce short term capital gains?
What is the padding with red substance inside of steak packaging?
Simulating Exploding Dice
Why can't devices on different VLANs, but on the same subnet, communicate?
What happens to a Warlock's expended Spell Slots when they gain a Level?
two types of coins, decide which type it is based on 100 flips
The 2019 Stack Overflow Developer Survey Results Are In
Unicorn Meta Zoo #1: Why another podcast?
Announcing the arrival of Valued Associate #679: Cesar Manarahow do I interpret the following hypothesis test?Determine if many coins are fairYou observe k heads out of n tosses. Is the coin fair?Binary variance? Comparing two sacks of uneven coins or two heterogenous groups of peopleCheck whether a coin is fairHow to test if the proportion of subjects being significant - is significantly different than expected by chance?How can I compute the probability of type 1 error and power?Hypothesis testing: rejection region depends on significance level or vice versa?Bias caused by optional stoppingTest for average of independent, non-Identical binomial distributions
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
$begingroup$
I have two types of coins, one is fair(0.5 chance to fall on H), and the other is biased(0.7 chance for H). I have a coin, and I need to determine, based on a 100 flips - which type is my coin.
the hypothesis is that the coin is fair only if it fell on heads no more than 62 times out of 100.
what are the chances that I got to the wrong conclusion and the coin is fair?
what are the chances I got to the wrong conclusion and the coin is unfair?
I tried to calculate the chances but I got some prety ugly numbers...
hypothesis-testing
New contributor
$endgroup$
add a comment |
$begingroup$
I have two types of coins, one is fair(0.5 chance to fall on H), and the other is biased(0.7 chance for H). I have a coin, and I need to determine, based on a 100 flips - which type is my coin.
the hypothesis is that the coin is fair only if it fell on heads no more than 62 times out of 100.
what are the chances that I got to the wrong conclusion and the coin is fair?
what are the chances I got to the wrong conclusion and the coin is unfair?
I tried to calculate the chances but I got some prety ugly numbers...
hypothesis-testing
New contributor
$endgroup$
$begingroup$
Can you lay out your calculations?
$endgroup$
– bi_scholar
yesterday
$begingroup$
I am trying but still can't get how to write math equations here...sorry. in words: sum K from 0 to 62 of: 100 choose k * 0.5^k * 0.5^100-k.(for the first part)
$endgroup$
– Benaya Trabelsi
yesterday
$begingroup$
"the hypothesis is that the coin is fair only if it fell on heads no more than 62 times out of 100. " This is a strange and unclear hypothesis. What do you mean with this sentence? Maybe you meant something like "the decision rule is to accept the hypothesis that the coin is fair when it fell on heads no more than 62 times out of 100"
$endgroup$
– Martijn Weterings
yesterday
$begingroup$
"what are the chances that I got to the wrong conclusion and the coin is fair?" You can not compute this with the given information. Did you maybe mean "what are the chances that I got to the wrong conclusion if the coin is fair?"
$endgroup$
– Martijn Weterings
yesterday
add a comment |
$begingroup$
I have two types of coins, one is fair(0.5 chance to fall on H), and the other is biased(0.7 chance for H). I have a coin, and I need to determine, based on a 100 flips - which type is my coin.
the hypothesis is that the coin is fair only if it fell on heads no more than 62 times out of 100.
what are the chances that I got to the wrong conclusion and the coin is fair?
what are the chances I got to the wrong conclusion and the coin is unfair?
I tried to calculate the chances but I got some prety ugly numbers...
hypothesis-testing
New contributor
$endgroup$
I have two types of coins, one is fair(0.5 chance to fall on H), and the other is biased(0.7 chance for H). I have a coin, and I need to determine, based on a 100 flips - which type is my coin.
the hypothesis is that the coin is fair only if it fell on heads no more than 62 times out of 100.
what are the chances that I got to the wrong conclusion and the coin is fair?
what are the chances I got to the wrong conclusion and the coin is unfair?
I tried to calculate the chances but I got some prety ugly numbers...
hypothesis-testing
hypothesis-testing
New contributor
New contributor
New contributor
asked yesterday
Benaya TrabelsiBenaya Trabelsi
111
111
New contributor
New contributor
$begingroup$
Can you lay out your calculations?
$endgroup$
– bi_scholar
yesterday
$begingroup$
I am trying but still can't get how to write math equations here...sorry. in words: sum K from 0 to 62 of: 100 choose k * 0.5^k * 0.5^100-k.(for the first part)
$endgroup$
– Benaya Trabelsi
yesterday
$begingroup$
"the hypothesis is that the coin is fair only if it fell on heads no more than 62 times out of 100. " This is a strange and unclear hypothesis. What do you mean with this sentence? Maybe you meant something like "the decision rule is to accept the hypothesis that the coin is fair when it fell on heads no more than 62 times out of 100"
$endgroup$
– Martijn Weterings
yesterday
$begingroup$
"what are the chances that I got to the wrong conclusion and the coin is fair?" You can not compute this with the given information. Did you maybe mean "what are the chances that I got to the wrong conclusion if the coin is fair?"
$endgroup$
– Martijn Weterings
yesterday
add a comment |
$begingroup$
Can you lay out your calculations?
$endgroup$
– bi_scholar
yesterday
$begingroup$
I am trying but still can't get how to write math equations here...sorry. in words: sum K from 0 to 62 of: 100 choose k * 0.5^k * 0.5^100-k.(for the first part)
$endgroup$
– Benaya Trabelsi
yesterday
$begingroup$
"the hypothesis is that the coin is fair only if it fell on heads no more than 62 times out of 100. " This is a strange and unclear hypothesis. What do you mean with this sentence? Maybe you meant something like "the decision rule is to accept the hypothesis that the coin is fair when it fell on heads no more than 62 times out of 100"
$endgroup$
– Martijn Weterings
yesterday
$begingroup$
"what are the chances that I got to the wrong conclusion and the coin is fair?" You can not compute this with the given information. Did you maybe mean "what are the chances that I got to the wrong conclusion if the coin is fair?"
$endgroup$
– Martijn Weterings
yesterday
$begingroup$
Can you lay out your calculations?
$endgroup$
– bi_scholar
yesterday
$begingroup$
Can you lay out your calculations?
$endgroup$
– bi_scholar
yesterday
$begingroup$
I am trying but still can't get how to write math equations here...sorry. in words: sum K from 0 to 62 of: 100 choose k * 0.5^k * 0.5^100-k.(for the first part)
$endgroup$
– Benaya Trabelsi
yesterday
$begingroup$
I am trying but still can't get how to write math equations here...sorry. in words: sum K from 0 to 62 of: 100 choose k * 0.5^k * 0.5^100-k.(for the first part)
$endgroup$
– Benaya Trabelsi
yesterday
$begingroup$
"the hypothesis is that the coin is fair only if it fell on heads no more than 62 times out of 100. " This is a strange and unclear hypothesis. What do you mean with this sentence? Maybe you meant something like "the decision rule is to accept the hypothesis that the coin is fair when it fell on heads no more than 62 times out of 100"
$endgroup$
– Martijn Weterings
yesterday
$begingroup$
"the hypothesis is that the coin is fair only if it fell on heads no more than 62 times out of 100. " This is a strange and unclear hypothesis. What do you mean with this sentence? Maybe you meant something like "the decision rule is to accept the hypothesis that the coin is fair when it fell on heads no more than 62 times out of 100"
$endgroup$
– Martijn Weterings
yesterday
$begingroup$
"what are the chances that I got to the wrong conclusion and the coin is fair?" You can not compute this with the given information. Did you maybe mean "what are the chances that I got to the wrong conclusion if the coin is fair?"
$endgroup$
– Martijn Weterings
yesterday
$begingroup$
"what are the chances that I got to the wrong conclusion and the coin is fair?" You can not compute this with the given information. Did you maybe mean "what are the chances that I got to the wrong conclusion if the coin is fair?"
$endgroup$
– Martijn Weterings
yesterday
add a comment |
3 Answers
3
active
oldest
votes
$begingroup$
Essentially, the upper tail (K > 62) of the head-distribution of the fair coin (P(head) = 0.5) gives you the probability that a fair coin is falsely labeled as biased while the lower tail (K <= 62) of the head-distribution of the biased coin gives you the probability that a biased coin will be falsely labeled as fair.
$endgroup$
add a comment |
$begingroup$
Based on your comment, you're nearly correct for the first one, you just need to subtract the value from $1$ since for having wrong decision if the coin is fair
you need $>62$ heads (let $W$ be having the wrong decision, $F$ be the fact that coin is fair, and $X$ be the number of heads appeared):
$$P(W|F)=1-P(Xleq62|F)=1-sum_k=0^62100 choose k0.5^k0.5^100-k$$
Replicating the analysis for the unfair case:
$$P(W|F')=1-P(X>62|F')=1-sum_k=63^100100 choose k0.7^k0.3^100-k$$
Note: Your seem to ask for "having wrong decision and the coin is fair" for the first one (same situation for your second question), which means $P(Wcap F)$, not $P(W|F)$ as found above. So, if you need $P(Wcap F)=P(W|F)P(F)$, you need to use $P(F)$, which you didn't provide.
$endgroup$
add a comment |
$begingroup$
This is the binomial distribution. Doing a web search for "binomial calculator" should get an online calculator. You can then enter .5 for probability of success on a single trial for the fair coin, 100 for number of trials, and 62 as number of successes. You can also enter .7 as the probability of success on a single trial for the unfair coin.
$endgroup$
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "65"
;
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: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
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
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Benaya Trabelsi is a new contributor. Be nice, and check out our Code of Conduct.
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%2fstats.stackexchange.com%2fquestions%2f402413%2ftwo-types-of-coins-decide-which-type-it-is-based-on-100-flips%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
$begingroup$
Essentially, the upper tail (K > 62) of the head-distribution of the fair coin (P(head) = 0.5) gives you the probability that a fair coin is falsely labeled as biased while the lower tail (K <= 62) of the head-distribution of the biased coin gives you the probability that a biased coin will be falsely labeled as fair.
$endgroup$
add a comment |
$begingroup$
Essentially, the upper tail (K > 62) of the head-distribution of the fair coin (P(head) = 0.5) gives you the probability that a fair coin is falsely labeled as biased while the lower tail (K <= 62) of the head-distribution of the biased coin gives you the probability that a biased coin will be falsely labeled as fair.
$endgroup$
add a comment |
$begingroup$
Essentially, the upper tail (K > 62) of the head-distribution of the fair coin (P(head) = 0.5) gives you the probability that a fair coin is falsely labeled as biased while the lower tail (K <= 62) of the head-distribution of the biased coin gives you the probability that a biased coin will be falsely labeled as fair.
$endgroup$
Essentially, the upper tail (K > 62) of the head-distribution of the fair coin (P(head) = 0.5) gives you the probability that a fair coin is falsely labeled as biased while the lower tail (K <= 62) of the head-distribution of the biased coin gives you the probability that a biased coin will be falsely labeled as fair.
answered yesterday
bi_scholarbi_scholar
41813
41813
add a comment |
add a comment |
$begingroup$
Based on your comment, you're nearly correct for the first one, you just need to subtract the value from $1$ since for having wrong decision if the coin is fair
you need $>62$ heads (let $W$ be having the wrong decision, $F$ be the fact that coin is fair, and $X$ be the number of heads appeared):
$$P(W|F)=1-P(Xleq62|F)=1-sum_k=0^62100 choose k0.5^k0.5^100-k$$
Replicating the analysis for the unfair case:
$$P(W|F')=1-P(X>62|F')=1-sum_k=63^100100 choose k0.7^k0.3^100-k$$
Note: Your seem to ask for "having wrong decision and the coin is fair" for the first one (same situation for your second question), which means $P(Wcap F)$, not $P(W|F)$ as found above. So, if you need $P(Wcap F)=P(W|F)P(F)$, you need to use $P(F)$, which you didn't provide.
$endgroup$
add a comment |
$begingroup$
Based on your comment, you're nearly correct for the first one, you just need to subtract the value from $1$ since for having wrong decision if the coin is fair
you need $>62$ heads (let $W$ be having the wrong decision, $F$ be the fact that coin is fair, and $X$ be the number of heads appeared):
$$P(W|F)=1-P(Xleq62|F)=1-sum_k=0^62100 choose k0.5^k0.5^100-k$$
Replicating the analysis for the unfair case:
$$P(W|F')=1-P(X>62|F')=1-sum_k=63^100100 choose k0.7^k0.3^100-k$$
Note: Your seem to ask for "having wrong decision and the coin is fair" for the first one (same situation for your second question), which means $P(Wcap F)$, not $P(W|F)$ as found above. So, if you need $P(Wcap F)=P(W|F)P(F)$, you need to use $P(F)$, which you didn't provide.
$endgroup$
add a comment |
$begingroup$
Based on your comment, you're nearly correct for the first one, you just need to subtract the value from $1$ since for having wrong decision if the coin is fair
you need $>62$ heads (let $W$ be having the wrong decision, $F$ be the fact that coin is fair, and $X$ be the number of heads appeared):
$$P(W|F)=1-P(Xleq62|F)=1-sum_k=0^62100 choose k0.5^k0.5^100-k$$
Replicating the analysis for the unfair case:
$$P(W|F')=1-P(X>62|F')=1-sum_k=63^100100 choose k0.7^k0.3^100-k$$
Note: Your seem to ask for "having wrong decision and the coin is fair" for the first one (same situation for your second question), which means $P(Wcap F)$, not $P(W|F)$ as found above. So, if you need $P(Wcap F)=P(W|F)P(F)$, you need to use $P(F)$, which you didn't provide.
$endgroup$
Based on your comment, you're nearly correct for the first one, you just need to subtract the value from $1$ since for having wrong decision if the coin is fair
you need $>62$ heads (let $W$ be having the wrong decision, $F$ be the fact that coin is fair, and $X$ be the number of heads appeared):
$$P(W|F)=1-P(Xleq62|F)=1-sum_k=0^62100 choose k0.5^k0.5^100-k$$
Replicating the analysis for the unfair case:
$$P(W|F')=1-P(X>62|F')=1-sum_k=63^100100 choose k0.7^k0.3^100-k$$
Note: Your seem to ask for "having wrong decision and the coin is fair" for the first one (same situation for your second question), which means $P(Wcap F)$, not $P(W|F)$ as found above. So, if you need $P(Wcap F)=P(W|F)P(F)$, you need to use $P(F)$, which you didn't provide.
answered yesterday
gunesgunes
7,3761316
7,3761316
add a comment |
add a comment |
$begingroup$
This is the binomial distribution. Doing a web search for "binomial calculator" should get an online calculator. You can then enter .5 for probability of success on a single trial for the fair coin, 100 for number of trials, and 62 as number of successes. You can also enter .7 as the probability of success on a single trial for the unfair coin.
$endgroup$
add a comment |
$begingroup$
This is the binomial distribution. Doing a web search for "binomial calculator" should get an online calculator. You can then enter .5 for probability of success on a single trial for the fair coin, 100 for number of trials, and 62 as number of successes. You can also enter .7 as the probability of success on a single trial for the unfair coin.
$endgroup$
add a comment |
$begingroup$
This is the binomial distribution. Doing a web search for "binomial calculator" should get an online calculator. You can then enter .5 for probability of success on a single trial for the fair coin, 100 for number of trials, and 62 as number of successes. You can also enter .7 as the probability of success on a single trial for the unfair coin.
$endgroup$
This is the binomial distribution. Doing a web search for "binomial calculator" should get an online calculator. You can then enter .5 for probability of success on a single trial for the fair coin, 100 for number of trials, and 62 as number of successes. You can also enter .7 as the probability of success on a single trial for the unfair coin.
answered yesterday
AcccumulationAcccumulation
1,68626
1,68626
add a comment |
add a comment |
Benaya Trabelsi is a new contributor. Be nice, and check out our Code of Conduct.
Benaya Trabelsi is a new contributor. Be nice, and check out our Code of Conduct.
Benaya Trabelsi is a new contributor. Be nice, and check out our Code of Conduct.
Benaya Trabelsi is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Cross Validated!
- 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%2fstats.stackexchange.com%2fquestions%2f402413%2ftwo-types-of-coins-decide-which-type-it-is-based-on-100-flips%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
-hypothesis-testing
$begingroup$
Can you lay out your calculations?
$endgroup$
– bi_scholar
yesterday
$begingroup$
I am trying but still can't get how to write math equations here...sorry. in words: sum K from 0 to 62 of: 100 choose k * 0.5^k * 0.5^100-k.(for the first part)
$endgroup$
– Benaya Trabelsi
yesterday
$begingroup$
"the hypothesis is that the coin is fair only if it fell on heads no more than 62 times out of 100. " This is a strange and unclear hypothesis. What do you mean with this sentence? Maybe you meant something like "the decision rule is to accept the hypothesis that the coin is fair when it fell on heads no more than 62 times out of 100"
$endgroup$
– Martijn Weterings
yesterday
$begingroup$
"what are the chances that I got to the wrong conclusion and the coin is fair?" You can not compute this with the given information. Did you maybe mean "what are the chances that I got to the wrong conclusion if the coin is fair?"
$endgroup$
– Martijn Weterings
yesterday