Combinatorics and probability question

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











up vote
3
down vote

favorite













Suppose we have $20$ balls numbered $1,2,...,20$. Each day we pick a single ball randomly.



1) What's the probability of picking all $20$ balls in $22$ days ?



2) What's the probability of picking only $1 ,and, 2$ in $4$ days (Atleast 1 times each) ?




Attempts and Thoughts -



1) I thought that we could pick $20$ days out of the $22$ - $binom2220$. Now there are $20!$ distinct orders for all the $20$ balls in the $20$ picked days. What's left is to put $2$ balls in the days left - $20^2$ options for that and over all - $binom2220cdot 20!cdot 20^2$. I thought this might be true until i encountered another approach suggesting - $binom201cdot binom223cdot 19! + binom202cdot binom222cdot binom202cdot 18!$. The leftmost part reffering to when a ball is being picked $3$ times and the right most to $2$ balls being picked twice.



Which approach is right? What have i done wrong?



2) First approach - there are exactly $2^4$ options considering $1,1,1,1$ or $2,2,2,2$. So we get - $2^4 - 2= 14$ options.



Another approach suggested $22^4 - 2cdot 21^4 +20^4$ which comes out of basic inclusion-exclusion.



Would like to hear you thoughts about my problem. Thanks in advance.







share|cite|improve this question




















  • You have attempted to calculate the number of favorable cases rather than probabilities.
    – N. F. Taussig
    Aug 28 at 15:11










  • @N.F.Taussig You are right, but it's all down to dividing by $20^22$
    – Yariv Levy
    Aug 28 at 15:12















up vote
3
down vote

favorite













Suppose we have $20$ balls numbered $1,2,...,20$. Each day we pick a single ball randomly.



1) What's the probability of picking all $20$ balls in $22$ days ?



2) What's the probability of picking only $1 ,and, 2$ in $4$ days (Atleast 1 times each) ?




Attempts and Thoughts -



1) I thought that we could pick $20$ days out of the $22$ - $binom2220$. Now there are $20!$ distinct orders for all the $20$ balls in the $20$ picked days. What's left is to put $2$ balls in the days left - $20^2$ options for that and over all - $binom2220cdot 20!cdot 20^2$. I thought this might be true until i encountered another approach suggesting - $binom201cdot binom223cdot 19! + binom202cdot binom222cdot binom202cdot 18!$. The leftmost part reffering to when a ball is being picked $3$ times and the right most to $2$ balls being picked twice.



Which approach is right? What have i done wrong?



2) First approach - there are exactly $2^4$ options considering $1,1,1,1$ or $2,2,2,2$. So we get - $2^4 - 2= 14$ options.



Another approach suggested $22^4 - 2cdot 21^4 +20^4$ which comes out of basic inclusion-exclusion.



Would like to hear you thoughts about my problem. Thanks in advance.







share|cite|improve this question




















  • You have attempted to calculate the number of favorable cases rather than probabilities.
    – N. F. Taussig
    Aug 28 at 15:11










  • @N.F.Taussig You are right, but it's all down to dividing by $20^22$
    – Yariv Levy
    Aug 28 at 15:12













up vote
3
down vote

favorite









up vote
3
down vote

favorite












Suppose we have $20$ balls numbered $1,2,...,20$. Each day we pick a single ball randomly.



1) What's the probability of picking all $20$ balls in $22$ days ?



2) What's the probability of picking only $1 ,and, 2$ in $4$ days (Atleast 1 times each) ?




Attempts and Thoughts -



1) I thought that we could pick $20$ days out of the $22$ - $binom2220$. Now there are $20!$ distinct orders for all the $20$ balls in the $20$ picked days. What's left is to put $2$ balls in the days left - $20^2$ options for that and over all - $binom2220cdot 20!cdot 20^2$. I thought this might be true until i encountered another approach suggesting - $binom201cdot binom223cdot 19! + binom202cdot binom222cdot binom202cdot 18!$. The leftmost part reffering to when a ball is being picked $3$ times and the right most to $2$ balls being picked twice.



Which approach is right? What have i done wrong?



2) First approach - there are exactly $2^4$ options considering $1,1,1,1$ or $2,2,2,2$. So we get - $2^4 - 2= 14$ options.



Another approach suggested $22^4 - 2cdot 21^4 +20^4$ which comes out of basic inclusion-exclusion.



Would like to hear you thoughts about my problem. Thanks in advance.







share|cite|improve this question













Suppose we have $20$ balls numbered $1,2,...,20$. Each day we pick a single ball randomly.



