Probability-Bayes's rule











up vote
0
down vote

favorite












Here is the question:



There are N+1 baskets 0,1,2,3,...,N. Where each basket i has i white balls and N-i black balls.



We choose randomly a basket and take out a ball after another with returning.



a)If we know that the first two withdraws we got a black and a white ball (not necessarily by order) what is the probability that we have chosen the basket i?for each i?



b)If we know that the first two withdraws were black balls what is the probability that the third withdraw will be black?





ok,here is my approach:



a)$frac{P(B|A)*P(A)}{P(B)} $= $ frac{2*( frac{i}{N} * frac{N-i}{N})*( frac{1}{N+1}) }{2*sum_{i=1}^n a_n(frac{k}{N}*frac{N-k}{N})*frac{1}{N+1}} $ =$ frac{ frac{i}{N} * frac{N-i}{N}}{sum_{i=1}^n a_n(frac{k}{N}*frac{N-k}{N})} $



I don't know how to get rid of the sigma



b)P(third withdraw is black|first two withdraws are black)=$ frac{P(the three withdraws are black)}{P(the first two withdraws are black)} $=
$frac{sum_{i=0}^N frac{i^3}{N^3}}{sum_{i=0}^N frac{i^2}{N^2}}$=$sum_{i=0}^N frac{frac{i^3}{N}}{sum_{i=0}^N i^2}$



here too I could'nt get rid of i from the whole equation.any help please?










