Data Mining 資料探勘 1 1022DM04 MI4 Wed, 6,7 (13:10-15:00) (B216) 分群分析 (Cluster Analysis) Min-Yuh Day 戴敏育 Assistant Professor 專任助理教授 Dept. of Information Management,

Slides:



Advertisements
Similar presentations
Social Media Marketing Research 社會媒體行銷研究 SMMR08 TMIXM1A Thu 7,8 (14:10-16:00) L511 Exploratory Factor Analysis Min-Yuh Day 戴敏育 Assistant Professor.
Advertisements

Case Study for Information Management 資訊管理個案
Data Mining 資料探勘 文字探勘與網頁探勘 (Text and Web Mining) Min-Yuh Day 戴敏育
Social Media Marketing Analytics 社群網路行銷分析 SMMA02 TLMXJ1A (MIS EMBA) Fri 12,13,14 (19:20-22:10) D326 社群網路行銷分析 (Social Media Marketing Analytics) Min-Yuh.
Data Mining 資料探勘 DM02 MI4 Wed, 7,8 (14:10-16:00) (B130) Association Analysis ( 關連分析 ) Min-Yuh Day 戴敏育 Assistant Professor 專任助理教授 Dept. of Information.
商業智慧實務 Practices of Business Intelligence BI04 MI4 Wed, 9,10 (16:10-18:00) (B113) 資料倉儲 (Data Warehousing) Min-Yuh Day 戴敏育 Assistant Professor 專任助理教授.
Case Study for Information Management 資訊管理個案
Data Warehousing 資料倉儲 Min-Yuh Day 戴敏育 Assistant Professor 專任助理教授 Dept. of Information Management, Tamkang University Dept. of Information ManagementTamkang.
Business Intelligence 商業智慧 BI01 IM EMBA Fri 12,13,14 (19:20-22:10) D502 Introduction to Business Intelligence 商業智慧導論 Min-Yuh Day 戴敏育 Assistant Professor.
商業智慧 Business Intelligence
Social Media Marketing Research 社會媒體行銷研究 SMMR06 TMIXM1A Thu 7,8 (14:10-16:00) L511 Measuring the Construct Min-Yuh Day 戴敏育 Assistant Professor 專任助理教授.
社會媒體服務專題 Special Topics in Social Media Services 淡江大學 淡江大學 資訊管理學系 資訊管理學系 Dept. of Information ManagementDept. of Information Management, Tamkang UniversityTamkang.
商業智慧實務 Practices of Business Intelligence
Data Mining 資料探勘 DM02 MI4 Thu. 9,10 (16:10-18:00) B513 關連分析 (Association Analysis) Min-Yuh Day 戴敏育 Assistant Professor 專任助理教授 Dept. of Information.
Web Mining ( 網路探勘 ) WM12 TLMXM1A Wed 8,9 (15:10-17:00) U705 Web Usage Mining ( 網路使用挖掘 ) Min-Yuh Day 戴敏育 Assistant Professor 專任助理教授 Dept. of Information.
商業智慧 Business Intelligence
商業智慧實務 Practices of Business Intelligence BI03 MI4 Wed, 9,10 (16:10-18:00) (B113) 企業績效管理 (Business Performance Management) Min-Yuh Day 戴敏育 Assistant.
Business Intelligence Trends 商業智慧趨勢 BIT08 MIS MBA Mon 6, 7 (13:10-15:00) Q407 商業智慧導入與趨勢 (Business Intelligence Implementation and Trends) Min-Yuh.
Social Media Management 社會媒體管理 SMM06 TMIXM1A Fri. 7,8 (14:10-16:00) L215 Min-Yuh Day 戴敏育 Assistant Professor 專任助理教授 Dept. of Information Management,
Social Media Management 社會媒體管理 SMM01 TMIXM1A Fri. 7,8 (14:10-16:00) L215 Min-Yuh Day 戴敏育 Assistant Professor 專任助理教授 Dept. of Information Management,
Case Study for Information Management 資訊管理個案 CSIM4B07 TLMXB4B (M1824) Tue 2, 3, 4 (9:10-12:00) B502 Telecommunications, the Internet, and Wireless.
分類與預測 (Classification and Prediction)
Social Media Marketing 社群網路行銷 SMM08 TLMXJ1A (MIS EMBA) Mon 12,13,14 (19:20-22:10) D504 社群網路行銷計劃 (Social Media Marketing Plan) Min-Yuh Day 戴敏育 Assistant.
商業智慧 Business Intelligence BI05 IM EMBA Fri 12,13,14 (19:20-22:10) D502 商業智慧的資料探勘 (Data Mining for Business Intelligence) Min-Yuh Day 戴敏育 Assistant.
Special Topics in Social Media Services 社會媒體服務專題 1 992SMS07 TMIXJ1A Sat. 6,7,8 (13:10-16:00) D502 Min-Yuh Day 戴敏育 Assistant Professor 專任助理教授 Dept. of Information.
Data Mining 資料探勘 Introduction to Data Mining 資料探勘導論 Min-Yuh Day 戴敏育
商業智慧實務 Practices of Business Intelligence BI01 MI4 Wed, 9,10 (16:10-18:00) (B113) 商業智慧導論 (Introduction to Business Intelligence) Min-Yuh Day 戴敏育.
Social Media Marketing Management 社會媒體行銷管理 SMMM12 TLMXJ1A Tue 12,13,14 (19:20-22:10) D325 確認性因素分析 (Confirmatory Factor Analysis) Min-Yuh Day 戴敏育.
Social Media Marketing Analytics 社群網路行銷分析 SMMA04 TLMXJ1A (MIS EMBA) Fri 12,13,14 (19:20-22:10) D326 測量構念 (Measuring the Construct) Min-Yuh Day 戴敏育.
Data Warehousing 資料倉儲 Min-Yuh Day 戴敏育 Assistant Professor 專任助理教授 Dept. of Information Management, Tamkang University Dept. of Information ManagementTamkang.
商業智慧實務 Practices of Business Intelligence BI06 MI4 Wed, 9,10 (16:10-18:00) (B130) 資料科學與巨量資料分析 (Data Science and Big Data Analytics) Min-Yuh Day 戴敏育.
Case Study for Information Management 資訊管理個案
Social Media Marketing Research 社會媒體行銷研究 SMMR09 TMIXM1A Thu 7,8 (14:10-16:00) L511 Confirmatory Factor Analysis Min-Yuh Day 戴敏育 Assistant Professor.
Business Intelligence Trends 商業智慧趨勢 BIT06 MIS MBA Mon 6, 7 (13:10-15:00) Q407 文字探勘與網路探勘 (Text and Web Mining) Min-Yuh Day 戴敏育 Assistant Professor.
Data Mining 資料探勘 DM04 MI4 Thu 9, 10 (16:10-18:00) B216 分群分析 (Cluster Analysis) Min-Yuh Day 戴敏育 Assistant Professor 專任助理教授 Dept. of Information Management,
Web Mining ( 網路探勘 ) WM04 TLMXM1A Wed 8,9 (15:10-17:00) U705 Unsupervised Learning ( 非監督式學習 ) Min-Yuh Day 戴敏育 Assistant Professor 專任助理教授 Dept. of.
Data Warehousing 資料倉儲 Min-Yuh Day 戴敏育 Assistant Professor 專任助理教授 Dept. of Information Management, Tamkang University Dept. of Information ManagementTamkang.
Case Study for Information Management 資訊管理個案 CSIM4B08 TLMXB4B Thu 8, 9, 10 (15:10-18:00) B508 Securing Information System: 1. Facebook, 2. European.
Case Study for Information Management 資訊管理個案 CSIM4B03 TLMXB4B (M1824) Tue 3,4 (10:10-12:00) L212 Thu 9 (16:10-17:00) B601 Global E-Business and Collaboration:
Case Study for Information Management 資訊管理個案
商業智慧實務 Practices of Business Intelligence BI01 MI4 Wed, 9,10 (16:10-18:00) (B130) 商業智慧導論 (Introduction to Business Intelligence) Min-Yuh Day 戴敏育.
商業智慧 Business Intelligence BI03 IM EMBA Fri 12,13,14 (19:20-22:10) D502 企業績效管理 (Business Performance Management) Min-Yuh Day 戴敏育 Assistant Professor.
Social Media Marketing 社群網路行銷 SMM02 TLMXJ1A (MIS EMBA) Mon 12,13,14 (19:20-22:10) D504 社群網路商業模式 (Business Models of Social Media) Min-Yuh Day 戴敏育.
商業智慧實務 Practices of Business Intelligence
Business Intelligence Trends 商業智慧趨勢 BIT01 MIS MBA Mon 6, 7 (13:10-15:00) Q407 Course Orientation for Business Intelligence Trends 商業智慧趨勢課程介紹 Min-Yuh.
Data Mining 資料探勘 分類與預測 (Classification and Prediction) Min-Yuh Day 戴敏育
商業智慧實務 Practices of Business Intelligence BI05 MI4 Wed, 9,10 (16:10-18:00) (B113) 商業智慧的資料探勘 (Data Mining for Business Intelligence) Min-Yuh Day 戴敏育.
Data Mining 資料探勘 DM02 MI4 Thu 9, 10 (16:10-18:00) B216 關連分析 (Association Analysis) Min-Yuh Day 戴敏育 Assistant Professor 專任助理教授 Dept. of Information.
Web Mining ( 網路探勘 ) WM06 TLMXM1A Wed 8,9 (15:10-17:00) U705 Information Retrieval and Web Search ( 資訊檢索與網路搜尋 ) Min-Yuh Day 戴敏育 Assistant Professor.
商業智慧 Business Intelligence BI08 IM EMBA Fri 12,13,14 (19:20-22:10) D502 社會網路分析 (Social Network Analysis) Min-Yuh Day 戴敏育 Assistant Professor 專任助理教授.
Social Media Marketing Research 社會媒體行銷研究 SMMR04 TMIXM1A Thu 7,8 (14:10-16:00) L511 Marketing Research Min-Yuh Day 戴敏育 Assistant Professor 專任助理教授.
Data Mining 資料探勘 DM01 MI4 Wed, 6,7 (13:10-15:00) (B216) Introduction to Data Mining ( 資料探勘導論 ) Min-Yuh Day 戴敏育 Assistant Professor 專任助理教授 Dept. of.
Data Warehousing 資料倉儲 Min-Yuh Day 戴敏育 Assistant Professor 專任助理教授 Dept. of Information Management, Tamkang University Dept. of Information ManagementTamkang.
Data Mining 資料探勘 Introduction to Data Mining (資料探勘導論) Min-Yuh Day 戴敏育
Case Study for Information Management 資訊管理個案
商業智慧 Business Intelligence BI04 IM EMBA Fri 12,13,14 (19:20-22:10) D502 資料倉儲 (Data Warehousing) Min-Yuh Day 戴敏育 Assistant Professor 專任助理教授 Dept.
Big Data Mining 巨量資料探勘 DM01 MI4 (M2244) (3094) Tue, 3, 4 (10:10-12:00) (B216) Course Orientation for Big Data Mining ( 巨量資料探勘課程介紹 ) Min-Yuh Day 戴敏育.
巨量資料基礎: MapReduce典範、Hadoop與Spark生態系統
Social Computing and Big Data Analytics 社群運算與大數據分析
Big Data Mining 巨量資料探勘 DM04 MI4 (M2244) (3094) Tue, 3, 4 (10:10-12:00) (B216) 分類與預測 (Classification and Prediction) Min-Yuh Day 戴敏育 Assistant Professor.
Big Data Mining 巨量資料探勘 DM05 MI4 (M2244) (3094) Tue, 3, 4 (10:10-12:00) (B216) 分群分析 (Cluster Analysis) Min-Yuh Day 戴敏育 Assistant Professor 專任助理教授.
Big Data Mining 巨量資料探勘 DM03 MI4 (M2244) (3094) Tue, 3, 4 (10:10-12:00) (B216) 關連分析 (Association Analysis) Min-Yuh Day 戴敏育 Assistant Professor 專任助理教授.
Case Study for Information Management 資訊管理個案
分群分析 (Cluster Analysis)
Business Intelligence Trends 商業智慧趨勢
Data Mining 資料探勘 分群分析 (Cluster Analysis) Min-Yuh Day 戴敏育
商業智慧實務 Practices of Business Intelligence
Case Study for Information Management 資訊管理個案
Case Study for Information Management 資訊管理個案
Case Study for Information Management 資訊管理個案
Presentation transcript:

