chap09 [Uyumluluk Modu]bekirdizdaroglu.com/ceng/Downloads/f09.pdf · Microsoft PowerPoint - chap09...

18
Fuzzy logic Broad sense Broad sense a system of concepts, principles, and method for dealing with modes of reasoning that are approximate rather than exact. •Narrow sense A li ti f th i lti l dl i A generalization of the various multivalued logics 12.11.2010 1 fuzzy database modeling

Transcript of chap09 [Uyumluluk Modu]bekirdizdaroglu.com/ceng/Downloads/f09.pdf · Microsoft PowerPoint - chap09...

Page 1: chap09 [Uyumluluk Modu]bekirdizdaroglu.com/ceng/Downloads/f09.pdf · Microsoft PowerPoint - chap09 [Uyumluluk Modu] Author: Toshiba Created Date: 11/12/2010 10:15:44 AM ...

Fuzzy logic

•Broad senseBroad sensea system of concepts, principles, and method for dealing with modes of reasoning that are approximate rather than exact.

•Narrow senseA li ti f th i lti l d l iA generalization of the various multivalued logics

12.11.2010 1fuzzy database modeling

Page 2: chap09 [Uyumluluk Modu]bekirdizdaroglu.com/ceng/Downloads/f09.pdf · Microsoft PowerPoint - chap09 [Uyumluluk Modu] Author: Toshiba Created Date: 11/12/2010 10:15:44 AM ...

Multivalued logics

• Take into account the uncertainty of truth values

• Three-valued logics

• n-valued logicsn-valued logics

12.11.2010 2fuzzy database modeling

Page 3: chap09 [Uyumluluk Modu]bekirdizdaroglu.com/ceng/Downloads/f09.pdf · Microsoft PowerPoint - chap09 [Uyumluluk Modu] Author: Toshiba Created Date: 11/12/2010 10:15:44 AM ...

Connectives of some three valuedConnectives of some three-valued logicsg

12.11.2010 3fuzzy database modeling

Page 4: chap09 [Uyumluluk Modu]bekirdizdaroglu.com/ceng/Downloads/f09.pdf · Microsoft PowerPoint - chap09 [Uyumluluk Modu] Author: Toshiba Created Date: 11/12/2010 10:15:44 AM ...

Approximate reasoning

• Types of fuzzy linguistic terms– Fuzzy predicates: tall young small median– Fuzzy predicates: tall, young, small, median– Fuzzy truth values: true, false, very true

Fuzzy probabilities: likely unlikely very likely– Fuzzy probabilities: likely, unlikely, very likely– Fuzzy quantifiers: many, few, most

12.11.2010 4fuzzy database modeling

Page 5: chap09 [Uyumluluk Modu]bekirdizdaroglu.com/ceng/Downloads/f09.pdf · Microsoft PowerPoint - chap09 [Uyumluluk Modu] Author: Toshiba Created Date: 11/12/2010 10:15:44 AM ...

Fuzzy propositions

• Example:– Mount Washington is a dangerous mountain– ‘Mount Washington is a dangerous mountain’ is true

• Conditional propositions– assertions that are in conditional if-then form

Qualified proposition

– Example: if Tina is young, then John is old

• Qualified propositionsQualified propositions– Propositions that are asserted to be simply true.

12.11.2010 5fuzzy database modeling

Page 6: chap09 [Uyumluluk Modu]bekirdizdaroglu.com/ceng/Downloads/f09.pdf · Microsoft PowerPoint - chap09 [Uyumluluk Modu] Author: Toshiba Created Date: 11/12/2010 10:15:44 AM ...

Unconditional and unqualifiedUnconditional and unqualified propositions The temperature p p

• Propositional formχ is a variable

e e pe u e

35ºC is high.

– p: χ is Aχ is a variable

A is some property or predicate p:’ χ is A’ is true

• T(px ) = the degree of truth of px– px: χ=x is A

T( px) = A(x)

The degree of x belong to χ