share|cite|improve this question


























    up vote
    0
    down vote

    favorite












    Here is the question:



    There are N+1 baskets 0,1,2,3,...,N. Where each basket i has i white balls and N-i black balls.



    We choose randomly a basket and take out a ball after another with returning.



    a)If we know that the first two withdraws we got a black and a white ball (not necessarily by order) what is the probability that we have chosen the basket i?for each i?



    b)If we know that the first two withdraws were black balls what is the probability that the third withdraw will be black?





    ok,here is my approach:



    a)$frac{P(B|A)*P(A)}{P(B)} $= $ frac{2*( frac{i}{N} * frac{N-i}{N})*( frac{1}{N+1}) }{2*sum_{i=1}^n a_n(frac{k}{N}*frac{N-k}{N})*frac{1}{N+1}} $ =$ frac{ frac{i}{N} * frac{N-i}{N}}{sum_{i=1}^n a_n(frac{k}{N}*frac{N-k}{N})} $



    I don't know how to get rid of the sigma



    b)P(third withdraw is black|first two withdraws are black)=$ frac{P(the three withdraws are black)}{P(the first two withdraws are black)} $=
    $frac{sum_{i=0}^N frac{i^3}{N^3}}{sum_{i=0}^N frac{i^2}{N^2}}$=$sum_{i=0}^N frac{frac{i^3}{N}}{sum_{i=0}^N i^2}$



    here too I could'nt get rid of i from the whole equation.any help please?










    share|cite|improve this question
























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      Here is the question:



      There are N+1 baskets 0,1,2,3,...,N. Where each basket i has i white balls and N-i black balls.



      We choose randomly a basket and take out a ball after another with returning.



      a)If we know that the first two withdraws we got a black and a white ball (not necessarily by order) what is the probability that we have chosen the basket i?for each i?



      b)If we know that the first two withdraws were black balls what is the probability that the third withdraw will be black?





      ok,here is my approach:



      a)$frac{P(B|A)*P(A)}{P(B)} $= $ frac{2*( frac{i}{N} * frac{N-i}{N})*( frac{1}{N+1}) }{2*sum_{i=1}^n a_n(frac{k}{N}*frac{N-k}{N})*frac{1}{N+1}} $ =$ frac{ frac{i}{N} * frac{N-i}{N}}{sum_{i=1}^n a_n(frac{k}{N}*frac{N-k}{N})} $



      I don't know how to get rid of the sigma



      b)P(third withdraw is black|first two withdraws are black)=$ frac{P(the three withdraws are black)}{P(the first two withdraws are black)} $=
      $frac{sum_{i=0}^N frac{i^3}{N^3}}{sum_{i=0}^N frac{i^2}{N^2}}$=$sum_{i=0}^N frac{frac{i^3}{N}}{sum_{i=0}^N i^2}$



      here too I could'nt get rid of i from the whole equation.any help please?










      share|cite|improve this question













      Here is the question:



      There are N+1 baskets 0,1,2,3,...,N. Where each basket i has i white balls and N-i black balls.



      We choose randomly a basket and take out a ball after another with returning.



      a)If we know that the first two withdraws we got a black and a white ball (not necessarily by order) what is the probability that we have chosen the basket i?for each i?



      b)If we know that the first two withdraws were black balls what is the probability that the third withdraw will be black?





      ok,here is my approach:



      a)$frac{P(B|A)*P(A)}{P(B)} $= $ frac{2*( frac{i}{N} * frac{N-i}{N})*( frac{1}{N+1}) }{2*sum_{i=1}^n a_n(frac{k}{N}*frac{N-k}{N})*frac{1}{N+1}} $ =$ frac{ frac{i}{N} * frac{N-i}{N}}{sum_{i=1}^n a_n(frac{k}{N}*frac{N-k}{N})} $



      I don't know how to get rid of the sigma



      b)P(third withdraw is black|first two withdraws are black)=$ frac{P(the three withdraws are black)}{P(the first two withdraws are black)} $=
      $frac{sum_{i=0}^N frac{i^3}{N^3}}{sum_{i=0}^N frac{i^2}{N^2}}$=$sum_{i=0}^N frac{frac{i^3}{N}}{sum_{i=0}^N i^2}$



      here too I could'nt get rid of i from the whole equation.any help please?







      probability






      share|cite|improve this question













      share|cite|improve this question











      share|cite|improve this question




      share|cite|improve this question










      asked Nov 25 at 16:56









      Adddison

      826




      826






















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote



          accepted










          For (a), you've mixed up the summation index -- and what is $a_n$? The denominator should be
          $$sum_{k=0}^N 2frac{k}{N}frac{N-k}{N}frac{1}{N+1}=
          frac{2}{N^2(N+1)}sum_{k=0}^{N}(kN-k^2)=frac{2}{N^2(N+1)}
          left(Nsum_{k=0}^{N}k-sum_{k=0}^{N}k^2right).
          $$

          The last two sums are all known; finally you should arrive in $frac{N-1}{3N}$.



          For (b), the denominator is
          $$sum_{k=0}^N left(frac{N-k}{N}right)^2frac{1}{N+1}
          =frac{1}{N(N+1)}sum_{k=0}^{N}(N-k)^2.$$

          Similarly you should arrive in $frac{2N+1}{3N}$.






          share|cite|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: "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%2f3013080%2fprobability-bayess-rule%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








            up vote
            0
            down vote



            accepted










            For (a), you've mixed up the summation index -- and what is $a_n$? The denominator should be
            $$sum_{k=0}^N 2frac{k}{N}frac{N-k}{N}frac{1}{N+1}=
            frac{2}{N^2(N+1)}sum_{k=0}^{N}(kN-k^2)=frac{2}{N^2(N+1)}
            left(Nsum_{k=0}^{N}k-sum_{k=0}^{N}k^2right).
            $$

            The last two sums are all known; finally you should arrive in $frac{N-1}{3N}$.



            For (b), the denominator is
            $$sum_{k=0}^N left(frac{N-k}{N}right)^2frac{1}{N+1}
            =frac{1}{N(N+1)}sum_{k=0}^{N}(N-k)^2.$$

            Similarly you should arrive in $frac{2N+1}{3N}$.






            share|cite|improve this answer

























              up vote
              0
              down vote



              accepted










              For (a), you've mixed up the summation index -- and what is $a_n$? The denominator should be
              $$sum_{k=0}^N 2frac{k}{N}frac{N-k}{N}frac{1}{N+1}=
              frac{2}{N^2(N+1)}sum_{k=0}^{N}(kN-k^2)=frac{2}{N^2(N+1)}
              left(Nsum_{k=0}^{N}k-sum_{k=0}^{N}k^2right).
              $$

              The last two sums are all known; finally you should arrive in $frac{N-1}{3N}$.



              For (b), the denominator is
              $$sum_{k=0}^N left(frac{N-k}{N}right)^2frac{1}{N+1}
              =frac{1}{N(N+1)}sum_{k=0}^{N}(N-k)^2.$$

              Similarly you should arrive in $frac{2N+1}{3N}$.






              share|cite|improve this answer























                up vote
                0
                down vote



                accepted







                up vote
                0
                down vote



                accepted






                For (a), you've mixed up the summation index -- and what is $a_n$? The denominator should be
                $$sum_{k=0}^N 2frac{k}{N}frac{N-k}{N}frac{1}{N+1}=
                frac{2}{N^2(N+1)}sum_{k=0}^{N}(kN-k^2)=frac{2}{N^2(N+1)}
                left(Nsum_{k=0}^{N}k-sum_{k=0}^{N}k^2right).
                $$

                The last two sums are all known; finally you should arrive in $frac{N-1}{3N}$.



                For (b), the denominator is
                $$sum_{k=0}^N left(frac{N-k}{N}right)^2frac{1}{N+1}
                =frac{1}{N(N+1)}sum_{k=0}^{N}(N-k)^2.$$

                Similarly you should arrive in $frac{2N+1}{3N}$.






                share|cite|improve this answer












                For (a), you've mixed up the summation index -- and what is $a_n$? The denominator should be
                $$sum_{k=0}^N 2frac{k}{N}frac{N-k}{N}frac{1}{N+1}=
                frac{2}{N^2(N+1)}sum_{k=0}^{N}(kN-k^2)=frac{2}{N^2(N+1)}
                left(Nsum_{k=0}^{N}k-sum_{k=0}^{N}k^2right).
                $$

                The last two sums are all known; finally you should arrive in $frac{N-1}{3N}$.



                For (b), the denominator is
                $$sum_{k=0}^N left(frac{N-k}{N}right)^2frac{1}{N+1}
                =frac{1}{N(N+1)}sum_{k=0}^{N}(N-k)^2.$$

                Similarly you should arrive in $frac{2N+1}{3N}$.







                share|cite|improve this answer












                share|cite|improve this answer



                share|cite|improve this answer










                answered Nov 25 at 21:40









                Michael Hoppe

                10.7k31834




                10.7k31834






























                    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%2f3013080%2fprobability-bayess-rule%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

                    Wiesbaden

                    Marschland

                    Dieringhausen