Probabilistic Reasoning
Updating Beliefs in Probabilistic Agent Reasoning
Probabilistic Agent Reasoning lets an agent represent uncertainty about its environment and revise that uncertainty when evidence arrives. A monitoring agent, for example, may receive an alert without directly observing whether equipment has failed. Its task is to compute how strongly the available evidence supports each possible state. Here, you work with a supplied probability model; estimating that model, making causal claims and choosing actions are separate tasks.
Represent uncertainty over possible states
A prior probability expresses the agent's belief about a state before incorporating the evidence currently under consideration. Suppose H means that a component is faulty and ¬H means that it is not. These two states are mutually exclusive and exhaustive, so
An observation e has a likelihood P(e∣H) under the faulty state. This is different from the probability of a fault after observing the evidence. The vertical bar means given: its right-hand side identifies the information being assumed.
Keep a belief separate from a claim of certainty. A probability of 0.8 assigns more support to a state than to its alternative, but it still leaves probability 0.2 for that alternative.
Condition on evidence and normalize
A posterior probability is the updated probability of a state after incorporating specified evidence. Bayes' rule connects it to the prior and likelihood:
For possible states h1,…,hk, compute the evidence probability by adding their contributions:
Each product is an unnormalized weight. Dividing every weight by their sum makes the updated probabilities add to one. This calculation requires positive probability for the observed evidence; conditioning on an event assigned probability zero is not defined by this finite-event formula.
Example: Suppose a hypothetical agent assigns probability 0.25 to a fault. An alert has probability 0.80 under a fault and 0.40 otherwise. The weights are (0.25)(0.80)=0.20 and (0.75)(0.40)=0.30. Their sum is 0.50, so the updated fault probability is 0.20/0.50=0.40. The alert increases belief in a fault without making a fault certain.
Combine evidence using the stated model
With observations e1 and e2, the general update uses their joint likelihood:
The symbol ∝ means proportional to: normalize the resulting weights to obtain probabilities. Under conditional independence, the joint likelihood factors as
Check this assumption within every state used in the update, including ¬H in a binary model. Different devices or programs do not automatically provide independent evidence.
Evidence relationship | Appropriate likelihood calculation |
|---|---|
Independent conditional on each possible state | Multiply the two conditional likelihoods within each state. |
Dependent within a possible state | Use the supplied joint likelihood or an appropriate conditional factorization. |
An exact copy of the same report | Count the original observation once; its copy supplies no additional information. |
An unobserved state can also be removed from a joint calculation by summing over its possible values. This operation, called marginalization, gives P(a,b)=∑hP(a,b,h). Multiply factors to describe one complete possibility; add contributions from mutually exclusive possibilities.
What to remember
- Keep the probability of evidence given a state separate from the probability of that state given evidence.
- Multiply each prior by the appropriate likelihood, then normalize across all possible states.
- Multiply evidence likelihoods only when the model justifies their factorization.
- Sum over unobserved states when the required probability does not specify them.
Example: Interpreting equipment alerts
A monitoring agent assigns probability 0.06 to a cooling-unit fault before reading two sensors. Let F denote a fault, T a temperature alert and V a vibration alert. The alerts are independent conditional on each possible fault state. The model supplies these probabilities:
State | Temperature alert probability | Vibration alert probability |
|---|---|---|
Fault | P(T∣F)=0.85 | P(V∣F)=0.70 |
No fault | P(T∣¬F)=0.10 | P(V∣¬F)=0.20 |
An unnormalized weight is the probability of a candidate state together with the observed evidence, before division by the total evidence probability.
a) Find the probability that the temperature alert occurs. Report the result as a percentage to one decimal place.
First, calculate the no-fault prior:
The fault contribution to the temperature-alert probability is ________, since
The no-fault contribution is ________, since
These contributions describe mutually exclusive states, so add them:
The temperature alert occurs with probability 14.5%. Include both genuine-fault and no-fault contributions whenever you calculate the total probability of evidence.
b) Given the temperature alert alone, find the fault probability as a percentage to one decimal place.
Use the fault-and-alert weight as the numerator and the total alert probability from part a as the denominator:
Convert to a percentage:
The updated fault probability is 35.2%. This is higher than the initial 6%, because a temperature alert is more likely under a fault. It is lower than the 85% fault-state alert rate because that rate answers a different conditional question.
c) Given both alerts, find the fault probability as a percentage to one decimal place. Compare it with part b.
Conditional independence applies within both states, so calculate the joint likelihoods by multiplication. The probability of both alerts given a fault is ________, and the probability given no fault is ________:
Multiply by the original state probabilities. The fault weight is ________ and the no-fault weight is ________:
Add the weights and normalize:
The fault probability after both alerts is 65.5%, compared with 35.2% after the temperature alert alone. The vibration alert further favors a fault because its likelihood is larger under a fault. The combined calculation uses the original prior and each alert once.
An image classifier assigns exactly one label to each image. For a randomly selected image from a fixed evaluation population, let A mean that its assigned label is cat and B mean that its assigned label is dog. The probabilities are P(A)=0.35 and P(B)=0.20.
Complete the probability check using exact decimal values. The product P(A)P(B) is , whereas P(A∣B) is . Classify the relationship between A and B as independent or dependent: .
A network-monitoring agent assigns probability 0.03 to a compromised session before examining an alert. The alert occurs with probability 0.92 for a compromised session and probability 0.08 for an uncompromised session. Given that the alert occurs, calculate the probability that the session is compromised. Report your answer as a percentage to two decimal places.