Data Mining 資料探勘 DM04 MI4 Wed, 6,7 (13:10-15:00) (B216) 分群分析 (Cluster Analysis) Min-Yuh Day 戴敏育 Assistant Professor 專任助理教授 Dept. of Information Management, Tamkang University Dept. of Information ManagementTamkang University 淡江大學 淡江大學 資訊管理學系 資訊管理學系 tku.edu.tw/myday/ Tamkang University

週次 (Week) 日期 (Date) 內容 (Subject/Topics) 1 103/02/19 資料探勘導論 (Introduction to Data Mining) 2 103/02/26 關連分析 (Association Analysis) 3 103/03/05 分類與預測 (Classification and Prediction) 4 103/03/12 分群分析 (Cluster Analysis) 5 103/03/19 個案分析與實作一 (SAS EM 分群分析 ) : Case Study 1 (Cluster Analysis – K-Means using SAS EM) 6 103/03/26 個案分析與實作二 (SAS EM 關連分析 ) : Case Study 2 (Association Analysis using SAS EM) 7 103/04/02 教學行政觀摩日 (Off-campus study) 8 103/04/09 個案分析與實作三 (SAS EM 決策樹、模型評估 ) : Case Study 3 (Decision Tree, Model Evaluation using SAS EM) 課程大綱 (Syllabus) 2

