The Wayback Machine - https://web.archive.org/web/20240823213215/https://www.geeksforgeeks.org/basic-understanding-of-bayesian-belief-networks/
Open In App

Basic Understanding of Bayesian Belief Networks

Last Updated : 05 Sep, 2020
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report
News Follow

Bayesian Belief Network is a graphical representation of different probabilistic relationships among random variables in a particular set. It is a classifier with no dependency on attributes i.e it is condition independent. Due to its feature of joint probability, the probability in Bayesian Belief Network is derived, based on a condition — P(attribute/parent) i.e probability of an attribute, true over parent attribute.

(Note: A classifier assigns data in a collection to desired categories.)

  • Consider this example:

  • In the above figure, we have an alarm ‘A’ – a node, say installed in a house of a person ‘gfg’, which rings upon two probabilities i.e burglary ‘B’ and fire ‘F’, which are – parent nodes of the alarm node. The alarm is the parent node of two probabilities P1 calls  ‘P1’ & P2 calls ‘P2’ person nodes.
  • Upon the instance of burglary and fire, ‘P1’ and ‘P2’ call person ‘gfg’, respectively. But, there are few drawbacks in this case, as sometimes ‘P1’ may forget to call the person ‘gfg’, even after hearing the alarm, as he has a tendency to forget things, quick.  Similarly, ‘P2’, sometimes fails to call the person ‘gfg’, as he is only able to hear the alarm, from a certain distance.

Q) Find the probability that ‘P1’ is true (P1 has called ‘gfg’), ‘P2’ is true (P2 has called ‘gfg’) when the alarm ‘A’ rang, but no burglary ‘B’ and fire ‘F’ has occurred.  

=> P ( P1, P2, A, ~B, ~F) [ where- P1, P2 & A are ‘true’ events and ‘~B’ & ‘~F’ are ‘false’ events]

[ Note: The values mentioned below are neither calculated nor computed. They have observed values ]

Burglary ‘B’ –

  • P (B=T) = 0.001 (‘B’ is true i.e burglary has occurred)
  • P (B=F) = 0.999  (‘B’ is false i.e burglary has not occurred)

Fire ‘F’ –

  • P (F=T) = 0.002 (‘F’ is true i.e fire has occurred)
  • P (F=F) = 0.998 (‘F’ is false i.e fire has not occurred)

Alarm ‘A’ –

B F 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.999
  • The alarm ‘A’ node can be ‘true’ or ‘false’ ( i.e may have rung or may not have rung). It has two parent nodes burglary ‘B’ and fire ‘F’ which can be ‘true’ or ‘false’ (i.e may have occurred or may not have occurred) depending upon different conditions.

Person ‘P1’ –

A P (P1=T) P (P1=F)
T 0.95 0.05
F 0.05 0.95
  • The person ‘P1’ node can be ‘true’ or ‘false’ (i.e may have called the person ‘gfg’ or not) . It has a parent node, the alarm ‘A’, which can be ‘true’ or ‘false’ (i.e may have rung or may not have rung ,upon burglary ‘B’ or fire ‘F’).

Person ‘P2’ –

A P (P2=T) P (P2=F)
T 0.80 0.20
F 0.01 0.99
  • The person ‘P2’ node can be ‘true’ or false’ (i.e may have called the person ‘gfg’ or not). It has a parent node, the alarm ‘A’, which can be ‘true’ or ‘false’ (i.e may have rung or may not have rung, upon burglary ‘B’ or fire ‘F’).

Solution: Considering the observed probabilistic scan –

With respect to the question —  P ( P1, P2, A, ~B, ~F) , we need to get the probability of ‘P1’. We find it with regard to its parent node – alarm ‘A’. To get the probability of ‘P2’, we find it with regard to its parent node — alarm ‘A’.

We find the probability of alarm ‘A’ node with regard to ‘~B’ & ‘~F’ since burglary ‘B’ and fire ‘F’ are parent nodes of alarm ‘A’. 

From the observed probabilistic scan, we can deduce – 

 P ( P1, P2, A, ~B, ~F)

= P (P1/A) * P (P2/A) * P (A/~B~F) * P (~B) * P (~F)

= 0.95 * 0.80 * 0.001 * 0.999 * 0.998

= 0.00075


Previous Article
Next Article

Similar Reads

