第5课 数据聚类技术.ppt
《第5课 数据聚类技术.ppt》由会员分享,可在线阅读,更多相关《第5课 数据聚类技术.ppt(43页珍藏版)》请在麦多课文档分享上搜索。
1、第5课 数据聚类技术,徐从富,副教授 浙江大学人工智能研究所,浙江大学本科生数据挖掘导论课件,课程提纲,What is Cluster Analysis? Types of Data in Cluster Analysis A Categorization of Major Clustering Methods Partitioning Methods Hierarchical Methods Summary Reference,What is Cluster Analysis?,Cluster: a collection of data objects Similar to one anot
2、her within the same cluster Dissimilar to the objects in other clusters Cluster analysis Finding similarities between data according to the characteristics found in the data and grouping similar data objects into clusters Unsupervised learning: no predefined classes As a stand-alone tool to get insi
3、ght into data distribution As a preprocessing step for other algorithms,Clustering: Rich Applications and Multidisciplinary Efforts,Pattern Recognition Spatial Data Analysis Create thematic maps in GIS by clustering feature spaces Detect spatial clusters or for other spatial mining tasks Image Proce
4、ssing Economic Science (especially market research) WWW Document classification Cluster Weblog data to discover groups of similar access patterns,Examples of Clustering Applications,Marketing: Help marketers discover distinct groups in their customer bases, and then use this knowledge to develop tar
5、geted marketing programs Land use: Identification of areas of similar land use in an earth observation database Insurance: Identifying groups of motor insurance policy holders with a high average claim cost City-planning: Identifying groups of houses according to their house type, value, and geograp
6、hical location Earth-quake studies: Observed earth quake epicenters should be clustered along continent faults,Quality: What Is Good Clustering?,A good clustering method will produce high quality clusters with high intra-class similarity low inter-class similarity The quality of a clustering result
7、depends on both the similarity measure used by the method and its implementation The quality of a clustering method is also measured by its ability to discover some or all of the hidden patterns,Measure the Quality of Clustering,Dissimilarity/Similarity metric: Similarity is expressed in terms of a
8、distance function, typically metric: d(i, j) There is a separate “quality” function that measures the “goodness” of a cluster. The definitions of distance functions are usually very different for interval-scaled, boolean, categorical, ordinal ratio, and vector variables. Weights should be associated
9、 with different variables based on applications and data semantics. It is hard to define “similar enough” or “good enough” the answer is typically highly subjective.,Requirements of Clustering in Data Mining,Scalability Ability to deal with different types of attributes Ability to handle dynamic dat
10、a Discovery of clusters with arbitrary shape Minimal requirements for domain knowledge to determine input parameters Able to deal with noise and outliers Insensitive to order of input records High dimensionality Incorporation of user-specified constraints Interpretability and usability,Data Structur
11、es,Data matrix (two modes)Dissimilarity matrix (one mode),Types of Data in Cluster Analysis,Type of data in clustering analysis,Interval-scaled variables(区间标度变量) Binary variables(二元变量) Nominal, ordinal, and ratio variables(标称型、序数型、比例标度型) Variables of mixed types,Interval-valued variables,区间标度变量是一个粗略
12、线性标度的连续度量 Standardize data Calculate the mean absolute deviation:where Calculate the standardized measurement (z-score)Using mean absolute deviation is more robust than using standard deviation,Similarity and Dissimilarity Between Objects,Distances are normally used to measure the similarity or diss
13、imilarity between two data objects Some popular ones include: Minkowski distance:where i = (xi1, xi2, , xip) and j = (xj1, xj2, , xjp) are two p-dimensional data objects, and q is a positive integer If q = 1, d is Manhattan distance,Similarity and Dissimilarity Between Objects (Cont.),If q = 2, d is
14、 Euclidean distance:Properties d(i,j) 0 d(i,i) = 0 d(i,j) = d(j,i) d(i,j) d(i,k) + d(k,j),Dissimilarity Between Binary Variables,A contingency table for binary dataDistance measure for symmetric binary variables: Distance measure for asymmetric binary variables: Jaccard coefficient (similarity measu
15、re for asymmetric binary variables):,Dissimilarity between Binary Variables,Examplegender is a symmetric attribute the remaining attributes are asymmetric binary let the values Y and P be set to 1, and the value N be set to 0,Nominal Variables(标称型),A generalization of the binary variable in that it
16、can take more than 2 states, e.g., red, yellow, blue, green Method 1: Simple matching m: # of matches,p: total # of variablesMethod 2: use a large number of binary variables creating a new binary variable for each of the M nominal states,Ordinal Variables(序数型),An ordinal variable can be discrete or
17、continuous Order is important, e.g., rank Can be treated like interval-scaled replace xif by their rank map the range of each variable onto 0, 1 by replacing i-th object in the f-th variable bycompute the dissimilarity using methods for interval-scaled variables,Ratio-Scaled Variables(比例标度型),Ratio-s
18、caled variable: a positive measurement on a nonlinear scale, approximately at exponential scale, such as AeBt or Ae-Bt Methods: treat them like interval-scaled variablesnot a good choice! (why?the scale can be distorted) apply logarithmic transformation yif = log(xif) treat them as continuous ordina
19、l data treat their rank as interval-scaled,Variables of Mixed Types,A database may contain all the six types of variables symmetric binary, asymmetric binary, nominal, ordinal, interval and ratio One may use a weighted formula to combine their effectsf is binary or nominal: dij(f) = 0 if xif = xjf ,
20、 or dij(f) = 1 o.w. f is interval-based: use the normalized distance f is ordinal or ratio-scaled compute ranks rif and and treat zif as interval-scaled,Major Clustering Approaches,Partitioning approach: Construct various partitions and then evaluate them by some criterion, e.g., minimizing the sum
21、of square errors Typical methods: k-means, k-medoids, CLARANS Hierarchical approach: Create a hierarchical decomposition of the set of data (or objects) using some criterion Typical methods: Diana, Agnes, BIRCH, ROCK, CAMELEON Density-based approach: Based on connectivity and density functions Typic
22、al methods: DBSACN, OPTICS, DenClue,Major Clustering Approaches (II),Grid-based approach: based on a multiple-level granularity structure Typical methods: STING, WaveCluster, CLIQUE Model-based: A model is hypothesized for each of the clusters and tries to find the best fit of that model to each oth
23、er Typical methods: EM, SOM, COBWEB Frequent pattern-based: Based on the analysis of frequent patterns Typical methods: pCluster User-guided or constraint-based: Clustering by considering user-specified or application-specific constraints Typical methods: COD (obstacles), constrained clustering,Typi
24、cal Alternatives to Calculate the Distance between Clusters,Single link: smallest distance between an element in one cluster and an element in the other, i.e., dis(Ki, Kj) = min(tip, tjq) Complete link: largest distance between an element in one cluster and an element in the other, i.e., dis(Ki, Kj)
- 1.请仔细阅读文档,确保文档完整性,对于不预览、不比对内容而直接下载带来的问题本站不予受理。
- 2.下载的文档,不会出现我们的网址水印。
- 3、该文档所得收入(下载+内容+预览)归上传者、原创作者;如果您是本文档原作者,请点此认领!既往收益都归您。
下载文档到电脑,查找使用更方便
2000 积分 0人已下载
下载 | 加入VIP,交流精品资源 |
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 数据 技术 PPT
