Pertemuan 9 Symbolic Reasoning Under Uncertainty

36
1 Pertemuan 9 Symbolic Reasoning Under Uncertainty Matakuliah : T0264/Inteligensia Semu Tahun : Juli 2006 Versi : 2/1

description

Pertemuan 9 Symbolic Reasoning Under Uncertainty. Matakuliah: T0264/Inteligensia Semu Tahun: Juli 2006 Versi: 2/1. Learning Outcomes. Pada akhir pertemuan ini, diharapkan mahasiswa akan mampu : > >. Outline Materi. Materi 1 Materi 2 Materi 3 Materi 4 - PowerPoint PPT Presentation

Transcript of Pertemuan 9 Symbolic Reasoning Under Uncertainty

Page 1: Pertemuan 9 Symbolic Reasoning Under Uncertainty

1

Pertemuan 9Symbolic Reasoning Under Uncertainty

Matakuliah : T0264/Inteligensia Semu

Tahun : Juli 2006

Versi : 2/1

Page 2: Pertemuan 9 Symbolic Reasoning Under Uncertainty

2

Learning Outcomes

Pada akhir pertemuan ini, diharapkan mahasiswa

akan mampu :

• << TIK-99 >>

• << TIK-99>>

Page 3: Pertemuan 9 Symbolic Reasoning Under Uncertainty

3

Outline Materi

• Materi 1

• Materi 2

• Materi 3

• Materi 4

• Materi 5

Page 4: Pertemuan 9 Symbolic Reasoning Under Uncertainty

4

7.1 Introduction to Nonmonotonic Reasoning

Penalaran monotonic knowledge bersifat : lengkap (complete), konsisten dan model tidak berubah (monotonic). Tetapi banyak permasalahan tidak dapat dimodelkan secara lengkap dan kosisten.

Oleh karena itu muncul penalaran non-monotonic dengan ciri-ciri :

• Mengandung ketidakpastian• Adanya perubahan pada pengetahuan• Adanya penambahan fakta baru dapat mengubah

konklusi yang sudah terbentuk• Misalka S adalah konlusi dari D, maka S buka konklusi

pada D + fakta baru

Page 5: Pertemuan 9 Symbolic Reasoning Under Uncertainty

5

Introduction to Nonmonotonic Reasoning

• Premis 1 : Mekanika adalah pelajaran sulit• Premis 2 : Getaran dan Gelombang adalah pelajaran sulit• Premis 3 : Listrik magnet adalah pelajaran sulit• Premis 4 : Temodinamika dan panas adalah pelajaran sulit

• Kesimpulan : Fisika adalah pelajaran sulit

• Jika ada fakta baru : • Premis 5 : Kalkulus adalah pelajaran sulit

• Sehingga Kesimpulan tidak berlaku lagi.• Jadi penambahan fakta baru mengakibatkan

ketidakkonsistenan, dan keadaan ini disebut penalaran non-monotonic.

Page 6: Pertemuan 9 Symbolic Reasoning Under Uncertainty

6

7.2 Logic for Nonmonotonic Reasoning

Models and Interpretations• An interpretation of a set of wff ’s consists of :

- A domain (D)- A function that assigns• to each predicate a relation• to each n-ary function an operator that maps

from Dn into D• to each constant an element of D

• A model of a set of wff ’s is an interpretation that satisfies them.

Page 7: Pertemuan 9 Symbolic Reasoning Under Uncertainty

7

Logic for Nonmonotonic Reasoning

The essence of nonmonotonic reasoning is :

1. Default Reasoning : to use nonmonotonic reasoning to perform what is commonly

- Nonmonotonic logic

- Default logic

- Abduction

- Inheritance

2. Minimalist reasoning : these methods are based on some variant of the idea of a minimal model.

- The closed World Assumtion

- Circumscription

Page 8: Pertemuan 9 Symbolic Reasoning Under Uncertainty

8

Logic for Nonmonotonic Reasoning

• Models, Wff’s, and Nonmonotonic Reasoning

A

B

C

B

A

C

Page 9: Pertemuan 9 Symbolic Reasoning Under Uncertainty

9

7.2.1. Default Reasoning

Nonmonotomic Logic• M is operator “first-order predicate logic”• Example 1 :

x,y : Related(x,y) M GetAlong(x,y) WillDefend(x,y)

• Example 2 :x : Republican(x) M Pacifist(x)

Pacifist(x)x : Quaker(x) M Pacifist(x) Pacifist(x)Republican(Dick)Quaker(Dick)