12.11.2010 6fuzzy database modeling

Page 7: chap09 [Uyumluluk Modu]bekirdizdaroglu.com/ceng/Downloads/f09.pdf · Microsoft PowerPoint - chap09 [Uyumluluk Modu] Author: Toshiba Created Date: 11/12/2010 10:15:44 AM ...

Example

T( px) = H(x)

Th d f b lp65: Humidity of 65% is high

The degree of x belong to χThe degree of p65 is true isT(p65) = H(65) =0.25

12.11.2010 7fuzzy database modeling

Page 8: chap09 [Uyumluluk Modu]bekirdizdaroglu.com/ceng/Downloads/f09.pdf · Microsoft PowerPoint - chap09 [Uyumluluk Modu] Author: Toshiba Created Date: 11/12/2010 10:15:44 AM ...

example

• p65: ‘Humidity of 65% is high’ is very true

The degree of truth of p65 isg p65Ts(p65) = S(A(x)) = S(0.25) = 0.125

0.25

0.25

0.125

0.25

12.11.2010 8fuzzy database modeling

Page 9: chap09 [Uyumluluk Modu]bekirdizdaroglu.com/ceng/Downloads/f09.pdf · Microsoft PowerPoint - chap09 [Uyumluluk Modu] Author: Toshiba Created Date: 11/12/2010 10:15:44 AM ...

Unconditional and qualifiedUnconditional and qualified propositionsp p

• Propositional form ‘Humidity of 65% is high’

is very false– p: ‘χ is A’ is S is very false

S is a fuzzy truth qualifier

The degree of truth T (p )The degree of truth, Ts(px)of the qualified proposition

‘ i A’ i Spx:‘χ=x is A’ is S

is Ts(px) = S(A(x))

12.11.2010 9fuzzy database modeling

Page 10: chap09 [Uyumluluk Modu]bekirdizdaroglu.com/ceng/Downloads/f09.pdf · Microsoft PowerPoint - chap09 [Uyumluluk Modu] Author: Toshiba Created Date: 11/12/2010 10:15:44 AM ...

example

• p65: ‘Humidity of 65% is high’ is very false

The degree of truth of p65 isg p65Ts(p65) = S(A(x)) = S(0.25) = 0.5

12.11.2010 10fuzzy database modeling

Page 11: chap09 [Uyumluluk Modu]bekirdizdaroglu.com/ceng/Downloads/f09.pdf · Microsoft PowerPoint - chap09 [Uyumluluk Modu] Author: Toshiba Created Date: 11/12/2010 10:15:44 AM ...

Conditional and unqualifiedConditional and unqualified propositionsp p

• Propositional form γ is Bχ is A If Tina is young, then John is old

– p: if χ is A, then γ is B– px,y: ‘if A(x), then B(y)’ is true– Fuzzy implication A(x) ⇒ B(y)

• The degree of truth– T(px,y) = I[A(x), B(y)] = min[1, 1- A(x)+B(y)]

Lukasiewicz implication

12.11.2010 11fuzzy database modeling

Page 12: chap09 [Uyumluluk Modu]bekirdizdaroglu.com/ceng/Downloads/f09.pdf · Microsoft PowerPoint - chap09 [Uyumluluk Modu] Author: Toshiba Created Date: 11/12/2010 10:15:44 AM ...

example

• p: if a textbook is large , then it is expensiveThe degree of truth of p isT (px,y) = min[1, 1- L(x)+E(y)]

T (p600 45) = min[1 1- L(600)+E(45)] = min[1 1- 1+0 5] = 0 5T (p600, 45) min[1, 1 L(600)+E(45)] min[1, 1 1+0.5] 0.5

T (p450, 42) = min[1, 1- L(450)+E(42)] = min[1, 1- 0.75 +0.4] = 0.65

12.11.2010 fuzzy database modeling 12

Page 13: chap09 [Uyumluluk Modu]bekirdizdaroglu.com/ceng/Downloads/f09.pdf · Microsoft PowerPoint - chap09 [Uyumluluk Modu] Author: Toshiba Created Date: 11/12/2010 10:15:44 AM ...

