Recall & Review
beginner
What is a dendrogram in data science?
A dendrogram is a tree-like diagram that shows how data points group together in hierarchical clustering. It helps us see the order and distance of clusters.
Click to reveal answer
beginner
Which Python library provides the dendrogram function for hierarchical clustering visualization?
The scipy.cluster.hierarchy module provides the
dendrogram() function to create dendrogram visualizations.Click to reveal answer
intermediate
What input does the dendrogram function require?
It requires a linkage matrix, which encodes the hierarchical clustering information such as which clusters are merged and their distances.
Click to reveal answer
intermediate
How can you interpret the height of the branches in a dendrogram?
The height of each branch shows the distance or dissimilarity between clusters when they merge. Taller branches mean clusters are more different.
Click to reveal answer
intermediate
Name one way to customize a dendrogram plot in scipy.
You can customize colors, orientation, labels, and truncate the dendrogram to show only a part of the tree using parameters like
color_threshold, orientation, and truncate_mode.Click to reveal answer
What does a dendrogram visualize?
✗ Incorrect
A dendrogram shows the hierarchical clustering structure of data.
Which function creates a dendrogram in scipy?
✗ Incorrect
The dendrogram() function plots the hierarchical clustering as a tree.
What does the height of a dendrogram branch represent?
✗ Incorrect
Branch height shows how far apart clusters are when merged.
What input is needed to plot a dendrogram?
✗ Incorrect
The linkage matrix contains the hierarchical clustering info needed.
Which parameter controls the orientation of a dendrogram plot?
✗ Incorrect
The orientation parameter sets the dendrogram direction (top, left, right, bottom).
Explain how a dendrogram helps in understanding hierarchical clustering results.
Think about how the tree shows groups joining step by step.
You got /4 concepts.
Describe the steps to create a dendrogram plot using scipy.
Start from data, then cluster, then plot.
You got /4 concepts.