Replace the average (mean) with the median and you will have better results in almost all cases.
When the data is good the result ist virtually identical. When there are outliers, the median just ignores them unless there lots of them. When the data is that bad, that the median doesn't work anymore you need to up your statistics quite a few notches.