Lab 8: Clustering (optional)
Contents
Lab 8: Clustering (optional)#
Caution
This lab will provide you with an opportunity to practice clustering in Python. We will be working with Guerry moral statistics data, that we already came across when studying LISA. Please start by opening this Google Colab notebook and copying it to your Google Drive.
Important
Please work off of the examples in the Google Colab notebook above.
Warning
There is no need to submit the lab.
Instructions#
Import the Guerry data into Python (see the code in the template)
Use the elbow and Silhoette method to identify the optimal number of clusters for k-Means clustering.
Modify the code to run the AHC on the data
Report the optimal number of clusters for K-Means and AHC.