Independent coin tosses, Hypothesis testing











up vote
0
down vote

favorite












I have 10 independent coin tosses with probability p for heads.
I'm testing the null hypothesis
$H_0: p=1/2$
Versus the alternative
$H_1 : p > 1/2 $



$W$ is the number of heads in the 10 coin tosses.
We accept $H_0$ if $W leq c$ else reject $H_0$
Decide c so that $alpha = 0.05$



I started off saying $W$ is $binomial(10,½)$ so the probability of type I errors is:



$P(Type I Error)=P(Reject H_0 mid H_0) = P(RejectH_0 mid p=½) = P(W >cmid p=½)=sumlimits_{k=c+1}^{infty} P(W=k)$



$And because of W being binomial(10,½)



$=sumlimits_{k=c+1}^{10} 0.5^k 0.5^{10-k}={(10-c)}/1024 $



And so because of us wanting $alpha =0.05$ we choose a c so that
$(10-c)/1024 leq alpha $



So I get
$c=10-alpha*1024=-41.2$



Which seems wrong to me, where did i go wrong in my thought process? Because if c=-41.2 then i would never be able to say the coin is fair and accept the null hypothesis










share|cite|improve this question




















  • 2




    Check probabilities for binomial distrbution.
    – NCh
    Nov 22 at 23:19










  • Using the discrete distribution BINOM(10,.5) you can't get exactly $alpha = 0.05.$ In R: $P(X ge 9|p=1/2) approx 0.011,$ computed as sum(dbinom(9:10, 10, 1/2)) which returns 0.01074219 and $P(X ge 8|p = 1/2) approx 0.055)$ with code sum(dbinom(8{10, 10, 1/2)), which returns 0.0546875. // Exact normal computations on a calculator are feasible, You can try to sweep the discreteness under the rug by using a normal approximation, but that doesn't change the truth.
    – BruceET
    Nov 23 at 0:42

















up vote
0
down vote

favorite












I have 10 independent coin tosses with probability p for heads.
I'm testing the null hypothesis
$H_0: p=1/2$
Versus the alternative
$H_1 : p > 1/2 $



$W$ is the number of heads in the 10 coin tosses.
We accept $H_0$ if $W leq c$ else reject $H_0$
Decide c so that $alpha = 0.05$



I started off saying $W$ is $binomial(10,½)$ so the probability of type I errors is:



$P(Type I Error)=P(Reject H_0 mid H_0) = P(RejectH_0 mid p=½) = P(W >cmid p=½)=sumlimits_{k=c+1}^{infty} P(W=k)$



$And because of W being binomial(10,½)



$=sumlimits_{k=c+1}^{10} 0.5^k 0.5^{10-k}={(10-c)}/1024 $



And so because of us wanting $alpha =0.05$ we choose a c so that
$(10-c)/1024 leq alpha $



So I get
$c=10-alpha*1024=-41.2$



Which seems wrong to me, where did i go wrong in my thought process? Because if c=-41.2 then i would never be able to say the coin is fair and accept the null hypothesis










share|cite|improve this question




















  • 2




    Check probabilities for binomial distrbution.
    – NCh
    Nov 22 at 23:19










  • Using the discrete distribution BINOM(10,.5) you can't get exactly $alpha = 0.05.$ In R: $P(X ge 9|p=1/2) approx 0.011,$ computed as sum(dbinom(9:10, 10, 1/2)) which returns 0.01074219 and $P(X ge 8|p = 1/2) approx 0.055)$ with code sum(dbinom(8{10, 10, 1/2)), which returns 0.0546875. // Exact normal computations on a calculator are feasible, You can try to sweep the discreteness under the rug by using a normal approximation, but that doesn't change the truth.
    – BruceET
    Nov 23 at 0:42















up vote
0
down vote

favorite









up vote
0
down vote

favorite











I have 10 independent coin tosses with probability p for heads.
I'm testing the null hypothesis
$H_0: p=1/2$
Versus the alternative
$H_1 : p > 1/2 $



$W$ is the number of heads in the 10 coin tosses.
We accept $H_0$ if $W leq c$ else reject $H_0$
Decide c so that $alpha = 0.05$



I started off saying $W$ is $binomial(10,½)$ so the probability of type I errors is:



$P(Type I Error)=P(Reject H_0 mid H_0) = P(RejectH_0 mid p=½) = P(W >cmid p=½)=sumlimits_{k=c+1}^{infty} P(W=k)$



$And because of W being binomial(10,½)



$=sumlimits_{k=c+1}^{10} 0.5^k 0.5^{10-k}={(10-c)}/1024 $



And so because of us wanting $alpha =0.05$ we choose a c so that
$(10-c)/1024 leq alpha $



