Quasi Monte Carlo method gives zero for the following example

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
2
down vote

favorite












Consider the example



NIntegrate[UnitStep[9-x^2-y^2],x,0,xmax,y,0,ymax,Method->"QuasiMonteCarlo"]


If xmax = ymax = 3, the answer is meaningful. If xmax = ymax = 100, the answer is slightly smaller, while for xmax = ymax = 1000, the answer is zero. This means that QuasiMonteCarlo method evaluates the integral to zero if in most part of the integration domain the integrand is zero.



Could you please tell me whether there is some way to fix this problem?










share|improve this question

















  • 1




    The chance that a random point thrown into a square of size $1000 times 1000$ to land in the quarter of the disk of radius 3 is about 7.06858*10^-6. So if it comes to Monte Carlo methods, that just does never happen.
    – Henrik Schumacher
    4 hours ago














up vote
2
down vote

favorite












Consider the example



NIntegrate[UnitStep[9-x^2-y^2],x,0,xmax,y,0,ymax,Method->"QuasiMonteCarlo"]


If xmax = ymax = 3, the answer is meaningful. If xmax = ymax = 100, the answer is slightly smaller, while for xmax = ymax = 1000, the answer is zero. This means that QuasiMonteCarlo method evaluates the integral to zero if in most part of the integration domain the integrand is zero.



Could you please tell me whether there is some way to fix this problem?










share|improve this question

















  • 1




    The chance that a random point thrown into a square of size $1000 times 1000$ to land in the quarter of the disk of radius 3 is about 7.06858*10^-6. So if it comes to Monte Carlo methods, that just does never happen.
    – Henrik Schumacher
    4 hours ago












up vote
2
down vote

favorite









up vote
2
down vote

favorite











Consider the example



NIntegrate[UnitStep[9-x^2-y^2],x,0,xmax,y,0,ymax,Method->"QuasiMonteCarlo"]


If xmax = ymax = 3, the answer is meaningful. If xmax = ymax = 100, the answer is slightly smaller, while for xmax = ymax = 1000, the answer is zero. This means that QuasiMonteCarlo method evaluates the integral to zero if in most part of the integration domain the integrand is zero.



Could you please tell me whether there is some way to fix this problem?










share|improve this question













Consider the example



NIntegrate[UnitStep[9-x^2-y^2],x,0,xmax,y,0,ymax,Method->"QuasiMonteCarlo"]


If xmax = ymax = 3, the answer is meaningful. If xmax = ymax = 100, the answer is slightly smaller, while for xmax = ymax = 1000, the answer is zero. This means that QuasiMonteCarlo method evaluates the integral to zero if in most part of the integration domain the integrand is zero.



Could you please tell me whether there is some way to fix this problem?







numerical-integration






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked 4 hours ago









John Taylor

600211




600211







  • 1




    The chance that a random point thrown into a square of size $1000 times 1000$ to land in the quarter of the disk of radius 3 is about 7.06858*10^-6. So if it comes to Monte Carlo methods, that just does never happen.
    – Henrik Schumacher
    4 hours ago












  • 1




    The chance that a random point thrown into a square of size $1000 times 1000$ to land in the quarter of the disk of radius 3 is about 7.06858*10^-6. So if it comes to Monte Carlo methods, that just does never happen.
    – Henrik Schumacher
    4 hours ago







1




1




The chance that a random point thrown into a square of size $1000 times 1000$ to land in the quarter of the disk of radius 3 is about 7.06858*10^-6. So if it comes to Monte Carlo methods, that just does never happen.
– Henrik Schumacher
4 hours ago




The chance that a random point thrown into a square of size $1000 times 1000$ to land in the quarter of the disk of radius 3 is about 7.06858*10^-6. So if it comes to Monte Carlo methods, that just does never happen.
– Henrik Schumacher
4 hours ago










1 Answer
1






active

oldest

votes

















up vote
3
down vote



accepted










xmax = ymax = 1000;
NIntegrate[UnitStep[9 - x^2 - y^2], x, 0, xmax, y, 0, ymax,
Method -> "QuasiMonteCarlo", "SymbolicProcessing" -> True]



7.06875







share|improve this answer




















    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: "387"
    ;
    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: false,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













     

    draft saved


    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmathematica.stackexchange.com%2fquestions%2f183217%2fquasi-monte-carlo-method-gives-zero-for-the-following-example%23new-answer', 'question_page');

    );

    Post as a guest






























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    3
    down vote



    accepted










    xmax = ymax = 1000;
    NIntegrate[UnitStep[9 - x^2 - y^2], x, 0, xmax, y, 0, ymax,
    Method -> "QuasiMonteCarlo", "SymbolicProcessing" -> True]



    7.06875







    share|improve this answer
























      up vote
      3
      down vote



      accepted










      xmax = ymax = 1000;
      NIntegrate[UnitStep[9 - x^2 - y^2], x, 0, xmax, y, 0, ymax,
      Method -> "QuasiMonteCarlo", "SymbolicProcessing" -> True]



      7.06875







      share|improve this answer






















        up vote
        3
        down vote



        accepted







        up vote
        3
        down vote



        accepted






        xmax = ymax = 1000;
        NIntegrate[UnitStep[9 - x^2 - y^2], x, 0, xmax, y, 0, ymax,
        Method -> "QuasiMonteCarlo", "SymbolicProcessing" -> True]



        7.06875







        share|improve this answer












        xmax = ymax = 1000;
        NIntegrate[UnitStep[9 - x^2 - y^2], x, 0, xmax, y, 0, ymax,
        Method -> "QuasiMonteCarlo", "SymbolicProcessing" -> True]



        7.06875








        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 4 hours ago









        kglr

        163k8188387




        163k8188387



























             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmathematica.stackexchange.com%2fquestions%2f183217%2fquasi-monte-carlo-method-gives-zero-for-the-following-example%23new-answer', 'question_page');

            );

            Post as a guest













































































            Comments

            Popular posts from this blog

            Long meetings (6-7 hours a day): Being “babysat” by supervisor

            What does second last employer means? [closed]

            One-line joke