Which statement best describes the role of the epsilon (eps) parameter in DBSCAN clustering?
Think about how DBSCAN decides if points belong to the same cluster based on distance.
The epsilon (eps) parameter sets the radius to search for neighboring points. Points within this radius are considered neighbors, which helps define clusters.
What is the output of the following code snippet?
from sklearn.cluster import DBSCAN import numpy as np X = np.array([[1, 2], [2, 2], [2, 3], [8, 7], [8, 8], [25, 80]]) model = DBSCAN(eps=1.5, min_samples=2) labels = model.fit_predict(X) print(labels.tolist())
Check which points are close enough to form clusters with eps=1.5 and min_samples=2.
The first three points form one cluster (label 0), the next two form another cluster (label 1), and the last point is an outlier (-1) because it has no neighbors within eps.
What is the most likely effect of increasing the min_samples parameter in DBSCAN while keeping eps constant?
Think about how min_samples controls the minimum number of points to form a cluster.
Increasing min_samples means a point needs more neighbors to be a core point, so fewer points meet this, increasing noise points.
Which metric is most appropriate to evaluate the quality of clusters produced by DBSCAN when true labels are unknown?
Consider metrics that do not require true labels and measure cluster cohesion and separation.
Silhouette Score measures how similar points are within clusters compared to other clusters and works without true labels.
Given the code below, why does the DBSCAN model assign all points to noise (-1)?
from sklearn.cluster import DBSCAN import numpy as np X = np.array([[1, 2], [2, 2], [2, 3], [8, 7], [8, 8], [25, 80]]) model = DBSCAN(eps=0.5, min_samples=2) labels = model.fit_predict(X) print(labels.tolist())
Check the distance threshold and how it affects neighbor counts.
With eps=0.5, points are too far apart to have neighbors within that radius, so none become core points and all are labeled noise.
