Bernoulli trials hypothesis test












1












$begingroup$


I'm studying about hypothesis test theory and I've reached the next exercise:



Let $Xsim Ber(theta)$. Then, we know that for a sample of $n=10$, we reject $H_0:theta = 0.5$, and accept $H_1: theta = 0.75$ if $overline{X} > 0.8$.




  • Find the test's power function.

  • Compute the significance level.

  • Compute the power of the hypothesis test.


So, I know a few things that could be useful:



For the first question I know that the power function is defined as
$$mathbb{P}[text{Reject } H_0 mid mu]$$



where $mu$ is the mean of the sample. So I need to compute:



$$mathbb{P}[overline{X} > 0.8 mid mu]$$



So far, I know that



$$frac{overline{X}-mu}{frac{sigma}{sqrt{n}}}sim N(0,1)$$



And also that for independent $X_i sim Ber(theta)$ then $Y = sum_{i=1}^{10}X_i sim Bin(10,theta)$ and $mathbb{E}(Y) = 10theta, sigma_Y = sqrt{10(theta)(1-theta)}$.



Maybe it is a simple exercise but I'm having trouble figuring out the value of $mu$. For example, for the third question, when I compute the power of the test I did it this way:



begin{align}
text{Power} &= mathbb{P}[overline{X} > 0.8 mid theta = 0.75]\
&= mathbb{P}left[frac{overline{X} - (10*.75)}{frac{sqrt{10*0.75*0.25}}{sqrt{10}}} > frac{0.8-(10*0.75)}{frac{sqrt{10*0.75*0.25}}{sqrt{10}}}right]\
&= mathbb{P} [Z > -15.47]\
&= 1-phi(-15.47)\
&= 1
end{align}



But it confuses me that the power of the test is $1$. And when I compute the significance level $alpha$ is equal to $1$ too. It seems I'm computing something wrong but I'm lost. Is my $mu = 10*0.75$ computed the right way?










share|cite|improve this question









$endgroup$








  • 1




    $begingroup$
    Since $n=10$, then the central limit theorem may not give a good result. I think you should stick with the binomial distribution to compute the power.
    $endgroup$
    – gd1035
    Dec 11 '18 at 0:58










  • $begingroup$
    Rjection region is given as : Let $Y=sum _i^{10} X_i sim B(10,theta) $; $ bar X > .8 implies sum _i^{10} X_i >8 ;Y>8 $
    $endgroup$
    – Daman deep
    Dec 12 '18 at 9:25


















1












$begingroup$


I'm studying about hypothesis test theory and I've reached the next exercise:



Let $Xsim Ber(theta)$. Then, we know that for a sample of $n=10$, we reject $H_0:theta = 0.5$, and accept $H_1: theta = 0.75$ if $overline{X} > 0.8$.




  • Find the test's power function.

  • Compute the significance level.

  • Compute the power of the hypothesis test.


So, I know a few things that could be useful:



For the first question I know that the power function is defined as
$$mathbb{P}[text{Reject } H_0 mid mu]$$



where $mu$ is the mean of the sample. So I need to compute:



$$mathbb{P}[overline{X} > 0.8 mid mu]$$



So far, I know that



$$frac{overline{X}-mu}{frac{sigma}{sqrt{n}}}sim N(0,1)$$



And also that for independent $X_i sim Ber(theta)$ then $Y = sum_{i=1}^{10}X_i sim Bin(10,theta)$ and $mathbb{E}(Y) = 10theta, sigma_Y = sqrt{10(theta)(1-theta)}$.



Maybe it is a simple exercise but I'm having trouble figuring out the value of $mu$. For example, for the third question, when I compute the power of the test I did it this way:



begin{align}
text{Power} &= mathbb{P}[overline{X} > 0.8 mid theta = 0.75]\
&= mathbb{P}left[frac{overline{X} - (10*.75)}{frac{sqrt{10*0.75*0.25}}{sqrt{10}}} > frac{0.8-(10*0.75)}{frac{sqrt{10*0.75*0.25}}{sqrt{10}}}right]\
&= mathbb{P} [Z > -15.47]\
&= 1-phi(-15.47)\
&= 1
end{align}



But it confuses me that the power of the test is $1$. And when I compute the significance level $alpha$ is equal to $1$ too. It seems I'm computing something wrong but I'm lost. Is my $mu = 10*0.75$ computed the right way?










share|cite|improve this question









$endgroup$








  • 1




    $begingroup$
    Since $n=10$, then the central limit theorem may not give a good result. I think you should stick with the binomial distribution to compute the power.
    $endgroup$
    – gd1035
    Dec 11 '18 at 0:58










  • $begingroup$
    Rjection region is given as : Let $Y=sum _i^{10} X_i sim B(10,theta) $; $ bar X > .8 implies sum _i^{10} X_i >8 ;Y>8 $
    $endgroup$
    – Daman deep
    Dec 12 '18 at 9:25
















