Probability when a professor distributes a quiz and homework assignment to a class of n students.












0












$begingroup$


Need help with this problem. Suppose our lazy professor collects a quiz and a homework assignment from a class of n students one day, then distributes both the quizzes and the homework assignments back to the class in a random fashion for grading. Each student receives one quiz and one homework assignment to grade.



(a) What is the probability that every student receives someone else's quiz to grade, and someone else's homework to grade?



(b) What is the probability that no student receives both their own quiz and their own homework assignment to grade? In this case, some students may receive their own quiz, and others may receive their own homework assignment.



(c) Compute the limiting probability as n approaches infinity in each case.










share|cite|improve this question









$endgroup$








  • 2




    $begingroup$
    You may want to look up Derangements (Wikipedia).
    $endgroup$
    – André Nicolas
    Oct 29 '13 at 17:14
















0












$begingroup$


Need help with this problem. Suppose our lazy professor collects a quiz and a homework assignment from a class of n students one day, then distributes both the quizzes and the homework assignments back to the class in a random fashion for grading. Each student receives one quiz and one homework assignment to grade.



(a) What is the probability that every student receives someone else's quiz to grade, and someone else's homework to grade?



(b) What is the probability that no student receives both their own quiz and their own homework assignment to grade? In this case, some students may receive their own quiz, and others may receive their own homework assignment.



(c) Compute the limiting probability as n approaches infinity in each case.










share|cite|improve this question









$endgroup$








  • 2




    $begingroup$
    You may want to look up Derangements (Wikipedia).
    $endgroup$
    – André Nicolas
    Oct 29 '13 at 17:14














0












0








0


0



$begingroup$


Need help with this problem. Suppose our lazy professor collects a quiz and a homework assignment from a class of n students one day, then distributes both the quizzes and the homework assignments back to the class in a random fashion for grading. Each student receives one quiz and one homework assignment to grade.



(a) What is the probability that every student receives someone else's quiz to grade, and someone else's homework to grade?



(b) What is the probability that no student receives both their own quiz and their own homework assignment to grade? In this case, some students may receive their own quiz, and others may receive their own homework assignment.



(c) Compute the limiting probability as n approaches infinity in each case.










share|cite|improve this question









$endgroup$




Need help with this problem. Suppose our lazy professor collects a quiz and a homework assignment from a class of n students one day, then distributes both the quizzes and the homework assignments back to the class in a random fashion for grading. Each student receives one quiz and one homework assignment to grade.



(a) What is the probability that every student receives someone else's quiz to grade, and someone else's homework to grade?



(b) What is the probability that no student receives both their own quiz and their own homework assignment to grade? In this case, some students may receive their own quiz, and others may receive their own homework assignment.



(c) Compute the limiting probability as n approaches infinity in each case.







probability combinatorics inclusion-exclusion






share|cite|improve this question













share|cite|improve this question











share|cite|improve this question




share|cite|improve this question










asked Oct 29 '13 at 17:10









NateNate

1961214




1961214








  • 2




    $begingroup$
    You may want to look up Derangements (Wikipedia).
    $endgroup$
    – André Nicolas
    Oct 29 '13 at 17:14














  • 2




    $begingroup$
    You may want to look up Derangements (Wikipedia).
    $endgroup$
    – André Nicolas
    Oct 29 '13 at 17:14








2




2




$begingroup$
You may want to look up Derangements (Wikipedia).
$endgroup$
– André Nicolas
Oct 29 '13 at 17:14




$begingroup$
You may want to look up Derangements (Wikipedia).
$endgroup$
– André Nicolas
Oct 29 '13 at 17:14










2 Answers
2






active

oldest

votes


















0












$begingroup$

Think of this situation as having n spaces, n numbers and n alphabets.
Each space is initially associated with a number and an alphabet. The alphabets and numbers are then redistributed among the spaces. This can be compared to permutating the alphabets while separately permutating the numbers. There are n!n! possible ways to do this.



a)So your question is, in how many such permutations, none of the alphabets or letters retain their initial spaces. To fill the spaces with the alphabets, there are now (n-1) ways. Similarly, to arrange the numbers, there are (n-1) ways.
Hence, to simultaneously distribute one letter and one alphabet to each space such that no alphabet or letter is in its original space, there are
[(n-1)]^2 ways.



