Skip to content
← All questions

How do you update the probability of rain using the observation of cloudiness in the picnic example?

To update the probability of rain given the observation of cloudiness, you apply Bayes' theorem. You substitute the supplied prior probability of rain, the likelihood of cloudiness given rain, and the marginal probability of cloudiness into the formula. The result is the posterior probability of rain, normalized by the probability of the observed event (cloudiness).

Conditions

  • Cloudiness is the observed event (B).
  • Rain is the event of interest (A).
  • Prior probabilities and likelihoods are supplied.
  • P(Cloudiness)>0P(\text{Cloudiness}) > 0.

Reasoning, step by step

  1. Identify the event of interest (Rain) and the observed event (Cloudiness).
  2. Retrieve the prior probability of Rain, P(Rain)P(\text{Rain}).
  3. Retrieve the likelihood of Cloudiness given Rain, P(Cloudiness∣Rain)P(\text{Cloudiness}|\text{Rain}).
  4. Retrieve or calculate the marginal probability of Cloudiness, P(Cloudiness)P(\text{Cloudiness}).
  5. Apply Bayes' formula: P(Rain∣Cloudiness)=P(Cloudiness∣Rain)P(Rain)P(Cloudiness)P(\text{Rain}|\text{Cloudiness}) = \frac{P(\text{Cloudiness}|\text{Rain})P(\text{Rain})}{P(\text{Cloudiness})}.
  6. Interpret the result as the updated (posterior) probability of rain.

Example

The script states: 'In the picnic example, cloudiness is the observed event and rain is the event of interest. Substitute the supplied prior and likelihood values, then normalize by the probability of the observed cloudiness.'

Common misconceptions

  • Confusing the likelihood P(Cloudiness∣Rain)P(\text{Cloudiness}|\text{Rain}) with the posterior P(Rain∣Cloudiness)P(\text{Rain}|\text{Cloudiness}).
  • Forgetting to normalize by dividing by P(Cloudiness)P(\text{Cloudiness}).
  • Treating cloudiness as the event of interest instead of the evidence.

Watch the explanation

Connected concepts

Explore next

Related questions

Find a method

↗
Understand why

↗
Find a method

↗
Find a method

↗

Answers are generated from source material and independently checked. Consult the original video or creator if something is unclear.