DB Scan Clustering Numerical

PUBLISHED: MAY 2, 2026β€’2 MIN READ

πŸ“˜ DBSCAN Clustering (Numerical Solution)🧠 DBSCAN Concepts RecapΞ΅ (epsilon): Radius of neighborhoodMinPts: Minimum number of points (including the point itself

Abhishek Singh Rajput
Abhishek SinghAuthor
giratina-altered
#487
giratina-altered

πŸ“˜ DBSCAN Clustering (Numerical Solution)

🧠 DBSCAN Concepts Recap

  • Ξ΅ (epsilon): Radius of neighborhood
  • MinPts: Minimum number of points (including the point itself) to be considered a core point
  • Core Point: A point that has at least MinPts points (including itself) within Ξ΅ distance
  • Border Point: A point that is within Ξ΅ of a core point but doesn't have enough neighbors to be a core point itself
  • Noise Point: A point that is not a core and not reachable from any core point

πŸ“Œ Given Parameters

  • Ξ΅ = 1.9
  • MinPts = 4

πŸ“ Points (with coordinates)

Pointxy
P174
P264
P356
P442
P563
P652
P733
P845
P965
P1036
P1144
P1282
DBSCAN numerical example showing labeled data points p1 to p12 plotted on a 2D coordinate grid for clustering analysis

d(A,B)=(x2βˆ’x1)2+(y2βˆ’y1)2d(A,B)=\sqrt{\left(x_2-x_1\right)^2+\left(y_2-y_1\right)^2}

πŸ“ 12x12 Euclidean Distance Matrix (rounded to 2 decimals)

P1P2P3P4P5P6P7P8P9P10P11P12
P10.001.002.833.611.412.834.123.161.414.473.002.24
P21.000.002.242.831.002.243.162.241.003.612.002.83
P32.832.240.004.123.164.003.611.411.412.002.245.00
P43.612.834.120.002.241.001.413.003.614.122.004.00
P51.411.003.162.240.001.413.002.832.004.242.242.24
P62.832.244.001.001.410.002.243.163.164.472.243.00
P74.123.163.611.413.002.240.002.243.613.001.415.10
P83.162.241.413.002.833.162.240.002.001.411.005.00
P91.411.001.413.612.003.163.612.000.003.162.243.61
P104.473.612.004.124.244.473.001.413.160.002.246.40
P113.002.002.242.002.242.241.411.002.242.240.004.47
P122.242.835.004.002.243.005.105.003.616.404.470.00

πŸ” Core, Border, and Noise Classification (Ξ΅ = 1.9, MinPts = 4)

Core Point: β‰₯ 4 neighbors within distance ≀ 1.9
Border Point: < 4 neighbors, but neighbor of core
Noise: Neither core nor border

πŸ” Point-wise Explanation

πŸ”Έ P1 (7, 4)

  • Neighbors P2, P5, P9
  • Count: 4
  • βœ… Since 4 β‰₯ MinPts β†’ P1 is a Core Point

πŸ”Έ P2 (6, 4)

  • Neighbors P1, P5, P9
  • Count: 4
  • βœ… 4 β‰₯ MinPts β†’ P2 is a Core Point

πŸ”Έ P3 (5, 6)

  • Neighbors P8, P9
  • Count: 3
  • ⚠️ 3 < MinPts β†’ P3 is not a core point
    But it lies within Ξ΅ of P8 and P9 which are a core point
  • πŸ” Therefore, P3 is a Border Point

πŸ”Έ P4 (4, 2)

  • Neighbors P6, P7
  • Count: 3
  • ❌ 3 < MinPts, and not within Ξ΅ of any core point
  • ❌ So, P4 is a Noise Point

πŸ”Έ P5 (6, 3)

  • Neighbors P1, P2, P6
  • Count: 4
  • βœ… 4 β‰₯ MinPts β†’ P5 is a Core Point

πŸ”Έ P6 (5, 2)

  • Neighbors P4, P5
  • Count: 3
  • ⚠️ 3 < MinPts β†’ P6 is not a core point
    But it lies within Ξ΅ of P5 which is core points
  • πŸ” So, P6 is a Border Point

πŸ”Έ P7 (3, 3)

  • Neighbors P4, P11
  • Count: 3
  • ❌ 3 < MinPts, and not within Ξ΅ of any core point
  • ❌ So, P7 is a Noise Point

πŸ”Έ P8 (4, 5)

  • Neighbors P3, P10, P11
  • Count: 4
  • βœ… 4 β‰₯ MinPts β†’ P8 is a Core Point

πŸ”Έ P9 (6, 5)

  • Neighbors P1, P2, P3
  • Count: 4
  • βœ… 4 β‰₯ MinPts β†’ P9 is a Core Point

πŸ”Έ P10 (3, 6)

  • Neighbors P8
  • Count: 2
  • ⚠️ 2 < MinPts β†’ Not core
    But within Ξ΅ of P8, a core point
  • πŸ” So, P10 is a Border Point

πŸ”Έ P11 (4, 4)

  • Neighbors P7, P8
  • Count: 3
  • ⚠️ 2 < MinPts β†’ Not core
    But within Ξ΅ of P8, a core point
  • πŸ” So, P10 is a Border Point

πŸ”Έ P12 (8, 2)

  • Neighbors within Ξ΅ = 1.9 (NONE)
  • Count: 1
  • ❌ 1 < MinPts, and not within Ξ΅ of any core point
  • ❌ So, P12 is a Noise Point

🧠 Final Classification Summary:

TypePoints
CoreP1, P2, P5, P8, P9
BorderP3, P6, P10, P11
NoiseP4, P7, P12
PointNeighbors (within Ξ΅=1.9)CountType
P1P2, P5, P94βœ… Core
P2P1, P5, P94βœ… Core
P3P8, P93⚠️ Border of (P8, P9)
P4P6, P73❌ Noise
P5P1, P2, P64βœ… Core
P6P4, P53⚠️ Border of (P5)
P7P4, P113❌ Noise
P8P3, P10, P114βœ… Core
P9P1, P2, P34βœ… Core
P10P82⚠️ Border of (P8)
P11P7, P83⚠️ Border of (P8)
P12None1❌ Noise