Problem:
There are $7$ keys in a brelok, from which only one opens the door. Find the average number of attempts that we will need in order to open the door and the probability to need exactly $5$ attempts, when everytime we try a key:
a) We remove it from the brelok
b) We dont remove it from the brelok
My solution:
Since we just need the first success i thought that we will use $X$~$Geom(p)$ for b) since its with replacement and $NBinom$~$(r,p)$ for a) since its without replacement (where $r$ the number of successes needed and where $p$ the probability of success).
The issue is though that i get the exact same answers for both. For example the $μ$ for $X$~$Geom(p)$ is $μ=\frac{1}{p}=7$ and for $NBinom$~$(r,p)$ its also $μ=\frac{r}{p}=\frac{1}{p}=7$. Same thing also happens with the $P(X=5)$, i get same results from both distributions.
Am i doing anything wrong or this is indeed the answer?