Checking My Understanding of the Naive Bayes Theorem

Click For Summary
SUMMARY

The discussion centers on the application of the Naive Bayes Theorem to calculate the probability of rain given specific conditions in December. Key probabilities identified include P(Rain | Dec) = 9/30 and P(Cloudy | Rain) = 0.6. The conversation emphasizes the importance of using a probability tree to simplify calculations and avoid confusion with conditional probabilities. Participants clarify that the probability of a cloudy morning is distinct from the probability of rain, which is critical for accurate computation.

PREREQUISITES
  • Understanding of the Naive Bayes Theorem
  • Familiarity with conditional probability
  • Knowledge of probability trees for visualizing outcomes
  • Basic statistics related to weather patterns
NEXT STEPS
  • Study the Naive Bayes Theorem in detail, focusing on its applications in classification problems.
  • Learn how to construct and interpret probability trees for complex probability scenarios.
  • Explore conditional probability calculations and their significance in statistical analysis.
  • Review real-world examples of weather prediction models using Bayesian methods.
USEFUL FOR

Students of statistics, data scientists, and anyone interested in applying the Naive Bayes Theorem to real-world problems, particularly in weather forecasting and predictive modeling.

jisbon
Messages
475
Reaction score
30
Homework Statement
Given the following statistics from a specific location:
60% of rainy days start out cloudy in the morning.
40% of all mornings are cloudy.
In December, it rains on average 9 out of 30 days.

In Dec, when it is a cloudy morning, what is the probability based on the given statistics that it is going to rain?
Relevant Equations
P(A|B) = P(B|A) P(A) / P(B)
I would like to check my understanding here to see if it is correct as I am currently stuck at the moment.
From the question, I can gather that:
P(Rain | Dec) = 9/30
P(Cloudy | Rain) = 0.6?
P(Cloudy | Rain) = 0.4

To answer the question:
P(Rain | <Cloudy, Morning, December> ) = P(Rain) * P(Cloudy|Rain) * P(Morning|Rain) * P(Dec|Rain)
= ? * 0.6 * ? * 9/30

This is going towards the Naive Bayes Theorem though, right? I think my initial thought process may be already wrong. Any guidance is greatly appreciated. Thank you!
 
Physics news on Phys.org
First, we have to assume that the data applies to December. If the data about cloudy and non-cloudy days is different in December from the annual average, then we have too little data to go on.

In that sense, it is just a straight calculation for December.
jisbon said:
Homework Statement:: Given the following statistics from a specific location:
60% of rainy days start out cloudy in the morning.
40% of all mornings are cloudy.
In December, it rains on average 9 out of 30 days.

In Dec, when it is a cloudy morning, what is the probability based on the given statistics that it is going to rain?
Relevant Equations:: P(A|B) = P(B|A) P(A) / P(B)
I may have advised this before, but if you use the raw equations, then you risk getting lost in a sea of conditional probabilities. You should try a probability tree for these problems.
jisbon said:
I would like to check my understanding here to see if it is correct as I am currently stuck at the moment.
From the question, I can gather that:
P(Rain | Dec) = 9/30
This is just the probability of rain for the problem. You don't need the conditional probability for December, as it is assumed across all calculations that we are in December.
jisbon said:
P(Cloudy | Rain) = 0.6?
Correct. That's what "60% of rainy days start out cloudy means".
jisbon said:
P(Cloudy | Rain) = 0.4
No. ##0.4## is the probability that any given day is cloudy in the morning.
jisbon said:
To answer the question:
P(Rain | <Cloudy, Morning, December> ) = P(Rain) * P(Cloudy|Rain) * P(Morning|Rain) * P(Dec|Rain)
= ? * 0.6 * ? * 9/30
You're just lost now trying to use these horrible equations, rather than a nice probability tree!
 
  • Like
Likes   Reactions: WWGD, Steve4Physics and FactChecker

Similar threads

  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 5 ·
Replies
5
Views
4K
Replies
4
Views
5K
Replies
10
Views
3K
  • · Replies 9 ·
Replies
9
Views
2K
Replies
8
Views
8K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 23 ·
Replies
23
Views
3K
  • · Replies 1 ·
Replies
1
Views
5K
  • · Replies 4 ·
Replies
4
Views
3K