So, the probability that no student receives his own assignment or homework is



[(n-1)]^2/n!n!.



b)number of ways in which no student receives both their own quiz and their own homework assignment = number of ways in which the spaces can be filled such that no letter is in its original space + number of ways in which no number is in its original space - number of ways in which no number or letter is in its original space. This is 2.n!.(n-1) - (n-1)^2



Hence, the probability of the HWs and assignments being distributed in this way is



2.n!.(n-1) - (n-1)^2/n!n!.






share|cite|improve this answer











$endgroup$













  • $begingroup$
    So the probabilities are $0$ when $n$ is odd?
    $endgroup$
    – bof
    Oct 30 '13 at 12:21



















0












$begingroup$

(a) You have two permutations underneath each other, like this: $$begin{array}{rccccc}&1&2&3&4&5\hlinetext{Quiz}&2&4&1&3&5\text{H/w}&3&2&4&5&1end{array}$$



Both must be derangements, so the number of arrangements is $D_n^2$ out of $n!^2$.



(b) Adapting the inclusion-exclusion argument used for ordinary derangements, you get:



$$n!^2-{nchoose 1}(n-1)!^2+{nchoose 2}(n-2)!^2-...$$



successively counting arrangements in which at least $0,1,2,...$ students get back both of their own pieces of work. For $n=2,3,4,5,6$ the answers are $3, 26, 453, 11844, 439975$ (OEIS A089041).



(c) By factoring out $n!$ from the inclusion-exclusion formula for ordinary derangements, it is easy to show that the limit is $e^{-1}$; thus the limit in part (a) is $e^{-2}$. As for part (b), factoring out $n!^2$ from the formula above, the result is $1-tfrac1n+...$ which approaches $1$ as $ntoinfty$.






share|cite|improve this answer









