SlideShare a Scribd company logo
1 of 26
Prepared by
Sharath B.K
S8 CS B
12120079
FUZZY LOGIC
Fuzzy Sets
School Of Engineering ,CUSAT 2
• Introduced by Lotfi AZadeh in 1960’s
• Used to represent sets where boundary of information is
unclear
• To account for concepts used in human reasoning which are
vague and imprecise
• In traditional logic elements can belong to the set or not
• In fuzzy logic for each element a strength of membership/
Degree of membership is associated
Example
School Of Engineering ,CUSAT 3
● Fuzzy set is very convenient method for
representing some form of uncertainty
● For example: the weather today
● Sunny: If we define any cloud cover of 25%
or less is sunny
● This means that a cloud cover of 26% is not
sunny?
● Vagueness should be introduced
Difference
School Of Engineering ,CUSAT 4
• Ordinary Sets-Only two values possible
• Membership of element ‘x’in set Ais described by a
characteristic function μ A(x) which can be either 0 or 1
• Fuzzy sets – Extends this using partial membership
• A fuzzy set Aon a universe of discourse U is
characterized by a membership function μA(x)
that takes values in the interval [0, 1]
Fuzzy Example - Tall
• Afuzzy set Ain U may be represented as a set of ordered
pairs. Each pair consists of a generic element x and its grade
of membership function; that is
Ordinary Set
School Of Engineering ,CUSAT 5
Fuzzy Set
Fuzzy Membership Functions
School Of Engineering ,CUSAT 6
• One of the key issues in all fuzzy sets is how to
determine fuzzy membership functions
• Amembership function provides a measure of
the degree of similarity of an element to a fuzzy
set
• Membership functions can take any form, but
there are some common examples that appear in
real applications
Fuzzy sets- subset
• Given two fuzzy set A,B defined on the Universe of
Discourse X, then A is a subset of B denoted by
A  B x X
• Iff μ A(x) ≤ μ B(x) for all
AB iff AB A and AB B forany
School Of Engineering ,CUSAT 7
Fuzzy Complement
School Of Engineering ,CUSAT 8
• This is the same in fuzzy logic as for Boolean logic
• For a fuzzy set A, A’ denotes the fuzzy complement of
A
• Membership function for fuzzy complement is
 ( x )  1   A ( x )