1












1








1





$begingroup$


I'm studying about hypothesis test theory and I've reached the next exercise:



Let $Xsim Ber(theta)$. Then, we know that for a sample of $n=10$, we reject $H_0:theta = 0.5$, and accept $H_1: theta = 0.75$ if $overline{X} > 0.8$.




  • Find the test's power function.

  • Compute the significance level.

  • Compute the power of the hypothesis test.


So, I know a few things that could be useful:



For the first question I know that the power function is defined as
$$mathbb{P}[text{Reject } H_0 mid mu]$$



where $mu$ is the mean of the sample. So I need to compute:



$$mathbb{P}[overline{X} > 0.8 mid mu]$$



So far, I know that



$$frac{overline{X}-mu}{frac{sigma}{sqrt{n}}}sim N(0,1)$$



And also that for independent $X_i sim Ber(theta)$ then $Y = sum_{i=1}^{10}X_i sim Bin(10,theta)$ and $mathbb{E}(Y) = 10theta, sigma_Y = sqrt{10(theta)(1-theta)}$.



Maybe it is a simple exercise but I'm having trouble figuring out the value of $mu$. For example, for the third question, when I compute the power of the test I did it this way:



begin{align}
text{Power} &= mathbb{P}[overline{X} > 0.8 mid theta = 0.75]\
&= mathbb{P}left[frac{overline{X} - (10*.75)}{frac{sqrt{10*0.75*0.25}}{sqrt{10}}} > frac{0.8-(10*0.75)}{frac{sqrt{10*0.75*0.25}}{sqrt{10}}}right]\
&= mathbb{P} [Z > -15.47]\
&= 1-phi(-15.47)\
&= 1
end{align}



But it confuses me that the power of the test is $1$. And when I compute the significance level $alpha$ is equal to $1$ too. It seems I'm computing something wrong but I'm lost. Is my $mu = 10*0.75$ computed the right way?










share|cite|improve this question









$endgroup$




I'm studying about hypothesis test theory and I've reached the next exercise:



Let $Xsim Ber(theta)$. Then, we know that for a sample of $n=10$, we reject $H_0:theta = 0.5$, and accept $H_1: theta = 0.75$ if $overline{X} > 0.8$.




  • Find the test's power function.

  • Compute the significance level.

  • Compute the power of the hypothesis test.


So, I know a few things that could be useful:



For the first question I know that the power function is defined as
$$mathbb{P}[text{Reject } H_0 mid mu]$$



where $mu$ is the mean of the sample. So I need to compute:



$$mathbb{P}[overline{X} > 0.8 mid mu]$$



So far, I know that



$$frac{overline{X}-mu}{frac{sigma}{sqrt{n}}}sim N(0,1)$$



And also that for independent $X_i sim Ber(theta)$ then $Y = sum_{i=1}^{10}X_i sim Bin(10,theta)$ and $mathbb{E}(Y) = 10theta, sigma_Y = sqrt{10(theta)(1-theta)}$.



Maybe it is a simple exercise but I'm having trouble figuring out the value of $mu$. For example, for the third question, when I compute the power of the test I did it this way:



begin{align}
text{Power} &= mathbb{P}[overline{X} > 0.8 mid theta = 0.75]\
&= mathbb{P}left[frac{overline{X} - (10*.75)}{frac{sqrt{10*0.75*0.25}}{sqrt{10}}} > frac{0.8-(10*0.75)}{frac{sqrt{10*0.75*0.25}}{sqrt{10}}}right]\
&= mathbb{P} [Z > -15.47]\
&= 1-phi(-15.47)\
&= 1
end{align}



But it confuses me that the power of the test is $1$. And when I compute the significance level $alpha$ is equal to $1$ too. It seems I'm computing something wrong but I'm lost. Is my $mu = 10*0.75$ computed the right way?







statistics statistical-inference hypothesis-testing






share|cite|improve this question













share|cite|improve this question











share|cite|improve this question




share|cite|improve this question










asked Dec 11 '18 at 0:48









frl93frl93

1169




1169








  • 1




    $begingroup$
    Since $n=10$, then the central limit theorem may not give a good result. I think you should stick with the binomial distribution to compute the power.
    $endgroup$
    – gd1035
    Dec 11 '18 at 0:58










  • $begingroup$
    Rjection region is given as : Let $Y=sum _i^{10} X_i sim B(10,theta) $; $ bar X > .8 implies sum _i^{10} X_i >8 ;Y>8 $
    $endgroup$
    – Daman deep
    Dec 12 '18 at 9:25
















  • 1




    $begingroup$
    Since $n=10$, then the central limit theorem may not give a good result. I think you should stick with the binomial distribution to compute the power.
    $endgroup$
    – gd1035
    Dec 11 '18 at 0:58










  • $begingroup$
    Rjection region is given as : Let $Y=sum _i^{10} X_i sim B(10,theta) $; $ bar X > .8 implies sum _i^{10} X_i >8 ;Y>8 $
    $endgroup$
    – Daman deep
    Dec 12 '18 at 9:25










