Weather station brain teaser

1.6k Views Asked by At

I am living in a world where tomorrow will either rain or not rain. There are two independent weather stations (A,B) that can predict the chance of raining tomorrow with equal probability 3/5. They both say it will rain, what is the probability of it actually rain tomorrow?

My intuition is to look at the complementary, i.e. $$1-P(\text{not rain | A = rain and B = rain}) = \frac{21}{25}$$

However, using the same methodology, the chance of it not raining tomorrow is: $$1-P(\text{rain | A = rain and B = rain}) = \frac{16}{25}$$

Clearly they do not add up to 1!

Edit: corrected the probability to 3/5 ** Edit 2:

There seems to be a problem using this method. Say the probability of getting a right prediction is 1/2, so basically there is no predictability power. The using the original argument, the probability of raining is $1-\frac{1}{2}*\frac{1}{2} = \frac{3}{4}$ which is also non-sensical

3

There are 3 best solutions below

7
On BEST ANSWER

Firstly, I do not agree with comments which say that the assumption of independence is unreasonable. Of course if the weather stations were perfect, they would never be wrong and so of course they would be linked together by always giving the same correct prediction.

What is independent are the reasons for the stations being wrong 2/5th of the time. Suppose that each station's equipment actually predicts the weather perfectly, then at each station, a random integer is generated from 1 to 5, and if it is 1 or 2, the prediction is flipped.

Basically, the weather is a red herring here. You have here two agents that can answer a Yes/No question. They either lie or tell the truth. The probability is 3/5 that they tell the truth.

If you ask a question and they both give the same answer, what is the probability that they are telling the truth?

It doesn't matter whether both these agents say Yes or No, Just like it doesn't matter whether both weather stations predict rain or shine.

There are four possible outcomes: A and B both lie. A lies, B tells the truth. Vice versa. Or they both tell the truth.

The probability that one of them lies is 2/5, and so the probability that they both lie is just the product: 4/25. The probability that A lies and B does not lie is simply 2/5 times 3/5: 6/25, and the probability is the same for the reverse case: 6/25. Finally, the probability that they both tell the truth is 9/25. Note that the numerators had better add up to 25! And they do: 4 + 6 + 6 + 9 = 25.

So does that mean that if the weather stations agree, the probability is 9/25 that the weather prediction is true? No, it doesn't.

If the weather stations agree, they are telling you the same information! So how could the probability be lower? 9/25 is less than 3/5!

The trick here is that you don't know which way they agree: if they agree, you don't know whether they are both lying or both truthful. The only two pieces of information you can distinguish are: the answers are the same, or they differ. So we have to condense the four probabilities as follows:

The probabilities that they both lie (4/25) and that they both tell the truth (9/25) must be added together. That is to say, the probability is 13/25 that they give the same answer. And the probability that they differ is therefore 12/25.

Given that they have piped up with the same answer, the odds that they are telling the truth are 9/13, and that they are lying are 4/13.

The probability that they come up with the same answer is irrelevant: that is already a given which has happened, so its probability is 100%, so to speak.

9/13 is greater than 3/5, so having two unreliable stations is better than one, at least when they happen to agree. However, when they disagree, you might as well flip a coin to predict tomorrow's weather: one is saying rain, the other shine and there is no way to tell which is wrong.

Here is a helpful diagram. Dark area: both tell the truth. White area, they both tell a white lie. The other areas are irrelevant. In the relevant areas, there are 13 squares.

enter image description here

We can also run simple simulation of this. Lisp source code:

;; 3/5 probability
(defun tell-truth ()
  (< (random 5) 3))

(defun monte-carlo ()
  (loop repeat 1000000
        for a = (tell-truth)
        for b = (tell-truth)
        with same-count = 0
        with truth-count = 0
        when (eq a b) do    ;; count whenever A and B give the same answer
          (incf same-count)
        when (and a (eq a b)) do ;; count whenever A tells truth and B agrees
          (incf truth-count)
        finally (return (/ truth-count same-count 1.0))))

Interactive results:

;; Loading file weather.lisp ...
;; Loaded file weather.lisp
[1]> (monte-carlo) 
0.69255465
[2]> (monte-carlo) 
0.6924692
[3]> (monte-carlo) 
0.691567
[4]> (monte-carlo) 
0.6913452

The decimal value of 9/13 is approximately 0.6923077.

5
On

The assumption of independence is very unreasonable, so if we make it we are not talking about real weather. But as long as we remember this is just a puzzle, we can go on.

Edit: (The next sentence is no longer relevant, previously it said probability $2/3$, probably because of the language of odds.) In your calculation, there is no $2/3$ probability anywhere.

You are assuming that if the first weather station says it will rain, then with probability $3/5$ it will rain. So if both predict rain, the probability both are wrong is $(2/5)^2$. This gives the $1-(2/5)^2$ of the first calculation.

The second calculation is not correct, for the probability it will rain, given the predictions, is the probability that at least one station is right.

0
On

After a couple months of thinking, a friend of mine have pointed out that the question lacks one piece of information: the unconditional probability distribution of rain $P(rain)$. The logic is that, if one is to live in an area that is certain to rain everyday, the probability of raining is always 1. Then Kaz's analysis will give the wrong answer (9/13). In fact, the probability of correctly predicting the rain should be:

$$\frac{P(rain)(3/5)^2}{P(rain)(3/5)^2+(1-P(rain))(2/5)^2}$$

Kaz's answer is correct if the probability distribution of raining is uniform. Cheers.