N people drop their own key into a basket, after shuffling, every one randomly pick one, X is number of...

Failed to fetch jessie backports repository

What does "I’d sit this one out, Cap," imply or mean in the context?

How to pronounce the slash sign

How can I get through very long and very dry, but also very useful technical documents when learning a new tool?

What grammatical function is や performing here?

Opposite of a diet

Is there a problem with hiding "forgot password" until it's needed?

when is out of tune ok?

How to be diplomatic in refusing to write code that breaches the privacy of our users

Pole-zeros of a real-valued causal FIR system

How does the UK government determine the size of a mandate?

Is the destination of a commercial flight important for the pilot?

Applicability of Single Responsibility Principle

How do scammers retract money, while you can’t?

Arithmetic mean geometric mean inequality unclear

What is the difference between "behavior" and "behaviour"?

How does Loki do this?

Efficient way to transport a Stargate

Is `x >> pure y` equivalent to `liftM (const y) x`

Why are there no referendums in the US?

Is there a korbon needed for conversion?

Why not increase contact surface when reentering the atmosphere?

Is this apparent Class Action settlement a spam message?

A Rare Riley Riddle



N people drop their own key into a basket, after shuffling, every one randomly pick one, X is number of people get their own key. what is E(X),Var(X)? [closed]


Expected number of winners in this basket-like betting game?If we randomly pick 7 balls from 49 balls numbered from 1 to 49, what is the probability that we get 5 or more balls with number less than 10?What is the expected number of rounds that everyone get back their own ball?Mean and variance for the raincoat problemExpected number of people getting their own hat given that at least one of them gets his hat.Probability of last person taking his own cardFind the expected number of people who select their own name tagGiven two sets of $100$ samples of $10$ items from a $1000$ item set, what is probability that the two sets have non-empty intersectionProbability question about changing balls between basketsProbability of taking seats













-1












$begingroup$


$N$ people drop their own key into a basket, after shuffling, every one randomly pick one, $X$ is number of people get their own key. what is $E(X)$,$mathrm{Var}(X)$?










share|cite|improve this question











$endgroup$



closed as off-topic by Leucippus, dantopa, StubbornAtom, jgon, Eevee Trainer Mar 16 at 0:05


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "This question is missing context or other details: Please provide additional context, which ideally explains why the question is relevant to you and our community. Some forms of context include: background and motivation, relevant definitions, source, possible strategies, your current progress, why the question is interesting or important, etc." – Leucippus, dantopa, StubbornAtom, jgon, Eevee Trainer

If this question can be reworded to fit the rules in the help center, please edit the question.












  • 1




    $begingroup$
    Where is your attempt? What is the probability that all persons get their own keys?
    $endgroup$
    – callculus
    Mar 15 at 18:42






  • 1




    $begingroup$
    You should find $E[X]$ easy to answer. What is the probability a particular individual gets their own key?
    $endgroup$
    – Henry
    Mar 15 at 18:48










  • $begingroup$
    Welcome to Mathematics Stack Exchange! A quick tour will enhance your experience. Here are helpful tips to write a good question and write a good answer. For equations, please use MathJax.
    $endgroup$
    – dantopa
    Mar 15 at 19:07
















-1












$begingroup$


$N$ people drop their own key into a basket, after shuffling, every one randomly pick one, $X$ is number of people get their own key. what is $E(X)$,$mathrm{Var}(X)$?










share|cite|improve this question











$endgroup$



closed as off-topic by Leucippus, dantopa, StubbornAtom, jgon, Eevee Trainer Mar 16 at 0:05


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "This question is missing context or other details: Please provide additional context, which ideally explains why the question is relevant to you and our community. Some forms of context include: background and motivation, relevant definitions, source, possible strategies, your current progress, why the question is interesting or important, etc." – Leucippus, dantopa, StubbornAtom, jgon, Eevee Trainer

If this question can be reworded to fit the rules in the help center, please edit the question.












  • 1




    $begingroup$
    Where is your attempt? What is the probability that all persons get their own keys?
    $endgroup$
    – callculus
    Mar 15 at 18:42






  • 1




    $begingroup$
    You should find $E[X]$ easy to answer. What is the probability a particular individual gets their own key?
    $endgroup$
    – Henry
    Mar 15 at 18:48










  • $begingroup$
    Welcome to Mathematics Stack Exchange! A quick tour will enhance your experience. Here are helpful tips to write a good question and write a good answer. For equations, please use MathJax.
    $endgroup$
    – dantopa
    Mar 15 at 19:07