1) What's the probability of picking all $20$ balls in $22$ days ?



2) What's the probability of picking only $1 ,and, 2$ in $4$ days (Atleast 1 times each) ?




Attempts and Thoughts -



1) I thought that we could pick $20$ days out of the $22$ - $binom2220$. Now there are $20!$ distinct orders for all the $20$ balls in the $20$ picked days. What's left is to put $2$ balls in the days left - $20^2$ options for that and over all - $binom2220cdot 20!cdot 20^2$. I thought this might be true until i encountered another approach suggesting - $binom201cdot binom223cdot 19! + binom202cdot binom222cdot binom202cdot 18!$. The leftmost part reffering to when a ball is being picked $3$ times and the right most to $2$ balls being picked twice.



Which approach is right? What have i done wrong?



2) First approach - there are exactly $2^4$ options considering $1,1,1,1$ or $2,2,2,2$. So we get - $2^4 - 2= 14$ options.



Another approach suggested $22^4 - 2cdot 21^4 +20^4$ which comes out of basic inclusion-exclusion.



Would like to hear you thoughts about my problem. Thanks in advance.









share|cite|improve this question











share|cite|improve this question




share|cite|improve this question










asked Aug 28 at 14:39









Yariv Levy

7432316




7432316











  • You have attempted to calculate the number of favorable cases rather than probabilities.
    – N. F. Taussig
    Aug 28 at 15:11










  • @N.F.Taussig You are right, but it's all down to dividing by $20^22$
    – Yariv Levy
    Aug 28 at 15:12

















  • You have attempted to calculate the number of favorable cases rather than probabilities.
    – N. F. Taussig
    Aug 28 at 15:11










  • @N.F.Taussig You are right, but it's all down to dividing by $20^22$
    – Yariv Levy
    Aug 28 at 15:12
















You have attempted to calculate the number of favorable cases rather than probabilities.
– N. F. Taussig
Aug 28 at 15:11




You have attempted to calculate the number of favorable cases rather than probabilities.
– N. F. Taussig
Aug 28 at 15:11












@N.F.Taussig You are right, but it's all down to dividing by $20^22$
– Yariv Levy
Aug 28 at 15:12





@N.F.Taussig You are right, but it's all down to dividing by $20^22$
– Yariv Levy
Aug 28 at 15:12











2 Answers
2






active

oldest

votes

















up vote
2
down vote



accepted










For the (1), your approach is not quite correct. The problem is that the procedure you outlined will over-count some of the ways to choose the balls. For example consider the following two ways of following your instructions:



  1. Option $1$:

    1. Pick the days numbered $1,2,dots,19,20.$

    2. On these days, pick balls numbered $1,2,dots,19,20$.

    3. On days $21$ and $22$, pick ball $20$.


  2. Option $2$:

    1. Pick the days numbered $1,2,dots,19,21.$

    2. On these days, pick balls numbered $1,2,dots,19,20$.

    3. On days $20$ and $22$, pick ball $20$.


These both result in the same ball distribution, but are counted separately by your method. The other solution you wrote uses careful accounting to avoid this.



For (2), you are answering a different question than the other solution. You are counting the number of ways to pick four balls comprising one $1$s and $2$s, with both present. The other method is the number of ways to pick four balls where at least one is a $1$ and at least one is a $2$.






