How does DBSCAN identify clusters using density?

Quick Overview

Asks how DBSCAN finds clusters from point density using the eps and min_samples parameters. Tests core, border and noise points, how clusters expand through core points, and where the method works well or breaks down compared with k-means.

How does DBSCAN identify clusters using density?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: easy

Interview Round: Other

How does DBSCAN identify clusters using density? Explain what "dense" means in DBSCAN, how the algorithm turns that into clusters and outliers, and where the approach works well or poorly. ```hint Start from one point's neighborhood Count how many points fall within a fixed radius of a single point, then ask what should happen to that point's neighbors when the count is high and when it is low. ``` ### What a Strong Answer Covers - The two parameters and the rule that makes a point a core point - How clusters grow through core points, and how border and noise points are labeled - The main loop of the algorithm, including why a point first marked as noise can later become a border point - Strengths compared with k-means, such as no preset number of clusters, arbitrary shapes and built-in outlier detection - Weaknesses: one global density threshold, sensitivity to `eps` and feature scaling, and runtime ### Follow-up Questions - How would you choose `eps` and `min_samples` for a new dataset? - Why does DBSCAN work poorly on high-dimensional data? - scikit-learn's `DBSCAN` has no `predict` method. How would you assign new points to the clusters you already found? - Your data has one tight cluster and one diffuse cluster. What would you use instead, and why?

Overview: Asks how DBSCAN finds clusters from point density using the eps and min_samples parameters. Tests core, border and noise points, how clusters expand through core points, and where the method works well or breaks down compared with k-means.

PracHub logo
General
Nov 25, 2026
easyMachine Learning EngineerOtherMachine Learning
0
0

How does DBSCAN identify clusters using density?

Explain what "dense" means in DBSCAN, how the algorithm turns that into clusters and outliers, and where the approach works well or poorly.

What a Strong Answer Covers Guidance

  • The two parameters and the rule that makes a point a core point
  • How clusters grow through core points, and how border and noise points are labeled
  • The main loop of the algorithm, including why a point first marked as noise can later become a border point
  • Strengths compared with k-means, such as no preset number of clusters, arbitrary shapes and built-in outlier detection
  • Weaknesses: one global density threshold, sensitivity to eps and feature scaling, and runtime

Follow-up Questions Guidance

  • How would you choose eps and min_samples for a new dataset?
  • Why does DBSCAN work poorly on high-dimensional data?
  • scikit-learn's DBSCAN has no predict method. How would you assign new points to the clusters you already found?
  • Your data has one tight cluster and one diffuse cluster. What would you use instead, and why?