-1












-1








-1





$begingroup$


$N$ people drop their own key into a basket, after shuffling, every one randomly pick one, $X$ is number of people get their own key. what is $E(X)$,$mathrm{Var}(X)$?










share|cite|improve this question











$endgroup$




$N$ people drop their own key into a basket, after shuffling, every one randomly pick one, $X$ is number of people get their own key. what is $E(X)$,$mathrm{Var}(X)$?







probability






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Mar 15 at 20:34









Daniele Tampieri

2,58721022




2,58721022










asked Mar 15 at 18:36









walkerwalker

1




1




closed as off-topic by Leucippus, dantopa, StubbornAtom, jgon, Eevee Trainer Mar 16 at 0:05


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "This question is missing context or other details: Please provide additional context, which ideally explains why the question is relevant to you and our community. Some forms of context include: background and motivation, relevant definitions, source, possible strategies, your current progress, why the question is interesting or important, etc." – Leucippus, dantopa, StubbornAtom, jgon, Eevee Trainer

If this question can be reworded to fit the rules in the help center, please edit the question.







closed as off-topic by Leucippus, dantopa, StubbornAtom, jgon, Eevee Trainer Mar 16 at 0:05


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "This question is missing context or other details: Please provide additional context, which ideally explains why the question is relevant to you and our community. Some forms of context include: background and motivation, relevant definitions, source, possible strategies, your current progress, why the question is interesting or important, etc." – Leucippus, dantopa, StubbornAtom, jgon, Eevee Trainer

If this question can be reworded to fit the rules in the help center, please edit the question.








  • 1




    $begingroup$
    Where is your attempt? What is the probability that all persons get their own keys?
    $endgroup$
    – callculus
    Mar 15 at 18:42






  • 1




    $begingroup$
    You should find $E[X]$ easy to answer. What is the probability a particular individual gets their own key?
    $endgroup$
    – Henry
    Mar 15 at 18:48










  • $begingroup$
    Welcome to Mathematics Stack Exchange! A quick tour will enhance your experience. Here are helpful tips to write a good question and write a good answer. For equations, please use MathJax.
    $endgroup$
    – dantopa
    Mar 15 at 19:07














  • 1




    $begingroup$
    Where is your attempt? What is the probability that all persons get their own keys?
    $endgroup$
    – callculus
    Mar 15 at 18:42






  • 1




    $begingroup$
    You should find $E[X]$ easy to answer. What is the probability a particular individual gets their own key?
    $endgroup$
    – Henry
    Mar 15 at 18:48










  • $begingroup$
    Welcome to Mathematics Stack Exchange! A quick tour will enhance your experience. Here are helpful tips to write a good question and write a good answer. For equations, please use MathJax.
    $endgroup$
    – dantopa
    Mar 15 at 19:07








1




1




$begingroup$
Where is your attempt? What is the probability that all persons get their own keys?
$endgroup$
– callculus
Mar 15 at 18:42




$begingroup$
Where is your attempt? What is the probability that all persons get their own keys?
$endgroup$
– callculus
Mar 15 at 18:42




1




1




$begingroup$
You should find $E[X]$ easy to answer. What is the probability a particular individual gets their own key?
$endgroup$
– Henry
Mar 15 at 18:48




$begingroup$
You should find $E[X]$ easy to answer. What is the probability a particular individual gets their own key?
$endgroup$
– Henry
Mar 15 at 18:48












$begingroup$
Welcome to Mathematics Stack Exchange! A quick tour will enhance your experience. Here are helpful tips to write a good question and write a good answer. For equations, please use MathJax.
$endgroup$
– dantopa
Mar 15 at 19:07




$begingroup$
Welcome to Mathematics Stack Exchange! A quick tour will enhance your experience. Here are helpful tips to write a good question and write a good answer. For equations, please use MathJax.
$endgroup$
– dantopa
Mar 15 at 19:07










2 Answers
2






active

oldest

votes


















3












$begingroup$

Use linearity of expectation, indicator random variables, and remember that $Var(X) = E[X^2] - E[X]^2$



