Artificial Intelligence
Artificial Intelligence
Artificial Intelligence
Knowledge Belief -
6
1. Enforcement of logical relations
AI problem -> search.
Search utilizes assumptions.
Assumptions change.
Changing assumptions -> updating
consequences of beliefs.
TMS: mechanism to maintain and update
relations among beliefs.
1. Enforcement of logical relations
Example: If (cs-501) and (math-218) then (cs-570).
If (cs-570) and (CIT) then (TMS).
If (TMS) then (AI-experience).
The following are relations among beliefs:
(AI-experience) if (TMS).
(TMS) if (cs-570), (CIT).
(cs-570) if (cs-501), (math-218)
A D
C E
A1 or A2 or A3 not (A1 and B1) not (A3 and C3) not (D2 and E2)
B1 or B2 or B3 not (A2 and B2) not (B1 and D1) not (D3 and E3)
C1 or C2 or C2 not (A3 and B3) not (B2 and D2) not (C1 and E1)
D1 or D2 or D3 not (A1 and C1) not (B3 and D3) not (C2 and E2)
E1 or E2 or E2 not (A2 and C2) not (D1 and E1) not (C3 and E3)
3. Finding solutions to search problems
To find a solution we can use search:
16
Example
B P(B) E P(E) A Bayesian network is made
false 0.999 false 0.998 up of two parts:
true 0.001 true 0.002 1. A directed acyclic graph
2. A set of parameters
Burglary Earthquake
B E A P(A|B,E)
Alarm
false false false 0.999
false false true 0.001
false true false 0.71
false true true 0.29
true false false 0.06
true false true 0.94
true true false 0.05
true true true 0.95
A Directed Acyclic Graph
Burglary Earthquake
Alarm
18
A Directed Acyclic Graph
Burglary Earthquake
Alarm
19
A Set of Parameters
B P(B) E P(E) Burglary Earthquake
false 0.999 false 0.998
true 0.001 true 0.002
Alarm
B E A P(A|B,E)
false false false 0.999
false false true 0.001 Each node Xi has a conditional
false true false 0.71 probability distribution P(Xi |
false true true 0.29 Parents(Xi)) that quantifies the
true false false 0.06 effect of the parents on the node
true false true 0.94 The parameters are the
true true false 0.05 probabilities in these conditional
true true true 0.95 probability distributions
Because we have discrete random
variables, we have conditional
probability tables (CPTs)
20
A Set of Parameters
Conditional Probability Stores the probability
Distribution for Alarm
distribution for Alarm
given the values of
B E A P(A|B,E)
Burglary and Earthquake
false false false 0.999
For a given combination of
false false true 0.001
values of the parents (B and
false true false 0.71
E in this example), the
false true true 0.29 entries for P(A=true|B,E) and
true false false 0.06 P(A=false|B,E) must add up
true false true 0.94 to 1 eg.
true true false 0.05 P(A=true|B=false,E=false) +
true true true 0.95 P(A=false|B=false,E=false)=
1
If you have a Boolean variable with k Boolean parents, how big
is the conditional probability table?
How many entries are independently specifiable?
Semantics of Bayesian Networks
Two ways to view Bayes nets:
1. A representation of a joint probability
distribution
2. An encoding of a collection of
conditional independence statements
22
Bayesian Network Example
Weather Cavity
23
Bayes’ rule and its use
P(A B) = P(A|B) *P(B)
P(A B) = P(B|A) *P(A)
hi – hypotheses (i=1,k);
e1,…,en - evidence
P(hi)
P(hi | e1,…,en)
P(e1,…,en| hi)
25
If e1,…,en are independent hypotheses
then
P(e1 , e 2 ,..., e n | h j ) = P(e1 | h j ) P(e 2 | h j ) ... P(e n | h j ), j = 1, k
Certainty factors
two probabilistic functions to model the
degree of belief and the degree of disbelief
in a hypothesis
function to measure the degree of belief -
MB
function to measure the degree of disbelief -
MD
MB[h,e] – how much the belief in h
increases based on evidence e
MD[h,e] - how much the disbelief in h
increases based on evidence e
Certainty factor