Importance sampling estimation of power functionHow to compute importance sampling?Calculate power of a test - solution verificationPower Function ManipulationProof of variance of stationary time seriesPower function in hypothesis testingDerivation and motivation of the power function of a testMost powerful test of simple vs. simple in $mathrmUnif[0, theta]$UMP Test of $H_0 : theta leq 0.1$ vs. $H_1 : theta gt 0.1$ for iid Geometric Random VariablesUniformly most powerful unbiased test exampleHow to evaluate double Integral with importance sampling

When writing an error prompt, should we end the sentence with a exclamation mark or a dot?

How to supress loops in a digraph?

Short story written from alien perspective with this line: "It's too bright to look at, so they don't"

Finding row wise sum of transpose of hv-convex binary matrix

Credit card offering 0.5 miles for every cent rounded up. Too good to be true?

Bent spoke design wheels — feasible?

Building a road to escape Earth's gravity by making a pyramid on Antartica

How to make a setting relevant?

How do I write "Show, Don't Tell" as an Asperger?

How to pass a regex when finding a directory path in bash?

PhD student with mental health issues and bad performance

What's the correct term describing the action of sending a brand-new ship out into its first seafaring trip?

Secure offsite backup, even in the case of hacker root access

Pronoun introduced before its antecedent

What do we gain with higher order logics?

On the Twin Paradox Again

Java guess the number

Does the growth of home value benefit from compound interest?

What's the logic behind the the organization of Hamburg's bus transport into "rings"?

Can a 2nd-level sorcerer use sorcery points to create a 2nd-level spell slot?

What is the advantage of carrying a tripod and ND-filters when you could use image stacking instead?

Through what methods and mechanisms can a multi-material FDM printer operate?

My coworkers think I had a long honeymoon. Actually I was diagnosed with cancer. How do I talk about it?

How were concentration and extermination camp guards recruited?



Importance sampling estimation of power function


How to compute importance sampling?Calculate power of a test - solution verificationPower Function ManipulationProof of variance of stationary time seriesPower function in hypothesis testingDerivation and motivation of the power function of a testMost powerful test of simple vs. simple in $mathrmUnif[0, theta]$UMP Test of $H_0 : theta leq 0.1$ vs. $H_1 : theta gt 0.1$ for iid Geometric Random VariablesUniformly most powerful unbiased test exampleHow to evaluate double Integral with importance sampling






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








1












$begingroup$


Problem



Suppose we are given $Poisson(theta)$ model, and the null hypothesis is as follows:



$$
H_0 : theta = 0.1 vs. H_1 : theta < 0.1
$$



Suppose we take sample of $n=100$ from the model, $X_1, cdots, X_100$.




Plot the power function $gamma(theta)$, with standard error, of the following test, using importance sampling.



Test : reject $H_0$ at $alpha=0.05$, when



$$
fracbarX - 0.1sqrt0.1/100 < -1.645
$$




In the grammar of test function,



$$
phi(X_1, cdots, X_100) =
begincases
1 & mathrmif fracbarX - 0.1sqrt0.1/100 < -1.645 \[7pt]
0 & mathrmif fracbarX - 0.1sqrt0.1/100 ge -1.645 \[7pt]
endcases
$$




Try



Power function is defined as



$$
gamma(theta) := mathrmE left[ phi(X_1, cdots, X_100) right]
$$



for a fixed $theta$.



So my strategy is to first fix $theta$, and evaluate the quantity



$$
mathrmE left[ phi(X_1, cdots, X_100) right] = Prleft(fracbarX - 0.1sqrt0.1/100 < -1.645 right)
$$



where $100barX sim Poisson(100theta)$.




Question



I do not see any place to apply the importance sampling technique. How the importance sampling (which can give us standard error) can contribute my question?



Any help will be appreciated.










share|cite|improve this question











$endgroup$







  • 1




    $begingroup$
    I added the self-study tag. Feel free to change it back if this isn't an exercise that was given to you by an instructor
    $endgroup$
    – Taylor
    5 hours ago


















1












$begingroup$


Problem



Suppose we are given $Poisson(theta)$ model, and the null hypothesis is as follows:



