Is there a quantitative way to compare the distribution shape of different samples?

I am conducting some research which involves visually/graphically observing the differences between the shapes of the distributions of different samples.

I would like to automate this process (at least somewhat), so that I can scale the number of samples I look at (as well as speeding things up, reducing human error etc.).

Is there a way to quantitatively describe/measure the shape of a distribution so that comparisons between shapes can be made algorithmically?


If the problem is uni-variate, then why not just do a KS test on the (centered, re scaled) vectors?

You can’t use the associated pvalues (because the center and scale components
have been determined by the data) but the D statistics gives a relative measure of the distance between the two vectors (In a nutshell, it’s simply the Chebychev distance between the two CDF).

So, in R, it would be (assuming x and y are two vectors of potentially different lengths (each vector contains one of the sample whose shape of the distribution you want to compare).

For example, if xP(λ) and yN(μ,σ2):

#two distributions with different shape

P.S. I left the original answer, because it seemed to be useful and frankly took me time to write. @Modo: let me know if it’s better to remove it.

Source : Link , Question Author : Homunculus Reticulli , Answer Author : user603

Leave a Comment