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
Why did the rest of the Eastern Bloc not invade Yugoslavia?
Coloring maths inside a tcolorbox
ListPlot join points by nearest neighbor rather than order
Single word antonym of "flightless"
What would be the ideal power source for a cybernetic eye?
What exactly is a "Meth" in Altered Carbon?
Extract all GPU name, model and GPU ram
How to tell that you are a giant?
In predicate logic, does existential quantification (∃) include universal quantification (∀), i.e. can 'some' imply 'all'?
Why are there no cargo aircraft with "flying wing" design?
What is Wonderstone and are there any references to it pre-1982?
Generate an RGB colour grid
How does the particle を relate to the verb 行く in the structure「A を + B に行く」?
How to answer "Have you ever been terminated?"
Why light coming from distant stars is not discreet?
Seeking colloquialism for “just because”
What is a non-alternating simple group with big order, but relatively few conjugacy classes?
How to call a function with default parameter through a pointer to function that is the return of another function?
Can an alien society believe that their star system is the universe?
2001: A Space Odyssey's use of the song "Daisy Bell" (Bicycle Built for Two); life imitates art or vice-versa?
At the end of Thor: Ragnarok why don't the Asgardians turn and head for the Bifrost as per their original plan?
How do I stop a creek from eroding my steep embankment?
How does debian/ubuntu knows a package has a updated version
What does this icon in iOS Stardew Valley mean?
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
$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
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$
yes martin, sorry about my wording.
$endgroup$
– Benaya Trabelsi
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 Apr 11 at 10:16
Benaya TrabelsiBenaya Trabelsi
111
111
New contributor
New contributor
$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$
yes martin, sorry about my wording.
$endgroup$
– Benaya Trabelsi
yesterday
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$
yes martin, sorry about my wording.
$endgroup$
– Benaya Trabelsi
yesterday
$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
$begingroup$
yes martin, sorry about my wording.
$endgroup$
– Benaya Trabelsi
yesterday
$begingroup$
yes martin, sorry about my wording.
$endgroup$
– Benaya Trabelsi
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 Apr 11 at 11:13
bi_scholarbi_scholar
49113
49113
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,6011316
7,6011316
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,69626
1,69626
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
$begingroup$
yes martin, sorry about my wording.
$endgroup$
– Benaya Trabelsi
yesterday