Skip to main content

[Community Question] Statistics: finding variance and mean of guests who got the correct key for their room

One of our user asked:

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

Popular posts from this blog

[Community Question] Calculus: Manifold with boundary - finding the boundary

One of our user asked: I have the manifold with boundary $M:= \lbrace (x_1,x_2,x_3) \in \mathbb R^3 : x_1\geq 0, x_1^2+x_2^2+x_3^2=1\rbrace \cup\lbrace (x_1,x_2,x_3) \in \mathbb R^3 : x_1= 0, x_1^2+x_2^2+x_3^2\leq1\rbrace$ and I need to find the boundary of this manifold. I think it is $\lbrace (x_1,x_2,x_3) \in \mathbb R^n : x_1= 0, x_2^2+x_3^2=1\rbrace$ , the other option is that the boundary is the empty set? I think the first is right? Am I wrong?

[Community Question] Linear-algebra: Are linear transformations between infinite dimensional vector spaces always differentiable?

One of our user asked: In class we saw that every linear transformation is differentiable (since there's always a linear approximation for them) and we also saw that a differentiable function must be continuous, so it must be true that all linear operators are continuous, however, I just read that between infinite dimensional vector spaces this is not necessarily true. I would like to know where's the flaw in my reasoning (I suspect that linear transformations between infinite dimensional vector spaces are not always differentiable).