Calculate mean deviation from mean