$endgroup$













    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',
    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%2f544427%2fprobability-when-a-professor-distributes-a-quiz-and-homework-assignment-to-a-cla%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









    0












    $begingroup$

    Think of this situation as having n spaces, n numbers and n alphabets.
    Each space is initially associated with a number and an alphabet. The alphabets and numbers are then redistributed among the spaces. This can be compared to permutating the alphabets while separately permutating the numbers. There are n!n! possible ways to do this.



    a)So your question is, in how many such permutations, none of the alphabets or letters retain their initial spaces. To fill the spaces with the alphabets, there are now (n-1) ways. Similarly, to arrange the numbers, there are (n-1) ways.
    Hence, to simultaneously distribute one letter and one alphabet to each space such that no alphabet or letter is in its original space, there are
    [(n-1)]^2 ways.



    So, the probability that no student receives his own assignment or homework is



    [(n-1)]^2/n!n!.



    b)number of ways in which no student receives both their own quiz and their own homework assignment = number of ways in which the spaces can be filled such that no letter is in its original space + number of ways in which no number is in its original space - number of ways in which no number or letter is in its original space. This is 2.n!.(n-1) - (n-1)^2



    Hence, the probability of the HWs and assignments being distributed in this way is



    2.n!.(n-1) - (n-1)^2/n!n!.






    share|cite|improve this answer











    $endgroup$













    • $begingroup$
      So the probabilities are $0$ when $n$ is odd?
      $endgroup$
      – bof
      Oct 30 '13 at 12:21
















    0












    $begingroup$

    Think of this situation as having n spaces, n numbers and n alphabets.
    Each space is initially associated with a number and an alphabet. The alphabets and numbers are then redistributed among the spaces. This can be compared to permutating the alphabets while separately permutating the numbers. There are n!n! possible ways to do this.



    a)So your question is, in how many such permutations, none of the alphabets or letters retain their initial spaces. To fill the spaces with the alphabets, there are now (n-1) ways. Similarly, to arrange the numbers, there are (n-1) ways.
    Hence, to simultaneously distribute one letter and one alphabet to each space such that no alphabet or letter is in its original space, there are
    [(n-1)]^2 ways.



    So, the probability that no student receives his own assignment or homework is



    [(n-1)]^2/n!n!.



    b)number of ways in which no student receives both their own quiz and their own homework assignment = number of ways in which the spaces can be filled such that no letter is in its original space + number of ways in which no number is in its original space - number of ways in which no number or letter is in its original space. This is 2.n!.(n-1) - (n-1)^2



    Hence, the probability of the HWs and assignments being distributed in this way is



    2.n!.(n-1) - (n-1)^2/n!n!.






    share|cite|improve this answer











    $endgroup$













    • $begingroup$
      So the probabilities are $0$ when $n$ is odd?
      $endgroup$
      – bof
      Oct 30 '13 at 12:21














    0












    0








    0





    $begingroup$

    Think of this situation as having n spaces, n numbers and n alphabets.
    Each space is initially associated with a number and an alphabet. The alphabets and numbers are then redistributed among the spaces. This can be compared to permutating the alphabets while separately permutating the numbers. There are n!n! possible ways to do this.



    a)So your question is, in how many such permutations, none of the alphabets or letters retain their initial spaces. To fill the spaces with the alphabets, there are now (n-1) ways. Similarly, to arrange the numbers, there are (n-1) ways.
    Hence, to simultaneously distribute one letter and one alphabet to each space such that no alphabet or letter is in its original space, there are
    [(n-1)]^2 ways.



    So, the probability that no student receives his own assignment or homework is



    [(n-1)]^2/n!n!.



    b)number of ways in which no student receives both their own quiz and their own homework assignment = number of ways in which the spaces can be filled such that no letter is in its original space + number of ways in which no number is in its original space - number of ways in which no number or letter is in its original space. This is 2.n!.(n-1) - (n-1)^2



    Hence, the probability of the HWs and assignments being distributed in this way is



    2.n!.(n-1) - (n-1)^2/n!n!.






    share|cite|improve this answer











    $endgroup$



    Think of this situation as having n spaces, n numbers and n alphabets.
    Each space is initially associated with a number and an alphabet. The alphabets and numbers are then redistributed among the spaces. This can be compared to permutating the alphabets while separately permutating the numbers. There are n!n! possible ways to do this.



    a)So your question is, in how many such permutations, none of the alphabets or letters retain their initial spaces. To fill the spaces with the alphabets, there are now (n-1) ways. Similarly, to arrange the numbers, there are (n-1) ways.
    Hence, to simultaneously distribute one letter and one alphabet to each space such that no alphabet or letter is in its original space, there are
    [(n-1)]^2 ways.



    So, the probability that no student receives his own assignment or homework is



    [(n-1)]^2/n!n!.



    b)number of ways in which no student receives both their own quiz and their own homework assignment = number of ways in which the spaces can be filled such that no letter is in its original space + number of ways in which no number is in its original space - number of ways in which no number or letter is in its original space. This is 2.n!.(n-1) - (n-1)^2



    Hence, the probability of the HWs and assignments being distributed in this way is



    2.n!.(n-1) - (n-1)^2/n!n!.







    share|cite|improve this answer














    share|cite|improve this answer



    share|cite|improve this answer








    edited Oct 31 '13 at 14:54

























    answered Oct 30 '13 at 11:16









    user99323user99323

    704




    704












    • $begingroup$
      So the probabilities are $0$ when $n$ is odd?
      $endgroup$
      – bof
      Oct 30 '13 at 12:21


















    • $begingroup$
      So the probabilities are $0$ when $n$ is odd?
      $endgroup$
      – bof
      Oct 30 '13 at 12:21
















    $begingroup$
    So the probabilities are $0$ when $n$ is odd?
    $endgroup$
    – bof
    Oct 30 '13 at 12:21




    $begingroup$
    So the probabilities are $0$ when $n$ is odd?
    $endgroup$
    – bof
    Oct 30 '13 at 12:21











    0












    $begingroup$

    (a) You have two permutations underneath each other, like this: $$begin{array}{rccccc}&1&2&3&4&5\hlinetext{Quiz}&2&4&1&3&5\text{H/w}&3&2&4&5&1end{array}$$



    Both must be derangements, so the number of arrangements is $D_n^2$ out of $n!^2$.



    (b) Adapting the inclusion-exclusion argument used for ordinary derangements, you get:



    $$n!^2-{nchoose 1}(n-1)!^2+{nchoose 2}(n-2)!^2-...$$



    successively counting arrangements in which at least $0,1,2,...$ students get back both of their own pieces of work. For $n=2,3,4,5,6$ the answers are $3, 26, 453, 11844, 439975$ (OEIS A089041).



    (c) By factoring out $n!$ from the inclusion-exclusion formula for ordinary derangements, it is easy to show that the limit is $e^{-1}$; thus the limit in part (a) is $e^{-2}$. As for part (b), factoring out $n!^2$ from the formula above, the result is $1-tfrac1n+...$ which approaches $1$ as $ntoinfty$.






    share|cite|improve this answer









    $endgroup$


















      0












      $begingroup$

      (a) You have two permutations underneath each other, like this: $$begin{array}{rccccc}&1&2&3&4&5\hlinetext{Quiz}&2&4&1&3&5\text{H/w}&3&2&4&5&1end{array}$$



      Both must be derangements, so the number of arrangements is $D_n^2$ out of $n!^2$.



      (b) Adapting the inclusion-exclusion argument used for ordinary derangements, you get:



      $$n!^2-{nchoose 1}(n-1)!^2+{nchoose 2}(n-2)!^2-...$$



      successively counting arrangements in which at least $0,1,2,...$ students get back both of their own pieces of work. For $n=2,3,4,5,6$ the answers are $3, 26, 453, 11844, 439975$ (OEIS A089041).



      (c) By factoring out $n!$ from the inclusion-exclusion formula for ordinary derangements, it is easy to show that the limit is $e^{-1}$; thus the limit in part (a) is $e^{-2}$. As for part (b), factoring out $n!^2$ from the formula above, the result is $1-tfrac1n+...$ which approaches $1$ as $ntoinfty$.






      share|cite|improve this answer









      $endgroup$
















        0












        0








        0





        $begingroup$

        (a) You have two permutations underneath each other, like this: $$begin{array}{rccccc}&1&2&3&4&5\hlinetext{Quiz}&2&4&1&3&5\text{H/w}&3&2&4&5&1end{array}$$



        Both must be derangements, so the number of arrangements is $D_n^2$ out of $n!^2$.



        (b) Adapting the inclusion-exclusion argument used for ordinary derangements, you get:



        $$n!^2-{nchoose 1}(n-1)!^2+{nchoose 2}(n-2)!^2-...$$



        successively counting arrangements in which at least $0,1,2,...$ students get back both of their own pieces of work. For $n=2,3,4,5,6$ the answers are $3, 26, 453, 11844, 439975$ (OEIS A089041).



        (c) By factoring out $n!$ from the inclusion-exclusion formula for ordinary derangements, it is easy to show that the limit is $e^{-1}$; thus the limit in part (a) is $e^{-2}$. As for part (b), factoring out $n!^2$ from the formula above, the result is $1-tfrac1n+...$ which approaches $1$ as $ntoinfty$.






        share|cite|improve this answer









        $endgroup$



        (a) You have two permutations underneath each other, like this: $$begin{array}{rccccc}&1&2&3&4&5\hlinetext{Quiz}&2&4&1&3&5\text{H/w}&3&2&4&5&1end{array}$$



        Both must be derangements, so the number of arrangements is $D_n^2$ out of $n!^2$.



        (b) Adapting the inclusion-exclusion argument used for ordinary derangements, you get:



        $$n!^2-{nchoose 1}(n-1)!^2+{nchoose 2}(n-2)!^2-...$$



        successively counting arrangements in which at least $0,1,2,...$ students get back both of their own pieces of work. For $n=2,3,4,5,6$ the answers are $3, 26, 453, 11844, 439975$ (OEIS A089041).



        (c) By factoring out $n!$ from the inclusion-exclusion formula for ordinary derangements, it is easy to show that the limit is $e^{-1}$; thus the limit in part (a) is $e^{-2}$. As for part (b), factoring out $n!^2$ from the formula above, the result is $1-tfrac1n+...$ which approaches $1$ as $ntoinfty$.







        share|cite|improve this answer












        share|cite|improve this answer



        share|cite|improve this answer










        answered Jun 9 '17 at 7:17









        Andrew WoodsAndrew Woods

        3,194513




        3,194513






























            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%2f544427%2fprobability-when-a-professor-distributes-a-quiz-and-homework-assignment-to-a-cla%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

            Aardman Animations

            Are they similar matrix