also compute median and maximum ess