Skip to main content
HomeR

Cluster Analysis in R

4.8+
13 reviews
Intermediate

Develop a strong intuition for how hierarchical and k-means clustering work and learn how to apply them to extract insights from your data.

Start Course for Free
4 hours16 videos52 exercises41,574 learnersTrophyStatement of Accomplishment

Create Your Free Account

GoogleLinkedInFacebook

or

By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.
Group

Training 2 or more people?

Try DataCamp for Business

Loved by learners at thousands of companies


Course Description

Learn How to Perform Cluster Analysis

Cluster analysis is a powerful toolkit in the data science workbench. It is used to find groups of observations (clusters) that share similar characteristics. These similarities can inform all kinds of business decisions; for example, in marketing, it is used to identify distinct groups of customers for which advertisements can be tailored.

Explore Hierarchical and K-Means Clustering Techniques

In this course, you will learn about two commonly used clustering methods - hierarchical clustering and k-means clustering. You won't just learn how to use these methods, you'll build a strong intuition for how they work and how to interpret their results. You'll develop this intuition by exploring three different datasets: soccer player positions, wholesale customer spending data, and longitudinal occupational wage data.

Hone Your Skills with a Hands-On Case Study

You’ll finish the course by applying your new skills to a case study based around average salaries and how they have changed over time. This will combine hierarchical clustering techniques such as occupation trees, preparing for exploration, and plotting occupational clusters, with k-means techniques including elbow analysis and average silhouette widths.

DataCamp courses are comprised of a mixture of videos, articles, and practice exercises so that you have the chance to test and cement your new-found skills so that you feel confident applying them outside a course setting.
For Business

Training 2 or more people?

Get your team access to the full DataCamp platform, including all the features.
DataCamp For BusinessFor a bespoke solution book a demo.

In the following Tracks

Machine Learning Scientist in R

Go To Track
  1. 1

    Calculating Distance Between Observations

    Free

    Cluster analysis seeks to find groups of observations that are similar to one another, but the identified groups are different from each other. This similarity/difference is captured by the metric called distance. In this chapter, you will learn how to calculate the distance between observations for both continuous and categorical features. You will also develop an intuition for how the scales of your features can affect distance.

    Play Chapter Now
    What is cluster analysis?
    50 xp
    When to cluster?
    50 xp
    Distance between two observations
    50 xp
    Calculate & plot the distance between two players
    100 xp
    Using the dist() function
    100 xp
    Who are the closest players?
    50 xp
    The importance of scale
    50 xp
    Effects of scale
    100 xp
    When to scale data?
    50 xp
    Measuring distance for categorical data
    50 xp
    Calculating distance between categorical variables
    100 xp
    The closest observation to a pair
    50 xp
  2. 2

    Hierarchical Clustering

    This chapter will help you answer the last question from chapter 1—how do you find groups of similar observations (clusters) in your data using the distances that you have calculated? You will learn about the fundamental principles of hierarchical clustering - the linkage criteria and the dendrogram plot - and how both are used to build clusters. You will also explore data from a wholesale distributor in order to perform market segmentation of clients using their spending habits.

    Play Chapter Now
For Business

Training 2 or more people?

Get your team access to the full DataCamp platform, including all the features.

In the following Tracks

Machine Learning Scientist in R

Go To Track

datasets

Soccer player positionsOccupational Employment Statistics (OES)Wholesale customer spending

collaborators

Collaborator's avatar
Yashas Roy
Collaborator's avatar
Richie Cotton

prerequisites

Intermediate R
Dmitriy Gorenshteyn HeadshotDmitriy Gorenshteyn

Lead Data Scientist at Memorial Sloan Kettering Cancer Center

See More

Don’t just take our word for it

*4.8
from 13 reviews
85%
15%
0%
0%
0%
  • Júlia S.
    5 months

    Really good course! I definitely plan to apply the knowledge :) good proportion of theory and practice

  • Daniel L.
    8 months

    It is a good course, but felt to repetitive from the course “Unsupervised Learning in R”. I would suggest this course to focus more on other clustering methods: GMM, DBSCAN, etc… Also other methods to evaluate the clustering performance.

  • Milan F.
    12 months

    Thank you

  • Daniel S.
    about 1 year

    Very clear and well explained

  • Anil G.
    over 1 year

    Good

"Really good course! I definitely plan to apply the knowledge :) good proportion of theory and practice"

Júlia S.

"It is a good course, but felt to repetitive from the course “Unsupervised Learning in R”. I would suggest this course to focus more on other clustering methods: GMM, DBSCAN, etc… Also other methods to evaluate the clustering performance."

Daniel L.

"Thank you"

Milan F.

FAQs

Join over 15 million learners and start Cluster Analysis in R today!

Create Your Free Account

GoogleLinkedInFacebook

or

By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.