So I get
$c=10-alpha*1024=-41.2$



Which seems wrong to me, where did i go wrong in my thought process? Because if c=-41.2 then i would never be able to say the coin is fair and accept the null hypothesis










share|cite|improve this question















I have 10 independent coin tosses with probability p for heads.
I'm testing the null hypothesis
$H_0: p=1/2$
Versus the alternative
$H_1 : p > 1/2 $



$W$ is the number of heads in the 10 coin tosses.
We accept $H_0$ if $W leq c$ else reject $H_0$
Decide c so that $alpha = 0.05$



I started off saying $W$ is $binomial(10,½)$ so the probability of type I errors is:



$P(Type I Error)=P(Reject H_0 mid H_0) = P(RejectH_0 mid p=½) = P(W >cmid p=½)=sumlimits_{k=c+1}^{infty} P(W=k)$



$And because of W being binomial(10,½)



$=sumlimits_{k=c+1}^{10} 0.5^k 0.5^{10-k}={(10-c)}/1024 $



And so because of us wanting $alpha =0.05$ we choose a c so that
$(10-c)/1024 leq alpha $



So I get
$c=10-alpha*1024=-41.2$



Which seems wrong to me, where did i go wrong in my thought process? Because if c=-41.2 then i would never be able to say the coin is fair and accept the null hypothesis







probability statistics hypothesis-testing






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Nov 22 at 20:39

























asked Nov 22 at 20:33









Winther

227




227








  • 2




    Check probabilities for binomial distrbution.
    – NCh
    Nov 22 at 23:19










  • Using the discrete distribution BINOM(10,.5) you can't get exactly $alpha = 0.05.$ In R: $P(X ge 9|p=1/2) approx 0.011,$ computed as sum(dbinom(9:10, 10, 1/2)) which returns 0.01074219 and $P(X ge 8|p = 1/2) approx 0.055)$ with code sum(dbinom(8{10, 10, 1/2)), which returns 0.0546875. // Exact normal computations on a calculator are feasible, You can try to sweep the discreteness under the rug by using a normal approximation, but that doesn't change the truth.
    – BruceET
    Nov 23 at 0:42
















  • 2




    Check probabilities for binomial distrbution.
    – NCh
    Nov 22 at 23:19










  • Using the discrete distribution BINOM(10,.5) you can't get exactly $alpha = 0.05.$ In R: $P(X ge 9|p=1/2) approx 0.011,$ computed as sum(dbinom(9:10, 10, 1/2)) which returns 0.01074219 and $P(X ge 8|p = 1/2) approx 0.055)$ with code sum(dbinom(8{10, 10, 1/2)), which returns 0.0546875. // Exact normal computations on a calculator are feasible, You can try to sweep the discreteness under the rug by using a normal approximation, but that doesn't change the truth.
    – BruceET
    Nov 23 at 0:42










2




2




Check probabilities for binomial distrbution.
– NCh
Nov 22 at 23:19




Check probabilities for binomial distrbution.
– NCh
Nov 22 at 23:19












Using the discrete distribution BINOM(10,.5) you can't get exactly $alpha = 0.05.$ In R: $P(X ge 9|p=1/2) approx 0.011,$ computed as sum(dbinom(9:10, 10, 1/2)) which returns 0.01074219 and $P(X ge 8|p = 1/2) approx 0.055)$ with code sum(dbinom(8{10, 10, 1/2)), which returns 0.0546875. // Exact normal computations on a calculator are feasible, You can try to sweep the discreteness under the rug by using a normal approximation, but that doesn't change the truth.
– BruceET
Nov 23 at 0:42






Using the discrete distribution BINOM(10,.5) you can't get exactly $alpha = 0.05.$ In R: $P(X ge 9|p=1/2) approx 0.011,$ computed as sum(dbinom(9:10, 10, 1/2)) which returns 0.01074219 and $P(X ge 8|p = 1/2) approx 0.055)$ with code sum(dbinom(8{10, 10, 1/2)), which returns 0.0546875. // Exact normal computations on a calculator are feasible, You can try to sweep the discreteness under the rug by using a normal approximation, but that doesn't change the truth.
– BruceET
Nov 23 at 0:42

















active

oldest

votes











Your Answer





StackExchange.ifUsing("editor", function () {
return StackExchange.using("mathjaxEditing", function () {
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
});
});
}, "mathjax-editing");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "69"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
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
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3009622%2findependent-coin-tosses-hypothesis-testing%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































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.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • 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.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3009622%2findependent-coin-tosses-hypothesis-testing%23new-answer', 'question_page');
}
);

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







Popular posts from this blog

Ellipse (mathématiques)

Quarter-circle Tiles

Mont Emei