same idea for p-percent as for m-mean