Module 5 - AI
Module 5 - AI
Example:
CAR
2) Atomic Event
3) Unconditional Probability
4) Independence
5) Conditional Probability:
6) Full Joint Distribution of multiple variables
7) Inference Using Full Joint Distribution:
Axioms of Probability:
Using the Axioms
Proof:
The Probability of sample space is 1:
P(S) = 1
For any event A, the event ﬢA is its complement.
A and ﬢA cover the whole sample space:
P(A) + P( ﬢA) = P(S) = 1
It can be re arranged as
P(A) = 1- P( ﬢA)
Baye’s Rule/Theorem:
Problem Statement
• We are in a Wumpus World with three adjacent squares (A, B, and C).
• Each of these squares has an initial probability of containing a pit, .
• We have sensed a breeze, which indicates that at least one of these
three squares contains a pit.
• Our goal is to calculate the probability that each of these three squares
(A, B, and C) contains a pit given the breeze.
Step 1: Define Initial Probabilities
Conclusion
• Given the presence of a breeze, each of the three squares (A, B, and C)
now has a 33.3% probability of containing a pit.
• This approach can be generalized to any number of adjacent squares
with similar conditions.
--------------------------------
Question Bank
1) In a city 30% of the population owns a dog, while 70% owns a cat.
Among dog owners, 80% takes their dogs for daily walk, and among the
cat owners only 50% do so. If a person is observed walking their pet
daily, calculate probability that this person owns a dog. State a Baye’s
theorem.
3) Explain the concept of inference using full joint probability in the context
of agents acting under uncertainty with an example of the following
variables:
Weather = {sunny, rain, cloudy, snow}, Cavity = {cavity, ﬢcavity}
Also calculate the following:
P(cavity v toothache), P(cavity|toothache), P(ﬢcavity|toothache)
Given the following full joint distribution for the toothache, cavity, catch
world.
5) Given that bus arriving late = 0.3, and a student oversleeping probability
is 0.4. Find the probability that the students gets late.