A
Fuzzy Intersection
School Of Engineering ,CUSAT 9
• Most commonly adopted t-norm is the minimum
• Given two fuzzy sets A and B with membership functions
µA(x) and µB(x), the intersection A and B defined over the
same universe of discourse X is a new fuzzy set A∩B also on
X with membership function which is the minimum of the
grades of membership function of every x to A and B
AB (x)  min( A (x), B (x))
Fuzzy Union
School Of Engineering ,CUSAT 10
• Given two fuzzy sets A and B with membership functions
µA(x) and µB(x), the union A and B defined over the same
universe of discourse X is a new fuzzy set A𝖴B also on X
with membership function which is the maximum of the
grades of membership function of every x to Aand B
• μ A𝖴B(x) ≡ max(μA(x),μB(x))
Example Problem 1
School Of Engineering ,CUSAT 11
Let U = { 1,2,3,4,5,6,7}
A= { (3, 0.7), (5, 1), (6, 0.8) } and
B = {(3, 0.9), (4, 1), (6, 0.6) }
Find A  B,A  B, B-A and A
’
A B = { (3, 0.7), (6, 0.6) }
A  B = { (3, 0.9), (4, 1), (5, 1), (6, 0.8) }
A
’= {(1, 1),(2, 1), (3, 0.3), (4, 1), (6, 0.2),(7, 1)}
B-A = { (3, 0.3), (4, 1), (6, 0.2)}
Fuzzy Logic Laws
School Of Engineering ,CUSAT 12
• Intersection distributive over union...
A(BC)(x)  (AB)(AC)(x)
min[A,max(B,C) ]=max[ min(A,B), min(A,C) ]
• Union distributive over intersection...
A(BC) (x)  (AB)( AC) (x)
max[ A,min(B,C) ]= min[ max(A,B), max(A,C)]
Fuzzy Logic Laws
• Obeys Demorgan’s Laws
(AB) AB
u (x)  u (x)
AB
School Of Engineering ,CUSAT 13
u (x) u (x)
(AB)
Fuzzy Logic Laws Contd..
• Fails The Law Contradiction
A  A  
• Thus, (the set of numbers closeto 2) AND (the set of numbers
not closeto 2)  null set
School Of Engineering ,CUSAT 14
Other Results
School Of Engineering ,CUSAT 15
• 𝐴 ∪ 𝐴̅ ≠ X
• 𝐴 ß ∅ = ∅
• 𝐴 ∪ ∅ = 𝐴
• 𝐴 ß 𝑋 = 𝐴
• 𝐴 ∪ 𝑋= X
Basic Operations
School Of Engineering ,CUSAT 16
● For reshaping the membership functions
– Dilation (DIL) : increases the degree of
membership of all members by spreading out the
curve DIL(A)=(uA(x))1/2 for all x in U
– Concentration (CON): Decreases the degree of
membership of all members
CON(A)=uA(x)2 for all x in U
– Normalization (NORM) : discriminates all
membership degree in the same order unless
maximum value of any member is 1. Computed as:
µA(x) / max (µA(x)), x  X
Graphical representation
• Concentration
• Dilation
• Intensification
School Of Engineering ,CUSAT 17
Reasoning with Fuzzy Logic
School Of Engineering ,CUSAT 18
• Premise A
• Implication relation R(x,y)
• Conclusion B’
• Fuzzy value A
’matches approximately with A
Inference Procedure
School Of Engineering ,CUSAT 19
Example
School Of Engineering ,CUSAT 20
• Premise : This banana is very yellow
• Implication : If a banana is yellow then the banana is ripe
• Conclusion : This banana is very ripe
Inference
School Of Engineering ,CUSAT 21
• Zadeh’s compositional rule of inference
• If RA(x),RB(x,y), Rc(y) are fuzzy relations in X, X x Yand
Yresp.
• Rc(y)=RA(x) º RB(x,y) where º signifies the composition of
A& B
• Commonly used method for composition
is Max-Min
• Rc(y)=maxx min {uA(x), uB(x,y)}
Inference Example
X=Y={1,2,3,4}
A={little}={(1/1),(2/0.6),(3/0.2),(4/0)}
R=approximately equal, in fuzzy relation
defined by
School Of Engineering ,CUSAT 22
Inference Example contd..
School Of Engineering ,CUSAT 23
Rc(y)=maxx min {uA(x), uR(x,y)}
= maxx {min [(1,1),(0.6,0.5),(0.2,0), (0,0)] ,
min [(1,0.5),(0.6,1),(0.2,0.5), (0,0)]
min [(1,0),(0.6,0.5),(0.2,1), (0,0.5)]
min [(1,0),(0.6,0),(0.2,0.5), (0,1)] }
= maxx {[1,0.5,0,0],[0.5,0.6,0.2,0],[0,0.5,0.2,0],[0,0,0.2,0]}
= { [1],[0.6],[0.5],[0.2] }
Inference Example contd..
School Of Engineering ,CUSAT 24
Therefore the solution is
Rc(y)={(1/1),(2/0.6),(3/0.5),(4/0.2) }
Started in terms of fuzzy modus ponens we might interpret this
inference
Premise : x is little
Implication : x and y are approximately equal
Conclusion : y is more or less equal
Generalisation
School Of Engineering ,CUSAT 25
The before mentioned notions can be
generalized to any number of universals by
taking the cartesian product and defining the
various subsets
School Of Engineering ,CUSAT 26

More Related Content

Similar to fuzzy-sbk-150311135852-conversion-gate01.pptx

It is known as two-valued logic because it have only two values
It is known as two-valued logic because it have only two values It is known as two-valued logic because it have only two values
It is known as two-valued logic because it have only two values Ramjeet Singh Yadav
 
Fuzzy logic and fuzzy time series edited
Fuzzy logic and fuzzy time series   editedFuzzy logic and fuzzy time series   edited
Fuzzy logic and fuzzy time series editedProf Dr S.M.Aqil Burney
 
Unit-II -Soft Computing.pdf
Unit-II -Soft Computing.pdfUnit-II -Soft Computing.pdf
Unit-II -Soft Computing.pdfRamya Nellutla
 
Mkk1013 chapter 2.1
Mkk1013 chapter 2.1Mkk1013 chapter 2.1
Mkk1013 chapter 2.1ramlahmailok
 
