Unit 4 Full PPT (ML)
Unit 4 Full PPT (ML)
Unit 4 Full PPT (ML)
• These models can be used to analyze the relationships between variables, estimate
the probability distribution of a set of variables, and make predictions about future
events.
• There are two main types of graphical models: Directed and Undirected.
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 and anomaly detection.
Bayesian Network can be used for building models from data and experts opinions, and it consists
of two parts:
• Satheesh installed a new burglar alarm at his home to detect burglary. The alarm responds to
detecting a burglary but also responds to minor earthquakes. Satheesh has two neighbors Kumar
and Devi, who have taken responsibility to inform Satheesh at work when they hear the alarm.
Kumar always calls Satheesh when he hears the alarm, but sometimes he got confused with the
phone ringing and calls at that time too. On the other hand, Devi likes to listen to high music, so
sometimes she misses hearing the alarm. Here we would like to compute the probability of a
Burglary Alarm.
• Calculate the probability that the alarm has sounded, but there is neither a burglary, nor
an earthquake occurred, and Kumar and Devi are both called satheesh.
Bayesian belief network
Bayesian belief network
Bayesian belief network
MARKOV MODEL
Example: Google predicts the next word in your sentence based on your
previous entry within Gmail
TYPES OF MARKOV MODEL
• Eg: predicting the weather (hidden variable) based on the type of clothes that
• Let blue, green and red be three classes of objects with prior probabilities given by
P(blue)=¼,P(green)=½,P(red)=¼.There are three types of objects: pencils, pens and paper.
Let the class-conditional probabilities of these objects be given as follows.
• Use Bayes classifier to classify pencil, pen and paper.
• P(pencil/green) =1/3
• P(pen/green) =1/2
• P(paper/green) = 1/6
• P(pencil/blue) =1/2
• P(pen/blue) = 1/6
• P(paper/blue) =1/3
• P(pencil/red) =1/6
• P(pen/red) =1/3
• P(paper/red) = 1/2.
Example-solution
Example-pencil solution
Example- pen solution
Example- paper solution