Professional Documents
Culture Documents
Dr S.Natarajan
Professor,
Department of Information Science and Engineering
PESIT, Bangalore
boolean logic
fuzzy logic
A fuzzy set
4
Sets
Classical sets either an element belongs to the set or
it does not. For example, for the set of integers, either
an integer is even or it is not (it is odd). However,
either you are in the USA or you are not. What about
flying into USA, what happens as you are crossing?
Another example is for black and white photographs,
one cannot say either a pixel is white or it is black.
However, when you digitize a b/w figure, you turn all
the b/w and gray scales into 256 discrete tones.
A (x ) m A (x)
1 if x A
number} A( x)
0 if x A
Membership or characteristic function
8
Characteristic function
Let A be any subset of X, the characteristic
function of A, denoted by , is defined by
11
Basic concepts
Set: a collection of items
To Represent sets
The set C is composed of elements x
12
Set Inclusion
A is a subset of B
A B : x A implies that x B
A and B are equal set
A = B : A B and B A
A B : A B and A B
A is a proper subset of B
13
Power set
All the possible subsets of a given set X is call the
power set of X, denoted by P(X) = {A| A X}
|P(X) | = 2n when |X| = n
X={a, b, c}
P(X) = {, a, b, c, {a, b}, {b, c}, {a, c}, X}
14
A B = {x | x A or x B}
Intersection:
A B = {x | x A and x B}
Complement:
A = {x | x A, x X}
X Universal Set
Set Difference:
A | B = {x | x A and x B}
Set difference is also denoted by A - B
Set Operations
Complement
Union
Intersection
difference
16
18
19
COMPLEMENT OF A SET
20
21
22
Real numbers
Total ordering: a b
Real axis: the set of real number (x-axis)
Interval: [a,b], (a,b), (a,b]
One-dimensional Euclidean space
25
De Morgans laws
26
Distributive laws
27
Associative laws
28
Using ( ) to keep original processing order
Using ( ) to keep original processing order
33
1 if x A
( x)
A
0 if x A
34
35
36
Fuzzy Theory
Fuzzy
Mathematics
Fuzzy
Decision-Making
Fuzzy Systems
Uncertainty &
Information
Fuzzy Logic
& AI
37
38
39
40
41
Fuzzy Sets
Characteristic function X, indicating the belongingness
of x to the set A
X(x) = 1
xA
0
xA
or called membership
Hence,
A B XA B(x)
= XA(x) XB(x)
= max(XA(x),XB(x))
Note: Some books use + for , but still it is not ordinary
addition!
Some more explanations follow
Fuzzy Sets
A B XA B(x)
= XA(x) XB(x)
= min(XA(x),XB(x))
A XA(x)
= 1 XA(x)
A B XA(x) XB(x)
A = A
Fuzzy Sets
Note (x) [0,1]
not {0,1} like Crisp set
A = {A(x1) / x1 + A(x2) / x2 + }
= { A(xi) / xi}
Note: + add
/ divide
Only for representing
membership.
element
and
its
1/2
1
unit interval
xN
.
.
U (universe of discourse)
47
(0,1)
(1,1)
2
1
0.0
U
x1
x2
graphical (standard)
representation form
(0,0)
1
(1,0)
48
A A=A
A X = A
A =
51
height(A) = 1
Membership
function has a
trapezoidal form
0
a
U = [a,b]
core(A)
supp(A)
52
Information World
Crisp set has a unique membership function
A(x) = 1
0
xA
xA
A(x) {0, 1}
Fuzzy Set can have an infinite number of membership
functions
A [0,1]
54
Fuzziness
Examples:
A number is close to 5
55
Fuzziness
Examples:
He/she is tall
56
Example: Young
Example:
Ann is 28,
Bob is 35,
Charlie is 23,
57
Fuzzy Subset
U = {1, 2, 3, 4,.,10}
A = {1, 2, 3, 4, 5}
B = {2, 3, 4}
B A in CRISP SET THEORY
A(x) >= B(x), x
In terms of membership predicate
Crisp subsethood
S1(x) <= S2(x), x
58
Geometric Interpretation(1)
U = {x1 , x2}
(0,1)
(1,1)
x2
A
B1
B2
(0,0)
B3
(1,0)
x1
A
B
60
A
B2
B1
61
Fuzzy values
DOM
Degree of
Membership
Young
Middle
Old
0.5
0
25
40
55
Age
1
when x <= 25
= (40-x)/15
when 25< x < 40
0
when x >=40
A2 (x)
0
when either x <= 25 or >= 55
= (x-25)/15
when 25 < x < 40
(55-x)/15
when 40<x< 55
A3 (x)
0
when x <= 40
= (x-40)/15
when 40< x < 55
1
when x >= 55
63
64
Linguistic Values
Membership
Height
1
short
medium
160
170
tall
180
(cm)
Membership
Weight
1
light
medium
50
70
heavy
90
(kg)
66
67
68
69
AB A ( x) B ( x)
~
Intersection :
AB A ( x) B ( x)
Complement
A ( x) 1 A ( x)
~
70
B
A
AA
Complement
Containment
Intersection
AA
Union
71
Complement
Crisp Sets: Who does not belong to the set?
Fuzzy Sets: How much do elements not belong to the set?
The complement of a set is an opposite of this set. For
example, if we have the set of tall men, its complement is
the set of NOT tall men. When we remove the tall men set
from the universe of discourse, we obtain the complement.
If A is the fuzzy set, its complement A can be found as
follows:
A(x) = 1 A(x)
72
Containment
Crisp Sets: Which sets belong to which other sets?
Fuzzy Sets: Which sets belong to other sets?
Similar to a Chinese box, a set can contain other sets. The
smaller set is called the subset. For example, the set of tall
men contains all tall men; very tall men is a subset of tall
men. However, the tall men set is just a subset of the set of
men. In crisp sets, all elements of a subset entirely belong
to a larger set. In fuzzy sets, however, each element can
belong less to the subset than to the larger set. Elements of
the fuzzy subset have smaller memberships in it than in the
larger set.
73
Intersection
Union
The union of two crisp sets consists of every element that falls into
either set. For example, the union of tall men and fat men contains all
men who are tall OR fat.
In fuzzy sets, the union is the reverse of the intersection. That is, the
union is the largest membership value of the element in either set.
The fuzzy operation for forming the union of two fuzzy sets A and B
on universe X can be given as:
AB(x) = max [A(x), B(x)] = A(x) B(x),
where xX
75
(x)
(x)
B
A
A
0
1
0
1
Not A
0
Complement
0
Containment
(x)
(x )
0
1
B
A
x
AB
0
Intersection
1
x
AB
Union
x
76
77
De Morgans Laws
A B A B
~
A B A B
~
78
A B B A
Commutativity
A B B A
~
Associativity
A B C A B C
~
A BC A B C
~
79
Distributivity
A B C A B AC
A BC A B AC
~
A
~
A X X
A A
~
A A A
A A A
Idempotency
Identity
A X A
~
80
Transitivity
Involution
A B C then A C
If
A
~
A
~
81
Equality
Fuzzy set A is considered equal to a fuzzy set B, IF AND
ONLY IF (iff):
A(x) = B(x), xX
A = 0.3/1 + 0.5/2 + 1/3
B = 0.3/1 + 0.5/2 + 1/3
therefore A = B
82
Inclusion
Inclusion of one fuzzy set into another fuzzy set. Fuzzy set
A X is included in (is a subset of) another fuzzy set, B
X:
A(x) B(x), xX
Consider X = {1, 2, 3} and sets A and B
A = 0.3/1 + 0.5/2 + 1/3;
B = 0.5/1 + 0.55/2 + 1/3
then A is a subset of B, or A B
83
Cardinality
for i=1..n
85
Example
1 .5 .3 .2
A
~
2 3 4 5
.5 .7 .2 .4
B
~
2 3 4 5
1 0 .5 .7 .8
1 .5 .3 .8 .6
A B
~
1 2 3 4 5 ~ 1 2 3 4 5
1 .7 .3 .4
A B
~
~
2 3 4 5
.5 .5 .2 .2
A B
~
~
2 3 4 5
87
.5 .3 .3 .2
A | B A B
~
~
~
~
2 3 4 5
0 .5 .2 .4
B | A B A
~
~
~
~
2 3 4 5
1 0 .3 .7 .6
A B A B
~
~
~
~
1 2 3 4 5
1 .5 .5 .8 .8
A B A B
~
~
~
~
1 2 3 4 5
88
1 1 .5 .7 .8
AA
~
~
4 5
1 2 3
.5 .3 .2 .4
B B
~
~
3
4
5
2
89
A
AB
AB
A
90
91
AND
OR
NEGATION
92
age
20
25
30
35 40 45 50 55 60 65
3.0 3.
5
3.
5
4.
0
4.
0
4.
5
4.
5
5.0
93
20
25
30
35
40
45
50
55
60
65
salary 2.5
2.5
3.0
3.0
4.0
4.0
4.5
4.5
5.0
5.5
94
Extension principle
95
Measurement of fuzziness
example
A=1/20+1/25+0.8/30+0.6/35+0.4/40+0.2/45+0/50+0/55+0/60+0/65
f(A) =10-1-1-0.6-0.2-0.2-0.6-1-1-1-1=2.4
96