Recent from talks
Nothing was collected or created yet.
Bayesian network
View on WikipediaThis article includes a list of general references, but it lacks sufficient corresponding inline citations. (February 2011) |
| Part of a series on |
| Bayesian statistics |
|---|
| Posterior = Likelihood × Prior ÷ Evidence |
| Background |
| Model building |
| Posterior approximation |
| Estimators |
| Evidence approximation |
| Model evaluation |
A Bayesian network (also known as a Bayes network, Bayes net, belief network, or decision network) is a probabilistic graphical model that represents a set of variables and their conditional dependencies via a directed acyclic graph (DAG).[1] While it is one of several forms of causal notation, causal networks are special cases of Bayesian networks. Bayesian networks are ideal for taking an event that occurred and predicting the likelihood that any one of several possible known causes was the contributing factor. For example, a Bayesian network could represent the probabilistic relationships between diseases and symptoms. Given symptoms, the network can be used to compute the probabilities of the presence of various diseases.
Efficient algorithms can perform inference and learning in Bayesian networks. Bayesian networks that model sequences of variables (e.g. speech signals or protein sequences) are called dynamic Bayesian networks. Generalizations of Bayesian networks that can represent and solve decision problems under uncertainty are called influence diagrams.
Graphical model
[edit]Formally, Bayesian networks are directed acyclic graphs (DAGs) whose nodes represent variables in the Bayesian sense: they may be observable quantities, latent variables, unknown parameters or hypotheses. Each edge represents a direct conditional dependency. Any pair of nodes that are not connected (i.e. no path connects one node to the other) represent variables that 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 (as output) the probability (or probability distribution, if applicable) of the variable represented by the node. For example, if parent nodes represent Boolean variables, then the probability function could be represented by a table of entries, one entry for each of the possible parent combinations. Similar ideas may be applied to undirected, and possibly cyclic, graphs such as Markov networks.
Example
[edit]
Suppose we want to model the dependencies between three variables: the sprinkler (or more appropriately, its state - whether it is on or not), the presence or absence of rain and whether the grass is wet or not. Observe that two events can cause the grass to become wet: an active sprinkler or rain. Rain has a direct effect on the use of the sprinkler (namely that when it rains, the sprinkler usually is not active). This situation can be modeled with a Bayesian network (shown to the right). Each variable has two possible values, T (for true) and F (for false).
The joint probability function is, by the chain rule of probability,
where G = "Grass wet (true/false)", S = "Sprinkler turned on (true/false)", and R = "Raining (true/false)".
The model can answer questions about the presence of a cause given the presence of an effect (so-called inverse probability) like "What is the probability that it is raining, given the grass is wet?" by using the conditional probability formula and summing over all nuisance variables:
Using the expansion for the joint probability function and the conditional probabilities from the conditional probability tables (CPTs) stated in the diagram, one can evaluate each term in the sums in the numerator and denominator. For example,
Then the numerical results (subscripted by the associated variable values) are
To answer an interventional question, such as "What is the probability that it would rain, given that we wet the grass?" the answer is governed by the post-intervention joint distribution function
obtained by removing the factor from the pre-intervention distribution. The do operator forces the value of G to be true. The probability of rain is unaffected by the action:
To predict the impact of turning the sprinkler on:
with the term removed, showing that the action affects the grass but not the rain.
These predictions may not be feasible given unobserved variables, as in most policy evaluation problems. The effect of the action can still be predicted, however, whenever the back-door criterion is satisfied.[2][3] It states that, if a set Z of nodes can be observed that d-separates[4] (or blocks) all back-door paths from X to Y then
A back-door path is one that ends with an arrow into X. Sets that satisfy the back-door criterion are called "sufficient" or "admissible." For example, the set Z = R is admissible for predicting the effect of S = T on G, because R d-separates the (only) back-door path S ← R → G. However, if S is not observed, no other set d-separates this path and the effect of turning the sprinkler on (S = T) on the grass (G) cannot be predicted from passive observations. In that case P(G | do(S = T)) is not "identified". This reflects the fact that, lacking interventional data, the observed dependence between S and G is due to a causal connection or is spurious (apparent dependence arising from a common cause, R). (see Simpson's paradox)
To determine whether a causal relation is identified from an arbitrary Bayesian network with unobserved variables, one can use the three rules of "do-calculus"[2][5] and test whether all do terms can be removed from the expression of that relation, thus confirming that the desired quantity is estimable from frequency data.[6]
Using a Bayesian network can save considerable amounts of memory over exhaustive probability tables, if the dependencies in the joint distribution are sparse. For example, a naive way of storing the conditional probabilities of 10 two-valued variables as a table requires storage space for values. If no variable's local distribution depends on more than three parent variables, the Bayesian network representation stores at most values.
One advantage of Bayesian networks is that it is intuitively easier for a human to understand (a sparse set of) direct dependencies and local distributions than complete joint distributions.
Inference and learning
[edit]Bayesian networks perform three main inference tasks:
Inferring unobserved variables
[edit]Because a Bayesian network is a complete model for its variables and their relationships, it can be used to answer probabilistic queries about them. For example, the network can be used to update knowledge of the state of a subset of variables when other variables (the evidence variables) are observed. This process of computing the posterior distribution of variables given evidence is called probabilistic inference. The posterior gives a universal sufficient statistic for detection applications, when choosing values for the variable subset that minimize some expected loss function, for instance the probability of decision error. A Bayesian network can thus be considered a mechanism for automatically applying Bayes' theorem to complex problems.
The most common exact inference methods are: variable elimination, which eliminates (by integration or summation) the non-observed non-query variables one by one by distributing the sum over the product; clique tree propagation, which caches the computation so that many variables can be queried at one time and new evidence can be propagated quickly; and recursive conditioning and AND/OR search, which allow for a space–time tradeoff and match the efficiency of variable elimination when enough space is used. All of these methods have complexity that is exponential in the network's treewidth. The most common approximate inference algorithms are importance sampling, stochastic MCMC simulation, mini-bucket elimination, loopy belief propagation, generalized belief propagation and variational methods.
Parameter learning
[edit]In order to fully specify the Bayesian network and thus fully represent the joint probability distribution, it is necessary to specify for each node X the probability distribution for X conditional upon X's parents. The distribution of X conditional upon its parents may have any form. It is common to work with discrete or Gaussian distributions since that simplifies calculations. Sometimes only constraints on distribution are known; one can then use the principle of maximum entropy to determine a single distribution, the one with the greatest entropy given the constraints. (Analogously, in the specific context of a dynamic Bayesian network, the conditional distribution for the hidden state's temporal evolution is commonly specified to maximize the entropy rate of the implied stochastic process.)
Often these conditional distributions include parameters that are unknown and must be estimated from data, e.g., via the maximum likelihood approach. Direct maximization of the likelihood (or of the posterior probability) is often complex given unobserved variables. A classical approach to this problem is the expectation-maximization algorithm, which alternates computing expected values of the unobserved variables conditional on observed data, with maximizing the complete likelihood (or posterior) assuming that previously computed expected values are correct. Under mild regularity conditions, this process converges on maximum likelihood (or maximum posterior) values for parameters.
A more fully Bayesian approach to parameters is to treat them as additional unobserved variables and to compute a full posterior distribution over all nodes conditional upon observed data, then to integrate out the parameters. This approach can be expensive and lead to large dimension models, making classical parameter-setting approaches more tractable.
Structure learning
[edit]In the simplest case, a Bayesian network is specified by an expert and is then used to perform inference. In other applications, the task of defining the network is too complex for humans. In this case, the network structure and the parameters of the local distributions must be learned from data.
Automatically learning the graph structure of a Bayesian network (BN) is a challenge pursued within machine learning. The basic idea goes back to a recovery algorithm developed by Rebane and Pearl[7] and rests on the distinction between the three possible patterns allowed in a 3-node DAG:
| Pattern | Model |
|---|---|
| Chain | |
| Fork | |
| Collider |
The first 2 represent the same dependencies ( and are independent given ) and are, therefore, indistinguishable. The collider, however, can be uniquely identified, since and are marginally independent and all other pairs are dependent. Thus, while the skeletons (the graphs stripped of arrows) of these three triplets are identical, the directionality of the arrows is partially identifiable. The same distinction applies when and have common parents, except that one must first condition on those parents. Algorithms have been developed to systematically determine the skeleton of the underlying graph and, then, orient all arrows whose directionality is dictated by the conditional independences observed.[2][8][9][10]
An alternative method of structural learning uses optimization-based search. It requires a scoring function and a search strategy. A common scoring function is posterior probability of the structure given the training data, like the BIC or the BDeu. The time requirement of an exhaustive search returning a structure that maximizes the score is superexponential in the number of variables. A local search strategy makes incremental changes aimed at improving the score of the structure. A global search algorithm like Markov chain Monte Carlo (MCMC) can avoid getting trapped in local minima. Friedman et al.[11][12] discuss using mutual information between variables and finding a structure that maximizes this. They do this by restricting the parent candidate set to k nodes and exhaustively searching therein.
A particularly fast method for exact BN learning is to cast the problem as an optimization problem, and solve it using integer programming. Acyclicity constraints are added to the integer program (IP) during solving in the form of cutting planes.[13] Such method can handle problems with up to 100 variables.
In order to deal with problems with thousands of variables, a different approach is necessary. One is to first sample one ordering, and then find the optimal BN structure with respect to that ordering. This implies working on the search space of the possible orderings, which is convenient as it is smaller than the space of network structures. Multiple orderings are then sampled and evaluated. This method has been proven to be the best available in literature when the number of variables is huge.[14]
Another method consists of focusing on the sub-class of decomposable models, for which the MLE have a closed form. It is then possible to discover a consistent structure for hundreds of variables.[15]
Learning Bayesian networks with bounded treewidth is necessary to allow exact, tractable inference, since the worst-case inference complexity is exponential in the treewidth k (under the exponential time hypothesis). Yet, as a global property of the graph, it considerably increases the difficulty of the learning process. In this context it is possible to use K-tree for effective learning.[16]
Statistical introduction
[edit]Given data and parameter , a simple Bayesian analysis starts with a prior probability (prior) and likelihood to compute a posterior probability .
Often the prior on depends in turn on other parameters that are not mentioned in the likelihood. So, the prior must be replaced by a likelihood , and a prior on the newly introduced parameters is required, resulting in a posterior probability
This is the simplest example of a hierarchical Bayes model.
The process may be repeated; for example, the parameters may depend in turn on additional parameters , which require their own prior. Eventually the process must terminate, with priors that do not depend on unmentioned parameters.
Introductory examples
[edit]This section needs expansion. You can help by adding to it. (March 2009) |
Given the measured quantities each with normally distributed errors of known standard deviation ,
Suppose we are interested in estimating the . An approach would be to estimate the using a maximum likelihood approach; since the observations are independent, the likelihood factorizes and the maximum likelihood estimate is simply
However, if the quantities are related, so that for example the individual have themselves been drawn from an underlying distribution, then this relationship destroys the independence and suggests a more complex model, e.g.,
with improper priors , . When , this is an identified model (i.e. there exists a unique solution for the model's parameters), and the posterior distributions of the individual will tend to move, or shrink away from the maximum likelihood estimates towards their common mean. This shrinkage is a typical behavior in hierarchical Bayes models.
Restrictions on priors
[edit]Some care is needed when choosing priors in a hierarchical model, particularly on scale variables at higher levels of the hierarchy such as the variable in the example. The usual priors such as the Jeffreys prior often do not work, because the posterior distribution will not be normalizable and estimates made by minimizing the expected loss will be inadmissible.
Definitions and concepts
[edit]Several equivalent definitions of a Bayesian network have been offered. For the following, let G = (V,E) be a directed acyclic graph (DAG) and let X = (Xv), v ∈ V be a set of random variables indexed by V.
Factorization definition
[edit]X is a Bayesian network with respect to G if its joint probability density function (with respect to a product measure) can be written as a product of the individual density functions, conditional on their parent variables:[17]
where pa(v) is the set of parents of v (i.e. those vertices pointing directly to v via a single edge).
For any set of random variables, the probability of any member of a joint distribution can be calculated from conditional probabilities using the chain rule (given a topological ordering of X) as follows:[17]
Using the definition above, this can be written as:
The difference between the two expressions is the conditional independence of the variables from any of their non-descendants, given the values of their parent variables.
Local Markov property
[edit]X is a Bayesian network with respect to G if it satisfies the local Markov property: each variable is conditionally independent of its non-descendants given its parent variables:[18]
where de(v) is the set of descendants and V \ de(v) is the set of non-descendants of v.
This can be expressed in terms similar to the first definition, as
The set of parents is a subset of the set of non-descendants because the graph is acyclic.
Marginal independence structure
[edit]In general, learning a Bayesian network from data is known to be NP-hard.[19] This is due in part to the combinatorial explosion of enumerating DAGs as the number of variables increases. Nevertheless, insights about an underlying Bayesian network can be learned from data in polynomial time by focusing on its marginal independence structure:[20] while the conditional independence statements of a distribution modeled by a Bayesian network are encoded by a DAG (according to the factorization and Markov properties above), its marginal independence statements—the conditional independence statements in which the conditioning set is empty—are encoded by a simple undirected graph with special properties such as equal intersection and independence numbers.
Developing Bayesian networks
[edit]Developing a Bayesian network often begins with creating a DAG G such that X satisfies the local Markov property with respect to G. Sometimes this is a causal DAG. The conditional probability distributions of each variable given its parents in G are assessed. In many cases, in particular in the case where the variables are discrete, if the joint distribution of X is the product of these conditional distributions, then X is a Bayesian network with respect to G.[21]
Markov blanket
[edit]The Markov blanket of a node is the set of nodes consisting of its parents, its children, and any other parents of its children. The Markov blanket renders the node independent of the rest of the network; the joint distribution of the variables in the Markov blanket of a node is sufficient knowledge for calculating the distribution of the node. X is a Bayesian network with respect to G if every node is conditionally independent of all other nodes in the network, given its Markov blanket.[18]
d-separation
[edit]This definition can be made more general by defining the "d"-separation of two nodes, where d stands for directional.[2] We first define the "d"-separation of a trail and then we will define the "d"-separation of two nodes in terms of that.
Let P be a trail from node u to v. A trail is a loop-free, undirected (i.e. all edge directions are ignored) path between two nodes. Then P is said to be d-separated by a set of nodes Z if any of the following conditions holds:
- P contains (but does not need to be entirely) a directed chain, or , such that the middle node m is in Z,
- P contains a fork, , such that the middle node m is in Z, or
- P contains an inverted fork (or collider), , such that the middle node m is not in Z and no descendant of m is in Z.
The nodes u and v are d-separated by Z if all trails between them are d-separated. If u and v are not d-separated, they are d-connected.
X is a Bayesian network with respect to G if, for any two nodes u, v:
where Z is a set which d-separates u and v. (The Markov blanket is the minimal set of nodes which d-separates node v from all other nodes.)
Causal networks
[edit]Although Bayesian networks are often used to represent causal relationships, this need not be the case: a directed edge from u to v does not require that Xv be causally dependent on Xu. This is demonstrated by the fact that Bayesian networks on the graphs:
are equivalent: that is they impose exactly the same conditional independence requirements.
A causal network is a Bayesian network with the requirement that the relationships be causal. The additional semantics of causal networks specify that if a node X is actively caused to be in a given state x (an action written as do(X = x)), then the probability density function changes to that of the network obtained by cutting the links from the parents of X to X, and setting X to the caused value x.[2] Using these semantics, the impact of external interventions from data obtained prior to intervention can be predicted.
Inference complexity and approximation algorithms
[edit]In 1990, while working at Stanford University on large bioinformatic applications, Cooper proved that exact inference in Bayesian networks is NP-hard.[22] This result prompted research on approximation algorithms with the aim of developing a tractable approximation to probabilistic inference. In 1993, Paul Dagum and Michael Luby proved two surprising results on the complexity of approximation of probabilistic inference in Bayesian networks.[23] First, they proved that no tractable deterministic algorithm can approximate probabilistic inference to within an absolute error ɛ < 1/2. Second, they proved that no tractable randomized algorithm can approximate probabilistic inference to within an absolute error ɛ < 1/2 with confidence probability greater than 1/2.
At about the same time, Roth proved that exact inference in Bayesian networks is in fact #P-complete (and thus as hard as counting the number of satisfying assignments of a conjunctive normal form formula (CNF)) and that approximate inference within a factor 2n1−ɛ for every ɛ > 0, even for Bayesian networks with restricted architecture, is NP-hard.[24][25]
In practical terms, these complexity results suggested that while Bayesian networks were rich representations for AI and machine learning applications, their use in large real-world applications would need to be tempered by either topological structural constraints, such as naïve Bayes networks, or by restrictions on the conditional probabilities. The bounded variance algorithm[26] developed by Dagum and Luby was the first provable fast approximation algorithm to efficiently approximate probabilistic inference in Bayesian networks with guarantees on the error approximation. This powerful algorithm required the minor restriction on the conditional probabilities of the Bayesian network to be bounded away from zero and one by where was any polynomial of the number of nodes in the network, .
Software
[edit]Notable software for Bayesian networks include:
- OpenBUGS – Open-source development of WinBUGS.
- SPSS Modeler – Commercial software that includes an implementation for Bayesian networks.
- Stan (software) – Stan is an open-source package for obtaining Bayesian inference using the No-U-Turn sampler (NUTS),[27] a variant of Hamiltonian Monte Carlo.
- WinBUGS – One of the first computational implementations of MCMC samplers. No longer maintained.
History
[edit]The term Bayesian network was coined by Judea Pearl in 1985 to emphasize:[28]
- the often subjective nature of the input information
- the reliance on Bayes' conditioning as the basis for updating information
- the distinction between causal and evidential modes of reasoning[29]
In the late 1980s Pearl's Probabilistic Reasoning in Intelligent Systems[30] and Neapolitan's Probabilistic Reasoning in Expert Systems[31] summarized their properties and established them as a field of study.
See also
[edit]- Bayesian epistemology
- Bayesian programming
- Causal inference
- Causal loop diagram
- Chow–Liu tree
- Computational intelligence
- Computational phylogenetics
- Deep belief network
- Dempster–Shafer theory – a generalization of Bayes' theorem
- Expectation–maximization algorithm
- Factor graph
- Hierarchical temporal memory
- Kalman filter
- Memory-prediction framework
- Mixture distribution
- Mixture model
- Naive Bayes classifier
- Plate notation
- Polytree
- Sensor fusion
- Sequence alignment
- Staged tree
- Structural equation modeling
- Subjective logic
- Variable-order Bayesian network
Notes
[edit]- ^ Ruggeri, Fabrizio; Kenett, Ron S.; Faltin, Frederick W., eds. (2007-12-14). Encyclopedia of Statistics in Quality and Reliability (1 ed.). Wiley. p. 1. doi:10.1002/9780470061572.eqr089. ISBN 978-0-470-01861-3.
- ^ a b c d e Pearl, Judea (2000). Causality: Models, Reasoning, and Inference. Cambridge University Press. ISBN 978-0-521-77362-1. OCLC 42291253.
- ^ "The Back-Door Criterion" (PDF). Retrieved 2014-09-18.
- ^ "d-Separation without Tears" (PDF). Retrieved 2014-09-18.
- ^ Pearl J (1994). "A Probabilistic Calculus of Actions". In Lopez de Mantaras R, Poole D (eds.). UAI'94 Proceedings of the Tenth international conference on Uncertainty in artificial intelligence. San Mateo CA: Morgan Kaufmann. pp. 454–462. arXiv:1302.6835. Bibcode:2013arXiv1302.6835P. ISBN 1-55860-332-8.
- ^ Shpitser I, Pearl J (2006). "Identification of Conditional Interventional Distributions". In Dechter R, Richardson TS (eds.). Proceedings of the Twenty-Second Conference on Uncertainty in Artificial Intelligence. Corvallis, OR: AUAI Press. pp. 437–444. arXiv:1206.6876.
- ^ Rebane G, Pearl J (1987). "The Recovery of Causal Poly-trees from Statistical Data". Proceedings, 3rd Workshop on Uncertainty in AI. Seattle, WA. pp. 222–228. arXiv:1304.2736.
{{cite book}}: CS1 maint: location missing publisher (link) - ^ Spirtes P, Glymour C (1991). "An algorithm for fast recovery of sparse causal graphs" (PDF). Social Science Computer Review. 9 (1): 62–72. CiteSeerX 10.1.1.650.2922. doi:10.1177/089443939100900106. S2CID 38398322.
- ^ Spirtes P, Glymour CN, Scheines R (1993). Causation, Prediction, and Search (1st ed.). Springer-Verlag. ISBN 978-0-387-97979-3.
- ^ Verma T, Pearl J (1991). "Equivalence and synthesis of causal models". In Bonissone P, Henrion M, Kanal LN, Lemmer JF (eds.). UAI '90 Proceedings of the Sixth Annual Conference on Uncertainty in Artificial Intelligence. Elsevier. pp. 255–270. ISBN 0-444-89264-8.
- ^ Friedman N, Geiger D, Goldszmidt M (November 1997). "Bayesian Network Classifiers". Machine Learning. 29 (2–3): 131–163. doi:10.1023/A:1007465528199.
- ^ Friedman N, Linial M, Nachman I, Pe'er D (August 2000). "Using Bayesian networks to analyze expression data". Journal of Computational Biology. 7 (3–4): 601–20. CiteSeerX 10.1.1.191.139. doi:10.1089/106652700750050961. PMID 11108481.
- ^ Cussens J (2011). "Bayesian network learning with cutting planes" (PDF). Proceedings of the 27th Conference Annual Conference on Uncertainty in Artificial Intelligence: 153–160. arXiv:1202.3713. Bibcode:2012arXiv1202.3713C. Archived from the original on March 27, 2022.
- ^ Scanagatta M, de Campos CP, Corani G, Zaffalon M (2015). "Learning Bayesian Networks with Thousands of Variables". NIPS-15: Advances in Neural Information Processing Systems. Vol. 28. Curran Associates. pp. 1855–1863.
- ^ Petitjean F, Webb GI, Nicholson AE (2013). Scaling log-linear analysis to high-dimensional data (PDF). International Conference on Data Mining. Dallas, TX, USA: IEEE.
- ^ M. Scanagatta, G. Corani, C. P. de Campos, and M. Zaffalon. Learning Treewidth-Bounded Bayesian Networks with Thousands of Variables. In NIPS-16: Advances in Neural Information Processing Systems 29, 2016.
- ^ a b Russell & Norvig 2003, p. 496.
- ^ a b Russell & Norvig 2003, p. 499.
- ^ Chickering, David M.; Heckerman, David; Meek, Christopher (2004). "Large-sample learning of Bayesian networks is NP-hard" (PDF). Journal of Machine Learning Research. 5: 1287–1330.
- ^ Deligeorgaki, Danai; Markham, Alex; Misra, Pratik; Solus, Liam (2023). "Combinatorial and algebraic perspectives on the marginal independence structure of Bayesian networks". Algebraic Statistics. 14 (2): 233–286. arXiv:2210.00822. doi:10.2140/astat.2023.14.233.
- ^ Neapolitan RE (2004). Learning Bayesian networks. Prentice Hall. ISBN 978-0-13-012534-7.
- ^ Cooper GF (1990). "The Computational Complexity of Probabilistic Inference Using Bayesian Belief Networks" (PDF). Artificial Intelligence. 42 (2–3): 393–405. doi:10.1016/0004-3702(90)90060-d. S2CID 43363498.
- ^ Dagum P, Luby M (1993). "Approximating probabilistic inference in Bayesian belief networks is NP-hard". Artificial Intelligence. 60 (1): 141–153. CiteSeerX 10.1.1.333.1586. doi:10.1016/0004-3702(93)90036-b.
- ^ D. Roth, On the hardness of approximate reasoning, IJCAI (1993)
- ^ D. Roth, On the hardness of approximate reasoning, Artificial Intelligence (1996)
- ^ Dagum P, Luby M (1997). "An optimal approximation algorithm for Bayesian inference". Artificial Intelligence. 93 (1–2): 1–27. CiteSeerX 10.1.1.36.7946. doi:10.1016/s0004-3702(97)00013-1. Archived from the original on 2017-07-06. Retrieved 2015-12-19.
- ^ Hoffman, Matthew D.; Gelman, Andrew (2011). "The No-U-Turn Sampler: Adaptively Setting Path Lengths in Hamiltonian Monte Carlo". arXiv:1111.4246 [stat.CO].
- ^ Pearl J (1985). Bayesian Networks: A Model of Self-Activated Memory for Evidential Reasoning (UCLA Technical Report CSD-850017). Proceedings of the 7th Conference of the Cognitive Science Society, University of California, Irvine, CA. pp. 329–334. Retrieved 2009-05-01.
- ^ Bayes T, Price (1763). "An Essay Towards Solving a Problem in the Doctrine of Chances". Philosophical Transactions of the Royal Society. 53: 370–418. doi:10.1098/rstl.1763.0053.
- ^ Pearl J (1988-09-15). Probabilistic Reasoning in Intelligent Systems. San Francisco CA: Morgan Kaufmann. p. 1988. ISBN 978-1-55860-479-7.
- ^ Neapolitan RE (1989). Probabilistic reasoning in expert systems: theory and algorithms. Wiley. ISBN 978-0-471-61840-9.
References
[edit]- Ben Gal I (2007). "Bayesian Networks" (PDF). In Ruggeri F, Kennett RS, Faltin FW (eds.). Support-Page. Encyclopedia of Statistics in Quality and Reliability. John Wiley & Sons. doi:10.1002/9780470061572.eqr089. ISBN 978-0-470-01861-3. Archived from the original (PDF) on 2016-11-23. Retrieved 2007-08-27.
- Bertsch McGrayne S (2011). The Theory That Would not Die. New Haven: Yale University Press.
- Borgelt C, Kruse R (March 2002). Graphical Models: Methods for Data Analysis and Mining. Chichester, UK: Wiley. ISBN 978-0-470-84337-6.
- Borsuk ME (2008). "Ecological informatics: Bayesian networks". In Jørgensen, Sven Erik, Fath, Brian (eds.). Encyclopedia of Ecology. Elsevier. ISBN 978-0-444-52033-3.
- Castillo E, Gutiérrez JM, Hadi AS (1997). "Learning Bayesian Networks". Expert Systems and Probabilistic Network Models. Monographs in computer science. New York: Springer-Verlag. pp. 481–528. ISBN 978-0-387-94858-4.
- Comley JW, Dowe DL (June 2003). "General Bayesian networks and asymmetric languages". Proceedings of the 2nd Hawaii International Conference on Statistics and Related Fields.
- Comley JW, Dowe DL (2005). "Minimum Message Length and Generalized Bayesian Nets with Asymmetric Languages". In Grünwald PD, Myung IJ, Pitt MA (eds.). Advances in Minimum Description Length: Theory and Applications. Neural information processing series. Cambridge, Massachusetts: Bradford Books (MIT Press) (published April 2005). pp. 265–294. ISBN 978-0-262-07262-5. (This paper puts decision trees in internal nodes of Bayes networks using Minimum Message Length (MML).
- Darwiche A (2009). Modeling and Reasoning with Bayesian Networks. Cambridge University Press. ISBN 978-0-521-88438-9.
- Dowe, David L. (2011-05-31). "Hybrid Bayesian network graphical models, statistical consistency, invariance and uniqueness" (PDF). Philosophy of Statistics. Elsevier. pp. 901–982. ISBN 978-0-08-093096-1.
- Fenton N, Neil ME (November 2007). "Managing Risk in the Modern World: Applications of Bayesian Networks" (PDF). A Knowledge Transfer Report from the London Mathematical Society and the Knowledge Transfer Network for Industrial Mathematics. London (England): London Mathematical Society. Archived from the original (PDF) on 2008-05-14. Retrieved 2008-10-29.
- Fenton N, Neil ME (July 23, 2004). "Combining evidence in risk analysis using Bayesian Networks" (PDF). Safety Critical Systems Club Newsletter. Vol. 13, no. 4. Newcastle upon Tyne, England. pp. 8–13. Archived from the original (PDF) on 2007-09-27.
- Gelman A, Carlin JB, Stern HS, Rubin DB (2003). "Part II: Fundamentals of Bayesian Data Analysis: Ch.5 Hierarchical models". Bayesian Data Analysis. CRC Press. pp. 120–. ISBN 978-1-58488-388-3.
- Heckerman, David (March 1, 1995). "Tutorial on Learning with Bayesian Networks". In Jordan, Michael Irwin (ed.). Learning in Graphical Models. Adaptive Computation and Machine Learning. Cambridge, Massachusetts: MIT Press (published 1998). pp. 301–354. ISBN 978-0-262-60032-3. Archived from the original on July 19, 2006. Retrieved September 15, 2006.
{{cite book}}: CS1 maint: bot: original URL status unknown (link):Also appears as Heckerman, David (March 1997). "Bayesian Networks for Data Mining". Data Mining and Knowledge Discovery. 1 (1): 79–119. doi:10.1023/A:1009730122752. S2CID 6294315.
- An earlier version appears as, Microsoft Research, March 1, 1995. The paper is about both parameter and structure learning in Bayesian networks.
- Jensen FV, Nielsen TD (June 6, 2007). Bayesian Networks and Decision Graphs. Information Science and Statistics series (2nd ed.). New York: Springer-Verlag. ISBN 978-0-387-68281-5.
- Karimi K, Hamilton HJ (2000). "Finding temporal relations: Causal bayesian networks vs. C4. 5" (PDF). Twelfth International Symposium on Methodologies for Intelligent Systems.
- Korb KB, Nicholson AE (December 2010). Bayesian Artificial Intelligence. CRC Computer Science & Data Analysis (2nd ed.). Chapman & Hall (CRC Press). doi:10.1007/s10044-004-0214-5. ISBN 978-1-58488-387-6. S2CID 22138783.
- Lunn D, Spiegelhalter D, Thomas A, Best N (November 2009). "The BUGS project: Evolution, critique and future directions". Statistics in Medicine. 28 (25): 3049–67. doi:10.1002/sim.3680. PMID 19630097. S2CID 7717482.
- Neil M, Fenton N, Tailor M (August 2005). Greenberg, Michael R. (ed.). "Using Bayesian networks to model expected and unexpected operational losses" (PDF). Risk Analysis. 25 (4): 963–72. Bibcode:2005RiskA..25..963N. doi:10.1111/j.1539-6924.2005.00641.x. PMID 16268944. S2CID 3254505.
- Pearl J (September 1986). "Fusion, propagation, and structuring in belief networks". Artificial Intelligence. 29 (3): 241–288. doi:10.1016/0004-3702(86)90072-X.
- Pearl J (1988). Probabilistic Reasoning in Intelligent Systems: Networks of Plausible Inference. Representation and Reasoning Series (2nd printing ed.). San Francisco, California: Morgan Kaufmann. ISBN 978-0-934613-73-6.
- Pearl J, Russell S (November 2002). "Bayesian Networks". In Arbib MA (ed.). Handbook of Brain Theory and Neural Networks. Cambridge, Massachusetts: Bradford Books (MIT Press). pp. 157–160. ISBN 978-0-262-01197-6.
- Russell, Stuart J.; Norvig, Peter (2003), Artificial Intelligence: A Modern Approach (2nd ed.), Upper Saddle River, New Jersey: Prentice Hall, ISBN 0-13-790395-2.
- Zhang NL, Poole D (May 1994). "A simple approach to Bayesian network computations" (PDF). Proceedings of the Tenth Biennial Canadian Artificial Intelligence Conference (AI-94).: 171–178. This paper presents variable elimination for belief networks.
Further reading
[edit]- Conrady S, Jouffe L (2015-07-01). Bayesian Networks and BayesiaLab – A practical introduction for researchers. Franklin, Tennessee: Bayesian USA. ISBN 978-0-9965333-0-0.
- Charniak E (Winter 1991). "Bayesian networks without tears" (PDF). AI Magazine.
- Kruse R, Borgelt C, Klawonn F, Moewes C, Steinbrecher M, Held P (2013). Computational Intelligence A Methodological Introduction. London: Springer-Verlag. ISBN 978-1-4471-5012-1.
- Borgelt C, Steinbrecher M, Kruse R (2009). Graphical Models – Representations for Learning, Reasoning and Data Mining (Second ed.). Chichester: Wiley. ISBN 978-0-470-74956-2.
External links
[edit]- An Introduction to Bayesian Networks and their Contemporary Applications
- On-line Tutorial on Bayesian nets and probability
- Web-App to create Bayesian nets and run it with a Monte Carlo method
- Continuous Time Bayesian Networks
- Bayesian Networks: Explanation and Analogy
- A live tutorial on learning Bayesian networks
- A hierarchical Bayes Model for handling sample heterogeneity in classification problems, provides a classification model taking into consideration the uncertainty associated with measuring replicate samples.
- Hierarchical Naive Bayes Model for handling sample uncertainty Archived 2007-09-28 at the Wayback Machine, shows how to perform classification and learning with continuous and discrete variables with replicated measurements.
Bayesian network
View on GrokipediaIntroduction
Basic Definition
A Bayesian network is a probabilistic graphical model that represents a set of random variables and their conditional dependencies through a directed acyclic graph (DAG), where each node corresponds to a random variable and each directed edge indicates a direct probabilistic influence from one variable to another.[9] The primary purpose of a Bayesian network is to compactly encode the joint probability distribution over the variables by specifying a factorization into local conditional probability distributions, one for each variable given its direct predecessors in the graph, thereby enabling efficient representation and reasoning under uncertainty.[9] Bayesian networks support updating beliefs about unobserved variables through the incorporation of evidence on observed ones, leveraging Bayes' theorem to revise probabilities coherently across the model. The term was coined by Judea Pearl in 1985 to highlight its foundations in Bayesian conditioning and its applicability to evidential and causal reasoning in artificial intelligence and statistics.[10]Illustrative Example
A common illustrative example of a Bayesian network is a model for diagnosing lung cancer based on patient symptoms and risk factors. The network consists of four binary variables: Smoking (indicating whether the patient smokes), Cancer (indicating presence of lung cancer), Cough (indicating the presence of a cough), and XRay (indicating a positive X-ray result). Each variable can take values yes or no. The directed edges capture causal relationships: an arrow from Smoking to Cancer reflects that smoking increases the risk of cancer, while arrows from Cancer to Cough and from Cancer to XRay reflect that cancer causes these symptoms and test outcomes. This structure forms a directed acyclic graph (DAG), depicted textually as:Smoking → Cancer → Cough
↘
XRay
Smoking → Cancer → Cough
↘
XRay
| Smoking | Probability |
|---|---|
| yes | 0.3 |
| no | 0.7 |
| Cancer \ Smoking | yes | no |
|---|---|---|
| yes | 0.10 | 0.01 |
| no | 0.90 | 0.99 |
| Cough \ Cancer | yes | no |
|---|---|---|
| yes | 0.80 | 0.30 |
| no | 0.20 | 0.70 |
| XRay \ Cancer | yes | no |
|---|---|---|
| yes | 0.90 | 0.20 |
| no | 0.10 | 0.80 |
Graphical and Structural Foundations
Directed Acyclic Graph Representation
A Bayesian network is represented by a directed acyclic graph (DAG), in which each node corresponds to a random variable that may be either discrete or continuous. Directed edges in the graph connect pairs of nodes, indicating a direct conditional dependency: an edge from node to node signifies that directly depends on , conditional on the other direct influencers of . This structure compactly encodes the qualitative relationships among the variables, capturing how the state of one variable influences others without specifying the full joint distribution.[4] The acyclicity of the graph is a fundamental requirement, ensuring no directed cycles exist that could lead to inconsistencies in dependency resolution during probability propagation. Without cycles, the DAG admits a topological ordering of its nodes, a linear arrangement where every directed edge points from an earlier node to a later one, facilitating ordered processing of dependencies from "root" causes to effects. This property follows from graph theory: a directed graph is acyclic if and only if it possesses at least one topological ordering, which can be constructed via algorithms like depth-first search that detect and prevent cycles. Within the DAG, key structural relationships define the dependency hierarchy. The parents of a node are all nodes with outgoing edges directly to it, representing the immediate conditioning variables. Conversely, the children of a node are those with incoming edges from it, denoting variables directly affected by the node. Ancestors encompass all nodes reachable via directed paths leading to the node in question, forming the extended set of influencers through transitive dependencies. These relations highlight the hierarchical nature of the model, where influences propagate unidirectionally along paths. Qualitatively, the directed edges symbolize direct influences or associative links between variables, often lending themselves to interpretations of mechanistic or conditional effects in practical domains.[4] However, the graph structure encodes dependencies without inherently establishing causation, which requires additional assumptions or data.Conditional Independencies and Markov Properties
In Bayesian networks, the directed acyclic graph (DAG) structure encodes conditional independencies among the random variables, enabling compact representation of joint probability distributions by capturing only the essential probabilistic dependencies. These independencies arise from the topological properties of the graph, where the presence or absence of directed edges signifies direct influences, and the overall arrangement implies broader separation conditions that translate to probabilistic independence statements. This encoding is formalized through Markov properties, which bridge the graphical representation and the underlying probability distribution. The local Markov property provides a foundational building block for these independencies, stating that each variable in the network is conditionally independent of its non-descendants given its parents.[11] Formally, for a variable with parents , , where denotes the set of non-descendants of . This property ensures that once the immediate causes (parents) are known, the variable does not depend on other preceding variables in the graph, reflecting the causal or influential flow along directed paths. It implies conditional independencies, such as a variable being screened off from its non-descendants by its parents, and extends to more general cases through the global Markov property. Building on the local property, the global Markov property extends these independencies to arbitrary subsets of variables, asserting that if a set separates two disjoint sets and in the graph—meaning no active path connects and given —then holds in the distribution.[12] This separation is determined graphically via criteria like d-separation, which identifies blocked paths in the DAG. The global property thus captures the full spectrum of conditional independencies implied by the network structure, allowing inference about distant variables conditioned on intervening ones. A Bayesian network's DAG serves as an I-map (independence map) for the joint distribution, meaning the graph faithfully represents a subset of the true conditional independencies in the probability space, though it may not capture all (i.e., it is not necessarily a perfect map).[12] This mapping ensures that every graphical independence corresponds to a genuine probabilistic one, providing a minimal yet sufficient structure for reasoning under uncertainty, as established in foundational work on plausible inference.Formal Definitions and Properties
Factorization of Joint Probability Distribution
In a Bayesian network, the joint probability distribution over a set of random variables represented by a directed acyclic graph (DAG) factors into a product of conditional probabilities, each depending only on the variable's direct predecessors, or parents, in the graph.[13] This factorization is given by where denotes the set of parents of in the DAG.[13] This representation derives from the chain rule of probability, which expands the joint distribution as , but restricts the conditioning set for each to only its parents due to the conditional independencies encoded in the graph structure.[13] The local Markov property justifies this restriction by implying that each variable is conditionally independent of its non-descendants given its parents.[13] For discrete variables, each conditional probability is specified via a conditional probability table (CPT), which enumerates the probabilities for all possible values of given every combination of parent values.[9] For continuous variables, these conditionals are instead represented by probability density functions that describe the distribution of given its parents.[14] The resulting factorization provides a minimal I-map of the joint distribution, meaning the graph's independencies form a subset of those in the true distribution, with no redundant edges; removing any edge would violate at least one independence.[15] This minimal structure ensures an efficient yet complete encoding of the probabilistic dependencies implied by the network.[15]Local Markov Property
The local Markov property is a fundamental independence assumption in Bayesian networks that captures the directed dependencies encoded by the directed acyclic graph (DAG). Formally, given a Bayesian network consisting of random variables and a DAG , the property states that for every node , is conditionally independent of its non-descendants given its parents:where denotes the descendants of (excluding ), and are the direct parents of .[16] This means that once the immediate causes (parents) of are known, provides no additional information about variables that do not descend from it.[17] The proof of the local Markov property follows from the joint probability factorization of the Bayesian network. The joint distribution factorizes as
Let ND denote the non-descendants of , so ND = , and consider the set S = ND ∪ {v}. The marginal distribution P(S) is obtained by summing over the descendants De(v), and since the sum over De(v) integrates to 1, P(S) = ∏{u \in S} P(X_u \mid \mathrm{Pa}(u)). For u ∈ ND, Pa(u) ⊂ ND because v is not an ancestor of any node in ND (otherwise, that node would be a descendant of v). Moreover, none of the CPDs for nodes in ND depend on X_v, as there are no edges from v to ND. Thus, P(S) = \left[ \prod{u \in \mathrm{ND}} P(X_u \mid \mathrm{Pa}(u)) \right] \times P(X_v \mid \mathrm{Pa}(v)), where the first product does not involve X_v. Therefore, P(X_v \mid \mathrm{ND}) = P(X_v \mid \mathrm{Pa}(v)), establishing the independence.[16][17] This property has key implications for the minimality of the network structure. It ensures that the DAG is a minimal I-map (independence map) for the distribution, meaning every edge represents a direct dependence that cannot be removed without violating the encoded conditional independencies. If an edge were redundant—such as connecting a non-parent non-descendant directly to —the local Markov property would be contravened, as it would imply an unshielded dependence not captured by the parents alone. Consequently, the graph avoids superfluous arcs, promoting a parsimonious representation of the probabilistic dependencies.[16] In comparison to undirected graphical models like Markov random fields, the local Markov property in Bayesian networks emphasizes directional causality through parent conditioning, whereas in undirected models, a variable is conditionally independent of non-adjacent variables given its immediate neighbors, without distinguishing directionality or ancestry. This directed formulation allows Bayesian networks to model asymmetric influences and temporal or causal orders more explicitly than their undirected counterparts.[18]
d-Separation Criterion
The d-separation criterion, introduced by Judea Pearl, is a graphical test for determining conditional independencies in a Bayesian network represented as a directed acyclic graph (DAG). It specifies conditions under which two disjoint sets of nodes, and , are conditionally independent given a third disjoint set , denoted as . This criterion relies on analyzing undirected paths in the DAG to identify whether evidence in blocks all information flow between and . Formally, sets and are d-separated by , written , if every undirected path from a node in to a node in is blocked by . A path is blocked by if, for at least one triple of consecutive nodes along the path, one of the following holds:[19]- Serial (head-to-tail) connection: , and .
- Diverging (tail-to-tail) connection: , and .
- Converging (head-to-head) connection: , and neither nor any descendant of is in .
