<div>
<div>
<h2>Introduction</h2>
<p>Large amounts of data are collected every day from satellite images, bio-medical, security, marketing, web search, geo-spatial or other automatic equipment. Mining knowledge from these big data far exceeds human’s abilities.</p>
<p><strong>Clustering</strong> is one of the important data mining methods for discovering knowledge in multidimensional data. The goal of clustering is to identify pattern or groups of similar objects within a data set of interest.</p>
<p>In the litterature, it is referred as “pattern recognition” or “unsupervised machine learning” - “unsupervised” because we are not guided by a priori ideas of which variables or samples belong in which clusters. “Learning” because the machine algorithm “learns” how to cluster.</p>
<p>Cluster analysis is popular in many fields, including:</p>
<ul><li><p>In cancer research for classifying patients into subgroups according their gene expression profile. This can be useful for identifying the molecular profile of patients with good or bad prognostic, as well as for understanding the disease.</p></li>
<li><p>In marketing for market segmentation by identifying subgroups of customers with similar profiles and who might be receptive to a particular form of advertising.</p></li>
<li><p>In City-planning for identifying groups of houses according to their type, value and location.</p></li>
</ul><br><div>
This book provides a practical guide to unsupervised machine learning or cluster analysis using R software. Additionally, we developped an R package named <a href="http://www.sthda.com/english/rpkgs/factoextra">factoextra</a> to create, easily, a ggplot2-based elegant plots of cluster analysis results. Factoextra official online documentation: <a href="http://www.sthda.com/english/rpkgs/factoextra">http://www.sthda.com/english/rpkgs/factoextra</a>
</div>
<p><br></p>
<p></p>
<p><strong>Preview of the first 38 pages</strong> of the book: <a href="http://www.sthda.com/sthda/ebooks/clustering_english_edition1_preview.pdf">Practical Guide to Cluster Analysis in R (preview)</a>.</p>
<p><a target="_blank" href="http://www.sthda.com/sthda/ebooks/clustering_english_edition1_preview.pdf"></a></p>
<p><strong>Download the ebook</strong> through <a href="https://payhip.com/b/MOUP">payhip</a>:</p>
<p><a target="_blank" href="https://payhip.com/b/MOUP"></a></p>
<p><strong>Order a physical copy</strong> from <a href="https://www.amazon.com/dp/1542462703/">amazon</a>:</p>
<p><a target="_blank" href="https://www.amazon.com/dp/1542462703/"></a></p>
</div>
<div>
<h2>Key features of this book</h2>
<p>Although there are several good books on unsupervised machine learning/clustering and related topics, we felt that many of them are either too high-level, theoretical or too advanced. Our goal was to write a practical guide to cluster analysis, elegant visualization and interpretation.</p>
<p>The main parts of the book include:</p>
<ul><li>distance measures,</li>
<li>partitioning clustering,</li>
<li>hierarchical clustering,</li>
<li>cluster validation methods, as well as,</li>
<li>advanced clustering methods such as fuzzy clustering, density-based clustering and model-based clustering.</li>
</ul><p>The book presents the basic principles of these tasks and provide many examples in R. This book offers solid guidance in data mining for students and researchers.</p>
<p>Key features:</p>
<ul><li>Covers clustering algorithm and implementation</li>
<li>Key mathematical concepts are presented</li>
<li>Short, self-contained chapters with practical examples. This means that, you don’t need to read the different chapters in sequence.</li>
</ul><br><div>
At the end of each chapter, we present R lab sections in which we systematically work through applications of the various methods discussed in that chapter.
</div>
<p><br></p>
</div>
<div>
<h1>How this book is organized?</h1>
<p></p>
<p>This book contains 5 parts. Part I (Chapter 1 - 3) provides a quick introduction to R (chapter 1) and presents required R packages and data format (Chapter 2) for clustering analysis and visualization.</p>
<p>The classification of objects, into clusters, requires some methods for measuring the distance or the (dis)similarity between the objects. Chapter 3 covers the common distance measures used for assessing similarity between observations.</p>
<p>Part II starts with partitioning clustering methods, which include:</p>
<ul><li>K-means clustering (Chapter 4),</li>
<li>K-Medoids or PAM (partitioning around medoids) algorithm (Chapter 5) and</li>
<li>CLARA algorithms (Chapter 6).</li>
</ul><p>Partitioning clustering approaches subdivide the data sets into a set of k groups, where k is the number of groups pre-specified by the analyst.</p>
<div>
<p>
cluster analysis in R
</p>
</div>
<p>In Part III, we consider agglomerative hierarchical clustering method, which is an alternative approach to partitionning clustering for identifying groups in a data set. It does not require to pre-specify the number of clusters to be generated. The result of hierarchical clustering is a tree-based representation of the objects, which is also known as dendrogram (see the figure below).</p>
<p>In this part, we describe how to compute, visualize, interpret and compare dendrograms:</p>
<ul><li>Agglomerative clustering (Chapter 7)
<ul><li>Algorithm and steps</li>
<li>Verify the cluster tree</li>
<li>Cut the dendrogram into different groups</li>
</ul></li>
<li>Compare dendrograms (Chapter 8)
<ul><li>Visual comparison of two dendrograms</li>
<li>Correlation matrix between a list of dendrograms</li>
</ul></li>
<li>Visualize dendrograms (Chapter 9)
<ul><li>Case of small data sets</li>
<li>Case of dendrogram with large data sets: zoom, sub-tree, PDF</li>
<li>Customize dendrograms using dendextend</li>
</ul></li>
<li>Heatmap: static and interactive (Chapter 10)
<ul><li>R base heat maps</li>
<li>Pretty heat maps</li>
<li>Interactive heat maps</li>
<li>Complex heatmap</li>
<li>Real application: gene expression data</li>
</ul></li>
</ul><p><br><br></p>
<p>In this section, you will learn how to generate and interpret the following plots.</p>
<ul><li><strong>Standard dendrogram with filled rectangle around clusters</strong>:</li>
</ul><div>
<p>
cluster analysis in R
</p>
</div>
<p><br></p>
<ul><li><strong>Compare two dendrograms</strong>:</li>
</ul><div>
<p>
cluster analysis in R
</p>
</div>
<p><br></p>
<ul><li><strong>Heatmap</strong>:</li>
</ul><div>
<p>
cluster analysis in R
</p>
</div>
<p><br></p>
<p>Part IV describes clustering validation and evaluation strategies, which consists of measuring the goodness of clustering results. Before applying any clustering algorithm to a data set, the first thing to do is to assess the clustering tendency. That is, whether applying clustering is suitable for the data. If yes, then how many clusters are there. Next, you can perform hierarchical clustering or partitioning clustering (with a pre-specified number of clusters). Finally, you can use a number of measures, described in this chapter, to evaluate the goodness of the clustering results.</p>
<p>The different chapters included in part IV are organized as follow:</p>
<ul><li><p>Assessing clustering tendency (Chapter 11)</p></li>
<li><p>Determining the optimal number of clusters (Chapter 12)</p></li>
<li><p>Cluster validation statistics (Chapter 13)</p></li>
<li><p>Choosing the best clustering algorithms (Chapter 14)</p></li>
<li><p>Computing p-value for hierarchical clustering (Chapter 15)</p></li>
</ul><p>In this section, you’ll learn how to create and interpret the plots hereafter.</p>
<ul><li><strong>Visual assessment of clustering tendency</strong> (left panel): Clustering tendency is detected in a visual form by counting the number of square shaped dark blocks along the diagonal in the image.</li>
<li><strong>Determine the optimal number of clusters</strong> (right panel) in a data set using the gap statistics.</li>
</ul><div>
<p>
cluster analysis in R
</p>
</div>
<ul><li>Cluster validation using the silhouette coefficient (Si): A value of Si close to 1 indicates that the object is well clustered. A value of Si close to -1 indicates that the object is poorly clustered. The figure below shows the silhouette plot of a k-means clustering.</li>
</ul><div>
<p>
cluster analysis in R
</p>
</div>
<p>Part V presents advanced clustering methods, including:</p>
<ul><li>Hierarchical k-means clustering (Chapter 16)</li>
<li>Fuzzy clustering (Chapter 17)</li>
<li>Model-based clustering (Chapter 18)</li>
<li>DBSCAN: Density-Based Clustering (Chapter 19)</li>
</ul><p>The hierarchical k-means clustering is an hybrid approach for improving k-means results.</p>
<p>In Fuzzy clustering, items can be a member of more than one cluster. Each item has a set of membership coefficients corresponding to the degree of being in a given cluster.</p>
<p>In model-based clustering, the data are viewed as coming from a distribution that is mixture of two ore more clusters. It finds best fit of models to data and estimates the number of clusters.</p>
<p>The density-based clustering (DBSCAN is a partitioning method that has been introduced in Ester et al. (1996). It can find out clusters of different shapes and sizes from data containing noise and outliers.</p>
<div>
<p>
cluster analysis in R
</p>
</div>
</div>
</div>