[Community Question] Statistics: finding variance and mean of guests who got the correct key for their room
i have a problem with a quite complicated question regarding guests who visit a hotel and hopefuly getting a correct key for their room:
problem: 2n people, n pairs, arrive to an hotel. each pair is assured to obtain a shared room at the hotel. however, the receptionist is a bit confused and hands out, randomly, 2n keys. for each of the n rooms there are 2 identical keys(out of 2n) that open its door.
let X - number of guests who obtained a correct key for their room.
Y - number of guests that can enter to that shared room, meaning number of pairs in which at least one of the people got the correct key to the room.
calculate mean and variance of X and the mean of Y.
what i tried to do: i declared an indicator $x_i$ that is 1 if the i guest got the correct key, and 0 if he doesn't, for each of i=1,...,2n keys available. next, i calculated the mean of $E[X_i]=P(x_i=1)=\frac{\binom21}{\binom{2n}1}=\frac{1}{n}$. the variance is $var(X_i)=P(x_i=1)P(X_i=0)$. then, well, then i am lost. i think i should define two variables that represent whether i, j are pairs or not and somehow calculate the covariance, but i don't know how and it's quite complicated.
i am wondering, is there any smart way to approach it and solve it without tedious computations? would really appreciate an answer in simple terms so i could learn from it and improve.
thank you very much for helping me
Comments
Post a Comment