Docsity

Notes on Uncertainty, Probability, Syntax and Semantics | CSCI 561, Study notes of Computer Science

Partial preview of the text

Download Notes on Uncertainty, Probability, Syntax and Semantics | CSCI 561 and more Study notes Computer Science in PDF only on Docsity!

Uncertainty

Introduction to Artificial Intelligence

CSCI561aHadi MoradiAIMA Chapter 13

(some slides are from Prof. A. Moore from CMU and Min-Yen Kan and may be updated)

Outline ‡^

Uncertainty ‡^

Probability ‡^

Syntax and Semantics ‡^

Inference ‡^

Independence and Bayes' Rule

Methods for handling uncertainty ‡^

Default or nonmonotonic logic:^ „^

Assume my car does not have a flat tire „ Assume

A^25

works unless contradicted by evidence

‡^

Issues: What assumptions are reasonable? How to handle contradiction? ‡^

Rules with fudge factors:^ „

A^25

|→0.

get there on time

„^ Sprinkler |

→^ 0.

WetGrass

„^ WetGrass |

→^ 0.

Rain

‡^

Issues: Problems with combination, e.g.,

Sprinkler causes

Rain??

‡^

Probability^ „^

Model agent's degree of belief „ Given the available evidence, „ A^25

will get me there on time with probability 0.

ProbabilityProbabilistic assertions summarize effects of

„^ laziness: failure to enumerate exceptions, qualifications, etc. „^ ignorance: lack of relevant facts, initial conditions, etc. Subjective probability: ‡^

Probabilities relate propositions to agent's own state of knowledge

e.g., P(A

| no reported accidents) = 0.06 25

Probabilities of propositions change with new evidence:

e.g., P(A

| no reported accidents, 5 a.m.) = 0.15 25

Probabilistic RoboticsKey idea:Explicit representation of uncertainty using the calculus of probability theory

„^

Perception

= state estimation

„^

Action

= utility optimization

Another Example: State Estimation^ ‡

Suppose a robot obtains measurement

z

‡^

What is

P(open|z)?

Syntax ‡^

Atomic event: A complete specification of the state ofthe world about which the agent is uncertainE.g., if the world consists of only two Boolean variables

Cavity and

Toothache, then there are 4 distinct atomic events:Cavity = false

∧^ Toothache = false

Cavity = false

∧^ Toothache = true

Cavity = true

∧^ Toothache = false

Cavity = true

∧^ Toothache = true

‡^

Atomic events are mutually exclusive and exhaustive

Probabilities ‡^

We write P(A) as “the fraction of possible worldsin which A is true” Event space ofall possibleworlds Its area is 1

Worlds in which A is False

Worlds in whichA is true

P(A) = Area ofreddish oval

Interpreting the axioms ‡^

0 <= P(A) <= 1 ‡^

P(True) = 1 ‡^

P(False) = 0

The area of A can’t getany bigger than 1And an area of 1 wouldmean all worlds will haveA true

Interpreting the axioms ‡^

0 <= P(A) <= 1 ‡^

P(A or B) = P(A) + P(B) - P(A and B)

A

B

Theorems from the Axioms ‡^

0 <= P(A) <= 1, P(True) = 1, P(False) = 0 ‡^

P(A or B) = P(A) + P(B) - P(A and B)

From these we can prove:P(not A) = P(~A) = 1-P(A) ‡^

How?

Another important theorem ‡^

0 <= P(A) <= 1, P(True) = 1, P(False) = 0 ‡^

P(A or B) = P(A) + P(B) - P(A and B)

From these we can prove:P(A) = P(A ^ B) + P(A ^ ~B) ‡^

How?

An easy fact about MultivaluedRandom Variables: ‡^

Using the axioms of probability…

0 <= P(A) <= 1, P(True) = 1, P(False) = 0P(A or B) = P(A) + P(B) - P(A and B)

‡^

And assuming that A obeys…

-^

It’s easy to prove that

j i v A v A

P^

j

i^

=^

if 0 )

(^

2

1

=^

vk A v A v A P

(^

1

2

1

∑=

i j

j

i^

v A P v A v A v A P

An easy fact about MultivaluedRandom Variables: ‡^

Using the axioms of probability…

0 <= P(A) <= 1, P(True) = 1, P(False) = 0P(A or B) = P(A) + P(B) - P(A and B)

‡^

And assuming that A obeys…

-^

It’s easy to prove that

j i v A v A

P^

j

i^

=^

if 0 )

(^

2

1

=^

vk A v A v A P

(^

1

2

1

∑=

i j

j

i^

v A P v A v A v A P

-^

And thus we can prove

1

k ∑= j

vj A P