1




1




$begingroup$
Since $n=10$, then the central limit theorem may not give a good result. I think you should stick with the binomial distribution to compute the power.
$endgroup$
– gd1035
Dec 11 '18 at 0:58




$begingroup$
Since $n=10$, then the central limit theorem may not give a good result. I think you should stick with the binomial distribution to compute the power.
$endgroup$
– gd1035
Dec 11 '18 at 0:58












$begingroup$
Rjection region is given as : Let $Y=sum _i^{10} X_i sim B(10,theta) $; $ bar X > .8 implies sum _i^{10} X_i >8 ;Y>8 $
$endgroup$
– Daman deep
Dec 12 '18 at 9:25






$begingroup$
Rjection region is given as : Let $Y=sum _i^{10} X_i sim B(10,theta) $; $ bar X > .8 implies sum _i^{10} X_i >8 ;Y>8 $
$endgroup$
– Daman deep
Dec 12 '18 at 9:25












1 Answer
1






active

oldest

votes


















0












$begingroup$

To use the Central Limit Theorem, and hence approximate the probability by a normal distribution, you need your sample size to be at least $n=30$.



To begin, we know that if $X_{i}$ is $Ber(theta)$ then $Y=sum_{i=1}^{n}X_{i}$ is $Bin(n, theta)$, and the probability mass function (pmf) for $Y$ is $p(y)={n choose y}theta^{y}(1-theta)^{n-y}$.



Now consider $bar{X}=frac{1}{n} sum_{i=1}^{n}X_{i}=nY$. Then using the above pmf, with $y=nbar{x}$, we get the pmf for $bar{X}$ as



$p(bar{x})=Pr(bar{X}=x)$=${n choose nbar{x}} theta^{nbar{x}} (1-theta)^{n-nbar{x}}$,
for $xin lbrace 0, frac{1}{n},...,frac{n-1}{n}, 1 rbrace$.



Furthermore, $E(bar{X})=theta$ and $Var(bar{X})=frac{theta(1-theta)}{n}$.



Finally, for the power of the test, you are computing the probability that the null hypothesis is rejected, given that it’s false. That is, you are calculating the probability that you accept the alternative hypothesis given that it’s true. So you need to compute $Pr(bar{X}>0.8|theta=0.75)$. You have all the ingredients now to complete the question: you know what the pmf (distribution) of $bar{X}$ and you know that $theta=0.75$. Keep in mind that in your case, $n=10$ and the possible values for $bar{X}$ are $0, frac{1}{10},...,1$.






share|cite|improve this answer











