Module V_v1
Module V_v1
Module V
Probabilistic reasoning in AI
• Uncertainty
• To represent uncertain knowledge, where we are not sure
about the predicates, we need uncertain reasoning or
probabilistic reasoning.
• Causes of uncertainty:
• Information occurred from unreliable sources.
• Experimental Errors
• Equipment fault
• Temperature variation
• Climate change.
P(Yes|Sunny)= P(Sunny|Yes)*P(Yes)/P(Sunny)
P(Sunny|Yes)= 3/10= 0.3
P(Sunny)= 0.35
P(Yes)=0.71
So P(Yes|Sunny) = 0.3*0.71/0.35= 0.60
Applying Bayes'theorem:
Weather No Yes
Overcast 0 5 5/14= 0.35
Rainy 2 2 4/14=0.29
Sunny 2 3 5/14=0.35
All 4/14=0.29 10/14=0.71
P(No|Sunny)= P(Sunny|No)*P(No)/P(Sunny)
P(Sunny|NO)= 2/4=0.5
P(No)= 0.29
P(Sunny)= 0.35
So P(No|Sunny)= 0.5*0.29/0.35 = 0.41
Applying Bayes'theorem:
Weather No Yes
Overcast 0 5 5/14= 0.35
Rainy 2 2 4/14=0.29
Sunny 2 3 5/14=0.35
All 4/14=0.29 10/14=0.71
P(Yes|Sunny)>P(No|Sunny)
3.Belief Propagation
1. Variable elimination
• Popular exact inference technique that systematically
sums out the variables not of interest.
• The process involves manipulating and combining the
network's CPTs to answer queries efficiently.
1. Variable elimination
2. Junction Tree Algorithm
• also known as the Clique Tree Algorithm, is a more
structured approach that converts the Bayesian
Network into a tree structure called a "junction tree" or
"clique tree," where each node (clique) contains a
subset of variables that form a complete (fully
connected) subgraph in the network.
2. Junction Tree Algorithm
3. Belief Propagation
• used particularly in networks that form a tree structure or can be
restructured into a tree-like form using the Junction Tree
Algorithm.
• It involves passing messages between nodes and uses these
messages to compute marginal probabilities at each node.
• Belief Propagation is especially effective in tree-structured
networks where messages can be propagated without loops,
ensuring that each node's final belief is computed exactly once
all messages have been passed.
What is an Uncertain Domain in AI?
• refers to a field or environment where the information
available is incomplete, ambiguous, noisy, or inherently
unpredictable.
• Unlike deterministic domains where outcomes can be
predicted with certainty given the inputs, uncertain
domains require AI systems to handle and reason about
uncertainty in a structured manner.
Characteristics of Uncertain Domains
Importance of Handling Uncertainty
Representing Knowledge in an
Uncertain Domain
1. Probabilistic Reasoning
2. Hidden Markov Models
3. Markov Decision Processes
4. Fuzzy Logic
5. Dempster-Shafer Theory
6. Belief Networks
7. Case-Based Reasoning
1. Probabilistic Reasoning
• involves representing knowledge using probability
theory to manage uncertainty.
• This approach is widely used in AI for tasks such as
diagnosis, prediction, and decision-making under
uncertainty.
• Bayesian Networks
• Bayesian networks (BNs) are graphical models that
represent the probabilistic relationships among a set of
variables. Each node in a BN represents a variable, and
the edges represent conditional dependencies. BNs
allow for efficient computation of posterior probabilities
given observed evidence.
2. Hidden Markov Models
• used to model time series data where the system being
modeled is assumed to be a Markov process with hidden
states.
• HMMs are widely used in speech recognition,
bioinformatics, and other sequential data applications.
• Example: In speech recognition, the observed sound
waves are modeled as emissions from hidden phonetic
states, allowing the system to decode spoken language.
3. Markov Decision Processes
• provide a framework for modeling decision-making in
environments with stochastic dynamics.
• MDPs consist of states, actions, transition probabilities,
and rewards, enabling the computation of optimal
policies for decision-making.
• Example: An autonomous robot navigating a grid world
can use an MDP to determine the optimal path to its
destination while accounting for uncertain movements
and rewards.
4. Fuzzy Logic
• is an approach to reasoning that deals with approximate rather than
fixed and exact values.
• Unlike traditional binary logic, fuzzy logic variables can have a truth
value that ranges between 0 and 1, representing the degree of truth.
• Fuzzy Sets and Membership Functions
• Fuzzy sets allow for the representation of concepts with vague
boundaries. Each element in a fuzzy set has a membership value
indicating its degree of belonging to the set.
• Example: In a temperature control system, the concept of "warm"
can be represented as a fuzzy set with a membership function
assigning values between 0 (not warm) and 1 (completely warm) to
different temperatures.
4. Fuzzy Logic
• Fuzzy Rules and Inference
• Fuzzy rules define the relationships between fuzzy
variables using if-then statements. Fuzzy inference
systems apply these rules to input data to derive
conclusions.