Fuzzy Set
Fuzzy Set
Generalizing.
. .
=10 a1 =Ylal-
Y Yianal
= i=1 =t j=1
i
Y D AN
A AL _fl‘A,} ©21)
i=lj=1 k=1 =
iejek
Example 6.4
Given |E| = 100. where E indicates a set of students who have chosen subjects from different
streams in the computer science discipline, it is found that 32 study subjects chosen from the
Computer Networks (CN) stream, 20 from the Multimedia Technology (MMT) stream. and 45 from
the Systems Software (SS) stream. Also, 15 study subjects from both CN and SS streams, 7 from
both MMT and SS streams, and 30 do not study any subjects chosen from either of the three
streams.
Find the number of students who study subjects belonging to all three streams.
Solution
Let A, B, C indicate students who study subjects chosen from CN., MMT. and SS streams
respectively. The problem is to find |4 N B n (]
The no. of students who do not study any subject chosen from either of the three
streams = 30.
ie. A~ B~ C =30
= (A U BUO|=30 (using De Morgan’s laws)
= IEl-lAwBuUC|=30
= AUBUC=]E-30
=100 - 30 = 70
From the principle of inclusion and exclusion,
MWuBUCI=Al+
1Bl +ICI-RAB-BAC-UAq+HUnBnC
= WABnCd=AuBUC-Al-|Bl-|Cl+
U nB+BAC+K1NnC
=70-32-20-45+15+7+10
=5
Hence. the no. of students who study subjects chosen from all the three streams is 5.
A= (x, Hi (X)), xe X}
Where each pair (x, Hi (6.23)
(X)) is called a singleton
An alternative
. In crisp sets. Hj; (x) is
definition which indicates
dropped.
given a fuzzy set as a union
by of all u; (x)/x singletons is
cool
0[5 10 15 20 25 30 35 40
Temperature
Fig. 6.10 Continuous membership function for “cool”.
TLol U —
- -
Ll7D-‘ Neural Networks, Fuzzy Logic, and Genetic Algorithms—Syntlesis and Applications
Ditferent shapes of membership functions exist. The shapes could be triangular, trapezoidal,
curved or their variations as shown in Fig. 6.12.
X | X | X | X
Example
Consider the set of people in the following age groups
0-10 40-50
10-20 50-60
20-30 60-70
30-40 70 and above
The fuzzy sets “young”, “middle-aged”, and “old” are represented by the membership function
graphs as illustrated in Fig. 6.13.
0 10 20 30 40 50 60 70 80 90
Fig. 6.13 Example of fuzzy sets expressing “young”, “middle-aged”, and “old".
Fuzzy Set Theory m
Given X to be the universe of discourse and A and B to be fuzzy sets with 14 (x) and up(x) as
their respective membership functions. the basic fuzzy set operations are as follows:
Union
The union of two fuzzy sets A and B is a new fuzzy set A U B also on X with a membership
function defined as
Let A be the fuzzy set of young people and B be the fuzzy set of middle-aged people as
illustrated in Fig. 6.13. Now A U B. the fuzzy set of “young or middle-aged” will be given by
A U B: ‘young or middle-aged’
age —
=08
The intersection of fuzzy sets A and B is a new fuzzy set & N B with membership function
defined as
i ~5(0) = min(uz(x), A5(x)) (6:27)
|l72 Neural Networks, Fuzzy Logic, and Genetic Algorithms—Synthesis and Applications
Exan.lple
=05
Il HBi~5(x2) = min (u3(x,), p5(x3))
min (0.7, 0.2)
‘ | =02
; Complement
The complement of a fuzzy set A is a new fuzzy set 4 with a membership function
For the fuzzy set 4 defined as “young” the complement “not young” is given by A“. In its discrete
| form. for x, xs. and x;
Fuzzy Set Theory 173]
A “not young”
e
0 10 20 30 40 50 60 70 80 90
Hae(xa) = 1= pz(xy)
=1-0.7
=03
- =1-0
-
Other operations are, = 1
Hip(xa) = pi(xp)-;(x5)
B
=08-0=0
L — s
l1741 Neural Networks, Fuzzy Logic, and Genetic Algorithms—Synthesis and Applications
Hi5(x3) = pz(x3)-pz(x)
=04-0.1
=0.04
Equality
Two fuzzy sets A and B are-said to-be equal (4 = B) if 1;(x) = pz(x) (6.30)
Example
A= {(,0.2)(x,,0.8)}
B = {(x,0.6)(x,,0.8)}
€ = ((.,02)(x;.0.8)}
A# B
Hi(xz) = Hp(x;)
but A=C
since Hi(x) = pe(x) =02
and H3(x) = He(x;) =08
Product of a fuzzy set with a crisp number
Multiplying a fuzzy set Abya crisp number a results in a new fuzzy set product a. A with the
membership function
a A= ((x,0.12).
(x5 0.18), (x;,0.24)}
since, Hoi(x) = a-pz(x)
=03-04
=0.12
U, i) = a pz(x;)
=03-06
=0.18
Fuzzy Set Theory fil
Hoi(x3) = a pz(x)
=03-08
=024
The a power of a fuzzy set A is a new fuzzy set A% whose membership function is given by
Example
A = {(x,0.4), (x,.0.2), (x;,0.7))
For a=2
The difference of two fuzzy sets A and B is a new fuzzy set & - B defined as
A-B=(@AnkB) (6.33)
Example
ANB
n
]
>
I
{(51.0.2)(x,.0.5)(x3,0.5))
"
Disjunctive sum
The disjunctive sum of two fuzzy sets A and B is a new fuzzy set A ® B defined as
ADB=(AnByu(AnB) _ (6.34)
I
|176! Neural Networks, Fuzzy Logic, and Genetic Algorithms—Synthesis and Applications
Example
! A = ((x,0.4)(x;,0.8)(x,0.6)}
1 B = {(x.0.2)(x,,0.6)(x3,0.9)}
‘ Now, A° = {(x,0.6)(x5,0.2)(x;,0.4)}
%x : B = {(x,,0.8)(x:,0.4)(x;,0.1)}
“ A°A B = {(x,,0.2)(x,,0.2)(x;,0.4)}
| ANB = {(x,0.4)(x2,0.4)(x;,0.1)}
[ A® B = ((x,0.4)(x,,0.4)(x3,0.4)}
\
) 6.3.3 Properties of Fuzzy Sets
|
11 Fuzzy sets follow some of the properties satisfied by crisp sets. In fact, crisp sets can be thought
! | of as special instances of fuzzy sets. Any fuzzy set A is a subset of the reference set X. Also, the
membership of any element belonging to the null set & is 0 and the membership of any element
belonging to the reference set is 1.
The properties satisfied by fuzzy sets are
‘ [ Commutativity: AUB=BUA
! AnB=5BAnA (6.35)
‘ Associativity: Au(BuC)y=Au B)uUC
‘” An(BnC)=AnB)nC (6.36)
| _ - - N = - =
ii Distributivity: AU(BnC)=AUB) n@AuUE)
‘1 An(Bul)=AnB)u@An ) (6.37)
I Idempotence: AUA=A
‘l ‘ And=A (639)
| Identity: Av@=4
Il Aux=4
i\ ino=0
B Aux=X (6.39)
‘ ‘ Transitivi: 1fic B < C,thend < € (6.40)
13 ‘ Involution: AY=A 6.41)
1 = ((F.04), (E, 03), (X, 0.1), (¥, 0.1), (I, 0.9), (T,0.8)}
F = ((F., 0.99), (£, 0.8), (X, 0.1), (¥,02), (1, 0.5), (T; 0.5)}
Find the following. 5
@ @G TuF ) (T-F (i) FUF©
(b) Verify De Morgan's Law, (I U F)° = ¢ A f©
Solution
@ @ Tu F = ((F,0.99),(E,0.8), (X,0.1), (¥,0.2),(1,0.9),
(T,0.8)}
(ii) I-F =dnF9
= ((F,0.01),(£,0.2), (X,0.1), (¥.0.1). (1,0.5), (T,oa{
(iii) FUF = ((F,0.99), (£,0.8),(X.0.9),(,0.8),(1,0.5), (T, 0.5)}
(b) De Morgan’s Law
(TUF = [°AFC
TUF = ((F,0.99), (E,0.8), (X.0.1), (¥.0.2),(7,0.9),(T,0.8)}
F¢ = {(F,0.01),(E,0.2), (X,0.9),(¥,0.8),(1,0.5),(T,0.5)}
and
Example 6.6
Consider the fuzzy sets A and B defined on the interval X = (0. 5] of real numbers, by the
membership grade functions
e ST S — R - e — g
|17s Neural Networks, Fuzzy Logic, and Genetic Algorithms—Synthesis and Applications
Hi(0 = o w0 = 27
Determine the mathematical formulae and graphs of the membership grade functions of each of
the following sets
(@ ALB
b AuB
(c) AnB
@) (AuB)©
Solution
A'r
1
@a w0
() = 1= wa®)
p(x) = 1=
1= —2—
“ ulx)
T ox+1
o1 2 3 4 5
X
Ec
1
Hpe(x) = 1= pip(x)
=1-27 Hx)
21
=
0 1 2 3 4 57
AuB = A
[
118 i
(®) Hz,5(x) = max(uz(x), Hz(x)
x e} 2
:max[—x—‘ 2")
x+1
0o 1 2 3 4 5
| x
An B -
© 1 5
Hinp(x) = min (u;(x), pz(x) A
i
. (; 2».() 1(x) I
x+1 i
-
— !
|
0 x J
;
L
1 @nBy=Anb
@ Hi05e(x) = Hienpe(x) (O De Morgan's law) A Be
1
—
= min (Uze (), fz(x))
1 g H(x) :|
= min| ——r,
!
——
x+1" g%
|!
e
0 X 5
n
Observe that X A = 1:[ 1Al (6.46)
Example
Similarly, ResS3.1)=0
RcS(3,3)=R :5(3.5)=R=S(5, 1)=R S (5, 3)=RoS(5\5)=0
u
W
1
—
o
Also, SeR=13
o
o
3.
o
6.5 FUZZY RELATIONS ©
Fuzzy relation is a fuzzy set defined on the Cartesian product of crisp sets X1. Xa..oy X, where the
n-tuples (x;, Xs...., x,) may have varying degrees of membership within the rclatmn The
membership values indicate the strength of the relation between the tuples.
Example
Let R be the fuzzy relation between two sets X, and X: where X, is the set of diseases and
X is the set of symptoms.
Let A be a fuzzy set defined on the universe X and B bea fuzzy set defined on the universe 11
the Cartesian product between the fuzzy sets A and 3 indicated as A x B and resulting in 2
fuzzy relaion R is given by
= sz AR
Fuzzy Set Theory @;I
R=AxBcXxy (6.52)
where R has its membership function given by
Hp(xy) = iz,5(x)
min (u5(x), 25(y)) (6.53)
Example
Let A = {(x1, 0.2), (x2, 0.7), (x3,0.4)} and B = {(y1, 0.5), (y2, 0.6)} be two fuzzy sets defined on
the universes of discourse X = (x,, x,, %3} and ¥ = (y,, y,) respecti
vely. Then the fuzzy relation &
resulting out of the fuzzy Cartesian product flxfi
is given by
o o»n
x (02 02
R=AxB=1x, (05 06
x3 |04 04
since,
Hze(xy) = 1= pa(x,y)
(6.56)
Composition of relations
The definition is similar to that of crisp relation. Suppo
se R is a fuzzy relation defined on X x ¥.
and S is a fuzzy relati on defined on ¥ x Z. then R o Sisa fuzzy relation on X x Z. The fuzzy
Mmax-min composition is defined as
Im Newral Networks, Fuzzy Logic, and Genetic A[SO”“II"’S_S-‘"‘MCS“ and Applications
5 L
=05
T
Fuzzy Set Theory 185' E
Example 6.7
i Dl DZ DJ Dl Sl S: Sl SX
- R[06 06 09 08 pfo1 02 07 09 ;
For, R =Pj01 02 09 08 S=DJ1 1 04 06
P09 03 04 08 Do 0 05 09
Sl P09 08 0.1 02 D09 1 08 02
Obtain the association of the plants with the different symptoms of the diseases using max-min
composition.
Solution
To obtain the association of the plants with the symptoms,
R o § which is a relation on the sets P
and S is to be computed. : B 7 i
Using max-min composition,
S S 8 S,
FR[08 08 08 09
RoS= P08 0.8 0.8 0.9
P08 0.8 0.8 0.9
P08 0.8 0.7 0.9
SUMMARY