版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、Data Mining: Data,Lecture Notes for Chapter 2 Introduction to Data Mining by Tan, Steinbach, Kumar,What is Data?,Collection of data objects and their attributes An attribute is a property or characteristic of an object Examples: eye color of a person, temperature, etc. Attribute is also known as var
2、iable, field, characteristic, or feature A collection of attributes describe an object Object is also known as record, point, case, sample, entity, or instance,Attributes,Objects,Attribute Values,Attribute values are numbers or symbols assigned to an attribute Distinction between attributes and attr
3、ibute values Same attribute can be mapped to different attribute values Example: height can be measured in feet or meters Different attributes can be mapped to the same set of values Example: Attribute values for ID and age are integers But properties of attribute values can be different ID has no l
4、imit but age has a maximum and minimum value,Measurement of Length,The way you measure an attribute is somewhat may not match the attributes properties.,Types of Attributes,There are different types of attributes Nominal Examples: ID numbers, eye color, zip codes Ordinal Examples: rankings (e.g., ta
5、ste of potato chips on a scale from 1-10), grades, height in tall, medium, short Interval Examples: calendar dates, temperatures in Celsius or Fahrenheit. Ratio Examples: temperature in Kelvin, length, time, counts,Properties of Attribute Values,The type of an attribute depends on which of the follo
6、wing properties it possesses: Distinctness: = Order: Addition: + - Multiplication: * / Nominal attribute: distinctness Ordinal attribute: distinctness then draw random samples from each partition,Sample Size,8000 points 2000 Points500 Points,Sample Size,What sample size is necessary to get at least
7、one object from each of 10 groups.,Curse of Dimensionality,When dimensionality increases, data becomes increasingly sparse in the space that it occupies Definitions of density and distance between points, which is critical for clustering and outlier detection, become less meaningful,Randomly generat
8、e 500 points Compute difference between max and min distance between any pair of points,Dimensionality Reduction,Purpose: Avoid curse of dimensionality Reduce amount of time and memory required by data mining algorithms Allow data to be more easily visualized May help to eliminate irrelevant feature
9、s or reduce noise Techniques Principle Component Analysis Singular Value Decomposition Others: supervised and non-linear techniques,Dimensionality Reduction: PCA,Goal is to find a projection that captures the largest amount of variation in data,x2,x1,e,Dimensionality Reduction: PCA,Find the eigenvec
10、tors of the covariance matrix The eigenvectors define the new space,x2,x1,e,Dimensionality Reduction: ISOMAP,Construct a neighbourhood graph For each pair of points in the graph, compute the shortest path distances geodesic distances,By: Tenenbaum, de Silva, Langford (2000),Dimensionality Reduction:
11、 PCA,Feature Subset Selection,Another way to reduce dimensionality of data Redundant features duplicate much or all of the information contained in one or more other attributes Example: purchase price of a product and the amount of sales tax paid Irrelevant features contain no information that is us
12、eful for the data mining task at hand Example: students ID is often irrelevant to the task of predicting students GPA,Feature Subset Selection,Techniques: Brute-force approch: Try all possible feature subsets as input to data mining algorithm Embedded approaches: Feature selection occurs naturally a
13、s part of the data mining algorithm Filter approaches: Features are selected before data mining algorithm is run Wrapper approaches: Use the data mining algorithm as a black box to find best subset of attributes,Feature Creation,Create new attributes that can capture the important information in a d
14、ata set much more efficiently than the original attributes Three general methodologies: Feature Extraction domain-specific Mapping Data to New Space Feature Construction combining features,Mapping Data to a New Space,Two Sine Waves,Two Sine Waves + Noise,Frequency,Fourier transform Wavelet transform
15、,Discretization Using Class Labels,Entropy based approach,3 categories for both x and y,5 categories for both x and y,Discretization Without Using Class Labels,Data,Equal interval width,Equal frequency,K-means,Attribute Transformation,A function that maps the entire set of values of a given attribut
16、e to a new set of replacement values such that each old value can be identified with one of the new values Simple functions: xk, log(x), ex, |x| Standardization and Normalization,Similarity and Dissimilarity,Similarity Numerical measure of how alike two data objects are. Is higher when objects are m
17、ore alike. Often falls in the range 0,1 Dissimilarity Numerical measure of how different are two data objects Lower when objects are more alike Minimum dissimilarity is often 0 Upper limit varies Proximity refers to a similarity or dissimilarity,Similarity/Dissimilarity for Simple Attributes,p and q
18、 are the attribute values for two data objects.,Euclidean Distance,Euclidean Distance Where n is the number of dimensions (attributes) and pk and qk are, respectively, the kth attributes (components) or data objects p and q. Standardization is necessary, if scales differ.,Euclidean Distance,Distance
19、 Matrix,Minkowski Distance,Minkowski Distance is a generalization of Euclidean Distance Where r is a parameter, n is the number of dimensions (attributes) and pk and qk are, respectively, the kth attributes (components) or data objects p and q.,Minkowski Distance: Examples,r = 1. City block (Manhatt
20、an, taxicab, L1 norm) distance. A common example of this is the Hamming distance, which is just the number of bits that are different between two binary vectors r = 2. Euclidean distance r . “supremum” (Lmax norm, L norm) distance. This is the maximum difference between any component of the vectors
21、Do not confuse r with n, i.e., all these distances are defined for all numbers of dimensions.,Minkowski Distance,Distance Matrix,Mahalanobis Distance,For red points, the Euclidean distance is 14.7, Mahalanobis distance is 6., is the covariance matrix of the input data X,Mahalanobis Distance,Covarian
22、ce Matrix:,B,A,C,A: (0.5, 0.5) B: (0, 1) C: (1.5, 1.5) Mahal(A,B) = 5 Mahal(A,C) = 4,Common Properties of a Distance,Distances, such as the Euclidean distance, have some well known properties. d(p, q) 0 for all p and q and d(p, q) = 0 only if p = q. (Positive definiteness) d(p, q) = d(q, p) for all
23、p and q. (Symmetry) d(p, r) d(p, q) + d(q, r) for all points p, q, and r. (Triangle Inequality) where d(p, q) is the distance (dissimilarity) between points (data objects), p and q. A distance that satisfies these properties is a metric,Common Properties of a Similarity,Similarities, also have some
24、well known properties. s(p, q) = 1 (or maximum similarity) only if p = q. s(p, q) = s(q, p) for all p and q. (Symmetry) where s(p, q) is the similarity between points (data objects), p and q.,Similarity Between Binary Vectors,Common situation is that objects, p and q, have only binary attributes Com
25、pute similarities using the following quantities M01 = the number of attributes where p was 0 and q was 1 M10 = the number of attributes where p was 1 and q was 0 M00 = the number of attributes where p was 0 and q was 0 M11 = the number of attributes where p was 1 and q was 1 Simple Matching and Jac
26、card Coefficients SMC = number of matches / number of attributes = (M11 + M00) / (M01 + M10 + M11 + M00) J = number of 11 matches / number of not-both-zero attributes values = (M11) / (M01 + M10 + M11),SMC versus Jaccard: Example,p = 1 0 0 0 0 0 0 0 0 0 q = 0 0 0 0 0 0 1 0 0 1 M01 = 2 (the number of
27、 attributes where p was 0 and q was 1) M10 = 1 (the number of attributes where p was 1 and q was 0) M00 = 7 (the number of attributes where p was 0 and q was 0) M11 = 0 (the number of attributes where p was 1 and q was 1) SMC = (M11 + M00)/(M01 + M10 + M11 + M00) = (0+7) / (2+1+0+7) = 0.7 J = (M11)
28、/ (M01 + M10 + M11) = 0 / (2 + 1 + 0) = 0,Cosine Similarity,If d1 and d2 are two document vectors, then cos( d1, d2 ) = (d1 d2) / |d1| |d2| , where indicates vector dot product and | d | is the length of vector d. Example: d1 = 3 2 0 5 0 0 0 2 0 0 d2 = 1 0 0 0 0 0 0 1 0 2 d1 d2= 3*1 + 2*0 + 0*0 + 5*
29、0 + 0*0 + 0*0 + 0*0 + 2*1 + 0*0 + 0*2 = 5 |d1| = (3*3+2*2+0*0+5*5+0*0+0*0+0*0+2*2+0*0+0*0)0.5 = (42) 0.5 = 6.481 |d2| = (1*1+0*0+0*0+0*0+0*0+0*0+0*0+1*1+0*0+2*2) 0.5 = (6) 0.5 = 2.245 cos( d1, d2 ) = .3150,Extended Jaccard Coefficient (Tanimoto),Variation of Jaccard for continuous or count attributes Reduces to Jaccard for binary attributes,Correlation,
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 云计算导论 习题及答案 第3章习题
- 自闭症谱系障碍的干预与支持方案
- 老年人康复服务模式与内容
- 肾内科急性肾损伤监测流程
- 2026广东深圳市龙岗区坂田街道上品雅园幼儿园招聘1人备考题库【培优a卷】附答案详解
- 贴膜规范使用与皮肤管理
- 2026新疆博尔塔拉蒙古自治州华棉棉业有限责任公司招聘1人备考题库含答案详解(夺分金卷)
- 2026贵州贵阳观山湖中学招聘中小学教师备考题库及答案详解(各地真题)
- 中国通信服务广东公司2026届春季校园招聘备考题库及参考答案详解(精练)
- 2026广东深圳市龙岗区坂田街道上品雅园幼儿园招聘1人备考题库含答案详解【满分必刷】
- 2026 年离婚协议书制式模板民政局制式
- 脊柱外科2025年度工作总结暨2026年发展规划
- 2025年《科目一》机动车驾驶员考试试题库及答案
- 2026年中路财产保险股份有限公司校园招聘6人备考题库及答案详解1套
- 新能源电池检测服务协议
- DB51∕T 553-2025 小白菜生产技术规程
- 在家输液协议书
- 账号孵化合同范本
- 2025年及未来5年市场数据中国水族器材市场竞争态势及投资战略规划研究报告
- 2026年云南省政府采购评审专家考前冲刺备考300题(含答案)
- 腕管综合征护理查房
评论
0/150
提交评论