Bayesian Inference: Prob of Dry Pavement Outside House

  • Thread starter Thread starter zli034
  • Start date Start date
  • Tags Tags
    Bayesian
Click For Summary

Homework Help Overview

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. Participants explore the implications of these probabilities on the pavement's condition.

Discussion Character

  • Exploratory, Assumption checking, Conceptual clarification

Approaches and Questions Raised

  • Participants discuss the calculation of pavement wetness and dryness, considering the independence of rain and sprinkler probabilities. Some express concern about the interpretation of the 52% probability as it pertains to the original question about dryness.

Discussion Status

The conversation includes attempts to clarify the relationship between the probabilities of rain and sprinkler use, with some participants questioning the assumptions of independence. There is acknowledgment of the need for additional information to accurately apply Bayesian inference principles.

Contextual Notes

There is a noted distinction between the calculated probability of wet pavement and the original inquiry regarding dry pavement. Some participants emphasize the importance of understanding the underlying assumptions in the calculations presented.

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.
 

Similar threads

  • · Replies 26 ·
Replies
26
Views
4K
  • · Replies 23 ·
Replies
23
Views
3K
  • · Replies 12 ·
Replies
12
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 15 ·
Replies
15
Views
6K
  • · Replies 9 ·
Replies
9
Views
10K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 18 ·
Replies
18
Views
7K
  • Poll Poll
  • · Replies 4 ·
Replies
4
Views
6K