Questions tagged [bayesian-networks]

A Bayesian network, Bayes network, belief network or directed acyclic graphical model is a probabilistic graphical model that represents a set of random variables and their conditional dependencies via a directed acyclic graph (DAG).

Bayesian Network is Probabilistic Graphical Model that represents a set of random variables and their conditional probabilities dependencies via an Directed Acyclic Graphs (DAG) whose nodes are the random variables: they may be observable quantities, latent variables, unknown parameters or hypotheses and are represented by a Conditional Probability Table (CPT). Edges represent the conditional dependencies, where nodes which are not connected represent variables which are conditionally independent of each other. Each node is associated with a probability function that takes as input a particular set of values for the node's parent variables and gives the probability of the variable represented by the node. For example, if the parents are m boolean variables then the probability function could be represented by a table of 2m entries, one entry for each of the 2m possible combinations of its parents being true or false.

Bayesian Networks can be defined by an expert in cases where there is prior information, or be learned from training data. There are two learning phase: the structure learning and the parameters learning. In the structure learning the algorithms try to find the best DAG that describes the data, and in the parameters learning which ensure fitting CPTs to the data and the chosen structure.

Bayesian Networks can be used in a variety of applications, for example it could be used to represent the probabilistic relationships between diseases and symptoms. Given the symptoms, the network can be used to compute the probabilities of the presence of various diseases. Another common application of this model is to represent Gene Regulatory Networks (GRNs), where each node is a gene and the edges represents the probability of each gene regulating other.

431 questions
53
votes
1 answer

Decision tree vs. Naive Bayes classifier

I am doing some research about different data mining techniques and came across something that I could not figure out. If any one have any idea that would be great. In which cases is it better to use a Decision tree and other cases a Naive Bayes…
Y2theZ
  • 10,162
  • 38
  • 131
  • 200
34
votes
4 answers

pythonic implementation of Bayesian networks for a specific application

This is why I'm asking this question: Last year I made some C++ code to compute posterior probabilities for a particular type of model (described by a Bayesian network). The model worked pretty well and some other people started to use my software.…
user
  • 7,123
  • 7
  • 48
  • 90
31
votes
3 answers

What is the difference between a Bayesian network and a naive Bayes classifier?

What is the difference between a Bayesian network and a Naive Bayes classifier? I noticed one is just implemented in Matlab as classify the other has an entire net toolbox. If you could explain in your answer which one is more likely to provide a…
G Gr
  • 6,030
  • 20
  • 91
  • 184
30
votes
5 answers

Create Bayesian Network and learn parameters with Python3.x

I'm searching for the most appropriate tool for python3.x on Windows to create a Bayesian Network, learn its parameters from data and perform the inference. The network structure I want to define myself as follows: It is taken from this paper. All…
18
votes
6 answers

Bayesian spam filtering library for Python

I am looking for a Python library which does Bayesian Spam Filtering. I looked at SpamBayes and OpenBayes, but both seem to be unmaintained (I might be wrong). Can anyone suggest a good Python (or Clojure, Common Lisp, even Ruby) library which…
Baishampayan Ghose
  • 19,928
  • 10
  • 56
  • 60
17
votes
4 answers

What is the difference between causal models and directed graphical models?

What is the difference between causal models and directed graphical models? What is the difference between causal relationships and directed probabilistic relationships? More concretely, what would you put in the interface of a…
Neil G
  • 32,138
  • 39
  • 156
  • 257
16
votes
3 answers

Library for Bayesian Networks

Hello fellow Number crunchers As the headline suggests, I am looking for a library for learning and inference of Bayesian Networks. I have already found some, but I am hoping for a recommendation. Requirements in a quick overview: preferably…
steffen
  • 2,152
  • 4
  • 19
  • 30
16
votes
5 answers

Learning and using augmented Bayes classifiers in python

I'm trying to use a forest (or tree) augmented Bayes classifier (Original introduction, Learning) in python (preferably python 3, but python 2 would also be acceptable), first learning it (both structure and parameter learning) and then using it for…
Anaphory
  • 6,045
  • 4
  • 37
  • 68
14
votes
8 answers

Bayesian networks tutorial

For a beginner, which is the best book to start with for studying Bayesian Networks?
lmsasu
  • 7,459
  • 18
  • 79
  • 113
11
votes
2 answers

Bayesian Network with R

I am trying to build a Bayesian network model. However I am unable to install a suitable package. Tried gRain, bnlearn and Rgraphviz for plotting. I have tried in R 2.15 and 3.2 Following are the error messages : library(gRain) Loading required…
Learner
  • 157
  • 3
  • 15
10
votes
4 answers

Variational Autoencoder gives same output image for every input mnist image when using KL divergence

When not using KL divergence term, the VAE reconstructs mnist images almost perfectly but fails to generate new ones properly when provided with random noise. When using KL divergence term, the VAE gives the same weird output both when…
10
votes
3 answers

What is the relationship between bayesian and neural networks?

I'm looking for computationally heavy tasks to implement with CUDA and wonder if neural networks or bayesian networks might apply. This is not my question, though, but rather what the relation between the two network types is. They seem very…
Morten Christiansen
  • 19,002
  • 22
  • 69
  • 94
9
votes
5 answers

Bayesian networks in Scala

I'm looking for a library to create Bayes nets and perform learning and inference on them in Scala (or Java, in case of lack of a better solution). The library should be actively maintained, performant, preferably easy, definitely well-documented…
em70
  • 6,088
  • 6
  • 48
  • 80
9
votes
1 answer

Belief Propagation Implementation

I am trying to implement Bayesian Networks. My main graph is a factor graph that I want to use for belief propagation. But, in belief propagation when calculating messages, not all the arguments are passed to the function and the final function…
Cupitor
  • 11,007
  • 19
  • 65
  • 91
8
votes
2 answers

What does a Bayesian Classifier score represent?

I'm using the ruby classifier gem whose classifications method returns the scores for a given string classified against the trained model. Is the score a percentage? If so, is the maximum difference 100 points?
Mike Buckbee
  • 6,793
  • 2
  • 33
  • 36
1
2 3
28 29