週次 (Week) 日期 (Date) 內容 (Subject/Topics) 9 103/04/16 期中報告 (Midterm Project Presentation) /04/23 期中考試週 (Midterm Exam) /04/30 個案分析與實作四 (SAS EM 迴歸分析、類神經網路 ) : Case Study 4 (Regression Analysis, Artificial Neural Network using SAS EM) /05/07 文字探勘與網頁探勘 (Text and Web Mining) /05/14 海量資料分析 (Big Data Analytics) /05/21 期末報告 (Final Project Presentation) /05/28 畢業考試週 (Final Exam) 課程大綱 (Syllabus) 3

Outline Cluster Analysis K-Means Clustering 4 Source: Han & Kamber (2006)

Cluster Analysis Used for automatic identification of natural groupings of things Part of the machine-learning family Employ unsupervised learning Learns the clusters of things from past data, then assigns new instances There is not an output variable Also known as segmentation Source: Turban et al. (2011), Decision Support and Business Intelligence Systems 5

Cluster Analysis 6 Clustering of a set of objects based on the k-means method. (The mean of each cluster is marked by a “+”.) Source: Han & Kamber (2006)

Cluster Analysis Clustering results may be used to – Identify natural groupings of customers – Identify rules for assigning new cases to classes for targeting/diagnostic purposes – Provide characterization, definition, labeling of populations – Decrease the size and complexity of problems for other data mining methods – Identify outliers in a specific domain (e.g., rare-event detection) Source: Turban et al. (2011), Decision Support and Business Intelligence Systems 7

