I have sales statistic data in array form to calc standard deviation or average from this data.
stats = [100, 98, 102, 100, 108, 23, 120]
let said +-20% differential is normal situation, 23 is obviously a special case.
what's the best algorithm (in any language, pseudo or any principle) to find this unusual value?