Fuzzy Set Theory
Fuzzy Set TheoryFuzzy Set Theory
Fuzzy Set TheoryAMIT KUMAR
 
block-mdp-masters-defense.pdf
block-mdp-masters-defense.pdfblock-mdp-masters-defense.pdf
block-mdp-masters-defense.pdfJunghyun Lee
 
Blind Source Separation using Dictionary Learning
Blind Source Separation using Dictionary LearningBlind Source Separation using Dictionary Learning
Blind Source Separation using Dictionary LearningDavide Nardone
 
Gaps between the theory and practice of large-scale matrix-based network comp...
Gaps between the theory and practice of large-scale matrix-based network comp...Gaps between the theory and practice of large-scale matrix-based network comp...
Gaps between the theory and practice of large-scale matrix-based network comp...David Gleich
 
Variational inference
Variational inference  Variational inference
Variational inference Natan Katz
 
A lattice-based consensus clustering
A lattice-based consensus clusteringA lattice-based consensus clustering
A lattice-based consensus clusteringDmitrii Ignatov
 
Thesis oral defense
Thesis oral defenseThesis oral defense
Thesis oral defenseFan Zhitao
 
An approach to Fuzzy clustering of the iris petals by using Ac-means
An approach to Fuzzy clustering of the iris petals by using Ac-meansAn approach to Fuzzy clustering of the iris petals by using Ac-means
An approach to Fuzzy clustering of the iris petals by using Ac-meansijsc
 

Similar to fuzzy-sbk-150311135852-conversion-gate01.pptx (20)

Fuzzy sets
Fuzzy sets Fuzzy sets
Fuzzy sets
 
It is known as two-valued logic because it have only two values
It is known as two-valued logic because it have only two values It is known as two-valued logic because it have only two values
It is known as two-valued logic because it have only two values
 
Chpt 2-sets v.3
Chpt 2-sets v.3Chpt 2-sets v.3
Chpt 2-sets v.3
 
Fuzzy logic and fuzzy time series edited
Fuzzy logic and fuzzy time series   editedFuzzy logic and fuzzy time series   edited
Fuzzy logic and fuzzy time series edited
 
Unit-II -Soft Computing.pdf
Unit-II -Soft Computing.pdfUnit-II -Soft Computing.pdf
Unit-II -Soft Computing.pdf
 
Mkk1013 chapter 2.1
Mkk1013 chapter 2.1Mkk1013 chapter 2.1
Mkk1013 chapter 2.1
 
Fuzzy Set Theory
Fuzzy Set TheoryFuzzy Set Theory
Fuzzy Set Theory
 
Lesson 26
Lesson 26Lesson 26
Lesson 26
 
AI Lesson 26
AI Lesson 26AI Lesson 26
AI Lesson 26
 
block-mdp-masters-defense.pdf
block-mdp-masters-defense.pdfblock-mdp-masters-defense.pdf
block-mdp-masters-defense.pdf
 
Blind Source Separation using Dictionary Learning
Blind Source Separation using Dictionary LearningBlind Source Separation using Dictionary Learning
Blind Source Separation using Dictionary Learning
 
Gaps between the theory and practice of large-scale matrix-based network comp...
Gaps between the theory and practice of large-scale matrix-based network comp...Gaps between the theory and practice of large-scale matrix-based network comp...
Gaps between the theory and practice of large-scale matrix-based network comp...
 
Variational inference
Variational inference  Variational inference
Variational inference
 
Modeling the dynamics of molecular concentration during the diffusion procedure
Modeling the dynamics of molecular concentration during the  diffusion procedureModeling the dynamics of molecular concentration during the  diffusion procedure
Modeling the dynamics of molecular concentration during the diffusion procedure
 
A lattice-based consensus clustering
A lattice-based consensus clusteringA lattice-based consensus clustering
A lattice-based consensus clustering
 
Ch02 fuzzyrelation
Ch02 fuzzyrelationCh02 fuzzyrelation
Ch02 fuzzyrelation
 
Fuzzy Logic_HKR
Fuzzy Logic_HKRFuzzy Logic_HKR
Fuzzy Logic_HKR
 
Thesis oral defense
Thesis oral defenseThesis oral defense
Thesis oral defense
 
An approach to Fuzzy clustering of the iris petals by using Ac-means
An approach to Fuzzy clustering of the iris petals by using Ac-meansAn approach to Fuzzy clustering of the iris petals by using Ac-means
An approach to Fuzzy clustering of the iris petals by using Ac-means
 
