• No results found

Rough Sets in KDD

N/A
N/A
Protected

Academic year: 2020

Share "Rough Sets in KDD"

Copied!
42
0
0

Loading.... (view fulltext now)

Full text

(1)
(2)

Introduction

• Rough set theory was developed by Zdzislaw Pawlak in the early 1980’s. • Representative Publications:

– Z. Pawlak, “Rough Sets”, International Journal of

Computer and Information Sciences, Vol.11,

341-356 (1982).

– Z. Pawlak, Rough Sets - Theoretical Aspect of

Reasoning about Data, Kluwer Academic

(3)

Introduction

• The main goal of the rough set analysis is induction of approximations of concepts.

• Rough sets constitutes a sound basis for KDD. It offers

mathematical tools to discover patterns hidden in data. • It can be used for feature selection, feature extraction,

data reduction, decision rule generation, and pattern extraction (templates, association rules) etc.

• identifies partial or total dependencies in data, eliminates redundant data, gives approach to null values, missing data, dynamic data and others.

(4)

Introduction

• Recent extensions of rough set theory (rough

mereology) have developed new methods for decomposition of large data sets, data mining in distributed and multi-agent systems, and granular computing.

This presentation shows how several aspects of the above problems are solved by the (classic) rough set approach, discusses some advanced topics, and gives further research directions.

(5)

Basic Concepts of Rough Sets

• Information/Decision Systems (Tables) • Indiscernibility

• Set Approximation • Reducts and Core • Rough Membership

(6)

Introduction

• Rough set theory was developed by Zdzislaw Pawlak in the early 1980’s. • Representative Publications:

– Z. Pawlak, “Rough Sets”, International Journal of

Computer and Information Sciences, Vol.11,

341-356 (1982).

– Z. Pawlak, Rough Sets - Theoretical Aspect of

Reasoning about Data, Kluwer Academic

(7)

Introduction (2)

• The main goal of the rough set analysis is induction of approximations of concepts.

• Rough sets constitutes a sound basis for KDD. It offers

mathematical tools to discover patterns hidden in data. • It can be used for feature selection, feature extraction,

data reduction, decision rule generation, and pattern extraction (templates, association rules) etc.

• identifies partial or total dependencies in data, eliminates redundant data, gives approach to null values, missing data, dynamic data and others.

(8)

Introduction (3)

• Recent extensions of rough set theory (rough

mereology) have developed new methods for decomposition of large data sets, data mining in distributed and multi-agent systems, and granular computing.

This presentation shows how several aspects of the above problems are solved by the (classic) rough set approach, discusses some advanced topics, and gives further research directions.

(9)

Basic Concepts of Rough Sets

• Information/Decision Systems (Tables) • Indiscernibility

• Set Approximation • Reducts and Core • Rough Membership

(10)

Information Systems/Tables

• IS is a pair (U, A)

• U is a non-empty finite set of objects.

• A is a non-empty finite set of attributes such

that for every • is called the value

set of a. a V U a :  . A aa V Age LEMS x1 16-30 50 x2 16-30 0 x3 31-45 1-25 x4 31-45 1-25 x5 46-60 26-49 x6 16-30 26-49 x7 46-60 26-49

(11)

Decision Systems/Tables

• DS:

• is the decision

attribute (instead of one we can consider more decision attributes). • The elements of A are

called the condition attributes.

