two types of coins, decide which type it is based on 100 flips Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)how 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
Strange behaviour of Check
Slither Like a Snake
How to market an anarchic city as a tourism spot to people living in civilized areas?
How to politely respond to generic emails requesting a PhD/job in my lab? Without wasting too much time
Is there folklore associating late breastfeeding with low intelligence and/or gullibility?
Writing Thesis: Copying from published papers
Autumning in love
What's the difference between (size_t)-1 and ~0?
How to dynamically generate the hash value of a file while it gets downloaded from any website?
How to retrograde a note sequence in Finale?
How to add zeros to reach same number of decimal places in tables?
What would be Julian Assange's expected punishment, on the current English criminal law?
What LEGO pieces have "real-world" functionality?
How do I automatically answer y in bash script?
How to rotate it perfectly?
How does modal jazz use chord progressions?
Using "nakedly" instead of "with nothing on"
3 doors, three guards, one stone
Simulating Exploding Dice
Keep going mode for require-package
Working around an AWS network ACL rule limit
Can the prologue be the backstory of your main character?
Interesting examples of non-locally compact topological groups
Why don't the Weasley twins use magic outside of school if the Trace can only find the location of spells cast?
two types of coins, decide which type it is based on 100 flips
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)how 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
Benaya Trabelsi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
$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
Benaya Trabelsi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
$endgroup$
$begingroup$
Can you lay out your calculations?
$endgroup$
– bi_scholar
Apr 11 at 10:22
$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
Apr 11 at 10:36
$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
Apr 11 at 12:40
$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
Apr 11 at 12:44
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
Benaya Trabelsi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
$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
Benaya Trabelsi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Benaya Trabelsi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Benaya Trabelsi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
asked Apr 11 at 10:16
Benaya TrabelsiBenaya Trabelsi
111
111
New contributor
Benaya Trabelsi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Benaya Trabelsi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Benaya Trabelsi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
$begingroup$
Can you lay out your calculations?
$endgroup$
– bi_scholar
Apr 11 at 10:22
$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
Apr 11 at 10:36
$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
Apr 11 at 12:40
$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
Apr 11 at 12:44
add a comment |
$begingroup$
Can you lay out your calculations?
$endgroup$
– bi_scholar
Apr 11 at 10:22
$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
Apr 11 at 10:36
$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
Apr 11 at 12:40
$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
Apr 11 at 12:44
$begingroup$
Can you lay out your calculations?
$endgroup$
– bi_scholar
Apr 11 at 10:22
$begingroup$
Can you lay out your calculations?
$endgroup$
– bi_scholar
Apr 11 at 10:22
$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
Apr 11 at 10:36
$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
Apr 11 at 10:36
$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
Apr 11 at 12:40
$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
Apr 11 at 12:40
$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
Apr 11 at 12:44
$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
Apr 11 at 12:44
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 Apr 11 at 11:13
bi_scholarbi_scholar
42813
42813
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 Apr 11 at 11:15
gunesgunes
7,5161316
7,5161316
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 Apr 11 at 15:36
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
$begingroup$
Can you lay out your calculations?
$endgroup$
– bi_scholar
Apr 11 at 10:22
$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
Apr 11 at 10:36
$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
Apr 11 at 12:40
$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
Apr 11 at 12:44