4

There is an $80\%$ chance of rain on each of the next six days. What is the probability that it will rain on exactly two of those days?

Could you show the workings as well as showing in the equation format. I don't quite understand the equation formatting yet... :(

user21820
  • 57,693
  • 9
  • 98
  • 256
probslater
  • 91
  • 3
  • 10
    Are we to assume the probability of rain on each day is independent? – abligh Jan 22 '17 at 21:29
  • 7
    This questions is repeated all over the internet, it's extremely basic without effort into the post, (a.k.a. homework) it's a "easy to google" question and it got 6 upvotes. There is something unbalanced and unfair with this that needs attention. – Santropedro Jan 22 '17 at 22:00

5 Answers5

22

OK, so you need 2 days of rain, and 4 days of not rain.

First: when are those days? It could be the first two days, but it could also be the first and third day, or fourth and sixth day, etc. Now, the choose function is exactly what you want here: out of these 6 days, you want to choose exactly 2. That is: there are $6 \choose 2$ possible such pairings.

Second, once we focus on a specific pairing, e.g. rain on the first two days, and not rain on the last four, we can say that the probability that that happens is:

$0.8*0.8*0.2*0.2*0.2*0.2 = (0.8)^{2}*(0.2)^4$

But the same is true for any other pairing, e.g. to get rain on the fourth and sixth day, and not the others, we get:

$0.2*0.2*0.2*0.8*0.2*0.8 = (0.8)^{2}*(0.2)^4$.

So, each such specific pairing happens with a probability of $(0.8)^{2}*(0.2)^4$.

Finally, we get:

P(rain on exactly two days) =

P(rain on first two days or rain on first and third day or ...) =

P(rain on first two days) + P(rain on first and third day) + ... =

${6} \choose {2}$ * $(0.8)^{2}*(0.2)^4$

Bram28
  • 100,612
  • 6
  • 70
  • 118
4

The question as posed cannot be answered; the other proposed answers rely on the assumption that the event of rain on one day is independent of rain on the other days. With that assumption, yes, the binomial distribution gives the answer. But without it, we might find that it rains on all days with a probability of 0.8 and on none with a probability of 0.2; in which case, the probability of rain on any particular day is 0.8, but the probability of rain on exactly two days is zero.

Others might object that an assumption of independence is implicit in the question. I would answer that rain on any day is strongly correlated with rain on the preceding and following days, so that the story behind the question suggests that independence does not hold.

Mike Spivey
  • 141
  • 3
3

Required probability is

$\dbinom{6}{2}(0.8)^2(1-0.8)^{6-2}$

Kiran
  • 4,198
3

Hint. One may recognize a binomial distribution, $$ \Pr(X = 2) = \binom 6 2 0.8^2(1-0.8)^{6-2}. $$

Olivier Oloa
  • 120,989
  • for $k=2$ (typo) – Max Jan 22 '17 at 18:33
  • @Max Edited, thank you very much. – Olivier Oloa Jan 22 '17 at 19:33
  • 5
    -1 You're right, but if the OP (or a future reader) is unfamiliar with how to solve a problem like this on their own, I don't think pointing out that this is a binomial distribution will help them understand the underlying intuition or help them solve other, similar problems. – Kevin Jan 22 '17 at 20:20
2

I am using bionomial distribution to solve this question.

$p(\text{rain}) = 0.8$

Then,

$q(\text{not rain}) = 1 - 0.8 = 0.2$

Now according to bionamial distribution

$P(X=r) = \binom{n}{r} (q)^{n-r} (p)^r$

Here X = 2 and n = 6.

$P(X=2) = \binom{6}{2} × (0.2)^4 × (0.8)^2$

Hope you can proceed further.