$endgroup$













    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
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3034714%2fbernoulli-trials-hypothesis-test%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0












    $begingroup$

    To use the Central Limit Theorem, and hence approximate the probability by a normal distribution, you need your sample size to be at least $n=30$.



    To begin, we know that if $X_{i}$ is $Ber(theta)$ then $Y=sum_{i=1}^{n}X_{i}$ is $Bin(n, theta)$, and the probability mass function (pmf) for $Y$ is $p(y)={n choose y}theta^{y}(1-theta)^{n-y}$.



    Now consider $bar{X}=frac{1}{n} sum_{i=1}^{n}X_{i}=nY$. Then using the above pmf, with $y=nbar{x}$, we get the pmf for $bar{X}$ as



    $p(bar{x})=Pr(bar{X}=x)$=${n choose nbar{x}} theta^{nbar{x}} (1-theta)^{n-nbar{x}}$,
    for $xin lbrace 0, frac{1}{n},...,frac{n-1}{n}, 1 rbrace$.



    Furthermore, $E(bar{X})=theta$ and $Var(bar{X})=frac{theta(1-theta)}{n}$.



    Finally, for the power of the test, you are computing the probability that the null hypothesis is rejected, given that it’s false. That is, you are calculating the probability that you accept the alternative hypothesis given that it’s true. So you need to compute $Pr(bar{X}>0.8|theta=0.75)$. You have all the ingredients now to complete the question: you know what the pmf (distribution) of $bar{X}$ and you know that $theta=0.75$. Keep in mind that in your case, $n=10$ and the possible values for $bar{X}$ are $0, frac{1}{10},...,1$.






    share|cite|improve this answer











    $endgroup$


















      0












      $begingroup$

      To use the Central Limit Theorem, and hence approximate the probability by a normal distribution, you need your sample size to be at least $n=30$.



      To begin, we know that if $X_{i}$ is $Ber(theta)$ then $Y=sum_{i=1}^{n}X_{i}$ is $Bin(n, theta)$, and the probability mass function (pmf) for $Y$ is $p(y)={n choose y}theta^{y}(1-theta)^{n-y}$.



      Now consider $bar{X}=frac{1}{n} sum_{i=1}^{n}X_{i}=nY$. Then using the above pmf, with $y=nbar{x}$, we get the pmf for $bar{X}$ as



      $p(bar{x})=Pr(bar{X}=x)$=${n choose nbar{x}} theta^{nbar{x}} (1-theta)^{n-nbar{x}}$,
      for $xin lbrace 0, frac{1}{n},...,frac{n-1}{n}, 1 rbrace$.



      Furthermore, $E(bar{X})=theta$ and $Var(bar{X})=frac{theta(1-theta)}{n}$.



      Finally, for the power of the test, you are computing the probability that the null hypothesis is rejected, given that it’s false. That is, you are calculating the probability that you accept the alternative hypothesis given that it’s true. So you need to compute $Pr(bar{X}>0.8|theta=0.75)$. You have all the ingredients now to complete the question: you know what the pmf (distribution) of $bar{X}$ and you know that $theta=0.75$. Keep in mind that in your case, $n=10$ and the possible values for $bar{X}$ are $0, frac{1}{10},...,1$.






      share|cite|improve this answer











      $endgroup$
















        0












        0








        0





        $begingroup$

        To use the Central Limit Theorem, and hence approximate the probability by a normal distribution, you need your sample size to be at least $n=30$.



        To begin, we know that if $X_{i}$ is $Ber(theta)$ then $Y=sum_{i=1}^{n}X_{i}$ is $Bin(n, theta)$, and the probability mass function (pmf) for $Y$ is $p(y)={n choose y}theta^{y}(1-theta)^{n-y}$.



        Now consider $bar{X}=frac{1}{n} sum_{i=1}^{n}X_{i}=nY$. Then using the above pmf, with $y=nbar{x}$, we get the pmf for $bar{X}$ as



        $p(bar{x})=Pr(bar{X}=x)$=${n choose nbar{x}} theta^{nbar{x}} (1-theta)^{n-nbar{x}}$,
        for $xin lbrace 0, frac{1}{n},...,frac{n-1}{n}, 1 rbrace$.



        Furthermore, $E(bar{X})=theta$ and $Var(bar{X})=frac{theta(1-theta)}{n}$.



        Finally, for the power of the test, you are computing the probability that the null hypothesis is rejected, given that it’s false. That is, you are calculating the probability that you accept the alternative hypothesis given that it’s true. So you need to compute $Pr(bar{X}>0.8|theta=0.75)$. You have all the ingredients now to complete the question: you know what the pmf (distribution) of $bar{X}$ and you know that $theta=0.75$. Keep in mind that in your case, $n=10$ and the possible values for $bar{X}$ are $0, frac{1}{10},...,1$.






        share|cite|improve this answer











        $endgroup$



        To use the Central Limit Theorem, and hence approximate the probability by a normal distribution, you need your sample size to be at least $n=30$.



        To begin, we know that if $X_{i}$ is $Ber(theta)$ then $Y=sum_{i=1}^{n}X_{i}$ is $Bin(n, theta)$, and the probability mass function (pmf) for $Y$ is $p(y)={n choose y}theta^{y}(1-theta)^{n-y}$.



        Now consider $bar{X}=frac{1}{n} sum_{i=1}^{n}X_{i}=nY$. Then using the above pmf, with $y=nbar{x}$, we get the pmf for $bar{X}$ as



        $p(bar{x})=Pr(bar{X}=x)$=${n choose nbar{x}} theta^{nbar{x}} (1-theta)^{n-nbar{x}}$,
        for $xin lbrace 0, frac{1}{n},...,frac{n-1}{n}, 1 rbrace$.



        Furthermore, $E(bar{X})=theta$ and $Var(bar{X})=frac{theta(1-theta)}{n}$.



        Finally, for the power of the test, you are computing the probability that the null hypothesis is rejected, given that it’s false. That is, you are calculating the probability that you accept the alternative hypothesis given that it’s true. So you need to compute $Pr(bar{X}>0.8|theta=0.75)$. You have all the ingredients now to complete the question: you know what the pmf (distribution) of $bar{X}$ and you know that $theta=0.75$. Keep in mind that in your case, $n=10$ and the possible values for $bar{X}$ are $0, frac{1}{10},...,1$.







        share|cite|improve this answer














        share|cite|improve this answer



        share|cite|improve this answer








        edited Dec 11 '18 at 4:44

























        answered Dec 11 '18 at 4:32









        Live Free or π HardLive Free or π Hard

        479213




        479213






























            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.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3034714%2fbernoulli-trials-hypothesis-test%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

            Plaza Victoria

            Puebla de Zaragoza

            Musa