8 PointPP(x,y) p01a(3, 4) p02b(3, 6) p03c(3, 8) p04d(4, 5) p05e(4, 7) p06f(5, 1) p07g(5, 5) p08h(7, 3) p09i(7, 5) p10j(8, 5) Example of Cluster Analysis

Cluster Analysis for Data Mining Analysis methods – Statistical methods (including both hierarchical and nonhierarchical), such as k-means, k-modes, and so on – Neural networks (adaptive resonance theory [ART], self-organizing map [SOM]) – Fuzzy logic (e.g., fuzzy c-means algorithm) – Genetic algorithms Divisive versus Agglomerative methods Source: Turban et al. (2011), Decision Support and Business Intelligence Systems 9

Cluster Analysis for Data Mining How many clusters? – There is not a “truly optimal” way to calculate it – Heuristics are often used 1.Look at the sparseness of clusters 2.Number of clusters = (n/2) 1/2 (n: no of data points) 3.Use Akaike information criterion (AIC) 4.Use Bayesian information criterion (BIC) Most cluster analysis methods involve the use of a distance measure to calculate the closeness between pairs of items – Euclidian versus Manhattan (rectilinear) distance Source: Turban et al. (2011), Decision Support and Business Intelligence Systems 10

k-Means Clustering Algorithm k : pre-determined number of clusters Algorithm (Step 0: determine value of k) Step 1: Randomly generate k random points as initial cluster centers Step 2: Assign each point to the nearest cluster center Step 3: Re-compute the new cluster centers Repetition step: Repeat steps 2 and 3 until some convergence criterion is met (usually that the assignment of points to clusters becomes stable) Source: Turban et al. (2011), Decision Support and Business Intelligence Systems 11