$$
H_0 : theta = 0.1 vs. H_1 : theta < 0.1
$$



Suppose we take sample of $n=100$ from the model, $X_1, cdots, X_100$.




Plot the power function $gamma(theta)$, with standard error, of the following test, using importance sampling.



Test : reject $H_0$ at $alpha=0.05$, when



$$
fracbarX - 0.1sqrt0.1/100 < -1.645
$$




In the grammar of test function,



$$
phi(X_1, cdots, X_100) =
begincases
1 & mathrmif fracbarX - 0.1sqrt0.1/100 < -1.645 \[7pt]
0 & mathrmif fracbarX - 0.1sqrt0.1/100 ge -1.645 \[7pt]
endcases
$$




Try



Power function is defined as



$$
gamma(theta) := mathrmE left[ phi(X_1, cdots, X_100) right]
$$



for a fixed $theta$.



So my strategy is to first fix $theta$, and evaluate the quantity



$$
mathrmE left[ phi(X_1, cdots, X_100) right] = Prleft(fracbarX - 0.1sqrt0.1/100 < -1.645 right)
$$



where $100barX sim Poisson(100theta)$.




Question



I do not see any place to apply the importance sampling technique. How the importance sampling (which can give us standard error) can contribute my question?



Any help will be appreciated.










share|cite|improve this question











$endgroup$







  • 1




    $begingroup$
    I added the self-study tag. Feel free to change it back if this isn't an exercise that was given to you by an instructor
    $endgroup$
    – Taylor
    5 hours ago














1












1








1





$begingroup$


Problem



Suppose we are given $Poisson(theta)$ model, and the null hypothesis is as follows:



$$
H_0 : theta = 0.1 vs. H_1 : theta < 0.1
$$



Suppose we take sample of $n=100$ from the model, $X_1, cdots, X_100$.




Plot the power function $gamma(theta)$, with standard error, of the following test, using importance sampling.



Test : reject $H_0$ at $alpha=0.05$, when



$$
fracbarX - 0.1sqrt0.1/100 < -1.645
$$




In the grammar of test function,



$$
phi(X_1, cdots, X_100) =
begincases
1 & mathrmif fracbarX - 0.1sqrt0.1/100 < -1.645 \[7pt]
0 & mathrmif fracbarX - 0.1sqrt0.1/100 ge -1.645 \[7pt]
endcases
$$




Try



Power function is defined as



$$
gamma(theta) := mathrmE left[ phi(X_1, cdots, X_100) right]
$$



for a fixed $theta$.



So my strategy is to first fix $theta$, and evaluate the quantity



$$
mathrmE left[ phi(X_1, cdots, X_100) right] = Prleft(fracbarX - 0.1sqrt0.1/100 < -1.645 right)
$$



where $100barX sim Poisson(100theta)$.




Question



I do not see any place to apply the importance sampling technique. How the importance sampling (which can give us standard error) can contribute my question?



Any help will be appreciated.










share|cite|improve this question











$endgroup$




Problem



Suppose we are given $Poisson(theta)$ model, and the null hypothesis is as follows:



$$
H_0 : theta = 0.1 vs. H_1 : theta < 0.1
$$



Suppose we take sample of $n=100$ from the model, $X_1, cdots, X_100$.




Plot the power function $gamma(theta)$, with standard error, of the following test, using importance sampling.



Test : reject $H_0$ at $alpha=0.05$, when



$$
fracbarX - 0.1sqrt0.1/100 < -1.645
$$




In the grammar of test function,



$$
phi(X_1, cdots, X_100) =
begincases
1 & mathrmif fracbarX - 0.1sqrt0.1/100 < -1.645 \[7pt]
0 & mathrmif fracbarX - 0.1sqrt0.1/100 ge -1.645 \[7pt]
endcases
$$




Try



Power function is defined as



$$
gamma(theta) := mathrmE left[ phi(X_1, cdots, X_100) right]
$$



for a fixed $theta$.



So my strategy is to first fix $theta$, and evaluate the quantity



$$
mathrmE left[ phi(X_1, cdots, X_100) right] = Prleft(fracbarX - 0.1sqrt0.1/100 < -1.645 right)
$$



where $100barX sim Poisson(100theta)$.




