How do you choose the min_samples parameter in DBSCAN?

Quick Overview

Asks how to set the min_samples parameter of DBSCAN and how it interacts with eps. It tests whether you know what the parameter means for core points, the rules of thumb based on dimensionality and noise, what happens at very low values, and how to check a setting without labels.

How do you choose the min_samples parameter in DBSCAN?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

How do you choose the `min_samples` parameter in DBSCAN? ```hint Start from the core-point rule Think about what `min_samples` controls in the definition of a core point, and what the smallest group you would still call a cluster looks like in your data. ``` ```hint The other parameter Consider whether you can settle `min_samples` without revisiting `eps`, and which plot people use to choose `eps`. ``` ### What a Strong Answer Covers - What `min_samples` means in the core-point definition, including whether the point itself is counted - Rules of thumb tied to dimensionality and noise, and when domain knowledge should override them - The effect of raising or lowering it on noise, cluster count and chaining - How it couples with `eps`, and how to pick `eps` once it is fixed - How to check a chosen setting without labels ### Follow-up Questions - Why does DBSCAN with a very small `min_samples` behave like single-linkage clustering? - How would you set the parameters when clusters have very different densities, and what does HDBSCAN change? - What goes wrong when you run DBSCAN on 100-dimensional embeddings, and what would you do before clustering? - Why is the silhouette score a poor way to validate DBSCAN output?

Overview: Asks how to set the min_samples parameter of DBSCAN and how it interacts with eps. It tests whether you know what the parameter means for core points, the rules of thumb based on dimensionality and noise, what happens at very low values, and how to check a setting without labels.

General logo
General
Nov 24, 2026
mediumMachine Learning EngineerOtherMachine Learning
0
0

How do you choose the min_samples parameter in DBSCAN?

What a Strong Answer Covers Guidance

  • What min_samples means in the core-point definition, including whether the point itself is counted
  • Rules of thumb tied to dimensionality and noise, and when domain knowledge should override them
  • The effect of raising or lowering it on noise, cluster count and chaining
  • How it couples with eps , and how to pick eps once it is fixed
  • How to check a chosen setting without labels

Follow-up Questions Guidance

  • Why does DBSCAN with a very small min_samples behave like single-linkage clustering?
  • How would you set the parameters when clusters have very different densities, and what does HDBSCAN change?
  • What goes wrong when you run DBSCAN on 100-dimensional embeddings, and what would you do before clustering?
  • Why is the silhouette score a poor way to validate DBSCAN output?