Cluster Analysis for Data Mining - k-Means Clustering Algorithm Source: Turban et al. (2011), Decision Support and Business Intelligence Systems 12

Similarity and Dissimilarity Between Objects Distances are normally used to measure the similarity or dissimilarity between two data objects Some popular ones include: Minkowski distance: where i = (x i1, x i2, …, x ip ) and j = (x j1, x j2, …, x jp ) are two p- dimensional data objects, and q is a positive integer If q = 1, d is Manhattan distance 13 Source: Han & Kamber (2006)

Similarity and Dissimilarity Between Objects (Cont.) If q = 2, d is 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) Also, one can use weighted distance, parametric Pearson product moment correlation, or other disimilarity measures 14 Source: Han & Kamber (2006)

Euclidean distance vs Manhattan distance Distance of two point x 1 = (1, 2) and x 2 (3, 5) x 2 (3, 5) 2 x 1 = (1, 2) Euclidean distance: = ((3-1) 2 + (5-2) 2 ) 1/2 = ( ) 1/2 = (4 + 9) 1/2 = (13) 1/2 = 3.61 Manhattan distance: = (3-1) + (5-2) = = 5

The K-Means Clustering Method Example K=2 Arbitrarily choose K object as initial cluster center Assign each objects to most similar center Update the cluster means reassign 16 Source: Han & Kamber (2006)

17 PointPP(x,y) p01a(3, 4) p02b(3, 6) p03c(3, 8) p04d(4, 5) p05e(4, 7) p06f(5, 1) p07g(5, 5) p08h(7, 3) p09i(7, 5) p10j(8, 5) K-Means Clustering Step by Step

18 PointPP(x,y) p01a(3, 4) p02b(3, 6) p03c(3, 8) p04d(4, 5) p05e(4, 7) p06f(5, 1) p07g(5, 5) p08h(7, 3) p09i(7, 5) p10j(8, 5) Initialm1(3, 4) Initialm2(8, 5) m 1 = (3, 4) M 2 = (8, 5) K-Means Clustering Step 1: K=2, Arbitrarily choose K object as initial cluster center

19 M 2 = (8, 5) Step 2: Compute seed points as the centroids of the clusters of the current partition Step 3: Assign each objects to most similar center m 1 = (3, 4) K-Means Clustering PointPP(x,y) m1 distance m2 distance Cluster p01a(3, 4) Cluster1 p02b(3, 6) Cluster1 p03c(3, 8) Cluster1 p04d(4, 5) Cluster1 p05e(4, 7) Cluster1 p06f(5, 1) Cluster1 p07g(5, 5) Cluster1 p08h(7, 3) Cluster2 p09i(7, 5) Cluster2 p10j(8, 5) Cluster2 Initialm1(3, 4) Initialm2(8, 5)