Page 10: Pertemuan 9 Symbolic Reasoning Under Uncertainty

10

Default Reasoning

Nonmonotomic Logic

Rules are wff ’s

A M B B

A M B B

We can derive the expression

M B B

Page 11: Pertemuan 9 Symbolic Reasoning Under Uncertainty

11

Default Reasoning

• Default Logic

From :

A : B

C

Such rule should be read as “If A is provable and it is consistent to assume B then conclude C”

Use rules to compute one or more extensions.

Page 12: Pertemuan 9 Symbolic Reasoning Under Uncertainty

12

Default Reasoning

Rules are not wff ‘s. For example, given the two rules

A : B A : B

B B

no assertion about A, no conclusion about B can be drawn, since neither inference rule applies.

Page 13: Pertemuan 9 Symbolic Reasoning Under Uncertainty

13

Default Reasoning

Abduction

Example :

Given two axioms :

x : measles(x) Spots(x)

Spots(Jill)

conclude

Measles(Jill)

Page 14: Pertemuan 9 Symbolic Reasoning Under Uncertainty

14

Default Reasoning

Definition :

Given two wff’s (A B) and (B), for any expresions A and B, if it is consistent to assume A, do so.

Page 15: Pertemuan 9 Symbolic Reasoning Under Uncertainty

15

Default Reasoning

Inheritance in Default Logic

Given :

Baseball-Player(x) : height(x,6-1)

height(x,6-1)

x,y,z : height(x,y) height(x,z) y = z

Pitcher(Three-Finger-Brown)

Conclude :

height(Three-Finger-Brown, 6-1)

Page 16: Pertemuan 9 Symbolic Reasoning Under Uncertainty

16

Default Reasoning

But this is blocked by

height(Three-Finger-Brown, 5-11)

Now we add :

Adult - Male(x) : height(x,5-10)

height(x,5-10)

But now there are two extensions.

Page 17: Pertemuan 9 Symbolic Reasoning Under Uncertainty

17

Default Reasoning

Revised axiom :Adult-Male(x) : Baseball-Player(x) height(x,5-

10)

height(x,5-10)

But this approach becomes unwiedly :

Adult-Male(x) : Baseball-Player(x) Midget(x) Jockey(x) eight(x,5-10)

height(x,5-10)

Page 18: Pertemuan 9 Symbolic Reasoning Under Uncertainty

18

Default Reasoning

So we introduce AB predicates :x : Adult-male(x) AB(x,aspect1)

height(x,5-10)x : Baseball-Player(x) AB(x, aspect1)x : Midget(x) AB(x, aspect1)x : Jockey(x) AB(x, aspect1)and single default rule :

: AB(x,y)AB(x,y)

Page 19: Pertemuan 9 Symbolic Reasoning Under Uncertainty

19

7.2. Minimalist Reasoning

• These methods are based on some variant of the idea of a minimal model.

The idea behind using minimal models as basis for nonmonotonic reasoning about the world is following :

“There many fewer true statements than false ones. If something is true and relevant it makes sense to assume that it has been entered into our knowledge base. Therefore, assume that the only true statement are those that necessarily must be true in order to maintain the consistency of knowledge base”.

Page 20: Pertemuan 9 Symbolic Reasoning Under Uncertainty

20

Minimalist Reasoning

The Closed World Assumption (CWA)

The only objects that satisfy any predicate P are those that must.Very useful for databases and AB predicates

Problem :• Some worlds are not closed• The CWA is a purely syntactic reasoning

process

Page 21: Pertemuan 9 Symbolic Reasoning Under Uncertainty

21

Minimalist Reasoning

Example 1 :

From :

A(Joe) B(Joe)

we derive :

A(Joe) B(Joe)

A (Joe)

B (Joe)

Page 22: Pertemuan 9 Symbolic Reasoning Under Uncertainty

22

Minimalist Reasoning

Example 2 :From :

Single(John)Single(Mary)

We derive :Single(Jane)

From :Married(John)Married(Mary)

We derive :Married(Jane)

Page 23: Pertemuan 9 Symbolic Reasoning Under Uncertainty

23

Minimalist Reasoning

Circumscription

Two advantages over CWA :• Operates on whole formulas, not individual

predicates.• Allows some predicates to be marked as closed

and others as open.

Accomplished by adding axioms that force aminimal interpretation on a selected portion of the KB.

Page 24: Pertemuan 9 Symbolic Reasoning Under Uncertainty

24

Minimalist Reasoning

Example 1 : x : Adult(x) AB(x,aspect1) Literate(x)