Let $X = X_1+X_2+dots+X_n$ where $X_i = begin{cases} 1&text{if person}~i~text{gets their key}\0&text{otherwise}end{cases}$



You correctly found that $Pr(X_i=1)=frac{1}{n}$ and as such $E[X] = ncdot frac{1}{n}=1$



Now, consider $X^2 = (X_1+X_2+dots+X_n)^2 = X_1^2+X_2^2+dots+X_n^2 + X_1X_2 + X_1X_3+dots+X_nX_{n-1}$



$X_i^2 = X_i$ so those terms are easy to deal with. $X_iX_j$ with $ineq j$ on the other hand will equal $1$ if and only if both persons $i$ and $j$ receive their keys.



We have for $ineq j$ that $Pr(X_iX_j=1) = Pr(X_i=1)Pr(X_j=1mid X_i=1) = frac{1}{n}cdot frac{1}{n-1}$



Now, taking note of the number of occurrences of each and letting $ineq j$ we have:



$E[X^2] = ncdot E[X_i] + n(n-1)cdot E[X_iX_j] = ncdot frac{1}{n} + n(n-1)cdot frac{1}{n}cdotfrac{1}{n-1} = 1 + 1=2$



So, $Var(X) = E[X^2]-E[X]^2 = 2 - 1^2 = 1$






share|cite|improve this answer









