max MUST be bigger than min
s/variance/standard_deviation/