document(1).pdf
document(1).pdfdocument(1).pdf
document(1).pdf
 

More from saadurrehman35

More from saadurrehman35 (6)

Pattern Matching AI.pdf
Pattern Matching AI.pdfPattern Matching AI.pdf
Pattern Matching AI.pdf
 
AI_Lecture_10.pptx
AI_Lecture_10.pptxAI_Lecture_10.pptx
AI_Lecture_10.pptx
 
AI_Lecture2.pptx
AI_Lecture2.pptxAI_Lecture2.pptx
AI_Lecture2.pptx
 
AI
AIAI
AI
 
Symbolic Mathematics
Symbolic Mathematics Symbolic Mathematics
Symbolic Mathematics
 
Artificial Intelligence.pptx
Artificial Intelligence.pptxArtificial Intelligence.pptx
Artificial Intelligence.pptx
 

Recently uploaded

Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilV3cube
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 

Recently uploaded (20)

Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 

fuzzy-sbk-150311135852-conversion-gate01.pptx

  • 1. Prepared by Sharath B.K S8 CS B 12120079 FUZZY LOGIC
  • 2. Fuzzy Sets School Of Engineering ,CUSAT 2 • Introduced by Lotfi AZadeh in 1960’s • Used to represent sets where boundary of information is unclear • To account for concepts used in human reasoning which are vague and imprecise • In traditional logic elements can belong to the set or not • In fuzzy logic for each element a strength of membership/ Degree of membership is associated
  • 3. Example School Of Engineering ,CUSAT 3 ● Fuzzy set is very convenient method for representing some form of uncertainty ● For example: the weather today ● Sunny: If we define any cloud cover of 25% or less is sunny ● This means that a cloud cover of 26% is not sunny? ● Vagueness should be introduced
  • 4. Difference School Of Engineering ,CUSAT 4 • Ordinary Sets-Only two values possible • Membership of element ‘x’in set Ais described by a characteristic function μ A(x) which can be either 0 or 1 • Fuzzy sets – Extends this using partial membership • A fuzzy set Aon a universe of discourse U is characterized by a membership function μA(x) that takes values in the interval [0, 1]
  • 5. Fuzzy Example - Tall • Afuzzy set Ain U may be represented as a set of ordered pairs. Each pair consists of a generic element x and its grade of membership function; that is Ordinary Set School Of Engineering ,CUSAT 5 Fuzzy Set
  • 6. Fuzzy Membership Functions School Of Engineering ,CUSAT 6 • One of the key issues in all fuzzy sets is how to determine fuzzy membership functions • Amembership function provides a measure of the degree of similarity of an element to a fuzzy set • Membership functions can take any form, but there are some common examples that appear in real applications
  • 7. Fuzzy sets- subset • Given two fuzzy set A,B defined on the Universe of Discourse X, then A is a subset of B denoted by A  B x X • Iff μ A(x) ≤ μ B(x) for all AB iff AB A and AB B forany School Of Engineering ,CUSAT 7
  • 8. Fuzzy Complement School Of Engineering ,CUSAT 8 • This is the same in fuzzy logic as for Boolean logic • For a fuzzy set A, A’ denotes the fuzzy complement of A • Membership function for fuzzy complement is  ( x )  1   A ( x ) A
  • 9. Fuzzy Intersection School Of Engineering ,CUSAT 9 • Most commonly adopted t-norm is the minimum • Given two fuzzy sets A and B with membership functions µA(x) and µB(x), the intersection A and B defined over the same universe of discourse X is a new fuzzy set A∩B also on X with membership function which is the minimum of the grades of membership function of every x to A and B AB (x)  min( A (x), B (x))
  • 10. Fuzzy Union School Of Engineering ,CUSAT 10 • Given two fuzzy sets A and B with membership functions µA(x) and µB(x), the union A and B defined over the same universe of discourse X is a new fuzzy set A𝖴B also on X with membership function which is the maximum of the grades of membership function of every x to Aand B • μ A𝖴B(x) ≡ max(μA(x),μB(x))
  • 11. Example Problem 1 School Of Engineering ,CUSAT 11 Let U = { 1,2,3,4,5,6,7} A= { (3, 0.7), (5, 1), (6, 0.8) } and B = {(3, 0.9), (4, 1), (6, 0.6) } Find A  B,A  B, B-A and A ’ A B = { (3, 0.7), (6, 0.6) } A  B = { (3, 0.9), (4, 1), (5, 1), (6, 0.8) } A ’= {(1, 1),(2, 1), (3, 0.3), (4, 1), (6, 0.2),(7, 1)} B-A = { (3, 0.3), (4, 1), (6, 0.2)}
  • 12. Fuzzy Logic Laws School Of Engineering ,CUSAT 12 • Intersection distributive over union... A(BC)(x)  (AB)(AC)(x) min[A,max(B,C) ]=max[ min(A,B), min(A,C) ] • Union distributive over intersection... A(BC) (x)  (AB)( AC) (x) max[ A,min(B,C) ]= min[ max(A,B), max(A,C)]
  • 13. Fuzzy Logic Laws • Obeys Demorgan’s Laws (AB) AB u (x)  u (x) AB School Of Engineering ,CUSAT 13 u (x) u (x) (AB)
  • 14. Fuzzy Logic Laws Contd.. • Fails The Law Contradiction A  A   • Thus, (the set of numbers closeto 2) AND (the set of numbers not closeto 2)  null set School Of Engineering ,CUSAT 14
  • 15. Other Results School Of Engineering ,CUSAT 15 • 𝐴 ∪ 𝐴̅ ≠ X • 𝐴 ß ∅ = ∅ • 𝐴 ∪ ∅ = 𝐴 • 𝐴 ß 𝑋 = 𝐴 • 𝐴 ∪ 𝑋= X
  • 16. Basic Operations School Of Engineering ,CUSAT 16 ● For reshaping the membership functions – Dilation (DIL) : increases the degree of membership of all members by spreading out the curve DIL(A)=(uA(x))1/2 for all x in U – Concentration (CON): Decreases the degree of membership of all members CON(A)=uA(x)2 for all x in U – Normalization (NORM) : discriminates all membership degree in the same order unless maximum value of any member is 1. Computed as: µA(x) / max (µA(x)), x  X
  • 17. Graphical representation • Concentration • Dilation • Intensification School Of Engineering ,CUSAT 17
  • 18. Reasoning with Fuzzy Logic School Of Engineering ,CUSAT 18 • Premise A • Implication relation R(x,y) • Conclusion B’ • Fuzzy value A ’matches approximately with A
  • 19. Inference Procedure School Of Engineering ,CUSAT 19
  • 20. Example School Of Engineering ,CUSAT 20 • Premise : This banana is very yellow • Implication : If a banana is yellow then the banana is ripe • Conclusion : This banana is very ripe
  • 21. Inference School Of Engineering ,CUSAT 21 • Zadeh’s compositional rule of inference • If RA(x),RB(x,y), Rc(y) are fuzzy relations in X, X x Yand Yresp. • Rc(y)=RA(x) º RB(x,y) where º signifies the composition of A& B • Commonly used method for composition is Max-Min • Rc(y)=maxx min {uA(x), uB(x,y)}
  • 22. Inference Example X=Y={1,2,3,4} A={little}={(1/1),(2/0.6),(3/0.2),(4/0)} R=approximately equal, in fuzzy relation defined by School Of Engineering ,CUSAT 22
  • 23. Inference Example contd.. School Of Engineering ,CUSAT 23 Rc(y)=maxx min {uA(x), uR(x,y)} = maxx {min [(1,1),(0.6,0.5),(0.2,0), (0,0)] , min [(1,0.5),(0.6,1),(0.2,0.5), (0,0)] min [(1,0),(0.6,0.5),(0.2,1), (0,0.5)] min [(1,0),(0.6,0),(0.2,0.5), (0,1)] } = maxx {[1,0.5,0,0],[0.5,0.6,0.2,0],[0,0.5,0.2,0],[0,0,0.2,0]} = { [1],[0.6],[0.5],[0.2] }
  • 24. Inference Example contd.. School Of Engineering ,CUSAT 24 Therefore the solution is Rc(y)={(1/1),(2/0.6),(3/0.5),(4/0.2) } Started in terms of fuzzy modus ponens we might interpret this inference Premise : x is little Implication : x and y are approximately equal Conclusion : y is more or less equal
  • 25. Generalisation School Of Engineering ,CUSAT 25 The before mentioned notions can be generalized to any number of universals by taking the cartesian product and defining the various subsets