Age LEMS Walk x1 16-30 50 yes x2 16-30 0 no x3 31-45 1-25 no x4 31-45 1-25 yes x5 46-60 26-49 no x6 16-30 26-49 yes x7 46-60 26-49 no }) { , (U A d T   A d

(12)

Issues in the Decision Table

• The same or indiscernible objects may be

represented several times.

(13)

Indiscernibility

• The equivalence relation

A binary relation which is reflexive (xRx for any object x) ,

symmetric (if xRy then yRx), and

transitive (if xRy and yRz then xRz).

• The equivalence class of an element consists of all objects such that

xRy. X X R   X yR x] [

(14)

Indiscernibility (2)

• Let IS = (U, A) be an information system, then with any there is an associated equivalence

relation:

where is called the B-indiscernibility

relation.

• If then objects x and x’ are

indiscernible from each other by attributes from B. • The equivalence classes of the B-indiscernibility

relation are denoted by

A B  )} ' ( ) ( , | ) ' , {( ) (B x x U 2 a B a x a x INDIS      ) (B INDIS ), ( ) ' , (x xINDIS B . ] [x B

(15)

An Example of Indiscernibility

• The non-empty subsets of the condition

attributes are {Age},

{LEMS}, and {Age, LEMS}.

• IND({Age}) = {{x1,x2,x6}, {x3,x4}, {x5,x7}} • IND({LEMS}) = {{x1}, {x2}, {x3,x4}, {x5,x6,x7}} • IND({Age,LEMS}) = {{x1}, {x2}, {x3,x4}, {x5,x7}, {x6}}.

Age LEMS Walk x1 16-30 50 yes x2 16-30 0 no x3 31-45 1-25 no x4 31-45 1-25 yes x5 46-60 26-49 no x6 16-30 26-49 yes x7 46-60 26-49 no

(16)

Observations

• An equivalence relation induces a partitioning of the universe.

• The partitions can be used to build new subsets of the universe.

• Subsets that are most often of interest have the same value of the decision attribute.

It may happen, however, that a concept such as “Walk” cannot be defined in a crisp manner.

(17)

Set Approximation

• Let T = (U, A) and let and We can approximate X using only the

information contained in B by constructing the B-lower and B-upper approximations of

X, denoted and respectively, where

A BXU. X B BX }, ] [ | {x x X X BB  }. ] [ | {     x x X X B B

(18)

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,

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 is crisp.

,

)

(

X

B

X

B

X

BN

B

, X B U

(19)

An Example of Set Approximation

• Let W = {x | Walk(x) = yes}.

• The decision class, Walk, is

rough since the boundary region is not empty.

Age LEMS Walk x1 16-30 50 yes x2 16-30 0 no x3 31-45 1-25 no x4 31-45 1-25 yes x5 46-60 26-49 no x6 16-30 26-49 yes x7 46-60 26-49 no }. 7 , 5 , 2 { }, 4 , 3 { ) ( }, 6 , 4 , 3 , 1 { }, 6 , 1 { x x x W A U x x W BN x x x x W A x x W A A     

(20)

Lower & Upper Approximations

(3)

X1 = {u | Flu(u) = yes} = {u2, u3, u6, u7} RX1 = {u2, u3}

= {u2, u3, u6, u7, u8, u5}

X2 = {u | Flu(u) = no} = {u1, u4, u5, u8} RX2 = {u1, u4}

= {u1, u4, u5, u8, u7, u6}

X1 R

X2 R U Headache Temp. Flu

U1 Yes Normal No

U2 Yes High Yes

U3 Yes Very-high Yes

U4 No Normal No

U5 NNNooo HHHiiiggghhh NNNooo

U6 No Very-high Yes U7 NNNooo HHHiiiggghhh YYYeeesss

U8 No Very-high No

The indiscernibility classes defined by R = {Headache, Temp.} are

(21)

Lower & Upper Approximations

(4)

R = {Headache, Temp.}

U/R = { {u1}, {u2}, {u3}, {u4}, {u5, u7}, {u6, u8}} X1 = {u | Flu(u) = yes} = {u2,u3,u6,u7}

X2 = {u | Flu(u) = no} = {u1,u4,u5,u8}

RX1 = {u2, u3}

= {u2, u3, u6, u7, u8, u5}

RX2 = {u1, u4}

= {u1, u4, u5, u8, u7, u6}

X1 R X2 R u1 u4 u3 X1 X2 u5 u7 u2 u6 u8

(22)

Properties of Approximations

Y X Y B X B Y X B Y B X B Y X B U U B U B B B X B X X B              ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( , ) ( ) ( ) (    ) ( ) (X B Y BB(X )  B(Y) implies and

(23)

Properties of Approximations (2)

) ( )) ( ( )) ( ( ) ( )) ( ( )) ( ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( X B X B B X B B X B X B B X B B X B X B X B X B Y B X B Y X B Y B X B Y X B                 where -X denotes U - X.

(24)

Four Basic Classes of Rough Sets

• X is roughly B-definable, iff and • X is internally B-undefinable, iff

and

• X is externally B-undefinable, iff and

• X is totally B-undefinable, iff and

  ) ( X B , ) (X U B    ) ( X B , ) (X U B    ) ( X B , ) (X U B    ) ( X B . ) (X U B

(25)

Accuracy of Approximation

where |X| denotes the cardinality of Obviously

If X is crisp with respect to B. If X is rough with respect to B.

| ) ( | | ) ( | ) ( X B X B X B   .   X . 1 0 

B  , 1 ) (XB

, 1 ) (XB

(26)

Issues in the Decision Table

• The same or indiscernible objects may be represented several times.

• Some of the attributes may be superfluous

(redundant).

That is, their removal cannot worsen the

classification.

(27)

Issues in the Decision Table

• The same or indiscernible objects may be represented several times.

• Some of the attributes may be superfluous

(redundant).

That is, their removal cannot worsen the

classification.

(28)

Reducts

• Keep only those attributes that preserve the indiscernibility relation and, consequently, set approximation.

• There are usually several such subsets of attributes and those which are minimal are called reducts.

(29)

Dispensable & Indispensable

Attributes

Let

Attribute c is dispensable in T

if , otherwise

attribute c is indispensable in T.

.

C

c

) ( ) (D POS( { }) D POSCC c X C D POS D U X C

/ ) (  

(30)

Independent

• T = (U, C, D) is independent

(31)

Reduct & Core

• The set of attributes is called a reduct of

C, if T’ = (U, R, D) is independent and

• The set of all the condition attributes

indispensable in T is denoted by CORE(C). where RED(C) is the set of all reducts of C.

C R  ). ( ) (D POS D POSRC

)

(

)

(

C

RED

C

CORE

(32)

An Example of Reducts & Core

U Headache Muscle pain

Temp. Flu

U1 Yes Yes Normal No

U2 Yes Yes High Yes

U3 Yes Yes Very-high Yes

U4 No Yes Normal No

U5 No No High No

U6 No Yes Very-high Yes

U Muscle pain

Temp. Flu

1,U4 Yes Normal No

U2 Yes High Yes

U3,U6 Yes Very-high Yes

U5 No High No

U Headache Temp. Flu

U1 Yes Norlmal No

U2 Yes High Yes

U3 Yes Very-high Yes

U4 No Normal No

U5 No High No

U6 No Very-high Yes

Reduct1 = {Muscle-pain,Temp.}

Reduct2 = {Headache, Temp.}

CORE = {Headache,Temp}

{MusclePain, Temp} = {Temp}

(33)

Discernibility Matrix

(relative to positive region)

• Let T = (U, C, D) be a decision table, with

By a discernibility matrix of T, denoted M(T), we will mean matrix defined as:

for i, j = 1,2,…,n such that or belongs to the

C-positive region of D.

• is the set of all the condition attributes that classify objects ui and uj into different classes.

}. ,..., , {u1 u2 un Un n

{ : ( ) ( )} [ ( ) ( )] )] ( ) ( [ j i j i j i u d u d D d if u c u c C c u d u d D d if ij

m

  i u u j ij m

(34)

Discernibility Matrix

(relative to positive region) (2)

• The equation is similar but conjunction is taken over all non-empty entries of M(T) corresponding to the indices i, j such that

or belongs to the C-positive region of D.

• denotes that this case does not need to be considered. Hence it is interpreted as logic truth. • All disjuncts of minimal disjunctive form of this

function define the reducts of T (relative to the positive region). i u u j   ij m

(35)

Discernibility Function

(relative to

objects)

• For any uiU, }} ,..., 2 , 1 { , : { ) (u m j i j n f ij j i T     

where (1) is the disjunction of all variables a such that if (2) if (3) if ij

m

, ij m a

m

ij

.

),

( false

m

ij

m

ij

.

),

(true

t

m

ij

m

ij

.

Each logical product in the minimal disjunctive normal form (DNF) defines a reduct of instance .ui

(36)

Examples of Discernibility Matrix

No a b c d u1 a0 b1 c1 y u2 a1 b1 c0 n u3 a0 b2 c1 n u4 a1 b1 c1 y C = {a, b, c} D = {d}

In order to discern equivalence classes of the decision attribute d, to preserve conditions

described by the discernibility matrix for this table

u1 u2 u3 u2 u3 u4 a,c b c a,b Reduct = {b, c} c b b a c b c a        ) ( ) (  

(37)

Examples of Discernibility Matrix (2)

a b c d E u1 1 0 2 1 1 u2 1 0 2 0 1 u3 1 2 0 0 2 u4 1 2 2 1 0 u5 2 1 0 0 2 u6 2 1 1 0 2 u7 2 1 2 1 1 u1 u2 u3 u4 u5 u6 u2 u3 u4 u5 u6 u7 b,c,d b,c b b,d c,d

a,b,c,d a,b,c a,b,c,d a,b,c,d a,b,c a,b,c,d

a,b,c,d a,b c,d c,d Core = {b} Reduct1 = {b,c} Reduct2 = {b,d}      

(38)

Rough Membership

• The rough membership function quantifies the degree of relative overlap between the set X and the equivalence class to which x

belongs.

• The rough membership function can be

interpreted as a frequency-based estimate of where u is the equivalence class of

IND(B). B x] [ ] 1 , 0 [ :UB X  | ] [ | | ] [ | B B B X x X x    ), | (x X u P

(39)

Rough Membership (2)

• The formulae for the lower and upper

approximations can be generalized to some

arbitrary level of precision by means of the rough membership function

• Note: the lower and upper approximations as originally formulated are obtained as a special case with ] 1 , 5 . 0 (  

}.

1

)

(

|

{

}

)

(

|

{

 

x

x

X

B

x

x

X

B

B X B X . 1 

(40)

Dependency of Attributes

• Discovering dependencies between

attributes is an important issue in KDD.

• A set of attribute D depends totally on a set of attributes C, denoted if all values of attributes from D are uniquely determined by values of attributes from C.

,

D C

(41)

Dependency of Attributes (2)

• Let D and C be subsets of A. We will say that

D depends on C in a degree k

denoted by if

where called C-positive region of D. ), 1 0 (  k  , D Ck | | | ) ( | ) , ( U D POS D C k    C ), ( ) ( / X C D POS D U X C   

(42)

Dependency of Attributes (3)

• Obviously

• If k = 1 we say that D depends totally on C.

• If k < 1 we say that D depends partially (in a degree k) on C. . | | | ) ( | ) , ( /

   D U X U X C D C k

References

Related documents

In addition to the three core courses, Professional Project option students must complete a minimum of two courses in each the Environmental Applied Science elective group (Group

Saturday (hard day, 6-8 hours): dojo class conditioning hard stretching sparring weight training  bag work. running

There is no mediator between man and {his/her} salvation." "Salvation is the freeing of the soul from its bodily fetters, becoming a God through knowledge and wisdom, controlling

one relative (apart from the mother) does improve the survival rates of children, but that 11?. relatives differ in whether they are consistently beneficial to children

The cost for cosmetology transfer students is $11 .30 per hour and $10 .00 per hour for barbering students to attended at PAUL MITCHELL THE SCHOOL Fort Myers; this does not include

A unique benefit of both the money and capital market to corporate entities is the provision of equity securities and provision of long term, non-debt financial

The effect sizes for impair- ments on event-based PM tasks were moderate – large in smokers and heroin users (the latter based on a single study), small – large for alcohol, ecstasy

This study aimed to examine the genetic and environ- mental relationships between weight change from the age of 20 years and IR traits using four indicators — fasting plasma