Fuzzy Sets

29
Slides for Fuzzy Sets, Ch. 2 of Neuro-Fuzzy and Soft Computing J.-S. Roger Jang ( J.-S. Roger Jang ( 張張張 張張張 ) CS Dept., Tsing Hua Univ., Taiwan CS Dept., Tsing Hua Univ., Taiwan http://www.cs.nthu.edu.tw/~jang http://www.cs.nthu.edu.tw/~jang [email protected] [email protected] Neuro-Fuzzy and Soft Computing: Fuzzy Sets

description

Neuro-Fuzzy and Soft Computing

Transcript of Fuzzy Sets

Page 1: Fuzzy Sets

Slides for Fuzzy Sets, Ch. 2 ofNeuro-Fuzzy and Soft Computing

Slides for Fuzzy Sets, Ch. 2 ofNeuro-Fuzzy and Soft Computing

J.-S. Roger Jang (J.-S. Roger Jang ( 張智星張智星 ))

CS Dept., Tsing Hua Univ., TaiwanCS Dept., Tsing Hua Univ., Taiwanhttp://www.cs.nthu.edu.tw/~janghttp://www.cs.nthu.edu.tw/~jang

[email protected]@cs.nthu.edu.tw

Neuro-Fuzzy and Soft Computing: Fuzzy Sets

Page 2: Fuzzy Sets

Neuro-Fuzzy and Soft Computing: Fuzzy Sets

2

Fuzzy Sets: OutlineFuzzy Sets: Outline

Introduction

Basic definitions and terminology

Set-theoretic operations

MF formulation and parameterization• MFs of one and two dimensions

• Derivatives of parameterized MFs

More on fuzzy union, intersection, and complement• Fuzzy complement

• Fuzzy intersection and union

• Parameterized T-norm and T-conorm

Page 3: Fuzzy Sets

Neuro-Fuzzy and Soft Computing: Fuzzy Sets

3

Fuzzy SetsFuzzy Sets

Sets with fuzzy boundaries

A = Set of tall people

Heights5’10’’

1.0

Crisp set A

Membershipfunction

Heights5’10’’ 6’2’’

.5

.9

Fuzzy set A1.0

Page 4: Fuzzy Sets

Neuro-Fuzzy and Soft Computing: Fuzzy Sets

4

Membership Functions (MFs)Membership Functions (MFs)

Characteristics of MFs:• Subjective measures

• Not probability functions

MFs

Heights5’10’’

.5

.8

.1

“tall” in Asia

“tall” in the US

“tall” in NBA

Page 5: Fuzzy Sets

Neuro-Fuzzy and Soft Computing: Fuzzy Sets

5

Fuzzy SetsFuzzy Sets

Formal definition:A fuzzy set A in X is expressed as a set of ordered

pairs:

A x x x XA {( , ( ))| }

Universe oruniverse of discourse

Fuzzy setMembership

function(MF)

A fuzzy set is totally characterized by aA fuzzy set is totally characterized by amembership function (MF).membership function (MF).

Page 6: Fuzzy Sets

Neuro-Fuzzy and Soft Computing: Fuzzy Sets

6

Fuzzy Sets with Discrete UniversesFuzzy Sets with Discrete UniversesFuzzy set C = “desirable city to live in”

X = {SF, Boston, LA} (discrete and nonordered)

C = {(SF, 0.9), (Boston, 0.8), (LA, 0.6)}

Fuzzy set A = “sensible number of children”X = {0, 1, 2, 3, 4, 5, 6} (discrete universe)

A = {(0, .1), (1, .3), (2, .7), (3, 1), (4, .6), (5, .2), (6, .1)}

Page 7: Fuzzy Sets

Neuro-Fuzzy and Soft Computing: Fuzzy Sets

7

Fuzzy Sets with Cont. UniversesFuzzy Sets with Cont. Universes

Fuzzy set B = “about 50 years old”X = Set of positive real numbers (continuous)

B = {(x, B(x)) | x in X}

B xx

( )

1

15010

2

Page 8: Fuzzy Sets

Neuro-Fuzzy and Soft Computing: Fuzzy Sets

8

Alternative NotationAlternative Notation

A fuzzy set A can be alternatively denoted as follows:

A x xAx X

i i

i

( ) /

A x xA

X

( ) /

X is discrete

X is continuous

Note that and integral signs stand for the union of membership grades; “/” stands for a marker and does not imply division.

Page 9: Fuzzy Sets

Neuro-Fuzzy and Soft Computing: Fuzzy Sets

9

Fuzzy PartitionFuzzy Partition

Fuzzy partitions formed by the linguistic values “young”, “middle aged”, and “old”:

lingmf.m

Page 10: Fuzzy Sets

Neuro-Fuzzy and Soft Computing: Fuzzy Sets

10

More DefinitionsMore Definitions

Support

Core

Normality

Crossover points

Fuzzy singleton

-cut, strong -cut

Convexity

Fuzzy numbers

Bandwidth

Symmetricity

Open left or right, closed

Page 11: Fuzzy Sets

Neuro-Fuzzy and Soft Computing: Fuzzy Sets

11

MF TerminologyMF Terminology

MF

X

.5

1

0Core

Crossover points

Support

- cut

Page 12: Fuzzy Sets

Neuro-Fuzzy and Soft Computing: Fuzzy Sets

12

Convexity of Fuzzy SetsConvexity of Fuzzy Sets

A fuzzy set A is convex if for any in [0, 1], A A Ax x x x( ( ) ) min( ( ), ( ))1 2 1 21

Alternatively, A is convex is all its -cuts are convex.

convexmf.m

Page 13: Fuzzy Sets

Neuro-Fuzzy and Soft Computing: Fuzzy Sets

13

Set-Theoretic OperationsSet-Theoretic Operations

Subset:

Complement:

Union:

Intersection:

A B A B

C A B x x x x xc A B A B ( ) max( ( ), ( )) ( ) ( )

C A B x x x x xc A B A B ( ) min( ( ), ( )) ( ) ( )

A X A x xA A ( ) ( )1

Page 14: Fuzzy Sets

Neuro-Fuzzy and Soft Computing: Fuzzy Sets

14

Set-Theoretic OperationsSet-Theoretic Operations

subset.m

fuzsetop.m

Page 15: Fuzzy Sets

Neuro-Fuzzy and Soft Computing: Fuzzy Sets

15

MF FormulationMF Formulation

Triangular MF: trimf x a b cx ab a

c xc b

( ; , , ) max min , ,

0

Trapezoidal MF: trapmf x a b c dx ab a

d xd c

( ; , , , ) max min , , ,

1 0

Generalized bell MF: gbellmf x a b cx cb

b( ; , , )

1

12

Gaussian MF: gaussmf x a b c ex c

( ; , , )

12

2

Page 16: Fuzzy Sets

Neuro-Fuzzy and Soft Computing: Fuzzy Sets

16

MF FormulationMF Formulation

disp_mf.m

Page 17: Fuzzy Sets

Neuro-Fuzzy and Soft Computing: Fuzzy Sets

17

MF FormulationMF Formulation

Sigmoidal MF: sigmf x a b ce a x c( ; , , ) ( )

11

Extensions:

Abs. difference

of two sig. MF

Product

of two sig. MF

disp_sig.m

Page 18: Fuzzy Sets

Neuro-Fuzzy and Soft Computing: Fuzzy Sets

18

MF FormulationMF Formulation

L-R MF:LR x c

Fc x

x c

Fx c

x c

L

R

( ; , , ),

,

Example: F x xL ( ) max( , ) 0 1 2 F x xR ( ) exp( ) 3

difflr.m

c=65

a=60

b=10

c=25

a=10

b=40

Page 19: Fuzzy Sets

Neuro-Fuzzy and Soft Computing: Fuzzy Sets

19

Cylindrical ExtensionCylindrical Extension

Base set A Cylindrical Ext. of A

cyl_ext.m

Page 20: Fuzzy Sets

Neuro-Fuzzy and Soft Computing: Fuzzy Sets

20

2D MF Projection2D MF Projection

Two-dimensional

MF

Projection

onto X

Projection

onto Y

R x y( , )

A

yR

x

x y

( )

max ( , )

B

xR

y

x y

( )

max ( , )

project.m

Page 21: Fuzzy Sets

Neuro-Fuzzy and Soft Computing: Fuzzy Sets

21

2D MFs2D MFs

2dmf.m

Page 22: Fuzzy Sets

Neuro-Fuzzy and Soft Computing: Fuzzy Sets

22

Fuzzy ComplementFuzzy Complement

General requirements:• Boundary: N(0)=1 and N(1) = 0

• Monotonicity: N(a) > N(b) if a < b

• Involution: N(N(a) )= a

Two types of fuzzy complements:• Sugeno’s complement:

• Yager’s complement:

N aa

sas( )1

1

N a aww w( ) ( ) / 1 1

Page 23: Fuzzy Sets

Neuro-Fuzzy and Soft Computing: Fuzzy Sets

23

Fuzzy ComplementFuzzy Complement

negation.m

N aa

sas( )1

1N a aw

w w( ) ( ) / 1 1

Sugeno’s complement: Yager’s complement:

Page 24: Fuzzy Sets

Neuro-Fuzzy and Soft Computing: Fuzzy Sets

24

Fuzzy Intersection: T-normFuzzy Intersection: T-norm

Basic requirements:• Boundary: T(0, 0) = 0, T(a, 1) = T(1, a) = a

• Monotonicity: T(a, b) < T(c, d) if a < c and b < d

• Commutativity: T(a, b) = T(b, a)

• Associativity: T(a, T(b, c)) = T(T(a, b), c)

Four examples (page 37):• Minimum: Tm(a, b)

• Algebraic product: Ta(a, b)

• Bounded product: Tb(a, b)

• Drastic product: Td(a, b)

Page 25: Fuzzy Sets

Neuro-Fuzzy and Soft Computing: Fuzzy Sets

25

T-norm OperatorT-norm Operator

Minimum:Tm(a, b)

Algebraicproduct:Ta(a, b)

Boundedproduct:Tb(a, b)

Drasticproduct:Td(a, b)

tnorm.m

Page 26: Fuzzy Sets

Neuro-Fuzzy and Soft Computing: Fuzzy Sets

26

Fuzzy Union: T-conorm or S-normFuzzy Union: T-conorm or S-norm

Basic requirements:• Boundary: S(1, 1) = 1, S(a, 0) = S(0, a) = a

• Monotonicity: S(a, b) < S(c, d) if a < c and b < d

• Commutativity: S(a, b) = S(b, a)

• Associativity: S(a, S(b, c)) = S(S(a, b), c)

Four examples (page 38):• Maximum: Sm(a, b)

• Algebraic sum: Sa(a, b)

• Bounded sum: Sb(a, b)

• Drastic sum: Sd(a, b)

Page 27: Fuzzy Sets

Neuro-Fuzzy and Soft Computing: Fuzzy Sets

27

T-conorm or S-normT-conorm or S-norm

tconorm.m

Maximum:Sm(a, b)

Algebraicsum:

Sa(a, b)

Boundedsum:

Sb(a, b)

Drasticsum:

Sd(a, b)

Page 28: Fuzzy Sets

Neuro-Fuzzy and Soft Computing: Fuzzy Sets

28

Generalized DeMorgan’s LawGeneralized DeMorgan’s Law

T-norms and T-conorms are duals which support the generalization of DeMorgan’s law:

• T(a, b) = N(S(N(a), N(b)))

• S(a, b) = N(T(N(a), N(b)))

Tm(a, b)Ta(a, b)Tb(a, b)Td(a, b)

Sm(a, b)Sa(a, b)Sb(a, b)Sd(a, b)

Page 29: Fuzzy Sets

Neuro-Fuzzy and Soft Computing: Fuzzy Sets

29

Parameterized T-norm and S-normParameterized T-norm and S-norm

Parameterized T-norms and dual T-conorms have been proposed by several researchers:

• Yager

• Schweizer and Sklar

• Dubois and Prade

• Hamacher

• Frank

• Sugeno

• Dombi