Question



I do not see any place to apply the importance sampling technique. How the importance sampling (which can give us standard error) can contribute my question?



Any help will be appreciated.







hypothesis-testing self-study monte-carlo power importance-sampling






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited 5 hours ago









Taylor

13.1k22148




13.1k22148










asked 10 hours ago









morebluemoreblue

469111




469111







  • 1




    $begingroup$
    I added the self-study tag. Feel free to change it back if this isn't an exercise that was given to you by an instructor
    $endgroup$
    – Taylor
    5 hours ago













  • 1




    $begingroup$
    I added the self-study tag. Feel free to change it back if this isn't an exercise that was given to you by an instructor
    $endgroup$
    – Taylor
    5 hours ago








1




1




$begingroup$
I added the self-study tag. Feel free to change it back if this isn't an exercise that was given to you by an instructor
$endgroup$
– Taylor
5 hours ago





$begingroup$
I added the self-study tag. Feel free to change it back if this isn't an exercise that was given to you by an instructor
$endgroup$
– Taylor
5 hours ago











2 Answers
2






active

oldest

votes


















3












$begingroup$

I will mention three ways to approximate the following
$$
mathrmE left[ phi(X_1, cdots, X_100) right] = Prleft(fracbarX - 0.1sqrt0.1/100 < -1.645 right).
$$



  1. Use the CLT to justify
    $$
    Phi(-1.645).
    $$


2.



Second, simulate $N$ length $100$ data sets from your joint mass function to calculate
$$
frac1Nsum_i=1^N phi(X^i_1, cdots, X^i_100)
$$



  1. Simulate $N$ length $100$ data sets from some proposal pmf $q(x_1, ldots, x_100)$ and calculate
    $$
    frac1Nsum_i=1^Nphi(X^i_1, cdots, X^i_100) fracp(x^i_1, ldots, x^i_100)q(X^i_1, cdots, X^i_100)
    $$

    where $p$ is your true product-Poisson pmf.


Calculating approximate standard errors is probably easier for the last two, but you may also get Berry-Esseen bounds for the first one.



To check your answers, it might also be worth evaluating the true probability. This is possible using what you mentioned: that the sum of iid Poissons is also Poisson-distributed. The cdf is available in most statistical software packages:
$$
Prleft(sum_j X_j < 10 -1.645sqrt10 right).
$$






share|cite|improve this answer











$endgroup$












  • $begingroup$
    (+1) for mentioning exact computations. $10 - 1.645sqrt10 approx 4.8,$ but the next lower integer is $4$ for an actual significance level of about 3%.
    $endgroup$
    – BruceET
    5 hours ago











  • $begingroup$
    @BruceET thanks, and right, asymptotic $alpha$ isn't the same as small sample $alpha$. I'm just trying to help with power calculations using importance sampling, though, so I'm not fiddling with the rejection region.
    $endgroup$
    – Taylor
    5 hours ago



















2












$begingroup$

Here is a power curve for an exact test of $H_0: lambda = 0.1$ vs.
$H_a: lambda le 0.1,$ based on $n = 10$ observations from
$mathsfPois(lambda).$



Under $H_0,$ the total $T$ of the $n = 100$ observations $X_i sim mathsfPois(0.1)$ has
$T sim mathsfPois(10).$ Because the Poisson distribution is
discrete, a (nonrandomized) test at exactly level $alpha = 0.05$ is not available.



The largest available level below 5% is $alpha = 0.0293.$ So we will find
the power of a test that rejects $H_0$ when $T le 4$ or $bar X = T/n le 0.4.$ (See computations in R below.)



qpois(.05, 10)
[1] 5
ppois(5,10)
[1] 0.06708596
ppois(4,10)
[1] 0.02925269


The power of the test against alternative $lambda_0 < 0.1$ is
$P(T le 4,|,lambda_0).$



Here is a graph of the power function:



lam = seq(10, .01, by=-.01)/100
p.rej = ppois(4, 100*lam)
plot(lam, p.rej, type="l", ylim=0:1, main="Power Curve")
abline(h=0:1, col="green2"); abline(v=c(0,.1), col="green2")


enter image description here






share|cite|improve this answer











