Lecture_2
Lecture_2
Sarvesh Maurya
Bennett University
Yes or No
Crisp answer
True or False
Milk Yes
Water
A liquid
Crisp
Coca
No
Pepsi
Is the liquid
colorless?
May be
May not
be
Fuzzy answer Absolutel
y
Partiall
y
etc
Score
99
Extremely
Ankit honest
Ankush
Santosh Very 75
honest
Kavita Fuzzy
Honest at 55
Nidhi times
Extremely 35
Is the dishonest
person
honest?
Fuzzy element(s)
Fuzzy set(s)
I
N
P Fuzzy rule(s)
U
T
Fuzzy implication(s)
(Inferences)
O
U
T
Fuzzy system P
U
T
Note: A crisp set is a fuzzy set, but, a fuzzy set is not necessarily a crisp
set.
Example:
H = { (h1, 1), (h2, 1), ... , (hL, 1) }
Person = { (p1, 1), (p2, 0), ... , (pN , 1) }
In the case of a crisp set, the elements have extreme values of degree of
membership, namely either 1 or 0.
1 EX = Marks ≥ 90
2 A = 80 ≤ Marks < 90
3 B = 70 ≤ Marks < 80
4 C = 60 ≤ Marks < 70
5 D = 50 ≤ Marks < 60 P
6 = 35 ≤ Marks < 50 F =
7 Marks < 35
F P D C B A EX
1
0
35 50 60 70 80 90 100
F P D C B A EX
1
0
35 50 60 70 80 90 100
High Temperature
Low Pressure
Color of Apple
Sweetness of Orange
Weight of Mango
Note: Degree of
membership values lie
in the range [0...1].
Note:
µA(x) map each element of X onto a membership grade (or
membership value) between 0 and 1 (both inclusive).
Question:
How (and who) decides µA(x) for a Fuzzy set A in X ?
Example:
A = City of comfort
A ={(0,0.1),(1,0.30),(2,0.78)……(10,0.1)}
1.0
0.8
0.6 Note : X = discrete value
µ
0.4
0.2
How you measure happiness ??
0 2 4 10
6 8
A = “Happy family”
1.0
0.8
μB (x) 1
4
0.6
x50
1
10
0.4
0.2
0 50 100
B
Age (X)
Note : x = real value
B = “Middle aged” = R+
Core: The core of a fuzzy set A is the set of all points x in X such that
µA(x ) = 1
1.0
µ
0.5
1.0
Aα = {x | µA(x) ≥ α }
Note :
• A is convex if all its α- level sets are convex.
• Convexity (Aα) =⇒ Aα is composed of a single line segment only.
Membership function is Non-convex
convex Membership function
1.0 1.0
Bandwidth :
For a normal and convex fuzzy set, the bandwidth (or width) is defined as
the distance the two unique crossover points:
Bandwidth(A) = | x1 - x2 |
where µA(x1) = µA(x2) = 0.5
Symmetry :
Example: India will win the T20 tournament with a chance of 60%, which
means that out of 100 matches, India owns 60 matches.
1.0 1.0
0.8 0.8
0.6 0.6
µA
µB
0.4 0.4
0.2 0.2
0 10 20 30 40 50 60
0 2 4 6 8 10
µ
µ
x x x
x x
1.0
a b c
1.0
a b c d
b
Slope at x =
2a
b
Slope at y =
x b y
2a
c-a c c+a
1
Example: µ(x)= 1+x 2 ;
a = b = 1 and c = 0;
1.0
-1 0 1
Changing a Changing b
Changing a
Changing a and b
1.0
Slope = a
0.5
Excellent = Marks ≤ 90
Very good = 75 ≤ Marks ≤ 90
Good = 60 ≤ Marks ≤ 75
Average = 50 ≤ Marks ≤ 60 Poor
= 35 ≤ Marks ≤ 50 Bad= Marks
≤ 35
1
.8
.6
.4
.2
0
10 20 30 60
40 50 70 80 90
marks
Union (A ∪ B):
µA∪B (x ) = max{µA(x ), µB (x )}
Example:
A = {(x1, 0.5), (x2, 0.1), (x3, 0.4)} and
B = {(x1, 0.2), (x2, 0.3), (x3, 0.5)};
C = A ∪ B = {(x1, 0.5), (x2, 0.3), (x3, 0.5)}
µA µB µB
µ µA µAUB
b q c b q c
a p x a p
x
Intersection (A ∩ B):
µA∩B (x ) = min{µA(x ), µB (x )}
Example:
A = {(x1, 0.5), (x2, 0.1), (x3, 0.4)} and
B = {(x1, 0.2), (x2, 0.3), (x3, 0.5)};
C = A ∩ B = {(x1, 0.2), (x2, 0.1), (x3, 0.4)}
µA
µB
µ µAᴖB
x b q c p b q c
a p a x
Complement (AC ):
µAAC (x ) = 1-µA(x )
Example:
A = {(x1, 0.5), (x2, 0.1), (x3, 0.4)}
C = AC = {(x1, 0.5), (x2, 0.9), (x3, 0.6)}
µA µA
1.0
µA’
µ
q p x q
p x
µA•B (x ) = µA(x ) • µB (x )
µαA(x ) = α · µA(x )
Sum (A + B):
Difference (A − B = A ∩ BC ):
µA−B (x ) = µA∩BC (x )
Equality (A = B):
µA(x ) = µB (x )
Example 3:
A(x) = {(x1, 0.2), (x2, 0.3), (x3, 0.5), (x4, 0.6)}
B(y) = {(y1, 0.8), (y2, 0.6), (y3, 0.3)}
y1 y2 y3
xx21 0.2
0.30.2
0.30.2
0.3
A × B = min{µA(x ), µB (y )}
x3 0.5 0.5 0.3
=
x4 0.6 0.6
0.3
Commutativity :
Associativity :
A ∪ (B ∪ C) = (A ∪ B) ∪ C A ∩ (B ∩ C) = (A ∩ B)
∩C
Distributivity :
A ∪ (B ∩ C) = (A ∪ B) ∩ (A ∪ C)
A ∩ (B ∪ C) = (A ∩ B) ∪ (A ∩ C)
(Ac )c = A
De Morgan’s law :
(A ∩ B)c = Ac ∪ Bc
(A ∪ B)c = Ac ∩ Bc
Sarvesh Maurya Soft Computing Applications 01/04/2025 53 / 69
Few Illustrations on Fuzzy
Sets
Let A and B are two fuzzy sets defined over a universe of discourse X with
membership functions µA(x ) and µB (x ), respectively. Two MFs µA(x ) and
µB (x ) are shown graphically.
µA(x)
a3
a4 x
Sarvesh Maurya Soft Computing Applications 01/04/2025 55 / 69
Example 1: Plotting two sets on the same graph
µB µA
µ
b1 a1
a2 b4 a3 a4
x
µB µA
b1
a1
a2 b4 a3 a4 x
A B (x)
a2 b4 A B (x)
x b1 a1 a2 a3 a4
x
A(x)
a b a b
x x
Consider the following two fuzzy sets A and B defined over a universe of
discourse [0,5] of real numbers with their membership functions
µA(x ) = x
1+x and µB (x ) =
2−x
Determine the membership functions of the following and draw them
graphically.
i. A , B
ii. A ∪ B
iii. A ∩ B
iv. (A ∪ B)c [Hint: Use De’ Morgan law]
µA µB
1.0
0.5
µ
-15 -10 -5 0 5 10 15 20 25 30 35 40 45 50
Note: Note that ”Not cold climate” /= ”Hot climate” and vice-versa.
AB
0.
5
µ
- -
15 10 -5 0 5 10 15 20 25 30 35 40 45
50 5 5 25
15
x x x
25