20 PointPP(x,y) m1 distance m2 distance Cluster p01a(3, 4) Cluster1 p02b(3, 6) Cluster1 p03c(3, 8) Cluster1 p04d(4, 5) Cluster1 p05e(4, 7) Cluster1 p06f(5, 1) Cluster1 p07g(5, 5) Cluster1 p08h(7, 3) Cluster2 p09i(7, 5) Cluster2 p10j(8, 5) Cluster2 Initialm1(3, 4) Initialm2(8, 5) M 2 = (8, 5) Step 2: Compute seed points as the centroids of the clusters of the current partition Step 3: Assign each objects to most similar center m 1 = (3, 4) K-Means Clustering Euclidean distance b(3,6)  m2(8,5) = ((8-3) 2 + (5-6) 2 ) 1/2 = (5 2 + (-1) 2 ) 1/2 = (25 + 1) 1/2 = (26) 1/2 = 5.10 Euclidean distance b(3,6)  m1(3,4) = ((3-3) 2 + (4-6) 2 ) 1/2 = (0 2 + (-2) 2 ) 1/2 = (0 + 4) 1/2 = (4) 1/2 = 2.00

21 PointPP(x,y) m1 distance m2 distance Cluster p01a(3, 4) Cluster1 p02b(3, 6) Cluster1 p03c(3, 8) Cluster1 p04d(4, 5) Cluster1 p05e(4, 7) Cluster1 p06f(5, 1) Cluster2 p07g(5, 5) Cluster1 p08h(7, 3) Cluster2 p09i(7, 5) Cluster2 p10j(8, 5) Cluster2 m1(3.86, 5.14) m2(7.33, 4.33) m 1 = (3.86, 5.14) M 2 = (7.33, 4.33) Step 4: Update the cluster means, Repeat Step 2, 3, stop when no more new assignment K-Means Clustering

22 PointPP(x,y) m1 distance m2 distance Cluster p01a(3, 4) Cluster1 p02b(3, 6) Cluster1 p03c(3, 8) Cluster1 p04d(4, 5) Cluster1 p05e(4, 7) Cluster1 p06f(5, 1) Cluster2 p07g(5, 5) Cluster1 p08h(7, 3) Cluster2 p09i(7, 5) Cluster2 p10j(8, 5) Cluster2 m1(3.67, 5.83) m2(6.75, 3.50) M 2 = (6.75., 3.50) m 1 = (3.67, 5.83) Step 4: Update the cluster means, Repeat Step 2, 3, stop when no more new assignment K-Means Clustering

23 PointPP(x,y) m1 distance m2 distance Cluster p01a(3, 4) Cluster1 p02b(3, 6) Cluster1 p03c(3, 8) Cluster1 p04d(4, 5) Cluster1 p05e(4, 7) Cluster1 p06f(5, 1) Cluster2 p07g(5, 5) Cluster1 p08h(7, 3) Cluster2 p09i(7, 5) Cluster2 p10j(8, 5) Cluster2 m1(3.67, 5.83) m2(6.75, 3.50) stop when no more new assignment K-Means Clustering

K-Means Clustering (K=2, two clusters) 24 PointPP(x,y) m1 distance m2 distance Cluster p01a(3, 4) Cluster1 p02b(3, 6) Cluster1 p03c(3, 8) Cluster1 p04d(4, 5) Cluster1 p05e(4, 7) Cluster1 p06f(5, 1) Cluster2 p07g(5, 5) Cluster1 p08h(7, 3) Cluster2 p09i(7, 5) Cluster2 p10j(8, 5) Cluster2 m1(3.67, 5.83) m2(6.75, 3.50) stop when no more new assignment K-Means Clustering

Summary Cluster Analysis K-Means Clustering 25 Source: Han & Kamber (2006)

References Jiawei Han and Micheline Kamber, Data Mining: Concepts and Techniques, Second Edition, 2006, Elsevier Efraim Turban, Ramesh Sharda, Dursun Delen, Decision Support and Business Intelligence Systems, Ninth Edition, 2011, Pearson. 26