x d and y d are two points in d-dimensional euclidean space. the euclidean distance between x and y is: be the region inside the d-dimensional hypersphere with radius r, centered at the origin. the volume of s is the gamma function that we saw earlier in class when talking about the beta distribution.