The p-folded cumulative distribution function and the mean absolute deviation from the p-quantile

The aims of this short note are two-fold. First, it shows that, for a random variable X, the area under the curve of its folded cumulative distribution function equals the mean absolute deviation (MAD) from the median. Such an equivalence implies that the MAD is the area between the cumulative distribution function (CDF) of X and that for a degenerate distribution which takes the median as the only value. Secondly, it generalises the folded CDF to a p-folded CDF, and derives the equivalence between the area under the curve of the p-folded CDF and the weighted mean absolute deviation from the p-quantile (). In addition, such equivalences give the MAD and simple graphical interpretations. Some other practical implications are also briefly discussed.