Statistics, Probability, Exploratory Data Analysis, Mathematics, Graph.
Here instead of random variables, there are random vectors. That is observation are in 2d space Generally, the density is defined as $mass / volume$. Here density is defined as number of points (mass) lying in the specific volume. The volume is calculated by considering the Kth nearest neighbour,