what is the formula of finding mean absolute deviation n it is necessary to find both mean n median