Example 2 :

A(Joe) B(Joe)

Page 25: Pertemuan 9 Symbolic Reasoning Under Uncertainty

25

7.3 Implementation Issues

1. How to derive exactly those nonmonotonic conclusions that are relevant to solving the problem.

2. How to update our knowledge incrementally as problem solving progresses.

3. In nonmonotonic reasoning system, it often happens that more than one interpretation of know fact licensed by a available inference rules.

4. In general, these theories are not computationally effective.

Page 26: Pertemuan 9 Symbolic Reasoning Under Uncertainty

26

Implementation Issues

• Techniques for doing this can be divided into two classes, determine by their approach to the search control problem :

1. Dept-first : in which we follow a single.

2. Breadth-first : all the possibilities as equally likely

Page 27: Pertemuan 9 Symbolic Reasoning Under Uncertainty

27

7.4 Augmenting a Problem Solver

• Problem solving can be done using either forward or backward reasoning.

• Problem solving using uncertain knowledge is no exception.

• Two basic approach to this kind of problem solving :

1. Reason forward from what is known

2. Reason backward to determine whether some expression P is true

Page 28: Pertemuan 9 Symbolic Reasoning Under Uncertainty

28

Augmenting a Problem Solver

• Backward Rules Using UNLESS

Suspect(x) Beneficiary(x)

UNLESS Alibi(x)

Alibi(x) SomewhereElse(x)

SomewhereElse(x) RegisteredHotel(x,y) and FarAway(y)

UNLESS ForgetRegister(y)

Alibi(x) Defend(x,y)

UNLESS Lies(y)

SomewhereElse(x) PictureOf(x,y) and FarAway(y)

Contradiction() TRUE

UNLESS x : Suspect(x)

Beneficiary(Aboutt)

Beneficiary(Babbitt)

Beneficiary(Cabot)

Page 29: Pertemuan 9 Symbolic Reasoning Under Uncertainty

29

Augmenting a Problem Solver

• Forward Rules Using UNLESS

If : Beneficiary(x), UNLESS Alibi(x) then Suspect(x)

If : SomewhereElse(x), then Alibi(x)

If : RegisteredHotel(x,y) and FarAway(y),

UNLESS ForgetRegister(y),

If : Defends(x,y), UNLESS Lies(y) then Alibi(x)

If : PictureOf(x,y) and FarAway(y),then SomewhereElse(x)

If : TRUE,

UNLESS x : Suspect(x) then Contradiction()

Beneficiary(Abbott)

Beneficiary(Babbitt)

Beneficiary(Cabot)

Page 30: Pertemuan 9 Symbolic Reasoning Under Uncertainty

30

7.5 Implementation: Depth First Search

Justification - Based TMSs

• Used in conjunction with a separate problem solver.

• Connect nodes via a network of dependencies.

• Provide an algorithm for labeling nodes with their belief status.

• Search depth-first.

Page 31: Pertemuan 9 Symbolic Reasoning Under Uncertainty

31

Implementation: Depth First Search

Justifications

Page 32: Pertemuan 9 Symbolic Reasoning Under Uncertainty

32

Implementation: Depth First Search

• A justification is valid if every assertion in the IN-list is believed and none of those in the OUT-list is.

• A justification is nonmonotonic if its OUT-list is not empty, or, recursively, if any assertion in its IN-list has a nonmonotonic justification.

Page 33: Pertemuan 9 Symbolic Reasoning Under Uncertainty

33

7.6 Implemetation : Breadth-First Search

• The assumption-based truth maintenance system (ATMS) is an alternarive way of implementing nonmonotonic reasoning.

• In an ATMS, alternative paths are maintained in parallel.

• The ATMS is designed to be used in conjunction with a separate problem solver. The problem solver job is to :

- Create nodes that correspond to assertions- Associate with each such node one or more

justifications- Inform the ATMS of inconsistent contexts

Page 34: Pertemuan 9 Symbolic Reasoning Under Uncertainty

34

Implemetation : Breadth-First Search

The role of ATMS system is then to :

• Propagate inconsistencies, then ruling out contexts that include subcontexts that are known to be inconsistent.

• Label each problem solver node with the contexts in which it has a valid justification.

A1 A2 A3 …… An C

Page 35: Pertemuan 9 Symbolic Reasoning Under Uncertainty

35

Implemetation : Breadth-First Search

A Context Lattice

Page 36: Pertemuan 9 Symbolic Reasoning Under Uncertainty

36

<< CLOSING>>

End of Pertemuan 9

Good Luck