share|cite|improve this answer





























    up vote
    3
    down vote













    Problem 1



    Your approach to the first question is incorrect : there is overcounting happening.



    To see why this is the case, let us see the steps you are using :



    • Fix a subset of $1,...,22$ : can be done in $binom2220$ ways.


    • Arrange for $20$ balls to be picked in these turns : done in $20!$ ways.


    • Two turns are left, and they may be allotted freely , hence in $20^2$ ways.


    The overcounting comes from the fact that it is possible to start from different subsets and still get the same order using the free choice of the third step.




    Example :



    Start with the subset $1,...,20$, and arrange for ball $1$ to be picked on the first day, ball $2$ on the second day , ball $3$ on the third day etc. by the second step. Now for $21$ and $22$, let balls $19$ be picked on day $21$ and ball $20$ on day $22$. Thus, the final order is $1,2,3,...,20,19,20$.



    Now, start with the subset $1,...,18,21,22$. Arrange for ball $1$ to be picked on the first day, ball $2$ on the second day , ..., ball $18$ to be picked on the $18$th day, ball $19$ on the $21$st day and ball $20$ on the $22$nd day. Now, on the remaining days, let ball $19$ be picked on day $19$, and ball $20$ on day $20$. This gives the same order as the previous order, but with a different subset.



    Therefore, a direct multiplication of the combinations resulting from the above steps is over counting.




    The way the other solution takes care of this problem, is not to isolate which subset of $20$ elements contains $20$ different balls, but rather which ball appears twice/thrice (no ball appears more than thrice : this would leave $19$ different numbered balls to be distributed in $18$ days, which can't happen). If a number appears thrice, then all others appear exactly once : this gives one case. If one number appears twice, so must exactly one other number : this gives another case. But one of the above must happen : this gives the two cases of the second (and correct) solution.




    Problem 2



    Your approach is correct. The other approach seems to be of a different question : counting the ways in which at least one and at least one two occurs.






    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: false,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      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%2f2897338%2fcombinatorics-and-probability-question%23new-answer', 'question_page');

      );

      Post as a guest






























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes








      up vote
      2
      down vote



      accepted










      For the (1), your approach is not quite correct. The problem is that the procedure you outlined will over-count some of the ways to choose the balls. For example consider the following two ways of following your instructions:



      1. Option $1$:

        1. Pick the days numbered $1,2,dots,19,20.$

        2. On these days, pick balls numbered $1,2,dots,19,20$.

        3. On days $21$ and $22$, pick ball $20$.


      2. Option $2$:

        1. Pick the days numbered $1,2,dots,19,21.$

        2. On these days, pick balls numbered $1,2,dots,19,20$.

        3. On days $20$ and $22$, pick ball $20$.


      These both result in the same ball distribution, but are counted separately by your method. The other solution you wrote uses careful accounting to avoid this.



      For (2), you are answering a different question than the other solution. You are counting the number of ways to pick four balls comprising one $1$s and $2$s, with both present. The other method is the number of ways to pick four balls where at least one is a $1$ and at least one is a $2$.






      share|cite|improve this answer


























        up vote
        2
        down vote



        accepted










        For the (1), your approach is not quite correct. The problem is that the procedure you outlined will over-count some of the ways to choose the balls. For example consider the following two ways of following your instructions:



        1. Option $1$:

          1. Pick the days numbered $1,2,dots,19,20.$

          2. On these days, pick balls numbered $1,2,dots,19,20$.

          3. On days $21$ and $22$, pick ball $20$.


        2. Option $2$:

          1. Pick the days numbered $1,2,dots,19,21.$

          2. On these days, pick balls numbered $1,2,dots,19,20$.

          3. On days $20$ and $22$, pick ball $20$.


        These both result in the same ball distribution, but are counted separately by your method. The other solution you wrote uses careful accounting to avoid this.



        For (2), you are answering a different question than the other solution. You are counting the number of ways to pick four balls comprising one $1$s and $2$s, with both present. The other method is the number of ways to pick four balls where at least one is a $1$ and at least one is a $2$.






        share|cite|improve this answer
























          up vote
          2
          down vote



          accepted







          up vote
          2
          down vote



          accepted






          For the (1), your approach is not quite correct. The problem is that the procedure you outlined will over-count some of the ways to choose the balls. For example consider the following two ways of following your instructions:



          1. Option $1$:

            1. Pick the days numbered $1,2,dots,19,20.$

            2. On these days, pick balls numbered $1,2,dots,19,20$.

            3. On days $21$ and $22$, pick ball $20$.


          2. Option $2$:

            1. Pick the days numbered $1,2,dots,19,21.$

            2. On these days, pick balls numbered $1,2,dots,19,20$.

            3. On days $20$ and $22$, pick ball $20$.


          These both result in the same ball distribution, but are counted separately by your method. The other solution you wrote uses careful accounting to avoid this.



          For (2), you are answering a different question than the other solution. You are counting the number of ways to pick four balls comprising one $1$s and $2$s, with both present. The other method is the number of ways to pick four balls where at least one is a $1$ and at least one is a $2$.






          share|cite|improve this answer














          For the (1), your approach is not quite correct. The problem is that the procedure you outlined will over-count some of the ways to choose the balls. For example consider the following two ways of following your instructions:



          1. Option $1$:

            1. Pick the days numbered $1,2,dots,19,20.$

            2. On these days, pick balls numbered $1,2,dots,19,20$.

            3. On days $21$ and $22$, pick ball $20$.


          2. Option $2$:

            1. Pick the days numbered $1,2,dots,19,21.$

            2. On these days, pick balls numbered $1,2,dots,19,20$.

            3. On days $20$ and $22$, pick ball $20$.


          These both result in the same ball distribution, but are counted separately by your method. The other solution you wrote uses careful accounting to avoid this.



          For (2), you are answering a different question than the other solution. You are counting the number of ways to pick four balls comprising one $1$s and $2$s, with both present. The other method is the number of ways to pick four balls where at least one is a $1$ and at least one is a $2$.







          share|cite|improve this answer














          share|cite|improve this answer



          share|cite|improve this answer








          edited Aug 28 at 22:50

























          answered Aug 28 at 15:19









          Mike Earnest

          17.5k11749




          17.5k11749




















              up vote
              3
              down vote













              Problem 1



              Your approach to the first question is incorrect : there is overcounting happening.



              To see why this is the case, let us see the steps you are using :



              • Fix a subset of $1,...,22$ : can be done in $binom2220$ ways.


              • Arrange for $20$ balls to be picked in these turns : done in $20!$ ways.


              • Two turns are left, and they may be allotted freely , hence in $20^2$ ways.


              The overcounting comes from the fact that it is possible to start from different subsets and still get the same order using the free choice of the third step.




              Example :



              Start with the subset $1,...,20$, and arrange for ball $1$ to be picked on the first day, ball $2$ on the second day , ball $3$ on the third day etc. by the second step. Now for $21$ and $22$, let balls $19$ be picked on day $21$ and ball $20$ on day $22$. Thus, the final order is $1,2,3,...,20,19,20$.



              Now, start with the subset $1,...,18,21,22$. Arrange for ball $1$ to be picked on the first day, ball $2$ on the second day , ..., ball $18$ to be picked on the $18$th day, ball $19$ on the $21$st day and ball $20$ on the $22$nd day. Now, on the remaining days, let ball $19$ be picked on day $19$, and ball $20$ on day $20$. This gives the same order as the previous order, but with a different subset.



              Therefore, a direct multiplication of the combinations resulting from the above steps is over counting.




              The way the other solution takes care of this problem, is not to isolate which subset of $20$ elements contains $20$ different balls, but rather which ball appears twice/thrice (no ball appears more than thrice : this would leave $19$ different numbered balls to be distributed in $18$ days, which can't happen). If a number appears thrice, then all others appear exactly once : this gives one case. If one number appears twice, so must exactly one other number : this gives another case. But one of the above must happen : this gives the two cases of the second (and correct) solution.




              Problem 2



              Your approach is correct. The other approach seems to be of a different question : counting the ways in which at least one and at least one two occurs.






              share|cite|improve this answer
























                up vote
                3
                down vote













                Problem 1



                Your approach to the first question is incorrect : there is overcounting happening.



                To see why this is the case, let us see the steps you are using :



                • Fix a subset of $1,...,22$ : can be done in $binom2220$ ways.


                • Arrange for $20$ balls to be picked in these turns : done in $20!$ ways.


                • Two turns are left, and they may be allotted freely , hence in $20^2$ ways.


                The overcounting comes from the fact that it is possible to start from different subsets and still get the same order using the free choice of the third step.




                Example :



                Start with the subset $1,...,20$, and arrange for ball $1$ to be picked on the first day, ball $2$ on the second day , ball $3$ on the third day etc. by the second step. Now for $21$ and $22$, let balls $19$ be picked on day $21$ and ball $20$ on day $22$. Thus, the final order is $1,2,3,...,20,19,20$.



                Now, start with the subset $1,...,18,21,22$. Arrange for ball $1$ to be picked on the first day, ball $2$ on the second day , ..., ball $18$ to be picked on the $18$th day, ball $19$ on the $21$st day and ball $20$ on the $22$nd day. Now, on the remaining days, let ball $19$ be picked on day $19$, and ball $20$ on day $20$. This gives the same order as the previous order, but with a different subset.



                Therefore, a direct multiplication of the combinations resulting from the above steps is over counting.




                The way the other solution takes care of this problem, is not to isolate which subset of $20$ elements contains $20$ different balls, but rather which ball appears twice/thrice (no ball appears more than thrice : this would leave $19$ different numbered balls to be distributed in $18$ days, which can't happen). If a number appears thrice, then all others appear exactly once : this gives one case. If one number appears twice, so must exactly one other number : this gives another case. But one of the above must happen : this gives the two cases of the second (and correct) solution.




                Problem 2



                Your approach is correct. The other approach seems to be of a different question : counting the ways in which at least one and at least one two occurs.






                share|cite|improve this answer






















                  up vote
                  3
                  down vote










                  up vote
                  3
                  down vote









                  Problem 1



                  Your approach to the first question is incorrect : there is overcounting happening.



                  To see why this is the case, let us see the steps you are using :



                  • Fix a subset of $1,...,22$ : can be done in $binom2220$ ways.


                  • Arrange for $20$ balls to be picked in these turns : done in $20!$ ways.


                  • Two turns are left, and they may be allotted freely , hence in $20^2$ ways.


                  The overcounting comes from the fact that it is possible to start from different subsets and still get the same order using the free choice of the third step.




                  Example :



                  Start with the subset $1,...,20$, and arrange for ball $1$ to be picked on the first day, ball $2$ on the second day , ball $3$ on the third day etc. by the second step. Now for $21$ and $22$, let balls $19$ be picked on day $21$ and ball $20$ on day $22$. Thus, the final order is $1,2,3,...,20,19,20$.



                  Now, start with the subset $1,...,18,21,22$. Arrange for ball $1$ to be picked on the first day, ball $2$ on the second day , ..., ball $18$ to be picked on the $18$th day, ball $19$ on the $21$st day and ball $20$ on the $22$nd day. Now, on the remaining days, let ball $19$ be picked on day $19$, and ball $20$ on day $20$. This gives the same order as the previous order, but with a different subset.



                  Therefore, a direct multiplication of the combinations resulting from the above steps is over counting.




                  The way the other solution takes care of this problem, is not to isolate which subset of $20$ elements contains $20$ different balls, but rather which ball appears twice/thrice (no ball appears more than thrice : this would leave $19$ different numbered balls to be distributed in $18$ days, which can't happen). If a number appears thrice, then all others appear exactly once : this gives one case. If one number appears twice, so must exactly one other number : this gives another case. But one of the above must happen : this gives the two cases of the second (and correct) solution.




                  Problem 2



                  Your approach is correct. The other approach seems to be of a different question : counting the ways in which at least one and at least one two occurs.






                  share|cite|improve this answer












                  Problem 1



                  Your approach to the first question is incorrect : there is overcounting happening.



                  To see why this is the case, let us see the steps you are using :



                  • Fix a subset of $1,...,22$ : can be done in $binom2220$ ways.


                  • Arrange for $20$ balls to be picked in these turns : done in $20!$ ways.


                  • Two turns are left, and they may be allotted freely , hence in $20^2$ ways.


                  The overcounting comes from the fact that it is possible to start from different subsets and still get the same order using the free choice of the third step.




                  Example :



                  Start with the subset $1,...,20$, and arrange for ball $1$ to be picked on the first day, ball $2$ on the second day , ball $3$ on the third day etc. by the second step. Now for $21$ and $22$, let balls $19$ be picked on day $21$ and ball $20$ on day $22$. Thus, the final order is $1,2,3,...,20,19,20$.



                  Now, start with the subset $1,...,18,21,22$. Arrange for ball $1$ to be picked on the first day, ball $2$ on the second day , ..., ball $18$ to be picked on the $18$th day, ball $19$ on the $21$st day and ball $20$ on the $22$nd day. Now, on the remaining days, let ball $19$ be picked on day $19$, and ball $20$ on day $20$. This gives the same order as the previous order, but with a different subset.



                  Therefore, a direct multiplication of the combinations resulting from the above steps is over counting.




                  The way the other solution takes care of this problem, is not to isolate which subset of $20$ elements contains $20$ different balls, but rather which ball appears twice/thrice (no ball appears more than thrice : this would leave $19$ different numbered balls to be distributed in $18$ days, which can't happen). If a number appears thrice, then all others appear exactly once : this gives one case. If one number appears twice, so must exactly one other number : this gives another case. But one of the above must happen : this gives the two cases of the second (and correct) solution.




                  Problem 2



                  Your approach is correct. The other approach seems to be of a different question : counting the ways in which at least one and at least one two occurs.







                  share|cite|improve this answer












                  share|cite|improve this answer



                  share|cite|improve this answer










                  answered Aug 28 at 15:21









                  астон вілла олоф мэллбэрг

                  33.5k32870




                  33.5k32870



























                       

                      draft saved


                      draft discarded















































                       


                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function ()
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2897338%2fcombinatorics-and-probability-question%23new-answer', 'question_page');

                      );

                      Post as a guest













































































                      這個網誌中的熱門文章

                      How to combine Bézier curves to a surface?

                      Why am i infinitely getting the same tweet with the Twitter Search API?

                      Is there any way to eliminate the singular point to solve this integral by hand or by approximations?