Probability Theory: Uncertainty Measure: Lecture Module 23
Probability Theory: Uncertainty Measure: Lecture Module 23
Probability Theory: Uncertainty Measure: Lecture Module 23
Uncertainty Measure
Lecture Module 23
Uncertainty
● Most intelligent systems have some degree of
uncertainty associated with them.
● Uncertainty may occur in KBS because of the
problems with the data.
− Data might be missing or unavailable.
− Data might be present but unreliable or ambiguous due to
measurement errors, multiple conflicting measurements etc.
− The representation of the data may be imprecise or
inconsistent.
− Data may just be expert's best guess.
− Data may be based on defaults and the defaults may have
exceptions.
Cont…
● Given numerous sources of errors, the most KBS
requires the incorporation of some form of uncertainty
management.
● For any form of uncertainty scheme, we must be
concerned with three issues.
− How to represent uncertain data?
− How to combine two or more pieces of uncertain data?
− How to draw inference using uncertain data?
● Probability is the oldest theory with strong
mathematical basis.
● Other methods for handling uncertainty are Bayesian
belief network, Certainty factor theory etc.
Probability Theory
● Probability is a way of turning opinion or expectation into
numbers.
● It lies between 0 to 1 that reflects the likelihood of an
event.
● The chance that a particular event will occur = the
number of ways the event can occur divided by the total
number of all possible events.
Example: The probability of throwing two successive
heads with a fair coin is 0.25
− Total of four possible outcomes are :
HH, HT, TH & TT
− Since there is only one way of getting HH,
probability = ¼ = 0.25
Event
Event: Every non-empty subset A (of sample space S) is
called an event.
− null set Φ is an impossible event.
− S is a sure event
● P(A) is notation for the probability of an event A.
● P(Φ) = 0 and P(S) = 1
● The probabilities of all events S = {A1, A2, …, An}
must sum up to certainty i.e. P(A1) + … + P(An) = 1
● Since the events are the set, it is clear that all set
operations can be performed on the events.
● If A and B are events, then
− A ∩ B ; A∪ B and A' are also events.
− A - B is an event "A but not B
− Events A and B are mutually exclusive, if A ∩ B=Φ
Axioms of Probability
● Let S be a sample space, A and B are events.
− P(A) ≥ 0
− P(S) = 1
− P(A’ ) = 1 - P(A)
− P(A ∪ B ) = P(A) + P(B) – P(A ∩ B)
− If events A and B are mutually exclusive, then
P(A ∪ B ) = P(A) + P(B),
● In general, for mutually exclusive events A1,…,An in S
P(A1 ∪ A2 ∪… ∪ An ) = P(A1) + P(A2) + …+ P(An)
Joint Probability
● Joint Probability of the occurrence of two independent events is
written as P(A and B) and is defined by
P(A and B) = P(A ∩ B) = P(A) * P(B)
Example: We toss two fair coins separately.
Let P(A) = 0.5 , Probability of getting Head of first coin
P(B) = 0.5, Probability of getting Head of second coin
● Probability (Joint probability) of getting Heads on both the coins is
= P(A and B)
= P(A) * P(B) = 0.5 X 0.5 = 0.25
● The probability of getting Heads on one or on both of the coins i.e.
the union of the probabilities P(A) and P(B) is expressed as
P(A or B) = P(A ∪ B) = P(A) + P(B) - P(A) * P(B)
= 0.5 + 0.5 - 0.25
= 0.75
Conditional Probability
● It relates the probability of one event to the occurrence
of another i.e. probability of the occurrence of an
event H given that an event E is known to have
occurred.
● Probability of an event H (Hypothesis), given the
occurrence of an event E (evidence) is denoted by
P(H | E) and is defined as follows:
P(H and E)
=
P(E)
Example
● What is the probability of a person to be male if
person chosen at random is 80 years old?
● The following probabilities are given
− Any person chosen at random being male is about 0.50
− probability of a given person be 80 years old chosen at
random is equal to 0.005
− probability that a given person chosen at random is both
male and 80 years old may be =0.002
● The probability that an 80 years old person chosen at
random is male is calculated as follows:
P(X is male | Age of X is 80)
= [P(X is male and the age of X is 80)] / [P(Age of X is 80)]
= 0.002 / 0.005 = 0.4
Conditional Probability with Multiple
Evidences
Knobs adjustment
Knobs might be adjusted wrong on television
because of the following reasons (by no mean
exhaustive)
If television is old and require frequent adjustment.
Unusual usage (i.e., any thing strange has happened lately
that required adjustment of the knobs).
If children use your set and they play with the knobs.
Diagnosis of Malfunctioning Equipment using
Probability
● Let us develop rule based system for diagnosis of
malfunctioning of landline telephone using
probabilities.
● Identify situations when telephone is not working
properly.
● Broadly imagine one of the following things may be
the reasons
− Faulty Instrument
− Problem with exchange
− Broken cable
● Must note that these rules are to be carefully
designed in consultation with domain expert.
Few Rules from expert for Instrument
● Rule1: If instrument is old and has been repaired in
the past many times then it is 40% sure that fault lies
with the instrument.
telephone_not_working(0.4) :- ask(tele_history).
exchange_probability(0.99) :- ask(exchange_problem).
exchange_probability (0.5) :- ask(connecting_switch_problem).
overall_exchage_probability(P):-
findall(X, exchange_probabilty(X), L),
or_combination(L, P).
cable_broken_probabilty (0.98):-
ask(cable_old), ask(if_storm_recently).
cable_broken_probability (0.3):-
ask(recent_furniture_rearranging).
overall_cable_probabilty(P):-
findall(X, cable_broken_probability(X), L),
or_combination(L, P).
Rules for Diagnosis
● Rule1: Cable faulty is 80% sure :
diagnosis( 'Cable_problem', P):-
overall_cable_probabilty(P1),
and_comb([P1, 0.8], P).