At a certain men's college, the probability that a student selected at random on a given day will require a hospital bed is $\dfrac {1}{5000}.$ If there are $8000$ students, how many beds should the hospital have so that the probability that a student will be turned away for lack of bed is less than $0.01 $
Attempt: Let $X$ be the random variable which denotes the number of students requiring a hospital bed on a given day.
Trying to use the poisson distribution, we obtain, $\lambda = 8000 \cdot \dfrac {1}{5000} = \dfrac {8}{5}$. Then, using poisson distribution : $P(X=x) = \dfrac {e^{-\lambda}\cdot \lambda^x}{x!}$
Let $n$ be the required number of beds ( $n < 8000)$. Then, by the given requirement, the probability that $n$ beds will be occupied should be less than $0.01 \implies \dfrac {e^{-\frac{8}{5}}\cdot \big( \frac{8}{5}\big)^n}{n!} \le 0.01$
$\implies \Big ( \dfrac{8}{5} \Big)^n \cdot \dfrac{1}{n!} \le 0.01 \cdot e^{\frac{8}{5}}$
Solving for which we get $n \ge 6$.
Is this the correct approach? Thanks a lot for your help.
x=1:10; pr = ppois(x, 8/5); min(x[pr >= .99])
returns $5.$ Also, using binomial,x=1:10; pr = pbinom(x, 8000, 1/5000); min(x[pr >= .99])
gives the same result. $\endgroup$