$endgroup$













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



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstats.stackexchange.com%2fquestions%2f411127%2fimportance-sampling-estimation-of-power-function%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    3












    $begingroup$

    I will mention three ways to approximate the following
    $$
    mathrmE left[ phi(X_1, cdots, X_100) right] = Prleft(fracbarX - 0.1sqrt0.1/100 < -1.645 right).
    $$



    1. Use the CLT to justify
      $$
      Phi(-1.645).
      $$


    2.



    Second, simulate $N$ length $100$ data sets from your joint mass function to calculate
    $$
    frac1Nsum_i=1^N phi(X^i_1, cdots, X^i_100)
    $$



    1. Simulate $N$ length $100$ data sets from some proposal pmf $q(x_1, ldots, x_100)$ and calculate
      $$
      frac1Nsum_i=1^Nphi(X^i_1, cdots, X^i_100) fracp(x^i_1, ldots, x^i_100)q(X^i_1, cdots, X^i_100)
      $$

      where $p$ is your true product-Poisson pmf.


    Calculating approximate standard errors is probably easier for the last two, but you may also get Berry-Esseen bounds for the first one.



    To check your answers, it might also be worth evaluating the true probability. This is possible using what you mentioned: that the sum of iid Poissons is also Poisson-distributed. The cdf is available in most statistical software packages:
    $$
    Prleft(sum_j X_j < 10 -1.645sqrt10 right).
    $$






    share|cite|improve this answer











    $endgroup$












    • $begingroup$
      (+1) for mentioning exact computations. $10 - 1.645sqrt10 approx 4.8,$ but the next lower integer is $4$ for an actual significance level of about 3%.
      $endgroup$
      – BruceET
      5 hours ago











    • $begingroup$
      @BruceET thanks, and right, asymptotic $alpha$ isn't the same as small sample $alpha$. I'm just trying to help with power calculations using importance sampling, though, so I'm not fiddling with the rejection region.
      $endgroup$
      – Taylor
      5 hours ago
















    3












    $begingroup$

    I will mention three ways to approximate the following
    $$
    mathrmE left[ phi(X_1, cdots, X_100) right] = Prleft(fracbarX - 0.1sqrt0.1/100 < -1.645 right).
    $$



    1. Use the CLT to justify
      $$
      Phi(-1.645).
      $$


    2.



    Second, simulate $N$ length $100$ data sets from your joint mass function to calculate
    $$
    frac1Nsum_i=1^N phi(X^i_1, cdots, X^i_100)
    $$



    1. Simulate $N$ length $100$ data sets from some proposal pmf $q(x_1, ldots, x_100)$ and calculate
      $$
      frac1Nsum_i=1^Nphi(X^i_1, cdots, X^i_100) fracp(x^i_1, ldots, x^i_100)q(X^i_1, cdots, X^i_100)
      $$

      where $p$ is your true product-Poisson pmf.


    Calculating approximate standard errors is probably easier for the last two, but you may also get Berry-Esseen bounds for the first one.



    To check your answers, it might also be worth evaluating the true probability. This is possible using what you mentioned: that the sum of iid Poissons is also Poisson-distributed. The cdf is available in most statistical software packages:
    $$
    Prleft(sum_j X_j < 10 -1.645sqrt10 right).
    $$






    share|cite|improve this answer











    $endgroup$












    • $begingroup$
      (+1) for mentioning exact computations. $10 - 1.645sqrt10 approx 4.8,$ but the next lower integer is $4$ for an actual significance level of about 3%.
      $endgroup$
      – BruceET
      5 hours ago











    • $begingroup$
      @BruceET thanks, and right, asymptotic $alpha$ isn't the same as small sample $alpha$. I'm just trying to help with power calculations using importance sampling, though, so I'm not fiddling with the rejection region.
      $endgroup$
      – Taylor
      5 hours ago














    3












    3








    3





    $begingroup$

    I will mention three ways to approximate the following
    $$
    mathrmE left[ phi(X_1, cdots, X_100) right] = Prleft(fracbarX - 0.1sqrt0.1/100 < -1.645 right).
    $$



    1. Use the CLT to justify
      $$
      Phi(-1.645).
      $$


    2.



    Second, simulate $N$ length $100$ data sets from your joint mass function to calculate
    $$
    frac1Nsum_i=1^N phi(X^i_1, cdots, X^i_100)
    $$



    1. Simulate $N$ length $100$ data sets from some proposal pmf $q(x_1, ldots, x_100)$ and calculate
      $$
      frac1Nsum_i=1^Nphi(X^i_1, cdots, X^i_100) fracp(x^i_1, ldots, x^i_100)q(X^i_1, cdots, X^i_100)
      $$

      where $p$ is your true product-Poisson pmf.


    Calculating approximate standard errors is probably easier for the last two, but you may also get Berry-Esseen bounds for the first one.



    To check your answers, it might also be worth evaluating the true probability. This is possible using what you mentioned: that the sum of iid Poissons is also Poisson-distributed. The cdf is available in most statistical software packages:
    $$
    Prleft(sum_j X_j < 10 -1.645sqrt10 right).
    $$






    share|cite|improve this answer











    $endgroup$



    I will mention three ways to approximate the following
    $$
    mathrmE left[ phi(X_1, cdots, X_100) right] = Prleft(fracbarX - 0.1sqrt0.1/100 < -1.645 right).
    $$



    1. Use the CLT to justify
      $$
      Phi(-1.645).
      $$


    2.



    Second, simulate $N$ length $100$ data sets from your joint mass function to calculate
    $$
    frac1Nsum_i=1^N phi(X^i_1, cdots, X^i_100)
    $$



    1. Simulate $N$ length $100$ data sets from some proposal pmf $q(x_1, ldots, x_100)$ and calculate
      $$
      frac1Nsum_i=1^Nphi(X^i_1, cdots, X^i_100) fracp(x^i_1, ldots, x^i_100)q(X^i_1, cdots, X^i_100)
      $$

      where $p$ is your true product-Poisson pmf.


    Calculating approximate standard errors is probably easier for the last two, but you may also get Berry-Esseen bounds for the first one.



    To check your answers, it might also be worth evaluating the true probability. This is possible using what you mentioned: that the sum of iid Poissons is also Poisson-distributed. The cdf is available in most statistical software packages:
    $$
    Prleft(sum_j X_j < 10 -1.645sqrt10 right).
    $$







    share|cite|improve this answer














    share|cite|improve this answer



    share|cite|improve this answer








    edited 2 hours ago

























    answered 5 hours ago









    TaylorTaylor

    13.1k22148




    13.1k22148











    • $begingroup$
      (+1) for mentioning exact computations. $10 - 1.645sqrt10 approx 4.8,$ but the next lower integer is $4$ for an actual significance level of about 3%.
      $endgroup$
      – BruceET
      5 hours ago











    • $begingroup$
      @BruceET thanks, and right, asymptotic $alpha$ isn't the same as small sample $alpha$. I'm just trying to help with power calculations using importance sampling, though, so I'm not fiddling with the rejection region.
      $endgroup$
      – Taylor
      5 hours ago

















    • $begingroup$
      (+1) for mentioning exact computations. $10 - 1.645sqrt10 approx 4.8,$ but the next lower integer is $4$ for an actual significance level of about 3%.
      $endgroup$
      – BruceET
      5 hours ago











    • $begingroup$
      @BruceET thanks, and right, asymptotic $alpha$ isn't the same as small sample $alpha$. I'm just trying to help with power calculations using importance sampling, though, so I'm not fiddling with the rejection region.
      $endgroup$
      – Taylor
      5 hours ago
















    $begingroup$
    (+1) for mentioning exact computations. $10 - 1.645sqrt10 approx 4.8,$ but the next lower integer is $4$ for an actual significance level of about 3%.
    $endgroup$
    – BruceET
    5 hours ago





    $begingroup$
    (+1) for mentioning exact computations. $10 - 1.645sqrt10 approx 4.8,$ but the next lower integer is $4$ for an actual significance level of about 3%.
    $endgroup$
    – BruceET
    5 hours ago













    $begingroup$
    @BruceET thanks, and right, asymptotic $alpha$ isn't the same as small sample $alpha$. I'm just trying to help with power calculations using importance sampling, though, so I'm not fiddling with the rejection region.
    $endgroup$
    – Taylor
    5 hours ago





    $begingroup$
    @BruceET thanks, and right, asymptotic $alpha$ isn't the same as small sample $alpha$. I'm just trying to help with power calculations using importance sampling, though, so I'm not fiddling with the rejection region.
    $endgroup$
    – Taylor
    5 hours ago














    2












    $begingroup$

    Here is a power curve for an exact test of $H_0: lambda = 0.1$ vs.
    $H_a: lambda le 0.1,$ based on $n = 10$ observations from
    $mathsfPois(lambda).$



    Under $H_0,$ the total $T$ of the $n = 100$ observations $X_i sim mathsfPois(0.1)$ has
    $T sim mathsfPois(10).$ Because the Poisson distribution is
    discrete, a (nonrandomized) test at exactly level $alpha = 0.05$ is not available.



    The largest available level below 5% is $alpha = 0.0293.$ So we will find
    the power of a test that rejects $H_0$ when $T le 4$ or $bar X = T/n le 0.4.$ (See computations in R below.)



    qpois(.05, 10)
    [1] 5
    ppois(5,10)
    [1] 0.06708596
    ppois(4,10)
    [1] 0.02925269


    The power of the test against alternative $lambda_0 < 0.1$ is
    $P(T le 4,|,lambda_0).$



    Here is a graph of the power function:



    lam = seq(10, .01, by=-.01)/100
    p.rej = ppois(4, 100*lam)
    plot(lam, p.rej, type="l", ylim=0:1, main="Power Curve")
    abline(h=0:1, col="green2"); abline(v=c(0,.1), col="green2")


    enter image description here






    share|cite|improve this answer











    $endgroup$

















      2












      $begingroup$

      Here is a power curve for an exact test of $H_0: lambda = 0.1$ vs.
      $H_a: lambda le 0.1,$ based on $n = 10$ observations from
      $mathsfPois(lambda).$



      Under $H_0,$ the total $T$ of the $n = 100$ observations $X_i sim mathsfPois(0.1)$ has
      $T sim mathsfPois(10).$ Because the Poisson distribution is
      discrete, a (nonrandomized) test at exactly level $alpha = 0.05$ is not available.



      The largest available level below 5% is $alpha = 0.0293.$ So we will find
      the power of a test that rejects $H_0$ when $T le 4$ or $bar X = T/n le 0.4.$ (See computations in R below.)



      qpois(.05, 10)
      [1] 5
      ppois(5,10)
      [1] 0.06708596
      ppois(4,10)
      [1] 0.02925269


      The power of the test against alternative $lambda_0 < 0.1$ is
      $P(T le 4,|,lambda_0).$



      Here is a graph of the power function:



      lam = seq(10, .01, by=-.01)/100
      p.rej = ppois(4, 100*lam)
      plot(lam, p.rej, type="l", ylim=0:1, main="Power Curve")
      abline(h=0:1, col="green2"); abline(v=c(0,.1), col="green2")


      enter image description here






      share|cite|improve this answer











      $endgroup$















        2












        2








        2





        $begingroup$

        Here is a power curve for an exact test of $H_0: lambda = 0.1$ vs.
        $H_a: lambda le 0.1,$ based on $n = 10$ observations from
        $mathsfPois(lambda).$



        Under $H_0,$ the total $T$ of the $n = 100$ observations $X_i sim mathsfPois(0.1)$ has
        $T sim mathsfPois(10).$ Because the Poisson distribution is
        discrete, a (nonrandomized) test at exactly level $alpha = 0.05$ is not available.



        The largest available level below 5% is $alpha = 0.0293.$ So we will find
        the power of a test that rejects $H_0$ when $T le 4$ or $bar X = T/n le 0.4.$ (See computations in R below.)



        qpois(.05, 10)
        [1] 5
        ppois(5,10)
        [1] 0.06708596
        ppois(4,10)
        [1] 0.02925269


        The power of the test against alternative $lambda_0 < 0.1$ is
        $P(T le 4,|,lambda_0).$



        Here is a graph of the power function:



        lam = seq(10, .01, by=-.01)/100
        p.rej = ppois(4, 100*lam)
        plot(lam, p.rej, type="l", ylim=0:1, main="Power Curve")
        abline(h=0:1, col="green2"); abline(v=c(0,.1), col="green2")


        enter image description here






        share|cite|improve this answer











        $endgroup$



        Here is a power curve for an exact test of $H_0: lambda = 0.1$ vs.
        $H_a: lambda le 0.1,$ based on $n = 10$ observations from
        $mathsfPois(lambda).$



        Under $H_0,$ the total $T$ of the $n = 100$ observations $X_i sim mathsfPois(0.1)$ has
        $T sim mathsfPois(10).$ Because the Poisson distribution is
        discrete, a (nonrandomized) test at exactly level $alpha = 0.05$ is not available.



        The largest available level below 5% is $alpha = 0.0293.$ So we will find
        the power of a test that rejects $H_0$ when $T le 4$ or $bar X = T/n le 0.4.$ (See computations in R below.)



        qpois(.05, 10)
        [1] 5
        ppois(5,10)
        [1] 0.06708596
        ppois(4,10)
        [1] 0.02925269


        The power of the test against alternative $lambda_0 < 0.1$ is
        $P(T le 4,|,lambda_0).$



        Here is a graph of the power function:



        lam = seq(10, .01, by=-.01)/100
        p.rej = ppois(4, 100*lam)
        plot(lam, p.rej, type="l", ylim=0:1, main="Power Curve")
        abline(h=0:1, col="green2"); abline(v=c(0,.1), col="green2")


        enter image description here







        share|cite|improve this answer














        share|cite|improve this answer



        share|cite|improve this answer








        edited 4 hours ago

























        answered 5 hours ago









        BruceETBruceET

        8,2951721




        8,2951721



























            draft saved

            draft discarded
















































            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.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstats.stackexchange.com%2fquestions%2f411127%2fimportance-sampling-estimation-of-power-function%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

            Canceling a color specificationRandomly assigning color to Graphics3D objects?Default color for Filling in Mathematica 9Coloring specific elements of sets with a prime modified order in an array plotHow to pick a color differing significantly from the colors already in a given color list?Detection of the text colorColor numbers based on their valueCan color schemes for use with ColorData include opacity specification?My dynamic color schemes

            Invision Community Contents History See also References External links Navigation menuProprietaryinvisioncommunity.comIPS Community ForumsIPS Community Forumsthis blog entry"License Changes, IP.Board 3.4, and the Future""Interview -- Matt Mecham of Ibforums""CEO Invision Power Board, Matt Mecham Is a Liar, Thief!"IPB License Explanation 1.3, 1.3.1, 2.0, and 2.1ArchivedSecurity Fixes, Updates And Enhancements For IPB 1.3.1Archived"New Demo Accounts - Invision Power Services"the original"New Default Skin"the original"Invision Power Board 3.0.0 and Applications Released"the original"Archived copy"the original"Perpetual licenses being done away with""Release Notes - Invision Power Services""Introducing: IPS Community Suite 4!"Invision Community Release Notes

            François Viète Contents Biography Work and thought Bibliography See also Notes Further reading External links Navigation menup. 21Google Bookspp. 75–77Google BooksDe thou (from University of Saint Andrews)ArchivedGoogle BooksGoogle BooksGoogle BooksGoogle booksGoogle Bookscc-parthenay.frL'histoire universelle (fr)Universal History (en)ArchivedAdsabs.harvard.eduPagesperso-orange.frArchive.orgChikara Sasaki. Descartes' mathematical thought p.259Google BooksGoogle BooksGoogle Bookspp. 152 and onwardGoogle BooksGoogle BooksScribd.comGoogle Books1257-7979Google BooksGoogle BooksGoogle BooksGoogle BooksGoogle BooksGoogle BooksGallica.bnf.frGoogle BooksGoogle Books"François Viète"Francois Viète: Father of Modern Algebraic NotationThe Lawyer and the GamblerAbout TarporleySite de Jean-Paul GuichardL'algèbre nouvelle"About the Harmonicon"cb120511976(data)1188044800000 0001 0913 5903n82164680ola2013766880073431702w6vt1sb70287374827140948071409480