Conditional and qualifiedConditional and qualified propositionsp p

• Propositional form‘If a textbook is large, then it is expensive’ is

– p: ‘if χ is A, then γ is B’ is S very true

The degree of truthT (p ) = S[T(p )]Ts(px,y) = S[T(px,y)]

12.11.2010 fuzzy database modeling 13

Page 14: chap09 [Uyumluluk Modu]bekirdizdaroglu.com/ceng/Downloads/f09.pdf · Microsoft PowerPoint - chap09 [Uyumluluk Modu] Author: Toshiba Created Date: 11/12/2010 10:15:44 AM ...

Fuzzy quantifiersH

Bazı (En az bir tane var)

• Two quantifiers of predicate logicU i l tifi ll ∀

All snakes are reptiles(∀x) ( Sx ⇒ Rx)S k i

Her

– Universal quantifier: all, ∀– Existential quantifier: there exist, ∃

• Fuzzy quantifiers

Some snakes are poisonous(∃x) ( Sx ∧ Px)Almost all snakes are poisonousFuzzy quantifiers

– Absolute quantifiers• About a dozen, at most about 10, at least about 100• About 20 hotels are in close proximity to the center of the city

– Relative quantifiers• Most almost all about half about 20%• Most, almost all, about half, about 20%• Almost all hotels are in close proximity to the center of the city

12.11.2010 14fuzzy database modeling

Page 15: chap09 [Uyumluluk Modu]bekirdizdaroglu.com/ceng/Downloads/f09.pdf · Microsoft PowerPoint - chap09 [Uyumluluk Modu] Author: Toshiba Created Date: 11/12/2010 10:15:44 AM ...

Linguistic hedges

• Special linguistic terms by which other linguistic terms are modifiedmodified.– Very, more ,less, fairly, extremely

• Modifier

All mountains are steepAlmost All mountains are steep

Modifier– HA(x) = h(A(x))– h(a) = a1/2 , a2, a3, …( )

Weak modifier, fairly

strong modifier, very

Very strong modifier, very very

12.11.2010 15fuzzy database modeling

Page 16: chap09 [Uyumluluk Modu]bekirdizdaroglu.com/ceng/Downloads/f09.pdf · Microsoft PowerPoint - chap09 [Uyumluluk Modu] Author: Toshiba Created Date: 11/12/2010 10:15:44 AM ...

Example

• PropositionsJ h i– p1: John is young

– p2: John is very young– p3: John is fairly youngp3: John is fairly young

• Assume John is 26 years old, the degree of truth of the propositions arep p– Young(26) = 0.8– Very young(26) = 0.82 = 0.64

1/2

Strong assertion is less true– Fairly young (26) = 0.81/2 = 0.89

12.11.2010 16fuzzy database modeling

Page 17: chap09 [Uyumluluk Modu]bekirdizdaroglu.com/ceng/Downloads/f09.pdf · Microsoft PowerPoint - chap09 [Uyumluluk Modu] Author: Toshiba Created Date: 11/12/2010 10:15:44 AM ...

Approximately reasoning

• Deductive reasoningU lid t f– Use valid argument form

• Approximately reasoningDealing with reasoning under fuzzy environment– Dealing with reasoning under fuzzy environment

[(p ⇒ q) ∧ p] ⇒ q

mantıkta;"a olursa b olur.""a olmuştur "a olmuştur.önermelerinden"b de olmuştur." sonucunu çıkarmaya

12.11.2010 17fuzzy database modeling

verilen isim.

Page 18: chap09 [Uyumluluk Modu]bekirdizdaroglu.com/ceng/Downloads/f09.pdf · Microsoft PowerPoint - chap09 [Uyumluluk Modu] Author: Toshiba Created Date: 11/12/2010 10:15:44 AM ...

Generalized modus ponens

12.11.2010 18fuzzy database modeling