Docsity

Clustering - Data Base Management System - Lecture Slides, Slides of Database Management Systems (DBMS)

Partial preview of the text

Download Clustering - Data Base Management System - Lecture Slides and more Slides Database Management Systems (DBMS) in PDF only on Docsity!

Data Mining--Clustering

AprioriTid Algorithm

  • The database is not used at all for counting the support of

candidate itemsets after the first pass.

1. The candidate itemsets are generated the same way as in

Apriori algorithm.

2. Another set C’ is generated of which each member has the

TID of each transaction and the large itemsets present in this

transaction. This set is used to count the support of each

candidate itemset.

  • The advantage is that the number of entries in C’ may be

smaller than the number of transactions in the database,

especially in the later passes.

Example

TID Items

100 1 3 4 200 2 3 5 300 1 2 3 5 400 2 5

Database

Itemset Support {1} 2 {2} 3 {3} 3 {5} 3

L 1

Itemset Support {1 3}* 2 {1 4} 1 {3 4} 1 {2 3}* 2 {2 5}* 3 {3 5}* 2 {1 2} 1 {1 5} 1

C 2

Itemset Support {1 3 4} 1 {2 3 5}* 2 {1 3 5} 1

C 3

Example

TID Items

100 1 3 4 200 2 3 5 300 1 2 3 5 400 2 5

Database

Itemset Support {1} 2 {2} 3 {3} 3 {5} 3

L 1

Itemset TID {1 3} 100 {1 4} 100 {3 4} 100 {2 3} 200 {2 5} 200 {3 5} 200 {1 2} 300 {1 3} 300 {1 5} 300 {2 3} 300 {2 5} 300 {3 5} 300 {2 5} 400

C 2

Itemset TID {1 3 4} 100 {2 3 5} 200 {1 3 5} 300 {2 3 5} 300

C 3

Example

TID Items 100 1 3 4 200 2 3 5 300 1 2 3 5 400 2 5

Database

Itemset Support {1} 2 {2} 3 {3} 3 {5} 3

L 1

Itemset Support {1 2} 1 {1 3}* 2 {1 5} 1 {2 3}* 2 {2 5}* 3 {3 5}* 2

C 2

Itemset Support

{2 3 5}* 2

C 3

C’ 2

C’ 3

  • No practicable methodology has been demonstrated

for reliable prediction of large earthquakes on times

scales of decades or less

  • Some scientists question whether such predictions will be possible even with much improved observations
  • Pessimism comes from repeated cycles in which public promises that reliable predictions are just around the corner are followed by the equally public failures of specific prediction methodologies. Bad for science!

What Is A Good Clustering?

  • High intra-class similarity and low inter-class

similarity

  • Depending on the similarity measure
  • The ability to discover some or all of the

hidden patterns

General Applications of Clustering

  • Pattern Recognition
  • Spatial Data Analysis
    • create thematic maps in GIS by clustering feature spaces
    • detect spatial clusters and explain them in spatial data

mining

  • Image Processing
  • Economic Science (especially market research)
  • WWW
    • Document classification
    • Cluster Weblog data to discover groups of similar access

patterns