Week11 Uncertainty Expert Systems
Week11 Uncertainty Expert Systems
¬TRUE = FALSE.
Sources of Uncertain Knowledge
• Weak implications:
1. Probabilistic Reasoning
3. Bayesian Reasoning
4. Certainty Factors
Basics of probability theory
When examining uncertainty, we adopt probability as a
model to predict future events.
and is commutative
This allows us to derive the famous Bayesian Rule.
p E1 H i p E 3 H i p H i , i = 1, 2,
p H i E1E3 3
3
p E1 H k p E3 H k p H k
p E1 H i p E 2 H i p E 3 H i p H i
p H i E1 E2 E3 3 , i = 1, 2,
3
p E1 H k p E2 H k p E3 H k
p H k k1
p H 1 E 1 E 2 E 3 0.3 0.9 0.6 0.40
0.3 0.9 0.6 0.40+ 0.8
0.450.0 0.7 0.35+ 0.5 0.7 0.9
0.25
p H 2 E1E2E3 0.8 0.0 0.7 0.35
0 0.0 0.7 0.35+ 0 . 5 0 . 7 0.9
0.3 0.9 0.6 0.40 + 0.8
0.25
p H 3 E1E2E3 0.5 0.7 0.9 0.25
0.3 0.9 0.6 0.40+ 0.80.55
0.0 0.7 0.35+ 0.5 0.7 0.9 0.25
IF <evidence>
THEN <hypothesis> {cf}
hypothesis:
MB H,E MD H,E
cf =
Example 1:
Consider a simple rule:
IF A is X
THEN B is Y
cf (H,E) = cf (E) x cf
IF sky is clear
THEN the forecast is sunny {cf 0.8}
and the current certainty factor of sky is clear is 0.5, then
cf (H,E) = 0.5 * 0.8 = 0.4
This result can be interpreted as “Forecast may be sunny”.
CLIPS Example of establishing net
certainity
(defrule rule-with-CFs
"this is a rule with a cf associated with it"
(declare (CF 0.8)) ; rule has a CF of 0.8
(person-age ?name ?age&:(> ?age 50))
=>
(assert (person-weightClass ?name over-weight)) )
CLIPS Example of CF (contd..)
The certainty factor for the rule says that we have only
80% confidence that this rule is correct.