Bayesian Inference: Prob of Dry Pavement Outside House

  • Thread starter Thread starter zli034
  • Start date Start date
  • Tags Tags
    Bayesian
AI Thread Summary
The discussion revolves around calculating the probability of dry pavement outside a house, given a 20% chance of rain and a 40% chance of the sprinkler being on. The calculated probability of wet pavement is 52%, derived from the assumption of independence between rain and sprinkler use. However, participants highlight that the original question was about dry pavement, emphasizing the need for clarity in the calculation. They also note that the probabilities should not be treated as independent in a real-world scenario, suggesting the use of Bayesian inference for more accurate results. The conversation underscores the importance of understanding the assumptions behind probability calculations.
zli034
Messages
106
Reaction score
0
(Moderator's note: thread moved from "Set Theory, Logic, Probability, Statistics")

Hi guys,

Say outside of my house, there are 20% chance of rain, and 40% chance the sprinker is on.

When it is rain the pavement outside of house must be wet. And if the sprinkler is on, it also wet my pavement. If there is no rain and the sprinkler is off, my pavement is just dry.

How do I calculate the probability of my pavement is dry?

And I got the answer 52% from Netica. I think you all know netica is for bayesian network.
 
Last edited by a moderator:
Physics news on Phys.org
Let's consider the chance of rain and no rain:

--- 20% chance of rain ---
20% chance of pavement wet (it doesn't matter if the sprinkler is on or off)

--- 80% chance of no rain ---
80% * 40% chance of pavement wet due the sprinkler
80% * 60% chance of pavement dry (cause there is no rain, and the sprinkler is off)

So, the chance of pavement wet is
20% + 80% * 40% = 52%
 
Kittel Knight said:
Let's consider the chance of rain and no rain:

--- 20% chance of rain ---
20% chance of pavement wet (it doesn't matter if the sprinkler is on or off)

--- 80% chance of no rain ---
80% * 40% chance of pavement wet due the sprinkler
80% * 60% chance of pavement dry (cause there is no rain, and the sprinkler is off)

So, the chance of pavement wet is
20% + 80% * 40% = 52%

The answer is correct, but it's a straight (frequentist) probability calculation if the probabilities of rain (R) and sprinkler use (S) are independent. If so, then the probability the pavement is wet (W) is: P(R)+P(S)-P(R)P(S)= P(W)=0.2+0.4-(0.2)(0.4)= 0.52.

Realistically P(R) and P(S) should not be independent and you would need some additional information on this such as P(R|S) or P(S|R).
 
Last edited:
Thanks guys. I should worked it out. I was just spent whole afternoon working til brain damaged. :p
 
zli034 said:
Thanks guys. I should worked it out. I was just spent whole afternoon working til brain damaged. :p

I hope your brain has recovered by now. Since your question was entitled "Bayesian Inference", I 'm wondering if you understand why it is Bayesian. The result P(W)=0.52 is just one of an infinite number of results under a continuum of prior assumptions with fixed P(S) and P(R).

What is the maximum value that P(W) can have? Set P(S|R)= 0 and use Bayes' Theorem to calculate the max P(W).

What is the minimum value that P(W) can have? Set P(S|R) = 1 and repeat the calculation for min P(W).

Hint: Note the role of the "interaction" term P(S)P(R) in the original calculation under the assumption of independence.
 
Last edited:
zli034 said:
(Moderator's note: thread moved from "Set Theory, Logic, Probability, Statistics")

Hi guys,

Say outside of my house, there are 20% chance of rain, and 40% chance the sprinker is on.

When it is rain the pavement outside of house must be wet. And if the sprinkler is on, it also wet my pavement. If there is no rain and the sprinkler is off, my pavement is just dry.

How do I calculate the probability of my pavement is dry?

And I got the answer 52% from Netica. I think you all know netica is for bayesian network.


While I agree the probability of the pavement being wet is 52%, the question as asked (see above) was for the probability of the pavement being dry. I hope the OP doesn't go away thinking 52% is the right answer.
 
skeptic2 said:
While I agree the probability of the pavement being wet is 52%, the question as asked (see above) was for the probability of the pavement being dry. I hope the OP doesn't go away thinking 52% is the right answer.

You're right. I responded to Kittel Knight's somewhat round-about approach and simply assumed P(W) was the OP's question. I think I made clear that P(W) was the object of my calculation.
 
Back
Top