Understanding Bayesian Networks: Modeling Probabilistic Relationships Between Variables
Bayesian networks, also known as belief networks or Bayesian belief networks (BBNs), are powerful tools for representing and reasoning about uncertain knowledge. These networks use a graphical structure to encode probabilistic relationships among variables, making them invaluable in fields such as artificial intelligence, bioinformatics, and decisi
4 min read
Differences Between Bayesian Networks and Neural Networks
Bayesian networks and neural networks are two distinct types of graphical models used in machine learning and artificial intelligence. While both models are designed to handle complex data and make predictions, they differ significantly in their theoretical foundations, operational mechanisms, and applications. This article will delve into the diff
9 min read
Deep Belief Network (DBN) in Deep Learning
Discover data creation with Deep Belief Networks (DBNs), cutting-edge generative models that make use of deep architecture. This article walks you through the concepts of DBNs, how they work, and how to implement them using practical coding. What is a Deep Belief Network?Deep Belief Networks (DBNs) are sophisticated artificial neural networks used
9 min read
Dynamic Bayesian Networks (DBNs)
Dynamic Bayesian Networks are a probabilistic graphical model that captures systems' temporal dependencies and evolution over time. The article explores the fundamentals of DBNs, their structure, inference techniques, learning methods, challenges and applications. Table of Content What is Dynamic Bayesian Networks?How is Dynamic Bayesian Network di
6 min read
Exact Inference in Bayesian Networks
Bayesian Networks (BNs) are powerful graphical models for probabilistic inference, representing a set of variables and their conditional dependencies via a directed acyclic graph (DAG). These models are instrumental in a wide range of applications, from medical diagnosis to machine learning. Exact inference in Bayesian Networks is a fundamental pro
5 min read
Approximate Inference in Bayesian Networks
Bayesian Networks (BNs) are powerful frameworks for modeling probabilistic relationships among variables. They are widely used in various fields such as artificial intelligence, bioinformatics, and decision analysis. However, exact inference in Bayesian Networks is often computationally impractical for large or complex networks due to the exponenti
6 min read
CatBoost Bayesian optimization
Bayesian optimization is a powerful and efficient technique for hyperparameter tuning of machine learning models and CatBoost is a very popular gradient boosting library which is known for its robust performance in various tasks. When we combine both, Bayesian optimization for CatBoost can offer an effective, optimized, memory and time-efficient ap
10 min read
Implementation of Bayesian Regression
Linear regression is a popular regression approach in machine learning. Linear regression is based on the assumption that the underlying data is normally distributed and that all relevant predictor variables have a linear relationship with the outcome.  But In the real world, this is not always possible, it will follows these assumptions, Bayesian
13 min read
Hyperparameter Optimization Based on Bayesian Optimization
In this article we explore what is hyperparameter optimization and how can we use Bayesian Optimization to tune hyperparameters in various machine learning models to obtain better prediction accuracy. Before we dive into the how's of implementing Bayesian Optimization, let us learn what is meant by hyperparameters and hyperparameter optimization. H
7 min read
Frequentist vs Bayesian Approaches in Machine Learning
Frequentist and Bayesian approaches are two fundamental methodologies in machine learning and statistics, each with distinct principles and interpretations. Here, we will see how these two approaches differ. Table of Content Frequentist vs. Bayesian ApproachWhat is the Frequentist Approach?What are the Tests Frequentists Use?Advantages of Using Fre
7 min read
ML | Variational Bayesian Inference for Gaussian Mixture
Prerequisites: Gaussian Mixture A Gaussian Mixture Model assumes the data to be segregated into clusters in such a way that each data point in a given cluster follows a particular Multi-variate Gaussian distribution and the Multi-Variate Gaussian distributions of each cluster is independent of one another. To cluster data in such a model, the poste
5 min read
Recommender System using Bayesian Personalized Ranking
In the digital age, recommender systems have become pivotal in guiding user experiences on numerous platforms, from e-commerce and streaming services to social media. These systems analyze user preferences to suggest items that are most likely to be of interest. Among the various techniques used to power these systems, Bayesian Personalized Ranking
5 min read
Bayesian Model Selection
Bayesian Model Selection is an essential statistical method used in the selection of models for data analysis. Rooted in Bayesian statistics, this approach evaluates a set of statistical models to identify the one that best fits the data according to Bayesian principles. The approach is characterized by its use of probability distributions rather t
7 min read
Building Naive Bayesian classifier with WEKA
The use of the Naive Bayesian classifier in Weka is demonstrated in this article. The “weather-nominal” data set used in this experiment is available in ARFF format. This paper assumes that the data has been properly preprocessed. The Bayes' Theorem is used to build a set of classification algorithms known as Naive Bayes classifiers. It is a family
3 min read
Bayesian Information Criterion (BIC)
Bayesian Information Criterion (BIC) is a statistical metric used to evaluate the goodness of fit of a model while penalizing for model complexity to avoid overfitting. In this article, we will delve into the concept of BIC, its mathematical formulation, applications, and comparison with other model selection criteria. Table of Content Understandin
8 min read
Power of Bayesian Statistics & Probability
In the data-driven world we inhabit, statistics reign supreme. They guide our decisions, reveal hidden patterns, and empower us to predict the future. But amongst the diverse statistical arsenal, Bayesian statistics and probability stand out as a unique and powerful duo, capable of transforming how we approach uncertainty and unlock deeper insights
13 min read
Bayesian Optimization in Machine Learning
Bayesian Optimization is a powerful optimization technique that leverages the principles of Bayesian inference to find the minimum (or maximum) of an objective function efficiently. Unlike traditional optimization methods that require extensive evaluations, Bayesian Optimization is particularly effective when dealing with expensive, noisy, or black
8 min read
Understanding of LSTM Networks
This article talks about the problems of conventional RNNs, namely, the vanishing and exploding gradients, and provides a convenient solution to these problems in the form of Long Short Term Memory (LSTM). Long Short-Term Memory is an advanced version of recurrent neural network (RNN) architecture that was designed to model chronological sequences
9 min read
Understanding Multi-Layer Feed Forward Networks
Let's understand how errors are calculated and weights are updated in backpropagation networks(BPNs). Consider the following network in the below figure. The network in the above figure is a simple multi-layer feed-forward network or backpropagation network. It contains three layers, the input layer with two neurons x1 and x2, the hidden layer with
7 min read
Linear Regression vs. Neural Networks: Understanding Key Differences
Linear Regression and Neural Networks are two fundamental techniques in the machine learning toolkit. Linear Regression is a simple, yet powerful, statistical method for modeling the relationship between a dependent variable and one or more independent variables. Neural Networks, on the other hand, are a class of models inspired by the human brain,
5 min read
Signed Networks in Social Networks
Prerequisite: Introduction to Social Networks In Social Networks, Network is of 2 types- Unsigned Network and Signed Network. In the unsigned network, there are no signs between any nodes, and in the signed network, there is always a sign between 2 nodes either + or -. The '+' sign indicates friendship between 2 nodes and the '-' sign indicates enm
4 min read
Difference Between Feed-Forward Neural Networks and Recurrent Neural Networks
Pre-requisites: Artificial Neural Networks and its Applications Neural networks are artificial systems that were inspired by biological neural networks. These systems learn to perform tasks by being exposed to various datasets and examples without any task-specific rules. In this article, we will see the difference between Feed-Forward Neural Netwo
2 min read
Basic Understanding of CURE Algorithm
CURE(Clustering Using Representatives) It is a hierarchical based clustering technique, that adopts a middle ground between the centroid based and the all-point extremes. Hierarchical clustering is a type of clustering, that starts with a single point cluster, and moves to merge with another cluster, until the desired number of clusters are formed.
2 min read
Basic understanding of Jarvis-Patrick Clustering Algorithm
Jarvis Patrick Clustering Algorithm is a graph-based clustering technique, that replaces the vicinity between two points with the SNN similarity, which is calculated as described in the SNN Algorithm. A threshold is then accustomed to sparsify this matrix of SNN similarities. Note: 'Sparsification' is a technique where the amount of data, that need
3 min read
Understanding different Box Plot with visualization
Let's see how can boxplot be useful in different ways. Loading Libraries import numpy as np import pandas as pd import matplotlib.pyplot as plt Preparing Data spread = np.random.rand(50) * 100 center = np.ones(25) * 50 flier_high = np.random.rand(10) * 100 + 100 flier_low = np.random.rand(10) * -100 data = np.concatenate((spread, center, flier_high
2 min read
OpenCV | Understanding Brightness in an Image
In OpenCV, changing the brightness of an image is a very basic task to perform. By changing the image brightness, it is meant to change the value of each and every image pixel. This change can be done by either increasing or decreasing the pixel values of the image, by any constant. To increase the brightness levels of the image, simply add a const
2 min read
Understanding BERT - NLP
BERT stands for Bidirectional Representation for Transformers. It was proposed by researchers at Google Research in 2018. Although the main aim of that was to improve the understanding of the meaning of queries related to Google Search. A study shows that Google encountered 15% of new queries every day. Therefore, it requires the Google search engi
5 min read
Understanding GoogLeNet Model - CNN Architecture
Google Net (or Inception V1) was proposed by research at Google (with the collaboration of various universities) in 2014 in the research paper titled "Going Deeper with Convolutions". This architecture was the winner at the ILSVRC 2014 image classification challenge. It has provided a significant decrease in error rate as compared to previous winne
4 min read
Analysis required in Natural Language Generation (NLG) and Understanding (NLU)
Language is the method to share and communicate our understanding and knowledge with one another. Language plays an essential factor when it comes to sharing our knowledge, ideas, and vision. Hence, if we can discover a computational approach of language, we can develop a very sturdy means of communication. We adopt various techniques to completely
11 min read
Understanding PEAS in Artificial Intelligence
We know that there are different types of agents in AI. PEAS System is used to categorize similar agents together. The PEAS system delivers the performance measure with respect to the environment, actuators, and sensors of the respective agent. Most of the highest performing agents are Rational Agents. Rational Agent: The rational agent considers a
2 min read
Practice Tags :
three90RightbarBannerImg