I have two 3D distributions and I want to run a Kolmogorov–Smirnov test on these two samples to measure their similarity. scipy.stats has an implementation of a 2-sample K-S tests implemented in 1 dimension and I found an implementation in 2 dimensions, but none in 3 dimensions (or N-dimensions).
Can someone implement a 2-sample K-S test for 3D distributions?