Docsity

squence................, Lecture notes of Data Mining

Partial preview of the text

Download squence................ and more Lecture notes Data Mining in PDF only on Docsity!

Assoc. Prof. Dr. Nurulkamal Masseran

Department of Mathematical Sciences

Universiti Kebangsaan Malaysia

 This topic will discuss about categorical sequence data analysis.

 In the sequence data, the position of each consecutive states gives an

interpretation in term of age, date, elapsed time or distance from the

beginning of the sequence.

 Generally, this type of data refers to observations of a particular

individuals or entities over a some period of time.

 The main objective is to analyze the behavior of the sequence of states

for a particular entities.

 Sequences are complex objects, and it require specialized

data mining techniques to analyze this kind of data.

 Among the interesting questions related to the sequence

type data:

i) What are the characteristics of a sequence data?.

ii) What are the indicators that can be used to measure

sequence data?.

iii) What are the appropriate plots to visualize a sequence

data?.

iv) How can we compare the similarity between several

sequences data?.

v) And many more.

 Sequence of state is an concept used to analyze the trajectory of

life.

 Example: occupational histories, patient level history, cohabitation

life courses and etc.

 Based on state sequence data, we can determine:

i) The characteristics of social norm and standard trajectories of

a life courses.

ii) The departures behaviors from the standards trajectories.

iii) The evolution patterns of a life course over time.

iv) The characteristics of cohabitation life correspond to a factor of

sex, social origin, cultural, and etc.

v) And many more

 Several types of

sequence data:

i) States-sequence

(STS) format.

ii) State-

permanence-

sequence (SPS)

format.

iii) Distinct-State-

Sequence (DSS)

iv) Time-stamped-

event (TSE)

format.

v) SPELLformat.

vi) And many more.

 Among the important statistical summary indicators are:

i) Mean time spent in each state.

ii) Mean time spent in each state by groups.

iii) Number of transitions.

iv) Transition rates.

v) Time varying transition states.

vi) And many more.

SEQUENCE FREQUENCY

PLOT

 Sequence frequency refers to the number and percentage of

frequencies arranged in descending order.

 A sequence frequency plot provides a graphical display of

the frequency of a sequence with the width of the bar

proportional to its frequency.

VISUALIZATION: STATE DISTRIBUTION

PLOT

 This plot displays the general pattern of the whole set of

trajectories in sequence data.

 It provides aggregated views for transversal characteristics

of sequences data.

BY ENTROPY

INDEX:

 The entropy provides a measure of the diversity of states.

 Entropy index for sequences data can be determine as

follow:

 where p

i

is the proportion of cases/entities in state- i , a is the

number of a state.

 If the value of entropy= 0 , its indicates that all cases are in

the same state (variation is 0 ).

 If the value of entropy is high, its indicates that the same

proportion of cases are found in each state (variation is

high).

VISUALIZATION: TRANSVERSAL ENTROPIES

 The plot of transversal entropies will show information

related to variation of states in the sequence data against

the time.

 Categorizing patterns provide information about a typology of a

sequences.

 It can be done by measuring similarity between a pairwise

distances between a sequences.

 This techniques are based on the algorithm of optimal matching.

 Each cluster of a groups entities indicate similar trajectories

characteristics.

Dendrogram of agnes(x = dist.om1, diss = TRUE, method = "ward")

Agglomerative Coefficient = 0.

dist.om

Height

STATE

DISTRIBUTION

Type 1

Freq. (n=265)
Sep.93 Sep.94 Sep.95 Sep.96 Sep.97 Sep.

Type 2

Freq. (n=153)
Sep.93 Sep.94 Sep.95 Sep.96 Sep.97 Sep.

Type 3

Freq. (n=194)
Sep.93 Sep.94 Sep.95 Sep.96 Sep.97 Sep.

Type 4

Freq. (n=100)
Sep.93 Sep.94 Sep.95 Sep.96 Sep.97 Sep.
employment
further education
higher education
joblessness
school
training

MODAL

STATE

DISCRIMINATING TRANSITIONS

(school>higher education) (school)-(school>higher education) (training>employment) (training) (school) (higher education>employment)
  • Type
    1.  - Type (school>higher education) (school)-(school>higher education) (training>employment) (training) (school) (higher education>employment) - 0. - 0. - 0. - 0. - 0. - 0. 
    • Type (school>higher education) (school)-(school>higher education) (training>employment) (training) (school) (higher education>employment)
    1.  - Type (school>higher education) (school)-(school>higher education) (training>employment) (training) (school) (higher education>employment) - 0. - 0. - 0. - 0. - 0. - 0. 
      • Negative 0.01 Negative 0.05 neutral Positive 0.05 Positive 0. Color by sign and significance of Pearson's residual