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 HH means that a component is faulty and ¬H\neg H means that it is not. These two states are mutually exclusive and exhaustive, so


P(H)+P(¬H)=1.P(H)+P(\neg H)=1.


An observation ee has a likelihood P(e∣H)P(e\mid 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.80.8 assigns more support to a state than to its alternative, but it still leaves probability 0.20.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:


P(H∣e)=P(e∣H)P(H)P(e).P(H\mid e)=\frac{P(e\mid H)P(H)}{P(e)}.


For possible states h1,…,hkh_1,\ldots,h_k, compute the evidence probability by adding their contributions:


P(e)=∑i=1kP(e∣hi)P(hi).P(e)=\sum_{i=1}^{k}P(e\mid h_i)P(h_i).


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.


Three boxes show how initial beliefs and evidence likelihoods produce normalized beliefs.


Example: Suppose a hypothetical agent assigns probability 0.250.25 to a fault. An alert has probability 0.800.80 under a fault and 0.400.40 otherwise. The weights are (0.25)(0.80)=0.20(0.25)(0.80)=0.20 and (0.75)(0.40)=0.30(0.75)(0.40)=0.30. Their sum is 0.500.50, so the updated fault probability is 0.20/0.50=0.400.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 e1e_1 and e2e_2, the general update uses their joint likelihood:


P(H∣e1,e2)∝P(e1,e2∣H)P(H).P(H\mid e_1,e_2)\propto P(e_1,e_2\mid H)P(H).


The symbol ∝\propto means proportional to: normalize the resulting weights to obtain probabilities. Under conditional independence, the joint likelihood factors as


P(e1,e2∣H)=P(e1∣H)P(e2∣H).P(e_1,e_2\mid H)=P(e_1\mid H)P(e_2\mid H).


Check this assumption within every state used in the update, including ¬H\neg 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)P(a,b)=\sum_h P(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.060.06 to a cooling-unit fault before reading two sensors. Let FF denote a fault, TT a temperature alert and VV 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.85P(T\mid F)=0.85

P(V∣F)=0.70P(V\mid F)=0.70

No fault

P(T∣¬F)=0.10P(T\mid\neg F)=0.10

P(V∣¬F)=0.20P(V\mid\neg 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:


P(¬F)=1−0.06=0.94.P(\neg F)=1-0.06=0.94.


The fault contribution to the temperature-alert probability is ________, since


P(F,T)=P(F)P(T∣F)=(0.06)(0.85)=0.051.P(F,T)=P(F)P(T\mid F)=(0.06)(0.85)=0.051.


The no-fault contribution is ________, since


P(¬F,T)=P(¬F)P(T∣¬F)=(0.94)(0.10)=0.094.P(\neg F,T)=P(\neg F)P(T\mid\neg F)=(0.94)(0.10)=0.094.


These contributions describe mutually exclusive states, so add them:


P(T)=0.051+0.094=0.145.P(T)=0.051+0.094=0.145.


The temperature alert occurs with probability 14.5%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:


P(F∣T)=P(F,T)P(T)=0.0510.145=0.351724….P(F\mid T)=\frac{P(F,T)}{P(T)} =\frac{0.051}{0.145}=0.351724\ldots.


Convert to a percentage:


100(0.351724…)%=35.2%.100(0.351724\ldots)\%=35.2\%.


The updated fault probability is 35.2%35.2\%. This is higher than the initial 6%6\%, because a temperature alert is more likely under a fault. It is lower than the 85%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 ________:


P(T,V∣F)=(0.85)(0.70)=0.595,P(T,V\mid F)=(0.85)(0.70)=0.595,


P(T,V∣¬F)=(0.10)(0.20)=0.020.P(T,V\mid\neg F)=(0.10)(0.20)=0.020.


Multiply by the original state probabilities. The fault weight is ________ and the no-fault weight is ________:


P(F,T,V)=(0.06)(0.595)=0.0357,P(F,T,V)=(0.06)(0.595)=0.0357,


P(¬F,T,V)=(0.94)(0.020)=0.0188.P(\neg F,T,V)=(0.94)(0.020)=0.0188.


Add the weights and normalize:


P(T,V)=0.0357+0.0188=0.0545,P(T,V)=0.0357+0.0188=0.0545,


P(F∣T,V)=0.03570.0545=0.655045….P(F\mid T,V)=\frac{0.0357}{0.0545}=0.655045\ldots.


The fault probability after both alerts is 65.5%65.5\%, compared with 35.2%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.

A server-monitoring agent assigns probability 0.300.30 to a fault. A status message appears with probability 0.600.60 when a fault exists and probability 0.600.60 when no fault exists. After observing the message, what probability should the agent assign to a fault?

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

An image classifier assigns exactly one label to each image. For a randomly selected image from a fixed evaluation population, let AA mean that its assigned label is cat and BB mean that its assigned label is dog. The probabilities are P(A)=0.35P(A)=0.35 and P(B)=0.20P(B)=0.20.


Complete the probability check using exact decimal values. The product P(A)P(B)P(A)P(B) is , whereas P(A∣B)P(A\mid B) is . Classify the relationship between AA and BB as independent or dependent: .

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

A network-monitoring agent assigns probability 0.030.03 to a compromised session before examining an alert. The alert occurs with probability 0.920.92 for a compromised session and probability 0.080.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.

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

Extra Practice