- Learn
- Computer Science & IT
- Computer Science
- Artificial Intelligence
- Bayesian Networks
Probabilistic Reasoning and Bayesian Networks
IntermediateLesson 6 of 10 in Artificial Intelligence Course
What you will learn
- Describe an uncertain situation with random variables and distributions, answer questions from a full joint distribution, update beliefs with Bayes' rule and use independence to keep models small.
- Describe uncertainty with random variables and joint distributionsUse sample spaces, events, random variables and joint distributions to state what an agent believes, and find single-variable probabilities by summing out the others.
- Answer queries with conditional probability and enumerationCompute conditional probabilities, use the product and chain rules, and answer any query from a full joint distribution by selecting, summing out and normalizing.
- Update beliefs with Bayes' ruleDerive Bayes' rule, turn causal knowledge into diagnostic conclusions, and avoid ignoring base rates.
- Use independence, conditional independence and naive BayesTest whether variables are independent or conditionally independent, explain how independence shrinks a model, and classify with a naive Bayes model.
- Describe uncertainty with random variables and joint distributions
- Read and build Bayesian networks, compute joint probabilities from their tables, and decide from the graph which independences hold.
- Read a Bayesian network and compute joint probabilitiesExplain the parts of a Bayesian network, compute any full joint probability as a product of table entries, and count how many numbers a network needs.
- Build compact networks and read their local independencesConstruct a network by choosing an ordering and minimal parents, use the local Markov property and Markov blankets, and model many parents with compact CPTs.
- Decide independence with d-separationClassify the three kinds of triples, test every path between two variables, and conclude which conditional independences the graph guarantees.
- Read a Bayesian network and compute joint probabilities
- Answer probability queries in a Bayesian network exactly, first by enumeration and then efficiently by variable elimination, and judge how the cost grows.
- Answer queries in a network by enumerationWrite a query as a normalized sum of products of CPT entries, evaluate it, and remove variables that cannot affect the answer.
- Run variable elimination and choose good elimination ordersRepresent CPTs as factors, join and sum them out one hidden variable at a time, normalize, and explain how the elimination order and network shape determine the cost.
- Answer queries in a network by enumeration
- Estimate probabilities in a Bayesian network by generating samples, and compare prior sampling, rejection sampling, likelihood weighting and Gibbs sampling.
- Estimate probabilities with prior sampling and rejection samplingDraw samples from a network in topological order, estimate probabilities from counts, and use rejection sampling for conditional queries.
- Estimate conditional probabilities with likelihood weightingFix the evidence, sample the other variables, weight each sample by how well it explains the evidence, and recognize when the method struggles.
- Estimate posteriors with Gibbs samplingResample one variable at a time from its distribution given its Markov blanket, use the resulting chain of states as samples, and compare the sampling methods.
- Estimate probabilities with prior sampling and rejection sampling
- Choose actions that maximize expected utility, model decisions with decision networks, and calculate what an observation is worth before making it.
- Choose actions by maximum expected utilityExpress preferences as utilities, compute expected utilities of uncertain outcomes, and explain risk attitudes and the axioms behind the principle.
- Model and solve decisions with decision networksExtend a Bayesian network with decision and utility nodes, evaluate every action with the evidence available, and find the best policy.
- Calculate the value of perfect informationCompute how much an observation is expected to raise the maximum expected utility, use its properties, and decide whether information is worth its cost.
- Choose actions by maximum expected utility
Bayesian Networks study guide
1Reason with probability, Bayes' rule and independence
An agent needs a precise way to describe what it knows when observations are incomplete. Begin with possible worlds and joint tables, then condition on evidence and reverse conditional probabilities with Bayes' rule. Independence identifies which observations add information and which become redundant once a relevant condition is known. These operations provide the arithmetic used throughout probabilistic inference.
1.1 Describe the possible worlds
An agent may see only part of its environment. A sensor can be noisy, and an action can have several outcomes. Probability lets the agent attach a degree of belief to each possibility and revise those beliefs when information arrives.
Worlds, events and variables
The sample space, , lists every possible outcome. Its outcomes are mutually exclusive and exhaustive: exactly one occurs. An event is a set of these outcomes, such as "the bus is late." Its probability is the sum of the probabilities of its outcomes.
A random variable assigns a value to each outcome. Its domain lists the possible values. For example, has the domain . Write variables with capital letters and values in lowercase. For Boolean , means true and means false. The comma in means "and."
Probabilities lie between 0 and 1, and the probabilities of all outcomes sum to 1. Complementary events satisfy . A distribution lists the probability of each value of a variable; a prior describes belief before incorporating the evidence of interest.
Read a joint table
A joint distribution gives the probability of each combination of values. Here is a weather and bus model:
| Weather | On time | Late |
|---|---|---|
| Sun | 0.40 | 0.10 |
| Cloud | 0.18 | 0.12 |
| Rain | 0.08 | 0.12 |
The six cells are the six possible worlds, and together they sum to 1. A row total is the probability of that weather, so a row need not sum to 1. For rain, . The late column gives .
This operation is marginalization, or summing out. To keep and remove , use . Add across every value of the variable being removed, including false values for Boolean variables.
Count an overlap once
The event "rain or late" includes every cell in the rain row or late column. Its probability is
The subtraction removes the overlap counted twice. In general, . Simply adding the marginals would give 0.54 and count the rainy, late world twice.
Why full tables become expensive
A full joint table can answer any probability query about its variables, but its size grows quickly. Each additional Boolean variable doubles the number of worlds. With Boolean variables there are entries and free numbers, since the last entry is fixed by the total of 1. Thirty Boolean variables require 1,073,741,824 entries. Compact models will store local dependencies instead of listing every world explicitly.
Key Takeaways
- A joint table assigns probabilities to complete combinations of values.
- Marginalization adds over all values of a variable you want to remove.
- For an "or" event, subtract the overlap once.
- The whole joint table sums to 1; individual rows generally do not.
1.2 Condition on evidence and normalize
A late bus changes which weather conditions seem likely. Conditional probability focuses on the worlds consistent with an observation, then measures their relative shares. The probability after taking evidence into account is a posterior.
Keep the denominator tied to the evidence
For evidence with positive probability,
In the weather and bus model, the late entries for sun, cloud and rain are 0.10, 0.12 and 0.12. Their total is 0.34. Thus . Reversing the question gives . Both use the same joint cell, but each divides by the probability of its own evidence.
The whole conditional distribution is . These entries sum to 1 because they describe alternative weather values under one fixed observation. The three likelihoods , and use different conditions and need not sum to 1.
Products and chains
Rearranging the definition gives the product rule:
Applying it repeatedly gives the chain rule:
Any variable order works. Independence is not needed for this identity; it will later let us shorten the condition lists.
Select, sum and normalize
For query variable , evidence and hidden variables , enumeration uses
First select worlds matching the evidence. Next sum out all hidden variables, keeping a separate total for each query value. Finally divide these totals by their sum. The normalizing constant is the reciprocal of that sum, which is .
Consider Boolean variables Flu (), Fever () and Cough (). Their full joint table is:
| Flu | Fever | Cough | Probability |
|---|---|---|---|
| True | True | True | 0.056 |
| True | True | False | 0.024 |
| True | False | True | 0.014 |
| True | False | False | 0.006 |
| False | True | True | 0.018 |
| False | True | False | 0.072 |
| False | False | True | 0.162 |
| False | False | False | 0.648 |
To find , retain fever rows and sum out cough. The totals are for flu and for no flu. Normalize by 0.17 to get .
If cough is also observed, retain only the two fever-and-cough rows. Now . For fever without cough, . Summing over cough would lose this additional observation. A raw total such as 0.08 is a joint probability, not the requested conditional probability.
Key Takeaways
- Conditional probability divides a joint probability by the probability of the evidence.
- The chain rule holds for any variable order.
- Enumeration selects evidence, sums hidden variables and normalizes.
- A conditional distribution sums to 1 over the query values.
- Keep observed values fixed when summing.
1.3 Use Bayes' rule without losing the base rate
An agent often knows how a cause produces an observation, but needs to reason in the other direction. A fault model may describe how often a damaged component triggers a warning. After the warning, the agent needs the probability of damage.
Reverse a conditional correctly
The two product-rule expressions for a joint probability give Bayes' rule:
Here is the prior, is the likelihood, and is the posterior. The denominator includes every way the evidence can occur. For a Boolean cause, the law of total probability gives
For more than two cause values, include one term for each value. You can also compute a likelihood-times-prior score for each cause and normalize the scores.
Work through a rare-condition example
Suppose an illness affects 1% of a population. A test is positive for 90% of ill people and 5% of healthy people. The probability of a positive result is
The ill-and-positive probability is 0.009, so
Natural frequencies make the denominator easier to see. Among 10,000 people, 100 are ill and 90 of those test positive. Of 9,900 healthy people, 495 test positive. There are 585 positive results altogether; 90 belong to ill people.
The 90% sensitivity answers "How often does an ill person test positive?" It does not answer "How often is a positive person ill?" Base-rate neglect gives the prior too little weight. A rare condition starts with far fewer people, so false positives from the larger healthy group can outnumber true positives. If sensitivity and false-positive rate stay fixed, changing the prevalence still changes the posterior.
A negative result uses the complementary likelihoods:
Update again when new evidence arrives
The posterior from one observation becomes the prior for the next. If a second test result is conditionally independent of the first given illness status, another positive produces
Carry the unrounded first posterior when doing sequential arithmetic. Conditional independence matters: repeated readings from the same faulty sensor may share an error, so multiplying their likelihoods as independent evidence can overstate the update.
Background information stays in every relevant condition:
This lets an agent update within the population or situation it already knows about, using its current prior and the appropriate likelihoods.
Key Takeaways
- Bayes' rule multiplies the likelihood by the prior and divides by the evidence probability.
- The evidence probability includes all possible causes.
- A high sensitivity can coexist with a low posterior when the condition is rare.
- Sequential updates use the current posterior as the next prior.
1.4 Use independence to shrink a model
Some observations change one another's probabilities; others add no information once a relevant condition is known. Independence identifies when a long probability expression can be replaced by smaller pieces.
Independence is a statement about every value
Events are independent when . For variables, this equality must hold for every pair of values. One failed pair establishes dependence. In the weather table, , whereas , so weather and bus status are dependent.
Mutually exclusive events with positive probabilities are dependent: learning that one occurred forces the other's probability to zero. Independent events can occur together. If Boolean variables are all mutually independent, only probabilities are needed, compared with for an unrestricted joint table.
Know what is being held fixed
Conditional independence, written , means
The equality holds for every relevant value combination. Equivalently, learning adds nothing about once is known.
In the flu model, and . Fever and cough are conditionally independent given flu status. Without that condition, they are dependent: , while . Fever changes belief about flu, which changes belief about cough.
| Claim | What must be checked |
|---|---|
| Independence | Joint equals product of marginals for every value pair |
| Conditional independence | Conditional joint equals product within each value of the condition |
Independence without evidence and independence given evidence are separate claims. Observing a common effect can even make two previously independent causes dependent.
Classify with naive Bayes
A naive Bayes model assumes that features are conditionally independent given a class. Its posterior is
A Boolean class with Boolean features needs probabilities. The assumption can be imperfect and still support useful classification, but correlated features can lead to overconfident probabilities.
For spam, let . The word "offer" appears with probability 0.4 in spam and 0.05 in nonspam, called ham. The word "winner" appears with probabilities 0.2 and 0.01. With both words present, the scores are for spam and for ham. Normalizing gives .
Absence also supplies evidence. With "offer" present but "winner" absent, the scores become and , giving a spam posterior of about 0.735. Use the complement of the likelihood for an absent Boolean feature. A zero likelihood makes the entire class score zero, so a possible event should not receive a zero merely because it was missing from a small data sample.
Key Takeaways
- One failed joint-product equality establishes dependence.
- Conditional independence concerns distributions within a fixed condition.
- Mutual exclusivity with positive probabilities creates dependence.
- Naive Bayes multiplies feature likelihoods conditional on the class.
- Absent Boolean features use complementary likelihoods.
- Normalize class scores when a probability is required.
2Represent dependencies with Bayesian networks
A Bayesian network replaces an enormous joint table with a graph and small local tables. Reading its arrows tells you which probabilities to store and how to multiply them into a complete-world probability. Building the graph requires careful independence choices, and d-separation tests those choices across paths. Local properties and structured tables make larger models easier to represent.
2.1 Read a network and multiply its tables
A Bayesian network represents a joint distribution with a directed acyclic graph and local probability tables. Each node is a random variable. An arrow into a node identifies one of its parents; following arrows must never lead back to the starting node.
A commute model
Use five Boolean variables: Rain (), Accident (), heavy Traffic (), being Late () and carrying an Umbrella (). The arrows are , , and . Rain and accident have prior probabilities and .
Traffic's conditional probability table (CPT) depends on both parents:
| Rain | Accident | Probability of heavy traffic |
|---|---|---|
| True | True | 0.95 |
| True | False | 0.70 |
| False | True | 0.80 |
| False | False | 0.20 |
The remaining tables give , , and . Each parent assignment selects a distribution over the child's values. For Boolean nodes, store only the true probability; the false probability is its complement. Thus .
Compute a complete world's probability
The network defines its joint distribution by
For rain, no accident, heavy traffic, lateness and an umbrella, select one entry from every node:
The factors respectively describe rain, no accident, traffic under those parent values, lateness under heavy traffic and umbrella use under rain. Omitting a node gives an incomplete product. Selecting 0.95 for traffic would describe an accident too, so it would mismatch the world being evaluated.
The formula follows from the chain rule in a topological order, with parents before children. The network's conditional independences shorten each condition from all preceding variables to just its parents.
Count parameters and distinguish marginals
A Boolean node with Boolean parents needs free probabilities. More generally, a node with values and parents each with values needs . The commute network needs numbers; a full joint over its five Boolean variables needs 31. Thirty Boolean nodes with at most five parents each need at most 960 numbers, compared with more than a billion for an unrestricted full joint.
A CPT entry answers a question with every parent fixed. To find a marginal, average over the missing parent values. Here
where the four terms weight the traffic rows by their parent probabilities. Similarly, . It is not the single row value 0.7.
Arrows often follow cause to effect because that makes the model compact and understandable. Formally they encode a factorization and independence claims. A reversed two-node graph can represent the same joint distribution with different tables; an arrow alone does not establish causation.
Key Takeaways
- Each node has a probability table conditioned on its parents.
- Multiply one matching entry per node for a complete assignment.
- Each CPT row sums to 1 over the child values.
- Average over unknown parents to obtain a marginal.
- A graph encodes conditional independences; causal interpretation needs more.
2.2 Choose parents and find a Markov blanket
A useful network leaves out dependencies that are unnecessary while keeping those the distribution needs. Choosing few parents can save many table entries, but each omission commits the model to an independence claim.
Build the network in an order
Choose variables and their domains, then order the variables. For each variable, select a minimal set of earlier variables that makes it independent of the other earlier variables. Add arrows from these parents and fill its CPT using expert judgment or probabilities estimated from counts.
A cause-first order for the commute model produces four arrows and ten free probabilities. Another valid order is , with parent sets , , and . This uses six arrows and numbers. Given traffic, rain changes belief about an accident, so rain must remain among accident's parents in that order.
Any order can represent the distribution if each node receives enough parents. Giving every node all earlier nodes always works but offers no compression. A diagnostic order can also require probabilities that are harder to judge, such as rain given traffic and an umbrella. Omitting a needed parent forces a false independence; adding an unnecessary parent enlarges the table.
Two local independence rules
The local Markov property says a node is independent of its non-descendants given its parents. In the commute network, and . Once traffic is known, the other variables add nothing about lateness.
A node's Markov blanket contains its parents, its children and its children's other parents. Given these variables, the node is independent of every variable outside the blanket. Rain's blanket is : accident belongs because it is traffic's other parent. Traffic's blanket is , and lateness has only . The blanket allows local updates even when the full network is large.
Replace a large table with structure
A deterministic node is a fixed function of its parents, such as . Its rows contain zeros and ones. A noisy-OR allows each true cause to fail independently. If cause has inhibition probability , the effect is absent only if all active causes fail:
Suppose an accident fails to cause a jam with probability 0.2 and roadworks fail with probability 0.4. An accident alone gives a jam probability of 0.8; roadworks alone gives 0.6. When both occur, the no-jam probability is , so the jam probability is 0.92.
Plain noisy-OR gives no effect when no cause is active. A leak, represented as an always-present cause, allows the effect to arise from unlisted causes. The model uses one inhibition probability per cause instead of an unrestricted table with rows. This saving comes from independent causal failures; arbitrary interactions require a richer model.
Key Takeaways
- Choose parents that make a node independent of other earlier variables.
- A variable order changes the size and interpretation of its tables.
- A Markov blanket includes children's other parents.
- Noisy-OR multiplies independent failure probabilities of active causes.
- A leak accounts for unlisted causes.
2.3 Trace paths to decide independence
d-separation finds conditional independences guaranteed by a network's graph. It considers paths without requiring arrows to point along the direction of travel. Arrowheads still matter because they determine how each middle node behaves.
Three path patterns
| Pattern | Middle node unobserved | Middle node observed |
|---|---|---|
| Chain: | Active | Blocked |
| Fork: | Active | Blocked |
| Collider: | Blocked unless a descendant is observed | Active |
In a chain, knowing the middle variable screens off the earlier variable. In , rain adds nothing about lateness once traffic is known. In a fork, knowing the shared cause does the same: an umbrella adds nothing about traffic once rain is known.
A collider, or common effect, works in the opposite way. The path is blocked without evidence at traffic or its descendants. Observing traffic, or observing lateness downstream, opens the collider. Causes that were independent can then inform one another.
Explaining away
In the commute model, . Heavy traffic increases the accident probability to about 0.235. Adding rain reduces it to ; adding no rain gives . Rain accounts for some of the observed traffic, reducing the need for an accident as an explanation. This is explaining away.
Check every path
To test :
- List every undirected path between the query variables.
- At each internal node, identify whether the path forms a collider or a non-collider.
- Block a path if it has an observed non-collider, or a collider with neither itself nor any descendant observed.
- Conclude d-separation only if every path is blocked.
For umbrella and accident, the only path is . With no evidence, traffic blocks it, so . Given lateness, traffic's collider opens and rain remains unobserved, so the path becomes active. The numerical model gives but .
If both lateness and rain are observed, traffic's collider is still open, but rain blocks the path as an observed non-collider. Therefore . Opening one part of a path does not overcome a block elsewhere.
Umbrella and lateness have path . It is active without evidence and blocked by either rain or traffic. For example, .
Interpret the graph's guarantee
d-separation is sound: the independence holds for every distribution that follows the graph. An active path means independence is not guaranteed. Particular CPT values may still make the variables independent by coincidence. In a graph with several paths, inspecting one blocked path is insufficient; another path may remain active.
Key Takeaways
- Chains and forks are blocked by observing their middle node.
- A collider opens when it or one of its descendants is observed.
- Every path must be blocked for d-separation.
- Explaining away links causes after observing a shared effect.
- An active path removes the guarantee of independence.
- One blocked internal node blocks its entire path.
3Compute exact answers with enumeration and variable elimination
Exact inference combines the local probability tables to answer a conditional query. Enumeration makes the full sum of products explicit, while variable elimination reuses shared partial results. Both methods return the same posterior, but their computational costs can differ sharply. Evidence restriction, removal of irrelevant variables and a careful elimination order keep the work focused on the query.
3.1 Enumerate worlds in a network
A network stores a joint distribution as local pieces. Exact inference combines those pieces to answer a query, adding over variables whose values remain unknown. Enumeration is the direct way to do this.
Separate the three variable roles
In , is the query variable and fixes the evidence. Every other variable is hidden. Substitute the network product into the general enumeration formula:
Compute an unnormalized total for every value of the query, then divide by their sum. Evidence values stay fixed in every product. Hidden variables range over their entire domains.
For the commute model, with arrows , and , the query hides accident, traffic and umbrella. Each complete term uses .
Remove an irrelevant leaf
Umbrella has no observed descendant and is neither the query nor evidence. Summing its CPT over both values gives for each rain value. Its contribution disappears.
More generally, retain query variables, evidence variables and all their ancestors. Other variables can be removed by summing irrelevant leaves first, then working backward. This is a statement about their contribution to this query; an unobserved node can matter in a different query.
Evaluate the two rain totals
The commute tables give , , traffic probabilities 0.95, 0.7, 0.8 and 0.2 for parent combinations , and lateness probabilities 0.6 with traffic and 0.1 without it.
For rain and an accident, sum the traffic alternatives: . For rain without an accident, the result is . Weight by accident probabilities, then by rain:
For no rain, the corresponding inner totals are 0.5 and 0.2, giving
Normalize by . The answer is for true and false. Reporting 0.0925 would report the joint event, before conditioning.
Keep sums attached to their dependencies
A factor moves outside a sum only if none of its arguments depends on the summed variable. For example, can move outside the accident sum; cannot because accident is a parent argument.
If umbrella is observed, it no longer sums away. With and , the new posterior is . Enumeration can run depth-first with little memory, but visits exponentially many hidden assignments and repeats partial calculations.
Key Takeaways
- Fix evidence and sum over every hidden assignment.
- Remove variables outside the ancestors of query and evidence.
- A factor can leave a sum only if it does not depend on the summed variable.
- Normalize joint totals to obtain the posterior.
3.2 Reuse partial sums with variable elimination
Enumeration repeats work because many complete worlds share the same partial calculation. Variable elimination (VE) stores these partial results as factors and reuses them. It computes the same exact posterior in a different arithmetic order.
Factors, joins and evidence
A factor maps assignments of its variables to nonnegative numbers. CPTs are starting factors, but intermediate factors need not sum to 1. Apply evidence by retaining the observed value. For lateness evidence, is a factor over traffic with entries 0.6 and 0.1.
Joining factors multiplies matching entries and uses the union of their variable sets. Joining and gives a factor over rain, accident and traffic. Summing out accident adds entries that differ only in accident's value.
For each hidden variable, join every factor containing it, sum it out, and replace those factors with the result. Keep factors that do not mention it. At the end, join the remaining factors and normalize over the query values.
Eliminate accident, then traffic
For , remove the unobserved umbrella leaf. Start with , , and . Eliminating accident gives
Its true-traffic values are and . The false-traffic values are 0.275 and 0.74.
Now eliminate traffic:
This gives and . Multiplying by the rain prior gives . Divide by 0.2765 to get .
Eliminating traffic first also works. The factor has entries 0.575, 0.45, 0.5 and 0.2. Weighting by the accident prior then produces the same two lateness likelihoods.
Choose an order that keeps factors small
A factor over variables with values has entries. The largest intermediate scope usually dominates the cost. Suppose hidden points to Boolean variables , each with an observed child , and the query is . Eliminating first joins a table over , then leaves entries. Eliminating the other first instead reduces each branch to a factor over ; the largest joined scope is just , with four entries.
A polytree has at most one undirected path between any two nodes. With a good order, inference is linear in total CPT size. General exact inference and finding the optimal elimination order are NP-hard. A practical heuristic chooses a variable creating a small next factor. Keep the query variable until normalization. Multiplying a whole factor by a positive constant leaves the normalized answer unchanged.
Key Takeaways
- Restrict evidence before eliminating hidden variables.
- Join every factor containing a variable before summing it out.
- Intermediate factors need not be probability distributions.
- Elimination order changes cost while preserving the exact answer.
- The largest intermediate scope drives table size.
- A good order makes polytree inference linear in CPT size.
4Approximate answers by sampling
Sampling estimates a probability by generating assignments instead of evaluating every hidden combination. The methods differ in how they use observations: filtering prior samples, weighting assignments with fixed evidence, or repeatedly resampling a local conditional distribution. Working through individual draws makes their estimators clear and shows why rare evidence, uneven weights and correlated states affect accuracy.
4.1 Generate samples and keep the matching ones
When exact sums are too expensive, an agent can simulate assignments and estimate probabilities from their frequencies. Sampling produces an approximation whose quality depends on how much useful information the draws contain.
Turn a random number into a value
Draw a uniform number from . Split that interval into pieces with lengths equal to the probabilities. For weather probabilities , sun occupies , cloud and rain . A draw of 0.63 gives cloud. For a Boolean variable, choose true if the draw is less than its true probability.
Sample parents before children
Prior sampling visits variables in topological order. Each node is sampled from the CPT row selected by its parents' sampled values. The word "prior" refers to drawing from the network before conditioning the sample population on query evidence.
In the commute model, use order and draws 0.13, 0.57, 0.40, 0.81 and 0.35:
- Rain is true because .
- Accident is false because .
- Traffic is true because .
- Late is false because .
- Umbrella is true because .
The assignment is . Its generation probability is , exactly its probability under the network's joint distribution. Sampling a child before its parents would leave the needed CPT row undecided.
Estimate probabilities from counts
The fraction of prior samples with lateness estimates , which is 0.2765 in this model. The estimator is consistent: as the number of independent draws grows, it converges to the true probability. A larger run can still fluctuate. Typical independent-sample error scales as , so four times as many samples roughly halves the error; twice as many does not.
Condition with rejection sampling
Rejection sampling generates prior assignments and discards those that contradict the evidence. Count query values only among the retained assignments. For example, suppose 280 of 1,000 assignments have lateness and 94 of those also have rain. Then . Dividing by 1,000 would estimate the joint event rain-and-lateness instead.
A sample may be abandoned as soon as it conflicts with an observation, saving the remaining simulation work. The expected retained fraction is still . Lateness alone retains about 28%; lateness with an umbrella retains about 12%, since . Many observations can make the evidence combination rare even when each observation is ordinary on its own. If no samples survive, the conditional estimate is undefined and more useful sampling is needed.
Key Takeaways
- Prior sampling visits parents before children.
- Each full assignment is generated with its joint probability.
- Rejection sampling divides query matches by retained samples.
- The expected acceptance fraction equals the evidence probability.
- Four times as many independent samples roughly halves typical error.
4.2 Weight samples while fixing the evidence
Rejection sampling spends time creating assignments it cannot use. Likelihood weighting keeps every evidence variable fixed and compensates with a weight. Samples whose hidden values make the evidence likely contribute more.
Build a weighted assignment
Start each sample with weight 1. Visit nodes in topological order. Sample a non-evidence node using its parents' current values. At an evidence node, retain its observed value and multiply the weight by that value's CPT probability:
Only evidence probabilities enter this weight. The probabilities of the sampled nodes already govern how frequently their assignments are generated. Multiplying those probabilities into the weight would count them twice.
Two samples in the commute model
For , keep lateness and umbrella true. Sample rain, accident and traffic. The traffic probabilities for are 0.95, 0.7, 0.8 and 0.2, with priors and .
Using draws 0.13, 0.57 and 0.40 gives rain, no accident and heavy traffic. The fixed lateness contributes ; the fixed umbrella contributes . The sample's weight is .
Draws 0.66, 0.05 and 0.92 instead give no rain, an accident and no heavy traffic. The evidence likelihoods are now and , so the weight is 0.02. Both samples match the evidence because those values were fixed, yet their contributions differ greatly.
Normalize weights, not sample counts
Estimate a query probability by
The two-sample rain estimate is . That is far from the exact posterior of about 0.693; two draws are too few to represent the relevant hidden assignments. With many draws, the weighted ratio converges to the posterior. Dividing 0.54 by two would not produce a conditional probability estimate.
The correction works because multiplying the sampling probability by the evidence weight recovers the full joint product. Normalizing removes the shared evidence probability and leaves the conditional distribution.
Recognize concentrated weights
Fixed evidence affects how its descendants are sampled, since they use that evidence in their parent rows. Upstream variables are still drawn without feedback from downstream observations. If rare evidence sits at leaf nodes, most upstream assignments may explain it poorly. Their weights are tiny, and a few assignments can dominate the result.
Likelihood weighting often uses computation more efficiently than rejection sampling, but "no rejected samples" does not mean equally informative samples. A long run with highly uneven weights can still give an unstable estimate. Inspect which assignments carry the total weight when comparing results across runs.
Key Takeaways
- Fix evidence and sample only the remaining variables.
- Weights multiply evidence likelihoods, not sampled-node probabilities.
- Divide a query's accumulated weight by the total weight.
- Rare downstream evidence can concentrate nearly all weight in a few samples.
4.3 Resample locally with Gibbs sampling
Gibbs sampling keeps a complete assignment and changes one non-evidence variable at a time. Each change is drawn from the variable's conditional distribution given the current values of all other variables. The sequence forms a Markov chain Monte Carlo, or MCMC, sampler.
Start a chain and keep evidence fixed
Set evidence to its observed values and initialize the remaining variables. With deterministic zeros, start from an evidence-compatible assignment with positive joint probability. Choose a non-evidence variable to update, calculate a probability for each of its possible values, normalize, and draw the new value. All other values stay in place for that step. Repeating this process allows evidence to affect upstream as well as downstream beliefs.
Only the selected node's Markov blanket is needed: its parents, children and children's other parents. Factors outside that blanket do not change when the selected value changes, so they cancel in normalization. The local formula is
Children keep their current values while each candidate value of the selected parent is tried. Their CPT entries can therefore change even though the children themselves are not resampled.
Update rain in the commute model
Keep lateness and umbrella true. Suppose the current hidden state is no rain, no accident and heavy traffic. Rain's blanket is traffic, umbrella and accident. For rain true, the local score is
For rain false, the score is . Normalizing gives . A uniform draw of 0.40 therefore changes rain to true. Lateness's factor is absent from this update because traffic stays fixed and that factor is constant across the two rain candidates.
Update traffic with the new rain value
Traffic's blanket is rain, accident and lateness. Its two scores are for heavy traffic and for no heavy traffic. Thus its true probability is . For an accident update with rain and heavy traffic fixed, the true probability is .
Count states and allow time to mix
After each update, the full assignment can count as a sample, including a step that leaves the selected value unchanged. Discard an initial burn-in period to reduce the influence of initialization. A long-run rain frequency approaches about 0.693 for this query when the chain converges.
Adjacent states share nearly all their values and are correlated. They carry less independent information than the same number of independent draws. With all CPT entries strictly between 0 and 1, suitable repeated updates can reach every state and converge to the posterior. Deterministic constraints can trap a single-variable chain; nearly deterministic relationships can make it move very slowly.
Prior sampling draws from the joint; rejection filters those draws; likelihood weighting fixes evidence and weights assignments; Gibbs repeatedly updates a fixed-evidence state. Conditioning only on parents would turn a Gibbs update into the wrong local distribution by omitting children's evidence.
Key Takeaways
- Gibbs sampling changes one non-evidence variable at a time.
- Use the node's own CPT and all its children's CPTs.
- Normalize scores across the candidate values before drawing.
- Consecutive states are correlated.
- Burn-in reduces dependence on the arbitrary starting assignment.
- Deterministic constraints can prevent a chain from reaching all relevant states.
5Make decisions with utilities, decision networks and the value of information
A useful agent must choose what to do as well as estimate what is true. Utilities express preferences over outcomes, and expected utility connects those preferences to uncertain actions. Decision networks organize the available information, possible choices and their consequences. Comparing the best action before and after an observation then shows whether gathering more information is worth its cost.
5.1 Choose actions by expected utility
Probabilities describe what may happen; utilities describe how desirable the outcomes are. A utility function assigns higher numbers to preferred outcomes. An uncertain action is a lottery, listing outcomes and their probabilities.
Average utility across possible outcomes
The expected utility of an action is
Multiply each outcome's utility by its probability and add. Maximum expected utility (MEU) chooses the action with the largest result. The outcome with the highest individual utility need not belong to the best action, and the most likely outcome alone does not determine the choice. A sound decision can still produce a bad outcome through chance.
Why coherent preferences support MEU
Utility theory uses these rationality requirements:
- Orderability: any two lotteries can be compared, allowing indifference.
- Transitivity: preferring A to B and B to C entails preferring A to C.
- Continuity: an intermediate outcome can be matched by a lottery between better and worse outcomes.
- Substitutability: an indifferent outcome or lottery can replace another within a larger lottery.
- Monotonicity: between lotteries with the same better and worse outcomes, prefer the larger probability of the better outcome.
- Decomposability: a lottery over lotteries reduces to its final outcome probabilities.
The von Neumann–Morgenstern result represents preferences satisfying these requirements by expected utility. Cyclic preferences violate transitivity. If an agent pays a small amount to move from B to A, A to C and C to B, repeated trades return it to its original position while draining its money. This is the "money pump" problem.
Money and utility can rank lotteries differently
Compare a sure payment of 400 with a 50% chance of 1,000 and a 50% chance of zero. Expected money favors the lottery, whose mean is 500. For , however, the lottery's expected utility is , while the sure payment gives 20. This agent chooses 400.
The certainty equivalent is the sure amount with the lottery's utility. Here it is . The difference between expected money and the certainty equivalent is the risk premium, 250 in this example.
| Utility of money | Risk attitude |
|---|---|
| Concave | Risk-averse |
| Linear | Risk-neutral |
| Convex | Risk-seeking |
With concave utility, a sure mean amount is at least as desirable as the lottery with that mean. Strict concavity makes that preference strict for a nontrivial lottery. A sufficiently favorable risky option can still beat a less valuable sure amount.
Change scales without changing preferences
Replacing utility by with preserves every expected-utility comparison. Each expectation receives the same positive scaling and shift. A general increasing transformation preserves rankings of certain outcomes but can change rankings of lotteries.
When comparing several desirable attributes, an option at least as good on every attribute and better on at least one dominates the other. With preferences that value those improvements, the dominated option can be removed without specifying exact attribute weights.
Key Takeaways
- Expected utility weights every outcome's utility by its probability.
- MEU evaluates a choice using available information, not the eventual luck.
- Coherent lottery preferences can be represented by expected utility.
- Money and utility need not have the same scale or curvature.
- A certainty equivalent matches a lottery's expected utility.
- Positive affine utility transformations preserve choices.
- Dominance can eliminate an inferior option before detailed weighting.
5.2 Turn observations into a decision policy
A decision network, also called an influence diagram, combines a probability model with choices and preferences. Solving it requires both inference about uncertain states and comparison of the actions available to the agent.
Read the three node types
Chance nodes, usually ovals, have probability tables. Decision nodes, usually rectangles, represent actions the agent controls. Utility nodes, usually diamonds, assign utility to combinations of parent values. An arrow into a decision node identifies information available when the choice is made. It is not an ordinary conditional-probability dependency.
For an outdoor event, rain influences a forecast and the event's utility. The action also influences utility. The forecast points into the decision when it is observed before the organizer chooses. There is no arrow from the action to rain: moving indoors does not change the weather.
Solve without a forecast
Suppose , and use this utility table:
| Action | No rain | Rain |
|---|---|---|
| Outdoors | 100 | 0 |
| Indoors | 60 | 70 |
The expected utilities are and . Without further information, choose outdoors and the MEU is 70. The decision node receives a chosen value, not a probability table to average over actions.
Incorporate a forecast
Let and . The wet forecast probability is . Bayes' rule gives . A dry forecast gives .
With a wet forecast, outdoors has expected utility about 22.6 and indoors about 67.7, so choose indoors. With a dry forecast, outdoors gives about 91.3 and indoors about 60.9, so choose outdoors. Use the posterior after an observation; retaining the prior would discard the information the forecast supplies.
The resulting policy is "Choose indoors after wet; choose outdoors after dry." A policy maps observations to actions, so it can be specified before the observation arrives. An action is the single choice made once its information is available.
Find where the choice changes
Let be the current probability of rain. Then and . Equating them gives , or . Below this threshold choose outdoors; above it choose indoors; at the threshold the actions tie.
To solve another decision network, fix the current evidence, consider each action in turn, infer the chance distribution relevant to utility, and calculate its expected utility. If an action changes an uncertain outcome, include that action's effects in the probability model before comparing expectations. Finally select the best action separately for each possible observation that the policy will receive.
Key Takeaways
- Chance, decision and utility nodes play different roles.
- An incoming decision arrow marks information known before choosing.
- Evaluate every action with the posterior for the available evidence.
- A policy maps observations to actions.
- Equating expected utilities identifies a decision threshold.
5.3 Work out what an observation is worth
An observation is valuable when it helps the agent choose a better action. The value of perfect information (VPI) measures the expected improvement from learning a variable's value before acting. "Perfect" describes access to that variable's actual value; the variable can itself be an imperfect forecast of something else.
Optimize within each possible observation
Given current evidence , the value of observing is
First find the best expected utility of deciding now. Next, for every possible observation, update the probabilities and choose the best action for that observation. Average these optimized utilities using the observation probabilities. Subtract the current MEU. Choosing one action first and then averaging would miss the ability to adapt the action.
Value the forecast and the weather
For the event model, choosing outdoors without a forecast gives MEU 70. Wet forecasts occur with probability 0.31 and lead to indoors, with MEU about 67.74. Dry forecasts occur with probability 0.69 and lead to outdoors, with MEU about 91.30. Carrying exact values gives
Thus utility units. A cost expressed as a utility loss below 14 makes obtaining the forecast worthwhile; at 14 the agent is indifferent. A money price must first be evaluated on the agent's utility scale.
Knowing the weather itself is more useful. Rain leads to indoors with utility 70; no rain leads to outdoors with utility 100. The average is , so .
Why information has nonnegative expected value
The agent can always ignore free information and keep its original action. Optimizing after observing can therefore never reduce expected utility before the observation is known. If the same action is best for every possible result, information has zero value. Information independent of all utility-relevant chance variables, given current evidence, also has zero value in this decision model.
A particular result can still be unwelcome. After a wet forecast, MEU is about 67.7, below the earlier 70. Nonnegativity concerns the average over all results before seeing them.
Combine information without double counting
VPI is generally nonadditive. The forecast alone is worth 14 and the weather alone 21, yet learning both is worth 21 because the forecast adds nothing after weather is known.
After wet, learning weather adds about 9.03; after dry, it adds about 6.09. Before seeing the forecast, the expected extra value is . Hence the joint gain is , equal to learning weather first and then adding zero. The total is order-independent when all observations precede the action, with each later gain evaluated using the earlier information.
An information-gathering agent may repeatedly choose the observation with the greatest positive VPI minus cost, then act when none remains worthwhile. This myopic strategy evaluates one observation at a time. Two observations can be useful together even when neither alone changes the best action, so greedy selection can miss a valuable pair.
Key Takeaways
- Average the best action for each observation, then subtract the current MEU.
- VPI is measured before the observation is known.
- Free information has nonnegative expected value because it can be ignored.
- A specific result can lower the posterior MEU.
- Several observations can share information, so their separate VPIs need not add.
- Compare information cost on the same utility scale as its benefit.
Bayesian Networks examples
1From a joint table to an updated belief
14 steps
- 1IntroductionStart with possible worlds
An agent can be uncertain about several things at once. Begin with a joint table that assigns probability to every combination, then ask how an observation changes the relative probabilities.
The route is: describe worlds, keep the observed ones, normalize, and look for independence that simplifies the next calculation.
- 2ExplanationGive each combination one probability
Weather has values sun, cloud and rain; Bus has values on time and late. Together they give six worlds. Their joint probabilities are 0.40 and 0.10 for sun, 0.18 and 0.12 for cloud, and 0.08 and 0.12 for rain, in on-time/late order.
All six entries sum to 1. A row need not sum to 1 because it covers only one weather value.
- 3ExampleAdd the worlds an event includes
To find rain's probability, add both bus possibilities: . To find lateness, add across all three weather values: .
This is marginalization. The variable being removed ranges over all its values; the retained variable keeps a separate total for each value.
- 4ChallengeFind a union without double counting
Using rain probability 0.20, lateness probability 0.34 and their joint probability 0.12, find the probability of rain or lateness.
---reveal---
The rainy, late world appears in both marginals. Subtracting its probability once leaves each world in the union counted exactly once.
- 5ExplanationKeep only the observed column
The bus is late. The surviving weather totals are now 0.10 for sun, 0.12 for cloud and 0.12 for rain. They sum to 0.34, the probability of lateness.
Divide each by 0.34 to obtain . The new probabilities describe shares within the observed population, so they sum to 1.
- 6ChallengeReverse the conditional question
The rainy, late joint probability is 0.12, and the rain marginal is 0.20. What is ? Why is its denominator different from the preceding rain-given-late calculation?
---reveal---
Rain is now the evidence, so the comparison population is all rainy worlds. Rain given late instead divides by the late marginal 0.34.
- 7ConnectionTurn conditioning into a product
Rearranging conditional probability gives . Repeating that identity yields the chain rule, with each variable conditioned on the earlier variables.
For a hidden-variable query, use the same joint probabilities: select evidence-compatible worlds, add over hidden values and normalize. Independence is not needed to justify either the product rule or enumeration.
- 8ExampleWeight a positive result by its prior
An illness has prior probability 0.01. A test is positive with probability 0.9 under illness and 0.05 otherwise.
The ill-and-positive score is . The healthy-and-positive score is . These two routes account for all positives; their sum is 0.0585.
- 9ExampleNormalize the competing explanations
Bayes' rule divides the ill-and-positive score by all positives:
In 10,000 people, 90 ill people and 495 healthy people test positive. Only 90 of the 585 positive results belong to ill people. The low base rate matters because the healthy group is much larger.
- 10ChallengeInterpret a second positive
A second test is conditionally independent of the first given illness status and has the same likelihoods. How should its positive result update the first posterior?
---reveal---
Use the first posterior as the next prior. Equivalently, the two scores are and . Normalizing gives about 0.766. Reusing the original prior for only the second result would discard the first observation.
- 11ExplanationHold the class fixed before multiplying
In the flu model, cough probability is 0.7 with flu and 0.2 without flu, whether or not fever is present. Fever and cough are conditionally independent given flu status.
Without fixing flu, fever changes the cough probability because it changes belief about flu. Naive Bayes uses this class-conditioned independence to multiply feature likelihoods, not their unconditional marginals.
- 12ExampleScore both classes
For spam, the prior is 0.3. The word "offer" has likelihood 0.4 in spam and 0.05 in ham; "winner" has likelihood 0.2 and 0.01.
With both words present, scores are and . Divide the spam score by their sum to obtain about 0.986. A class score alone is not yet a posterior.
- 13ChallengeUpdate when a feature is absent
Keep the same spam model, but the email contains "offer" and not "winner." Find the spam posterior.
---reveal---
Use complementary winner likelihoods. Spam scores ; ham scores . Normalize to get . The absent word is evidence, so dropping its factor would answer a different question.
- 14RecapChoose the right probability operation
A joint table describes complete worlds. Marginalization removes a variable by adding; conditioning fixes an observation and normalizes. Bayes' rule reverses a conditional by including both likelihood and prior.
Independence shortens a calculation only under the condition where it holds. Keep those conditions attached when multiplying evidence likelihoods.
2Read a network and trace its paths
12 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionConnect tables to graph structure
- 2ExplanationRead the commute arrows
- 3ExampleSelect one entry at every node
- 4ChallengeCount the model's free probabilities
- 5ExplanationFind the variables that screen off Rain
- 6ChallengeApply independent causal failures
- 7Key InsightAn omitted parent makes a claim
- 8ExplanationSeparate non-colliders from colliders
- 9ExampleWatch an effect connect its causes
- 10ChallengeObserve a collider's descendant
- 11ChallengeBlock a different part of the same path
- 12RecapUse the graph for two different tasks
3Compute one posterior in two exact ways
11 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionKeep the answer fixed while changing the arithmetic
- 2ExplanationIdentify what is hidden
- 3ExampleSum hidden alternatives under rain
- 4ChallengeFinish the conditional distribution
- 5ExplanationRestrict factors to the evidence
- 6ExampleEliminate Accident first
- 7ExampleEliminate Traffic and retain Rain
- 8ChallengeCollect all factors before a sum
- 9Key InsightMeasure the largest joined scope
- 10ChallengeAdd an observed leaf back into the calculation
- 11RecapKeep the probability roles visible
4Compare four ways to sample
14 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionDecide what counts as a sample
- 2ExplanationSample using the current parent row
- 3ExampleComplete one joint draw
- 4ChallengeUse the survivors as the denominator
- 5TipMeasure useful draws, not only total draws
- 6ExplanationFix observed values and accumulate their likelihood
- 7ExampleCompare the influence of two samples
- 8ChallengeDiagnose a concentrated-weight run
- 9ExplanationUpdate one variable while keeping the rest
- 10ExampleCompute Rain's two local scores
- 11ChallengePass the new state into the next update
- 12Key InsightA long chain must also move
- 13ChallengeChoose an estimator for each log
- 14RecapMatch generation to estimation
5From uncertain outcomes to the value of a forecast
15 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionSeparate belief from preference
- 2ExplanationAverage outcome utilities
- 3ExampleCheck the utility scale before choosing
- 4ChallengeRescale without changing the choice
- 5ExplanationSet up the event decision
- 6ExampleChoose before receiving a forecast
- 7ExampleUpdate after a wet forecast
- 8ChallengeComplete the observation-dependent policy
- 9ExplanationAverage decisions made with information
- 10ChallengeSubtract what the agent already has
- 11Key InsightAn unwelcome result can still be worth learning
- 12ExampleCompare a forecast with knowing the weather
- 13ChallengeValue a second observation conditionally
- 14ConnectionKnow when greedy observation choice can fail
- 15RecapEvaluate the policy before paying for information
Bayesian Networks practice questions
Set 1: Represent dependencies and test paths10 Practice Questions
Question 1 of 10
Show answerHide answer
Question 2 of 10
Show answerHide answer
Question 3 of 10
Show answerHide answer
Question 4 of 10
Show answerHide answer
Question 5 of 10
Show answerHide answer
Question 6 of 10
Show answerHide answer
Question 7 of 10
Show answerHide answer
Question 8 of 10
Show answerHide answer
Question 9 of 10
Show answerHide answer
Question 10 of 10
Show answerHide answer
Set 2: Read evidence and update beliefs10 Practice Questions
Save this lesson to see every answer and practice every set.
Question 1 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
Show answerHide answer
Save this lesson to see this answer.
Set 3: Calculate posteriors with factors10 Practice Questions
Save this lesson to see every answer and practice every set.
Question 1 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
Show answerHide answer
Save this lesson to see this answer.
Set 4: Estimate probabilities from useful samples10 Practice Questions
Save this lesson to see every answer and practice every set.
Question 1 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
Show answerHide answer
Save this lesson to see this answer.
Set 5: Choose actions and value information10 Practice Questions
Save this lesson to see every answer and practice every set.
Question 1 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
Show answerHide answer
Save this lesson to see this answer.
Set 6: Connect inference, sampling and decisions10 Practice Questions
Save this lesson to see every answer and practice every set.
Question 1 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
Show answerHide answer
Save this lesson to see this answer.
Stuck on your own question? Homework Help
Key Terms
A
Acceptance rate
Active path
Ancestor pruning
B
Base-rate neglect
Bayes' rule
Bayesian network
Burn-in
C
Certainty equivalent
Chain rule
Collider
Common cause
Conditional independence
Conditional probability
Conditional probability table
Consistent estimator
D
d-separation
Decision network
Decision node
Decision threshold
Deterministic node
Directed acyclic graph
Domain
E
Elimination order
Event
Evidence
Expected utility
Explaining away
F
Factor
Factor join
G
Gibbs sampling
H
Hidden variable
I
Independence
Inference by enumeration
J
Joint distribution
L
Leak cause
Likelihood
Likelihood weighting
Local Markov property
Lottery
M
Marginalization
Markov blanket
Maximum expected utility
MCMC
Mixing
Mutual exclusivity
Myopic information gathering
N
Naive Bayes model
Noisy-OR
Nonadditivity of VPI
Nonnegativity of VPI
Normalization
P
Parent
Policy
Polytree
Posterior probability
Prior probability
Prior sampling
Product rule
Q
Query variable
R
Random variable
Rejection sampling
Risk aversion
Risk premium
S
Sample space
Sample weight
Summing out
T
Topological order
U
Utility function
Utility node
V
Value of perfect information
Variable elimination
W
Weight concentration
Weighted estimate
About this lesson
Make your own Study Materials
Turn your notes, slides and documents into Study Guides, Practice Questions, Flashcards and 6 more tools.