I tried to solve the following question:
A machine produces Coca Colas. The count of Coca Colas per day is not known in advance but It can be described with a Poisson distribution and a rate of 5 Coca Colas produced daily by the machine. When it produces more than 10 a day it stops working. What’s the probability that it stops at least twice during one week?
With this formula:
$$P(x) = e^{-\lambda*t}\frac{(\lambda*t)^x}{x!}$$
I thought:
The probability of at least two is the probability of receiving two, or three, or four, etc.
$$P(X\geq2)=P(X=2)+P(X=3)+\dots=\sum_{x=2}^\infty P(X=x),$$
the complementary event of "at least 2", which is "at most one":
$$P(X\geq2)=1-P(X<2)=1-P(X\leq1)=1-[P(X=0)+P(X=1)].$$
Then I calculated:
$$P(0) = e^{-5*7}\frac{(5*7)^0}{0!}= $$
$$P(1) = e^{-5*7}\frac{(5*7)^1}{1!}=$$
$$1-[P(X=0)+P(X=1)] = 1 - 0 = 1$$
The result of 1 is wrong. How would you calculate it? Thanks
Let $p$ denote the probability that the machine stops at a certain day. Furthermore, assume that the daily workings of the process are statistically independent. Then the probability that the machine stops at least twice a week is $$1-{7\choose 0}p^0(1-p)^7-{7\choose 1}p(1-p)^6=1-(1-p)^7-7p(1-p)^6.$$
Now, are the daily productions of the machine independent? Yes.
It remains to calculate $p$.
The daily production is of Poisson with parameter $\lambda=5$. That is, the probability that the machime produces $k$ coca colas at a day is $e^{-5}\frac{5^k}{k!}.$
The probability that $k\geq 10$ equals one minus the probability that the number of coca colas produced at a certain day is less than $10$:
$$p=1-e^{-5}\sum_{k=0}^9\frac{5^k}{k!}\approx0.032.$$.
So, the probability sought for equals
$$1-(1-p)^7-7p(1-p)^6\approx0.019.$$