SLIDE 1
1
§7 Modelling Uncertainty §7 Modelling Uncertainty
- probabilistic uncertainty
probabilistic uncertainty
- probability of an outcome
probability of an outcome
- dice, shuffled cards
dice, shuffled cards
- statistical reasoning
statistical reasoning
- Bayesian networks, Dempster
Bayesian networks, Dempster-
- Shafer theory
Shafer theory
- possibilistic uncertainty
possibilistic uncertainty
- possibility of classifying object
possibility of classifying object
- sorites
sorites paradoxes paradoxes
- fuzzy sets
fuzzy sets
Bayes’ theorem Bayes’ theorem
- hypothesis
hypothesis H H
- evidence
evidence E E
- probability of the hypothesis
probability of the hypothesis P P( (H H) )
- probability of the evidence
probability of the evidence P P( (E E) )
- probability of the hypothesis based on the
probability of the hypothesis based on the evidence evidence P P( (H H| |E E) = ( ) = (P P( (E E| |H H) ) · · P P( (H H)) / )) / P P( (E E) )
Example Example
- H
H — — there is a bug in the code there is a bug in the code
- E
E — — a bug is detected in the test a bug is detected in the test
- E
E| |H H — — a bug is detected in the test given that a bug is detected in the test given that there is a bug in the code there is a bug in the code
- H
H| |E E — — there is a bug in the code given that a there is a bug in the code given that a bug is detected in the test bug is detected in the test
Example (cont’d) Example (cont’d)
- P
P( (H H) = 0.10 ) = 0.10
- P
P( (E E| |H H) = 0.90 ) = 0.90
- P
P( (E E| |¬ ¬H H) = 0.10 ) = 0.10
- P
P( (E E) = ) = P P( (E E| |H H) ) · · P P( (H H) + ) + P P( (E E|¬ |¬H H) · ) · P P(¬ (¬H H) ) = 0.18 = 0.18
- from Bayes’ theorem:
from Bayes’ theorem: P P( (H H| |E E) = 0.5 ) = 0.5
- conclusion: a detected bug has fifty
conclusion: a detected bug has fifty-
- fifty chance
fifty chance that it is not in the actual code that it is not in the actual code
Bayesian networks Bayesian networks
- describe cause
describe cause-
- and
and-
- effect relationships with a
effect relationships with a directed graph directed graph
- vertices = propositions or variables
vertices = propositions or variables
- edges = dependencies as probabilities
edges = dependencies as probabilities
- propagation of the probabilities
propagation of the probabilities
- problems:
problems:
- relationships between the evidence and hypotheses
relationships between the evidence and hypotheses are known are known
- establishing and updating the probabilities
establishing and updating the probabilities
Dempster Dempster-
- Shafer theory
Shafer theory
- belief about a proposition as an interval
belief about a proposition as an interval [ belief, plausability ] [ belief, plausability ] ⊆ ⊆ [ 0, 1] [ 0, 1]
- belief supporting
belief supporting A A: Bel( : Bel(A A) )
- plausability of
plausability of A A: Pl( : Pl(A A) = 1 ) = 1 − − Bel( Bel(¬ ¬A A) )
- Bel(intruder) = 0.3, Pl(intruder) = 0.8
Bel(intruder) = 0.3, Pl(intruder) = 0.8
- Bel(no intruder) = 0.2
Bel(no intruder) = 0.2
- 0.5 of the probability range