![]() |
VOOZH | about |
Probabilistic inference involves reasoning under uncertainty and making predictions or decisions based on probabilistic models. One of the key challenges in probabilistic inference is efficiently estimating the probabilities of certain events or the expectations of random variables, especially in complex models with many variables.
Likelihood weighting is a Monte Carlo sampling technique that addresses this challenge by providing a way to estimate probabilities and expectations in Bayesian networks or other probabilistic graphical models. Unlike naive sampling methods, likelihood weighting incorporates evidence directly into the sampling process, leading to more accurate and efficient estimates.
Before diving into likelihood weighting, it’s important to understand the context in which it is used.
Bayesian networkis a graphical model that represents a set of variables and their conditional dependencies via a directed acyclic graph (DAG).
Probabilistic inference in Bayesian networks involves computing the posterior probability of certain variables given observed evidence.
For example, given a Bayesian network representing a medical diagnosis system, we might want to compute the probability of a disease given observed symptoms. Exact inference methods, such as variable elimination or belief propagation, can be computationally expensive, especially for large networks. This is where approximate inference methods, like likelihood weighting, come into play.
Monte Carlo methods are a class of algorithms that rely on random sampling to approximate complex probabilities or expectations.
In the context of Bayesian networks, a straightforward Monte Carlo approach might involve generating random samples from the joint distribution and using them to estimate probabilities. However, this approach becomes inefficient when dealing with evidence (observed variables), as most samples may be inconsistent with the evidence and thus contribute little to the estimate.
For example, suppose we have a Bayesian network with variables , and we observe evidence . A naïve sampling approach would generate samples from the joint distribution and discard those that do not match the evidence. This can be highly inefficient, especially if the evidence is unlikely under the prior distribution.
Likelihood weighting is a technique that addresses this inefficiency by incorporating evidence directly into the sampling process. Instead of discarding samples that do not match the evidence, likelihood weighting assigns a weight to each sample based on how well it matches the evidence. This weight reflects the likelihood of the evidence given the sample, hence the name "likelihood weighting."
The likelihood weighting algorithm proceeds as follows:
Consider a simple Bayesian network with three binary variables: , , and , where is the parent of , and is the parent of . Suppose we observe evidence and want to estimate the probability .