Вы находитесь на странице: 1из 18

Fuzzy logic

•Broad
Broad sense
a system of concepts, principles, and method for dealing
with modes of reasoning that are approximate rather than
exact.
•Narrow sense
A generalization
li ti off the
th various
i multivalued
lti l d logics
l i

12.11.2010 fuzzy database modeling 1


Multivalued logics

• Take into account the uncertainty of truth values

• Three-valued logics

• n-valued logics

12.11.2010 fuzzy database modeling 2


Connectives of some three-valued
three valued
logics
g

12.11.2010 fuzzy database modeling 3


Approximate reasoning

• Types of fuzzy linguistic terms


– Fuzzy predicates: tall,
tall young,
young small,
small median
– Fuzzy truth values: true, false, very true
– Fuzzy probabilities: likely,
likely unlikely,
unlikely very likely
– Fuzzy quantifiers: many, few, most

12.11.2010 fuzzy database modeling 4


Fuzzy propositions
• Example:
– Mount Washington is a dangerous mountain
– ‘Mount Washington is a dangerous mountain’ is true
• Conditional propositions Qualified proposition
– assertions that are in conditional if-then form
– Example: if Tina is young, then John is old
• Qualified propositions
– Propositions that are asserted to be simply true.

12.11.2010 fuzzy database modeling 5


Unconditional and unqualified
ppropositions
p Thee temperature
e pe u e

• Propositional form 35ºC is high.


χ is a variable
– p: χ is A
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 fuzzy database modeling 6


Example
T( px) = H(x)
p65: Humidity of 65% is high
Th degree
The d off x belong
b l to χ
The degree of p65 is true is
T(p65) = H(65) =0.25

12.11.2010 fuzzy database modeling 7


example

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

The degree
g of truth of p65 is
Ts(p65) = S(A(x)) = S(0.25) = 0.125

0.25

0.125

0.25

12.11.2010 fuzzy database modeling 8


Unconditional and qualified
p p
propositions
‘Humidity of 65% is high’
• Propositional form
is very false
– p: ‘χ is A’ is S

S is a fuzzy truth qualifier

The degree of truth,


truth Ts(px)
of the qualified proposition

px:‘χ=x
‘ i A’ is
is i S
is Ts(px) = S(A(x))

12.11.2010 fuzzy database modeling 9


example

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

The degree
g of truth of p65 is
Ts(p65) = S(A(x)) = S(0.25) = 0.5

12.11.2010 fuzzy database modeling 10


Conditional and unqualified
p p
propositions
If Tina is young,
• Propositional form χ is A γ is B
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 fuzzy database modeling 11


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

T (p600,
600 45) = min[1,
min[1 11- L(600)+E(45)] = min[1,
min[1 11- 1+0.5]
1+0 5] = 0.5
05
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


Conditional and qualified
p p
propositions
‘If a textbook is large,
• Propositional form then it is expensive’ is
– p: ‘if χ is A, then γ is B’ is S very true

The degree of truth


Ts(px,y) = S[T(px,y)]

12.11.2010 fuzzy database modeling 13


Fuzzy quantifiers
Bazı (En az bir tane var)
Her
H
All snakes are reptiles
• Two quantifiers of predicate logic (∀x) ( Sx ⇒ Rx)
– U
Universal
i l quantifier:
tifi all,ll ∀ S
Some snakes
k are poisonous
i
– Existential quantifier: there exist, ∃ (∃x) ( Sx ∧ Px)
Almost all snakes are poisonous
• Fuzzy 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
Most, almost all
all, about half,
half about 20%
• Almost all hotels are in close proximity to the center of the city

12.11.2010 fuzzy database modeling 14


Linguistic hedges

• Special linguistic terms by which other linguistic terms are


modified.
modified
– Very, more ,less, fairly, extremely All mountains are steep
Almost All mountains are steep
• Modifier
– HA(x) = h(A(x))
( ) = a1/2 , a2, a3, …
– h(a)
Weak modifier, fairly
strong modifier, very
Very strong modifier, very very

12.11.2010 fuzzy database modeling 15


Example

• Propositions
– p1: John
J h iis young
– p2: John is very young
– p3: John is fairly young
• Assume John is 26 years old, the degree of truth of the
ppropositions
p are
– Young(26) = 0.8
– Very young(26) = 0.82 = 0.64 Strong assertion is less true
– Fairly young (26) = 0.81/2 = 0.89

12.11.2010 fuzzy database modeling 16


Approximately reasoning

• Deductive reasoning
– Use
U valid
lid argumentt form
f
• Approximately reasoning
– Dealing with reasoning under fuzzy environment
[(p ⇒ q) ∧ p] ⇒ q

mantıkta;
"a olursa b olur."
"aa olmuştur.
olmuştur "
önermelerinden
"b de olmuştur."
sonucunu çıkarmaya
verilen isim.
12.11.2010 fuzzy database modeling 17
Generalized modus ponens

12.11.2010 fuzzy database modeling 18

Вам также может понравиться