Calculating the expectation of types












0












$begingroup$


A certain region is inhabited by $r$ distinct types of a species of insect. Each insect caught will, independently of the types of the previous catches, be of the type $i$ with probability
$$P_i, i= 1,dots,r$$. Calculate the mean number of types of insects that are caught before the first type 1 catch.



The solution I am looking at defines an indicator as



$$X_j = 1$$ when type j is caught before type 1



$$X_j = 0$$ otherwise



Then $$mathbb{E}[X_j] = P{ textrm{type j before type 1}} = P{ j|textrm{j or i}} = frac{P_j}{P_j + P_1}$$



But I don’t understand how



$$P{ textrm{type j before type 1}} = P{ j|textrm{j or i}} $$



Can someone explain how this step is correct?










share|cite|improve this question









$endgroup$

















    0












    $begingroup$


    A certain region is inhabited by $r$ distinct types of a species of insect. Each insect caught will, independently of the types of the previous catches, be of the type $i$ with probability
    $$P_i, i= 1,dots,r$$. Calculate the mean number of types of insects that are caught before the first type 1 catch.



    The solution I am looking at defines an indicator as



    $$X_j = 1$$ when type j is caught before type 1



    $$X_j = 0$$ otherwise



    Then $$mathbb{E}[X_j] = P{ textrm{type j before type 1}} = P{ j|textrm{j or i}} = frac{P_j}{P_j + P_1}$$



    But I don’t understand how



    $$P{ textrm{type j before type 1}} = P{ j|textrm{j or i}} $$



    Can someone explain how this step is correct?










    share|cite|improve this question









    $endgroup$















      0












      0








      0





      $begingroup$


      A certain region is inhabited by $r$ distinct types of a species of insect. Each insect caught will, independently of the types of the previous catches, be of the type $i$ with probability
      $$P_i, i= 1,dots,r$$. Calculate the mean number of types of insects that are caught before the first type 1 catch.



      The solution I am looking at defines an indicator as



      $$X_j = 1$$ when type j is caught before type 1



      $$X_j = 0$$ otherwise



      Then $$mathbb{E}[X_j] = P{ textrm{type j before type 1}} = P{ j|textrm{j or i}} = frac{P_j}{P_j + P_1}$$



      But I don’t understand how



      $$P{ textrm{type j before type 1}} = P{ j|textrm{j or i}} $$



      Can someone explain how this step is correct?










      share|cite|improve this question









      $endgroup$




      A certain region is inhabited by $r$ distinct types of a species of insect. Each insect caught will, independently of the types of the previous catches, be of the type $i$ with probability
      $$P_i, i= 1,dots,r$$. Calculate the mean number of types of insects that are caught before the first type 1 catch.



      The solution I am looking at defines an indicator as



      $$X_j = 1$$ when type j is caught before type 1



      $$X_j = 0$$ otherwise



      Then $$mathbb{E}[X_j] = P{ textrm{type j before type 1}} = P{ j|textrm{j or i}} = frac{P_j}{P_j + P_1}$$



      But I don’t understand how



      $$P{ textrm{type j before type 1}} = P{ j|textrm{j or i}} $$



      Can someone explain how this step is correct?







      probability probability-distributions random-variables expected-value






      share|cite|improve this question













      share|cite|improve this question











      share|cite|improve this question




      share|cite|improve this question










      asked Dec 26 '18 at 20:46









      user601297user601297

      41719




      41719






















          1 Answer
          1






          active

          oldest

          votes


















          0












          $begingroup$

          When we think about the event $X_j$, we are only interested in which is caught first: an insect of type $1$ or an insect of type $j$. And to determine which is caught first, we only need to think about the first time that a type $1$ or a type $j$ is caught (call this event $C_j$). This is because once $C_j$ happens then $X_j$ is determined, and any captures before $C_j$ don't affect $X_j$.



          So at the capture $C_j$ we know that either a type $j$ or a type $1$ was captured. At $C_j$, the probability that a type $j$ was captured is
          $$mathbb{P}(textrm{type } j textrm{ captured} mid textrm{type } j textrm{ or } 1textrm{ captured}) = frac{mathbb{P}(textrm{type } j textrm{ captured} cap (textrm{type } j textrm{ or } 1textrm{ captured}))}{mathbb{P}(textrm{type } j textrm{ or } 1textrm{ captured})}.$$
          The numerator is just the probability that an insect of type $j$ is captured, so has probability $P_j$. The denominator has probability $P_1 + P_j$. Substituting this into the formula above, the probability of $X_j$ is the probability that a type $j$ was chosen at capture $C_j$, which is
          $$mathbb{P}(X_j) = mathbb{P}(textrm{type } j textrm{ captured} mid textrm{type } j textrm{ or } 1textrm{ captured}) = frac{P_j}{P_1 + P_j}.$$






          share|cite|improve this answer











          $endgroup$














            Your Answer








            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%2f3053302%2fcalculating-the-expectation-of-types%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$

            When we think about the event $X_j$, we are only interested in which is caught first: an insect of type $1$ or an insect of type $j$. And to determine which is caught first, we only need to think about the first time that a type $1$ or a type $j$ is caught (call this event $C_j$). This is because once $C_j$ happens then $X_j$ is determined, and any captures before $C_j$ don't affect $X_j$.



            So at the capture $C_j$ we know that either a type $j$ or a type $1$ was captured. At $C_j$, the probability that a type $j$ was captured is
            $$mathbb{P}(textrm{type } j textrm{ captured} mid textrm{type } j textrm{ or } 1textrm{ captured}) = frac{mathbb{P}(textrm{type } j textrm{ captured} cap (textrm{type } j textrm{ or } 1textrm{ captured}))}{mathbb{P}(textrm{type } j textrm{ or } 1textrm{ captured})}.$$
            The numerator is just the probability that an insect of type $j$ is captured, so has probability $P_j$. The denominator has probability $P_1 + P_j$. Substituting this into the formula above, the probability of $X_j$ is the probability that a type $j$ was chosen at capture $C_j$, which is
            $$mathbb{P}(X_j) = mathbb{P}(textrm{type } j textrm{ captured} mid textrm{type } j textrm{ or } 1textrm{ captured}) = frac{P_j}{P_1 + P_j}.$$






            share|cite|improve this answer











            $endgroup$


















              0












              $begingroup$

              When we think about the event $X_j$, we are only interested in which is caught first: an insect of type $1$ or an insect of type $j$. And to determine which is caught first, we only need to think about the first time that a type $1$ or a type $j$ is caught (call this event $C_j$). This is because once $C_j$ happens then $X_j$ is determined, and any captures before $C_j$ don't affect $X_j$.



              So at the capture $C_j$ we know that either a type $j$ or a type $1$ was captured. At $C_j$, the probability that a type $j$ was captured is
              $$mathbb{P}(textrm{type } j textrm{ captured} mid textrm{type } j textrm{ or } 1textrm{ captured}) = frac{mathbb{P}(textrm{type } j textrm{ captured} cap (textrm{type } j textrm{ or } 1textrm{ captured}))}{mathbb{P}(textrm{type } j textrm{ or } 1textrm{ captured})}.$$
              The numerator is just the probability that an insect of type $j$ is captured, so has probability $P_j$. The denominator has probability $P_1 + P_j$. Substituting this into the formula above, the probability of $X_j$ is the probability that a type $j$ was chosen at capture $C_j$, which is
              $$mathbb{P}(X_j) = mathbb{P}(textrm{type } j textrm{ captured} mid textrm{type } j textrm{ or } 1textrm{ captured}) = frac{P_j}{P_1 + P_j}.$$






              share|cite|improve this answer











              $endgroup$
















                0












                0








                0





                $begingroup$

                When we think about the event $X_j$, we are only interested in which is caught first: an insect of type $1$ or an insect of type $j$. And to determine which is caught first, we only need to think about the first time that a type $1$ or a type $j$ is caught (call this event $C_j$). This is because once $C_j$ happens then $X_j$ is determined, and any captures before $C_j$ don't affect $X_j$.



                So at the capture $C_j$ we know that either a type $j$ or a type $1$ was captured. At $C_j$, the probability that a type $j$ was captured is
                $$mathbb{P}(textrm{type } j textrm{ captured} mid textrm{type } j textrm{ or } 1textrm{ captured}) = frac{mathbb{P}(textrm{type } j textrm{ captured} cap (textrm{type } j textrm{ or } 1textrm{ captured}))}{mathbb{P}(textrm{type } j textrm{ or } 1textrm{ captured})}.$$
                The numerator is just the probability that an insect of type $j$ is captured, so has probability $P_j$. The denominator has probability $P_1 + P_j$. Substituting this into the formula above, the probability of $X_j$ is the probability that a type $j$ was chosen at capture $C_j$, which is
                $$mathbb{P}(X_j) = mathbb{P}(textrm{type } j textrm{ captured} mid textrm{type } j textrm{ or } 1textrm{ captured}) = frac{P_j}{P_1 + P_j}.$$






                share|cite|improve this answer











                $endgroup$



                When we think about the event $X_j$, we are only interested in which is caught first: an insect of type $1$ or an insect of type $j$. And to determine which is caught first, we only need to think about the first time that a type $1$ or a type $j$ is caught (call this event $C_j$). This is because once $C_j$ happens then $X_j$ is determined, and any captures before $C_j$ don't affect $X_j$.



                So at the capture $C_j$ we know that either a type $j$ or a type $1$ was captured. At $C_j$, the probability that a type $j$ was captured is
                $$mathbb{P}(textrm{type } j textrm{ captured} mid textrm{type } j textrm{ or } 1textrm{ captured}) = frac{mathbb{P}(textrm{type } j textrm{ captured} cap (textrm{type } j textrm{ or } 1textrm{ captured}))}{mathbb{P}(textrm{type } j textrm{ or } 1textrm{ captured})}.$$
                The numerator is just the probability that an insect of type $j$ is captured, so has probability $P_j$. The denominator has probability $P_1 + P_j$. Substituting this into the formula above, the probability of $X_j$ is the probability that a type $j$ was chosen at capture $C_j$, which is
                $$mathbb{P}(X_j) = mathbb{P}(textrm{type } j textrm{ captured} mid textrm{type } j textrm{ or } 1textrm{ captured}) = frac{P_j}{P_1 + P_j}.$$







                share|cite|improve this answer














                share|cite|improve this answer



                share|cite|improve this answer








                edited Dec 27 '18 at 11:40

























                answered Dec 27 '18 at 11:35









                AlexAlex

                744412




                744412






























                    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%2f3053302%2fcalculating-the-expectation-of-types%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

                    Willebadessen

                    Ida-Boy-Ed-Garten

                    Residenzschloss Arolsen