$endgroup$





















    1












    $begingroup$

    Expected value is easy to calculate; every person has an equal chance of pulling his own key.



    The first is uniformly distributed. The second can only pull his key if the first guy did not pull it, and so on.



    $E(X) = $
    $$frac{1}{n} + frac{1}{n-1}*frac{n-1}{n}+ frac{1}{n-2}*frac{n-2}{n-1}*frac{n-1}{n} +...$$



    $$=1$$



    $VAR(X) = E(X^2) - E(X)^2 $



    let $Y_i$ denote whether or not person $i$ managed to find his own key.



    then $E(X^2) = E(Y_iY_j) $ for all $i,j$



    note that distinct $i, j$ result in $E(Y_iY_j)=$ $$frac{1}{n(n-1)}$$
    The number of distinct pairs is $n(n-1)/2$



    By linearity of expectation you get that $E(X^2) = 2$
    hence:



    $VAR(X) = 2 - 1 = 1$






    share|cite|improve this answer









    $endgroup$




















      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      3












      $begingroup$

      Use linearity of expectation, indicator random variables, and remember that $Var(X) = E[X^2] - E[X]^2$



      Let $X = X_1+X_2+dots+X_n$ where $X_i = begin{cases} 1&text{if person}~i~text{gets their key}\0&text{otherwise}end{cases}$



      You correctly found that $Pr(X_i=1)=frac{1}{n}$ and as such $E[X] = ncdot frac{1}{n}=1$



      Now, consider $X^2 = (X_1+X_2+dots+X_n)^2 = X_1^2+X_2^2+dots+X_n^2 + X_1X_2 + X_1X_3+dots+X_nX_{n-1}$



      $X_i^2 = X_i$ so those terms are easy to deal with. $X_iX_j$ with $ineq j$ on the other hand will equal $1$ if and only if both persons $i$ and $j$ receive their keys.



      We have for $ineq j$ that $Pr(X_iX_j=1) = Pr(X_i=1)Pr(X_j=1mid X_i=1) = frac{1}{n}cdot frac{1}{n-1}$



      Now, taking note of the number of occurrences of each and letting $ineq j$ we have:



      $E[X^2] = ncdot E[X_i] + n(n-1)cdot E[X_iX_j] = ncdot frac{1}{n} + n(n-1)cdot frac{1}{n}cdotfrac{1}{n-1} = 1 + 1=2$



      So, $Var(X) = E[X^2]-E[X]^2 = 2 - 1^2 = 1$






      share|cite|improve this answer









      $endgroup$


















        3












        $begingroup$

        Use linearity of expectation, indicator random variables, and remember that $Var(X) = E[X^2] - E[X]^2$



        Let $X = X_1+X_2+dots+X_n$ where $X_i = begin{cases} 1&text{if person}~i~text{gets their key}\0&text{otherwise}end{cases}$



        You correctly found that $Pr(X_i=1)=frac{1}{n}$ and as such $E[X] = ncdot frac{1}{n}=1$



        Now, consider $X^2 = (X_1+X_2+dots+X_n)^2 = X_1^2+X_2^2+dots+X_n^2 + X_1X_2 + X_1X_3+dots+X_nX_{n-1}$



        $X_i^2 = X_i$ so those terms are easy to deal with. $X_iX_j$ with $ineq j$ on the other hand will equal $1$ if and only if both persons $i$ and $j$ receive their keys.



        We have for $ineq j$ that $Pr(X_iX_j=1) = Pr(X_i=1)Pr(X_j=1mid X_i=1) = frac{1}{n}cdot frac{1}{n-1}$



        Now, taking note of the number of occurrences of each and letting $ineq j$ we have:



        $E[X^2] = ncdot E[X_i] + n(n-1)cdot E[X_iX_j] = ncdot frac{1}{n} + n(n-1)cdot frac{1}{n}cdotfrac{1}{n-1} = 1 + 1=2$



        So, $Var(X) = E[X^2]-E[X]^2 = 2 - 1^2 = 1$






        share|cite|improve this answer









        $endgroup$
















          3












          3








          3





          $begingroup$

          Use linearity of expectation, indicator random variables, and remember that $Var(X) = E[X^2] - E[X]^2$



          Let $X = X_1+X_2+dots+X_n$ where $X_i = begin{cases} 1&text{if person}~i~text{gets their key}\0&text{otherwise}end{cases}$



          You correctly found that $Pr(X_i=1)=frac{1}{n}$ and as such $E[X] = ncdot frac{1}{n}=1$



          Now, consider $X^2 = (X_1+X_2+dots+X_n)^2 = X_1^2+X_2^2+dots+X_n^2 + X_1X_2 + X_1X_3+dots+X_nX_{n-1}$



          $X_i^2 = X_i$ so those terms are easy to deal with. $X_iX_j$ with $ineq j$ on the other hand will equal $1$ if and only if both persons $i$ and $j$ receive their keys.



          We have for $ineq j$ that $Pr(X_iX_j=1) = Pr(X_i=1)Pr(X_j=1mid X_i=1) = frac{1}{n}cdot frac{1}{n-1}$



          Now, taking note of the number of occurrences of each and letting $ineq j$ we have:



          $E[X^2] = ncdot E[X_i] + n(n-1)cdot E[X_iX_j] = ncdot frac{1}{n} + n(n-1)cdot frac{1}{n}cdotfrac{1}{n-1} = 1 + 1=2$



          So, $Var(X) = E[X^2]-E[X]^2 = 2 - 1^2 = 1$






          share|cite|improve this answer









          $endgroup$



          Use linearity of expectation, indicator random variables, and remember that $Var(X) = E[X^2] - E[X]^2$



          Let $X = X_1+X_2+dots+X_n$ where $X_i = begin{cases} 1&text{if person}~i~text{gets their key}\0&text{otherwise}end{cases}$



          You correctly found that $Pr(X_i=1)=frac{1}{n}$ and as such $E[X] = ncdot frac{1}{n}=1$



          Now, consider $X^2 = (X_1+X_2+dots+X_n)^2 = X_1^2+X_2^2+dots+X_n^2 + X_1X_2 + X_1X_3+dots+X_nX_{n-1}$



          $X_i^2 = X_i$ so those terms are easy to deal with. $X_iX_j$ with $ineq j$ on the other hand will equal $1$ if and only if both persons $i$ and $j$ receive their keys.



          We have for $ineq j$ that $Pr(X_iX_j=1) = Pr(X_i=1)Pr(X_j=1mid X_i=1) = frac{1}{n}cdot frac{1}{n-1}$



          Now, taking note of the number of occurrences of each and letting $ineq j$ we have:



          $E[X^2] = ncdot E[X_i] + n(n-1)cdot E[X_iX_j] = ncdot frac{1}{n} + n(n-1)cdot frac{1}{n}cdotfrac{1}{n-1} = 1 + 1=2$



          So, $Var(X) = E[X^2]-E[X]^2 = 2 - 1^2 = 1$







          share|cite|improve this answer












          share|cite|improve this answer



          share|cite|improve this answer










          answered Mar 15 at 19:20









          JMoravitzJMoravitz

          48.7k43988




          48.7k43988























              1












              $begingroup$

              Expected value is easy to calculate; every person has an equal chance of pulling his own key.



              The first is uniformly distributed. The second can only pull his key if the first guy did not pull it, and so on.



              $E(X) = $
              $$frac{1}{n} + frac{1}{n-1}*frac{n-1}{n}+ frac{1}{n-2}*frac{n-2}{n-1}*frac{n-1}{n} +...$$



              $$=1$$



              $VAR(X) = E(X^2) - E(X)^2 $



              let $Y_i$ denote whether or not person $i$ managed to find his own key.



              then $E(X^2) = E(Y_iY_j) $ for all $i,j$



              note that distinct $i, j$ result in $E(Y_iY_j)=$ $$frac{1}{n(n-1)}$$
              The number of distinct pairs is $n(n-1)/2$



              By linearity of expectation you get that $E(X^2) = 2$
              hence:



              $VAR(X) = 2 - 1 = 1$






              share|cite|improve this answer









              $endgroup$


















                1












                $begingroup$

                Expected value is easy to calculate; every person has an equal chance of pulling his own key.



                The first is uniformly distributed. The second can only pull his key if the first guy did not pull it, and so on.



                $E(X) = $
                $$frac{1}{n} + frac{1}{n-1}*frac{n-1}{n}+ frac{1}{n-2}*frac{n-2}{n-1}*frac{n-1}{n} +...$$



                $$=1$$



                $VAR(X) = E(X^2) - E(X)^2 $



                let $Y_i$ denote whether or not person $i$ managed to find his own key.



                then $E(X^2) = E(Y_iY_j) $ for all $i,j$



                note that distinct $i, j$ result in $E(Y_iY_j)=$ $$frac{1}{n(n-1)}$$
                The number of distinct pairs is $n(n-1)/2$



                By linearity of expectation you get that $E(X^2) = 2$
                hence:



                $VAR(X) = 2 - 1 = 1$






                share|cite|improve this answer









                $endgroup$
















                  1












                  1








                  1





                  $begingroup$

                  Expected value is easy to calculate; every person has an equal chance of pulling his own key.



                  The first is uniformly distributed. The second can only pull his key if the first guy did not pull it, and so on.



                  $E(X) = $
                  $$frac{1}{n} + frac{1}{n-1}*frac{n-1}{n}+ frac{1}{n-2}*frac{n-2}{n-1}*frac{n-1}{n} +...$$



                  $$=1$$



                  $VAR(X) = E(X^2) - E(X)^2 $



                  let $Y_i$ denote whether or not person $i$ managed to find his own key.



                  then $E(X^2) = E(Y_iY_j) $ for all $i,j$



                  note that distinct $i, j$ result in $E(Y_iY_j)=$ $$frac{1}{n(n-1)}$$
                  The number of distinct pairs is $n(n-1)/2$



                  By linearity of expectation you get that $E(X^2) = 2$
                  hence:



                  $VAR(X) = 2 - 1 = 1$






                  share|cite|improve this answer









                  $endgroup$



                  Expected value is easy to calculate; every person has an equal chance of pulling his own key.



                  The first is uniformly distributed. The second can only pull his key if the first guy did not pull it, and so on.



                  $E(X) = $
                  $$frac{1}{n} + frac{1}{n-1}*frac{n-1}{n}+ frac{1}{n-2}*frac{n-2}{n-1}*frac{n-1}{n} +...$$



                  $$=1$$



                  $VAR(X) = E(X^2) - E(X)^2 $



                  let $Y_i$ denote whether or not person $i$ managed to find his own key.



                  then $E(X^2) = E(Y_iY_j) $ for all $i,j$



                  note that distinct $i, j$ result in $E(Y_iY_j)=$ $$frac{1}{n(n-1)}$$
                  The number of distinct pairs is $n(n-1)/2$



                  By linearity of expectation you get that $E(X^2) = 2$
                  hence:



                  $VAR(X) = 2 - 1 = 1$







                  share|cite|improve this answer












                  share|cite|improve this answer



                  share|cite|improve this answer










                  answered Mar 15 at 19:33









                  loxlox

                  212




                  212















                      Popular posts from this blog

                      Nidaros erkebispedøme

                      Birsay

                      Was Woodrow Wilson really a Liberal?Was World War I a war of liberals against authoritarians?Founding Fathers...