Ai Lect7 Expert System
Ai Lect7 Expert System
Knowledge-Based Represenation
Expert Systems
Knowledge bases
type(v)>type(w) or instance(w)::type(v)
Types of Knowledge
Objects
– both physical & concepts
Events
– usually involve time
– maybe cause & effect relationships
Performance
– how to do things
META Knowledge
– knowledge about how to use knowledge
Proposition logic
Basic connectives and truth tables
2+3=5.
not statements:
What a beautiful morning!
Get up and do your exercises.
Fundamentals of Logic
p q p q p q p q pq pq
0 0 0 0 0 1 1
0 1 0 1 1 1 0
1 0 0 1 1 0 0
1 1 1 1 0 1 1
Examples of PL sentences
P means “It is hot.”
Q means “It is humid.”
R means “It is raining.”
(P Q) R
“If it is hot and humid, then it is raining”
QP
“If it is humid, then it is hot”
A better way:
Hot = “It is hot”
Humid = “It is humid”
Raining = “It is raining”
Example
p q p p q pq
0 0 1 1 1
0 1 1 1 1
1 0 0 0 0
1 1 0 1 1
s1 s2
Logical equivalence
Two sentences are logically equivalent} iff true in
same models: α ≡ ß iff α╞ β and β╞ α
Tables of Logical Equivalences
• Identity laws
Like adding 0
• Domination laws
Like multiplying by 0
• Idempotent laws
Delete redundancies
• Double negation
“I don’t like you, not”
• Commutativity
Like “x+y = y+x”
• Associativity
Like “(x+y)+z = y+
(x+z)”
• Distributivity
Like “(x+y)z = xz+yz”
• De Morgan
L3 18
Tables of Logical Equivalences
• Excluded middle
• Negating creates
opposite
• Definition of
implication in terms
of Not and Or
Fundamentals of Logic
A compound statement is called a tautology(T0) if it is
true for all truth value assignments for its component
statements.
If a compound statement is false for all such
assignments, then it is called a contradiction(F0).
p ( p q ) : tautology
p ( p q ) : contradiction
Propositional Logic - 2 more defn…
p p p p p p
T F T F
F T T F
Tautology example
Demonstrate that
[¬p (p q )]q
is a tautology in two ways:
1. Using a truth table – show that
[¬p (p q )]q is always true
2. Using a proof (will get to this later).
22
Tautology by truth table
p q ¬p p q ¬p (p q ) [¬p (p q )]q
T T F T F T
T F F T F T
F T T T T T
F F T F F T
Derivational Proof Techniques
Syntax
Constants
Constants refer to objects, functions and relationships.
Ahmed, Mona, loves, happy,
Simple sentences express relationships among objects.
loves(Ahmed, Mona)
They are called atoms.
Compound sentences capture relationships among relations.
loves(x,y) loves(y,x)
loves(x,y) loves(y,x) happy(x)
x hesitates(x) lost(x)
• He who hesitates is lost.
Using FOL
53
Model Checking
Enumerate all possible worlds
54
Inference as Search
State: current set of sentences
Operator: sound inference rules to derive new
entailed sentences from a set of sentences
55
Generalized Modus Ponens
Modus Ponens - special case of Resolution
1. Sameh is a lawyer.
2. Lawyers are rich.
3. Rich people have big houses.
4. Big houses are a lot of work.
We would like to conclude that Sameh’s
house is a lot of work.
Axiomatization 1
1. lawyer(Sameh)
2. x lawyer(x) rich(x)
3. x rich(x) y house(x,y)
4. x,y rich(x) house(x,y) big(y)
5. x,y ( house(x,y) big(y) work(y) )
3 and 4, say that rich people do have at least one house
and all their houses are big.
Conclusion we want to show:
house(Sameh, S_house) work(Sameh, S_house)
Or, do we want to conclude that Sameh has at least one
house that needs a lot of work? I.e.
y house(Sameh,y) work(y)
Hassan and the cat
Every animal owner is an animal lover
Everyone who loves all animals is loved by
someone.
Anyone who kills an animal is loved by no one.
Mustafa owns a dog.
Either Mustafa or Hassan killed the cat, who is
named SoSo.
Did Hassan kill the cat?
Practice example
Did Hassan kill the cat
GOAL
Convert to clause form
A1. (Dog(D))
A2. (Owns(Mustafa,D))
B. (Dog(y), Owns(x, y), AnimalLover(x))
C. (AnimalLover(a), Animal(b), Kills(a,b))
D. (Kills(Mustafa,SoSo), Kills(Hassan,SoSo))
E. Cat(SoSo)
F. (Cat(z), Animal(z))
Add the negation of query:
G: (Kills(Hassan, SoSo))
74
The resolution refutation proof
R1: G, D, {} (Kills(Mustafa,SoSo))
R2: R1, C, {a/Mustafa, b/SoSo}
(~AnimalLover(Mustafa),
~Animal(SoSo))
R3: R2, B, {x/Mustafa} (~Dog(y), ~Owns(Mustafa,
y), ~Animal(SoSo))
R4: R3, A1, {y/D} (~Owns(Mustafa, D),
~Animal(SoSo))
R5: R4, A2, {} (~Animal(SoSo))
R6: R5, F, {z/SoSo} (~Cat(SoSo))
R7: R6, E, {} FALSE
75
The proof tree
G D
{}
R1: K(J,T) C
{a/J,b/T}
R2: AL(J) A(T) B
{x/J}
R3: D(y) O(J,y) A(T)A1
{y/D}
R4: O(J,D), A(T) A2
{}
R5: A(T) F
{z/T}
R6: C(T) A
{}
R7: FALSE
Umbrellas in first-order logic
You know the following things:
– You have exactly one other person living in your house, who is wet
– If a person is wet, it is because of the rain, the sprinklers, or both
– If a person is wet because of the sprinklers, the sprinklers must be
on
– If a person is wet because of rain, that person must not be
carrying any umbrella
– There is an umbrella that “lives in” your house, which is not in its
house
– An umbrella that is not in its house must be carried by some
person who lives in that house
– You are not carrying any umbrella
Can you conclude that the sprinklers are on?
Example knowledge base
The law says that it is a crime for an
American to sell weapons to hostile
nations. The country Nono, an enemy of
America, has some missiles, and all of its
missiles were sold to it by Colonel West,
who is American.
Rule-Based Systems
Also known as “production systems” or
“expert systems”
Rule-based systems are one of the most
successful AI paradigms
Used for synthesis (construction) type
systems
Also used for analysis (diagnostic or
classification) type systems
Rule-Based Systems
Instead of representing knowledge in a
relatively declarative, static way (as a bunch
of things that are true), rule-based system
represent knowledge in terms of a bunch of
rules that tell you what you should do or what
you could conclude in different situations.
A rule-based system consists of a bunch of
IF-THEN rules, a bunch of facts, and some
interpreter controlling the application of the
rules, given the facts.
1. IF (lecturing X)
AND (marking-practicals X)
THEN ADD (overworked X)
2. IF (month february)
THEN ADD (lecturing ali)
3. IF (month february)
THEN ADD (marking-practicals ali)
4. IF (overworked X)
OR (slept-badly X)
THEN ADD (bad-mood X)
5. IF (bad-mood X)
THEN DELETE (happy X)
6. IF (lecturing X)
THEN DELETE (researching X)
Rule Based Reasoning
The advantages of rule-based approach:
– The ability to use
– Good performance
– Good explanation
The disadvantage are
– Cannot handle missing information
– Knowledge tends to be very task
dependent
Other Reasoning
86
Decision Support Systems and Intelligent Systems, Efraim Turban and Jay E. Aronson
Copyright 1998, Prentice Hall, Upper Saddle River, NJ
Knowledge Bases
Search the Knowledge Base for Relevant
Facts and Relationships
Reach One or More Alternative Solutions
to a Problem
Augments the User (Typically a Novice)
87
Decision Support Systems and Intelligent Systems, Efraim Turban and Jay E. Aronson
Copyright 1998, Prentice Hall, Upper Saddle River, NJ
(ES) Introduction
Expert System vs. knowledge-based system
An Expert System is a system that employs
human knowledge captured in a computer to
solve problems that ordinarily require human
expertise
ES imitate the expert’s reasoning processes to
solve specific problems
4
88
History of
Expert Systems
1. Early to Mid-1960s
– One attempt: the General-purpose Problem Solver
(GPS)
General-purpose Problem Solver (GPS)
A procedure developed by Newell and Simon
[1973] from their Logic Theory Machine -
– Attempted to create an "intelligent" computer
• general problem-solving methods applicable across domains
– Predecessor to ES
– Not successful, but a good start
5
89
2. Mid-1960s: Special-purpose ES programs
– DENDRAL
– MYCIN
Researchers recognized that the problem-solving
mechanism is only a small part of a complete, intelligent
computer system
– General problem solvers cannot be used to build high
performance ES
– Human problem solvers are good only if they operate in a very
narrow domain
– Expert systems must be constantly updated with new information
– The complexity of problems requires a considerable amount of
knowledge about the problem area
6
90
3. Mid 1970s
– Several Real Expert Systems Emerge
– Recognition of the Central Role of Knowledge
– AI Scientists Develop
• Comprehensive knowledge representation theories
• General-purpose, decision-making procedures and inferences
Limited Success Because
– Knowledge is Too Broad and Diverse
– Efforts to Solve Fairly General Knowledge-Based
Problems were Premature
7
91
BUT
Several knowledge representations worked
Key Insight
The power of an ES is derived from the specific
knowledge it possesses, not from the particular
formalisms and inference schemes it employs
8
92
4. Early 1980s
ES Technology Starts to go Commercial
– XCON
– XSEL
– CATS-1
Programming Tools and Shells Appear
– EMYCIN
– EXPERT
– META-DENDRAL
– EURISKO
About 1/3 of These Systems Are Very Successful and
Are Still in Use
9
93
Latest ES Developments
Many tools to expedite the construction of ES
at a reduced cost
Dissemination of ES in thousands of
organizations
Extensive integration of ES with other CBIS
Increased use of expert systems in many tasks
Use of ES technology to expedite IS
construction (ES Shell)
10
94
The object-oriented programming approach in
knowledge representation
Complex systems with multiple knowledge sources,
multiple lines of reasoning, and fuzzy information
Use of multiple knowledge bases
Improvements in knowledge acquisition
Larger storage and faster processing computers
The Internet to disseminate software and expertise.
11
95
Expert Systems
Attempt to Imitate Expert Reasoning
Processes and Knowledge in Solving
Specific Problems
Most Popular Applied AI Technology
– Enhance Productivity
– Augment Work Forces
Narrow Problem-Solving Areas or Tasks
96
Decision Support Systems and Intelligent Systems, Efraim Turban and Jay E. Aronson
6th ed, Copyright 2001, Prentice Hall, Upper Saddle River, NJ
Expert Systems
Provide Direct Application of Expertise
97
Decision Support Systems and Intelligent Systems, Efraim Turban and Jay E. Aronson
6th ed, Copyright 2001, Prentice Hall, Upper Saddle River, NJ
Expertise
The extensive, task-specific knowledge acquired from
training, reading and experience
– Theories about the problem area
– Hard-and-fast rules and procedures
– Rules (heuristics)
– Global strategies
– Meta-knowledge (knowledge about knowledge)
– Facts
Enables experts to be better and faster than nonexperts
98
Decision Support Systems and Intelligent Systems, Efraim Turban and Jay E. Aronson
6th ed, Copyright 2001, Prentice Hall, Upper Saddle River, NJ
Human Expert Behaviors
Recognize and formulate the problem
Solve problems quickly and properly
Explain the solution
Learn from experience
Restructure knowledge
Break rules
Determine relevance
Degrade gracefully
99
Decision Support Systems and Intelligent Systems, Efraim Turban and Jay E. Aronson
6th ed, Copyright 2001, Prentice Hall, Upper Saddle River, NJ
Transferring Expertise
Objective of an expert system
– To transfer expertise from an expert to a computer
system and
– Then on to other humans (nonexperts)
Activities
– Knowledge acquisition
– Knowledge representation
– Knowledge inferencing
– Knowledge transfer to the user
Knowledge is stored in a knowledge base
100
Decision Support Systems and Intelligent Systems, Efraim Turban and Jay E. Aronson
6th ed, Copyright 2001, Prentice Hall, Upper Saddle River, NJ
Inferencing
Reasoning (Thinking)
The computer is programmed so that it
can make inferences
Performed by the Inference Engine
101
Decision Support Systems and Intelligent Systems, Efraim Turban and Jay E. Aronson
6th ed, Copyright 2001, Prentice Hall, Upper Saddle River, NJ
Rules
IF-THEN-ELSE
Explanation Capability
– By the justifier, or explanation
subsystem
ES versus Conventional Systems
102
Decision Support Systems and Intelligent Systems, Efraim Turban and Jay E. Aronson
6th ed, Copyright 2001, Prentice Hall, Upper Saddle River, NJ
Knowledge as Rules
MYCIN rule example:
IF the infection is meningitis
AND patient has evidence of serious skin or soft tissue
infection
AND organisms were not seen on the stain of the culture
AND type of infection is bacterial
THEN There is evidence that the organism (other than
those seen on cultures or smears) causin the infection
is Staphylococus coagpus.
22
103
Three Major ES Components
User Interface
Inference
Engine
Knowledge
Base
104
ES Shell
Working
Memory
Inference Knowledge
User Interface
Engine Base
Explanation
Facility
Database, Knowledge
Spreadsheets, etc. Acquisition
Basic ES Structure
26
105
All ES Components
Knowledge Acquisition Subsystem
Knowledge Base
Inference Engine
User Interface
Blackboard (Workplace)
Explanation Subsystem (Justifier)
Knowledge Refining System
User
106
And now with confidences
Facts:
– F1: Ungee gives milk: .9
– F2: Ungee eats meat: .8
– F3: Ungee has hoofs: .7
Rules:
– R1: If X gives milk, then it is a mammal: .6
– R2: If X is a mammal and eats meat, then
carnivore: .5
– R3: If X has hoofs, then X is carnivore: .4
R1 with F1: Ungee is mammal. (F4)
Confidence F4: C(F4) = .9*.6 = .54
R2 using F2 and F4 yields: Ungee is
carnivore (F5).
C(F5) from R2 = min(.54, .8)*.5 = .27
R3 using F3 conclude F5 from R3
C(F5) from R3 = .7*.4 = .28
C(F5) from R3 and R2 = .27 @ .28 =
1 –(1-.28)*(1-.27) = .48
Knowledge Base
The knowledge base contains the knowledge necessary for
understanding, formulating, and solving problems
110
The production system after Rule
1 has fired.
The system after Rule 4 has fired. Note the stack-
based approach to goal reduction.
The and/or graph searched in the car diagnosis
example, with the conclusion of Rule 4 matching the
first premise of Rule 1.
Explanation and Transparency in
Goal-Driven Reasoning
The following dialogue begins with the
computer asking the user about the goals
present in the working memory:
– Gas in fuel tank?
YES
– Gas in carburetor?
YES
– Engine will turn over?
WHY
Model-Based Expert System Example
The expected output value are given in () and the actual outputs
in [ ]
The Human Element in
Expert Systems
Builder and User
Expert and Knowledge engineer.
The Expert
– Has the special knowledge, judgment, experience
and methods to give advice and solve problems
– Provides knowledge about task performance
35
116
The Knowledge Engineer
Helps the expert(s) structure the problem area
by interpreting and integrating human answers
to questions, drawing analogies, posing
counterexamples, and bringing to light
conceptual difficulties
36
117
The User
Possible Classes of Users
– A non-expert client seeking direct advice - the ES
acts as a Consultant or Advisor
– A student who wants to learn - an Instructor
– An ES builder improving or increasing the
knowledge base - a Partner
– An expert - a Colleague or Assistant
The Expert and the Knowledge Engineer
Should Anticipate Users' Needs and
Limitations When Designing ES
37
118
Problem Areas Addressed by
Expert Systems
Interpretation systems
Prediction systems
Diagnostic systems
Design systems
Planning systems
Monitoring systems
Debugging systems
Repair systems
Instruction systems
Control systems
119
Decision Support Systems and Intelligent Systems, Efraim Turban and Jay E. Aronson
6th ed, Copyright 2001, Prentice Hall, Upper Saddle River, NJ
Expert Systems Benefits
Improved Decision Quality
Increased Output and Productivity
Decreased Decision Making Time
Increased Process(es) and Product Quality
Capture Scarce Expertise
Can Work with Incomplete or Uncertain Information
Enhancement of Problem Solving and Decision Making
Improved Decision Making Processes
Knowledge Transfer to Remote Locations
Enhancement of Other MIS
120
Decision Support Systems and Intelligent Systems, Efraim Turban and Jay E. Aronson
6th ed, Copyright 2001, Prentice Hall, Upper Saddle River, NJ
Problems and Limitations of
Expert Systems
Knowledge is not always readily available
Expertise can be hard to extract from humans
Expert system users have natural cognitive limits
ES work well only in a narrow domain of knowledge
Knowledge engineers are rare and expensive
Lack of trust by end-users
ES may not be able to arrive at valid conclusions
ES sometimes produce incorrect recommendations
121
Decision Support Systems and Intelligent Systems, Efraim Turban and Jay E. Aronson
6th ed, Copyright 2001, Prentice Hall, Upper Saddle River, NJ
Expert System
Success Factors
Most Critical Factors
– Champion in Management
– User Involvement and Training
Plus
– The level of knowledge must be sufficiently high
– There must be (at least) one cooperative expert
– The problem must be qualitative (fuzzy), not quantitative
– The problem must be sufficiently narrow in scope
– The ES shell must be high quality, and naturally store and
manipulate the knowledge
– A friendly user interface
– Important and difficult enough problem
122
AI
Fuzzy Systems
History, State of the Art, and
Future Development
Sde 127
Types of Uncertainty and the
Modeling of Uncertainty
Slide 128
Probability and Uncertainty
Slide 129
Fuzzy Set Theory
38.7°C
38°C
40.1°C 41.4°C
Fuzzy Set Theory:
42°C
39.3°C
“Strong Fever” 38.7°C
37.2°C 38°C
40.1°C 41.4°C
42°C
39.3°C
“Strong Fever”
“More-or-Less” Rather Than “Either-Or” ! 37.2°C
Slide 130
Fuzzy Sets
Lotfi A. Zadeh, The founder of fuzzy logic.
Degree’s of truth
Does it
remain
empty?
empty half-full full? almost full?
or half-empty? nearly full? ……
Reasoning With Uncertainty
Representing
crisp and
fuzzy sets as
subsets of a
domain
(universe) U".
Fuzziness versus probability
Probability
density
function for
throwing a
dice and the
membership
functions of
the concepts
"Small"
number,
"Medium",
"Big".
Conceptualising in fuzzy
terms...
One
representation
for the fuzzy
number "about
600".
Conceptualising in fuzzy
terms...
Representing
truthfulness
(certainty) of
events as fuzzy
sets over the
[0,1] domain.
Sets
{z Z | z 3} {1,2,3}
{0,1,1,2} {0,1,2}
Strong Fever Revisited
38.7°C
38°C
40.1°C 41.4°C
Fuzzy Set Theory:
42°C
39.3°C
“Strong Fever” 38.7°C
37.2°C 38°C
40.1°C 41.4°C
42°C
39.3°C
“Strong Fever”
37.2°C
Slide 141
Why fuzzy?
As Zadeh said, the term is concrete, immediate and
descriptive; we all know what it means.
However, many people in the West
were repelled by the word fuzzy ,
because
Whyitlogic?
is usually used in a negative sense.
Fuzziness rests on fuzzy set theory, and fuzzy logic
is just a small part of that theory.
Range of logical values in Boolean and fuzzy logic
Discrete Definition:
µSF(35°C) = 0 µSF(38°C) = 0.1 µSF(41°C) = 0.9
0
36°C 37°C 38°C 39°C 40°C 41°C 42°C
Slide 145
Representation of hedges in fuzzy logic
Hedge Mathematical Graphical Representation
Expression
Extremely [A( x) ]3
Representation of hedges in fuzzy logic (continued)
Mathematical
Hedge Graphical Representation
Expression
Somewhat A (x)
2 [A (x )]2
if 0 A 0.5
Indeed
1 2 [1 A (x)]2
if 0.5 < A 1
Linguistic Variable
µ(x)
low temp normal raised temperature strong fever
1 … pretty much raised …
A Linguistic Variable
Defines a Concept of Our
... but just slightly strong … Everyday Language!
0
36°C 37°C 38°C 39°C 40°C 41°C 42°C
Slide 148
Fuzzy Sets
Formal definition:
A fuzzy set A in X is expressed as a set of ordered pairs:
A {( x , A ( x ))| x X }
Membership Universe or
Fuzzy set
function universe of discourse
(MF)
A A
A
Complement Containment
A B A
A B
Intersection Union
Operations of fuzzy sets
( x) ( x)
B
1 1 A
A
0 0
x x
B
1 1 A
Not A
0 0
Complement x Containment x
( x) ( x)
1 1
AB AB
0 0
x x
1 AB 1
AB
0 0
x x
Intersection Union
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)
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.
Intersection
Crisp Sets: Which element belongs to both sets?
Fuzzy Sets: How much of the element is in both
sets?
In classical set theory, an intersection between two
sets contains the elements shared by these sets. For
example, the intersection of the set of tall men and
the set of fat men is the area where these sets
overlap. In fuzzy sets, an element may partly
belong to both sets with different memberships. A
fuzzy intersection is the lower membership in both
sets of each element. The fuzzy intersection of two
fuzzy sets A and B on universe of discourse X:
AB(x) = min [A (x), B (x)] = A (x) B(x),
where xX
Union
Crisp Sets: Which element belongs to either set?
Fuzzy Sets: How much of the element is in either
set?
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
Set-Theoretic Operations
Subset:
A B A B
Complement:
A X A A ( x ) 1 A ( x )
Union:
C A B c ( x ) max( A ( x ), B ( x )) A ( x ) B ( x )
Intersection:
C A B c ( x ) min( A ( x ), B ( x )) A ( x ) B ( x )
What is the difference between classical and
fuzzy rules?
A classical IF-THEN rule uses binary logic, for
example,
Rule: 1 Rule: 2
IF speed is > 100 IF speed is < 40
THEN stopping_distance is long THEN stopping_distance is short
Linguistic
Level
1. Fuzzification 3. Defuzzification
Numerical
Level
Linguistic
Level
1. Fuzzification 3. Defuzzification
Numerical
Level
Command
IF temp=low
AND P=high
Variables
THEN A=med
IF ...
Plant
Measured Variables
IF temp=low
Set Values PID
AND P=high
THEN A=med
PID Plant
IF ...
Measured Variables
Human Operator
Type Control !
Types of Fuzzy Controllers:
- PID Adaptation -
Fuzzy Logic Controller Adapts the P, I, and D Parameter of a Conventional PID Controller:
Set Point Variable
IF temp=low
AND P=high P
THEN A=med
I Command Variable
D
IF ...
PID Plant
Fuzzification Inference Defuzzification
Measured Variable
B X {x | [ x]B X }.
Set Approximation (2)
B-boundary region of X,
consists of those objects that we cannot
decisively classify into X in B.
B-outside region of X, BN B ( X ) B X B X ,
consists of those objects that can be with
certainty classified as not belonging to X.
A set is said to be rough if its boundary region
is non-empty, otherwise the set U is
B X,
crisp.
An Example of Set Approximation
Let W = {x | Walk(x) = yes}.
Age LEMS Walk AW {x1, x6},
x 1 16-30 50
yes
AW {x1, x3, x 4, x6},
x2 16-30 0 no BN A (W ) {x3, x 4},
x3 31-45 1-25 no U AW {x 2, x5, x7}.
x4 31-45 1-25 yes
The decision class, Walk, is
x5 46-60 26-49 no rough since the boundary
x6 16-30 26-49 yes region is not empty.
x7 46-60 26-49 no
An Example of
Set Approximation (2)
{{x2}, {x5,x7}}
AW {{x3,x4}}
yes
AW
{{x1},{x6}}
yes/no
no
Lower & Upper Approximations
RX X
U/R
RX
R : subset of
set X attributes
Lower & Upper Approximations
(2)
Upper Approximation:
R X {Y U / R : Y X }
Lower Approximation:
R X {Y U / R : Y X }
Lower & Upper Approximations
(3)
U Headache Temp. Flu
U1 Yes Normal No
U2 Yes High Yes
The indiscernibility classes defined by
U3 Yes Very-high Yes R = {Headache, Temp.} are
U4 No Normal No {u1}, {u2}, {u3}, {u4}, {u5,
U5 No High No u7}, {u6, u8}.
U6 No Very-high Yes
U7 No High Yes
U8 No Very-high No