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] Linear-algebra: non-negative matrix satisfying two conditions

One of our user asked: A real matrix $B$ is called non-negative if every entry is non-negative. We will denote this by $B\ge 0$ . I want to find a non-negative matrix $B$ satisfying the following two conditions: (1) $(I-B)^{-1}$ exists but not non-negative. Here $I$ is the identity matrix. (2) There is a non-zero and non-negative vector $\vec{d}$ such that $(I-B)^{-1}\vec{d}\ge 0$ . I tried all the $2\times 2$ matrices, but it did not work. I conjecture that such a $B$ does not exist, but don't know how to prove it.

[Community Question] Geometry: The limit about the line connecting the intersection of a circle and the $y$-axis and the intersection of the shrinking circle and a fixed circle

One of our user asked: There is a fixed circle $C_1$ with equation $(x - 1)^2 + y^2 = 1$ and a shrinking circle $C_2$ with radius $r$ and center the origin. $P$ is the point $(0, r)$ , $Q$ is the upper point of intersection of the two circles, and $R$ is the point of intersection of the line $PQ$ and the $x$ -axis. What happens to $R$ as $C_2$ shrinks, that is, as $r \to 0^+$ ? (The figure is made with GeoGebra ) In order to solve this problem, I made a script using GeoGebra in which the circle $C_2$ is a dynamic one whose radius $r$ can be adjusted with a slider. As I set $r \to 0^+$ , the figure seems to suggest that $R \to (4,0)$ . In particular, this is the state with $r = 0.001$ , in which $R$ is reported to be $(3.9999997523053,0)$ : However, I would like to find out a way to prove (or disprove, though unlikely) my guess that $$\lim_{r \to 0} R = (4,0).$$ But I have little idea. Any help would be appreciated.

Order of elements of the Prüfer groups $\mathbb{Z}(p^{\infty})$

Let $\mathbb{Z}(p^{\infty})$ be defined by $\mathbb{Z}(p^{\infty}) = \{ \overline{a/b} \in \mathbb{Q}/ \mathbb{Z} / a,b \in \mathbb{Z}, b=p^i$ $ with$ $ i \in \mathbb{N} \}$ , I wish show that any element in $\mathbb{Z}(p^{\infty})$ has order $p^n$ with $n \in \mathbb{N}$ . i try several ways but I have not been successful, some help ?? thank you