I calculate the input to a box and whisker diagram like this (
data is a sorted integer array), and
UQ are the lower resp. upper quantile:
Min: data, LQ: data[len(data)/4], Median: data[len(data)/2], UQ: data[len(data)/4*3], Max: data[len(data)-1],
My question would be: Is there a mathematical definition / algorithm to define how 'compact' such an array of integers is? If Max-Min = 0 it's super compact, but what would a sane definition of compactness / heterogeneity be if I compare two such arrays and for both holds
Max - Min != 0 ?
Normal distribution of
data is assumed!