Bayesian Network
Bayesian Network
• Quantifying Uncertainty
– Basic Probability Notation
– Prior/ Unconditional Probability
– Posterior/Conditional Probability
– Bayes’s Rule and its use
• Naïve Bayes Classification
– Example
• Bayesian Network
– Example
• Summary
4/28/2024 IIITU-CSSE12-C17VL3 by Dr. Nidhi
Bayesian Networks on DAG
3
• "A Bayesian network is a probabilistic graphical model which represents a set of variables
and their conditional dependencies using a directed acyclic graph.“
• It is also called a Bayes network, belief network, decision network, or Bayesian model.
• Bayesian networks are probabilistic, because these networks are built from a probability
distribution, and also use probability theory for prediction.
• Real world applications are probabilistic in nature, and to represent the relationship
between multiple events, we need a Bayesian network.
• It can also be used in various tasks including prediction, anomaly detection, diagnostics,
automated insight, reasoning, time series prediction, and decision making under
uncertainty.
4/28/2024 IIITU-CSSE12-C17VL3 by Dr. Nidhi
Bayesian Networks 4
• Bayesian Network can be used for building models from data and experts opinions, and it
consists of two parts:
The generalized form of Bayesian network that represents and solve decision problems under
uncertain knowledge is known as an Influence diagram.
• Bayesian belief network allows a subset of the variables conditionally independent and dependent .
• A graphical model of causal relationships
– Represents dependency among the variables
– Gives a specification of joint probability distribution
Calculate the probability that alarm has sounded, but there is neither a burglary, nor an earthquake occurred, and
John and Marry both called.
•Burglary (B)
•Earthquake(E)
•Alarm(A)
•John Calls(J)
•Marry Calls(M)
F 0.999
T 0.002
Calculate the probability that alarm has sounded, but there is
F 0.998
neither a burglary, nor an earthquake occurred, and John and
Marry both called.
B E P(A=T) P(A=F)
T T 0.95 0.05
T F 0.94 0.06
F T 0.29 0.71
F F 0.001 0.99
T F 0.94 0.06
F 0.05 0.95
F T 0.29 0.71
T F 0.94 0.06
P(J, M, A, ¬B, ¬E) = P (J|A) *P (M|A)*P (A|¬B ^ ¬E) *P (¬B) *P (¬E).
F T 0.29 0.71
F F 0.001 0.99
= 0.90 * 0.70 * 0.001 * 0.999 * 0.998
= 0.0006729.
Suppose we use the following variables, all of which are Boolean, in the following order:
Summary
Thank
4/28/2024 IIITU-CSSE12-C17VL3 by Dr. Nidhi