Kolmogorov Smirnov Test : CDF vs PDF 
Does anyone know that why in the Kolmogorov-Smirnov Test, the empirical distribution function is compared with the cumulative distribution function and not the probability distribution function? Is there a reason behind this?
Source: https://en.wikipedia.org/wiki/Kolmogorov%E2%80%93Smirnov_test

The kernel density of probabilistic function would be hard to interpret, the width of each individual Dirac can change, that is why cumulative distribution is chosen which gives a wholistic picture about the distribution at any point in cdf.
