# Accounting only for high outliers in a sample

**URL:** https://boards.straightdope.com/t/accounting-only-for-high-outliers-in-a-sample/535876
**Category:** Factual Questions
**Created:** [April 12, 2010, 7:40pm UTC](https://boards.straightdope.com/t/accounting-only-for-high-outliers-in-a-sample/535876 "2010-04-12T19:40:48Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![ComeToTheDarkSideWeHaveCookies](https://avatars.discourse-cdn.com/v4/letter/c/e9bcb4/32.png) [@ComeToTheDarkSideWeHaveCookies](https://boards.straightdope.com/u/ComeToTheDarkSideWeHaveCookies)
#### Post date: [April 12, 2010, 7:40pm UTC](https://boards.straightdope.com/t/accounting-only-for-high-outliers-in-a-sample/535876/1 "2010-04-12T19:40:48Z")

</div>

I haven’t been in a statistics class in almost 15 years…

Hypothetical scenario:

I want to provide an incentive for the fast performance of a task and discourage slow performance.

As individuals continue completing the task, I had been maintaining a simple running average of the completion time and I had been using that average to calculate where a given individual fits on the insentive\<—\>disincentive spectrum

However, it quickly became apparent that people who take an extremely long time to perform the task resulted in pulling the average up, making it easier to be considered qualified for the incentive for increasingly slower and slower times.

So I want to use a different formula, one that will eliminate only the high outliers from the equation used to determine who is eligible for insentive or disincentive while keeping all of the fast times in the calculation.

Should I be using standard deviation? Interquartile range? Is what I’m looking for considered a median, or is another term more applicable?

Halp!

---

<div class="post-metadata">

### Author: ![ComeToTheDarkSideWeHaveCookies](https://avatars.discourse-cdn.com/v4/letter/c/e9bcb4/32.png) [@ComeToTheDarkSideWeHaveCookies](https://boards.straightdope.com/u/ComeToTheDarkSideWeHaveCookies)
#### Post date: [April 12, 2010, 7:47pm UTC](https://boards.straightdope.com/t/accounting-only-for-high-outliers-in-a-sample/535876/2 "2010-04-12T19:47:06Z")

</div>

Aaaand missed the edit window to spell incentive correctly. :smack:

---

<div class="post-metadata">

### Author: ![Machine\_Elf](https://avatars.discourse-cdn.com/v4/letter/m/82dd89/32.png) [@Machine\_Elf](https://boards.straightdope.com/u/Machine_Elf)
#### Post date: [April 12, 2010, 8:00pm UTC](https://boards.straightdope.com/t/accounting-only-for-high-outliers-in-a-sample/535876/3 "2010-04-12T20:00:05Z")

</div>

Keep everything within plus-or-minus 3 standard deviations from the mean; anything outside that point may regarded as an outlier and discarded.

You can tweak your formula to only discard the points on one side of the histogram.

---

<div class="post-metadata">

### Author: ![zut](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/zut/32/2875_2.png) [@zut](https://boards.straightdope.com/u/zut)
#### Post date: [April 12, 2010, 8:10pm UTC](https://boards.straightdope.com/t/accounting-only-for-high-outliers-in-a-sample/535876/4 "2010-04-12T20:10:28Z")

</div>

> [@ComeToTheDarkSideWeHaveCookies](#):
>
> Is what I’m looking for considered a median, or is another term more applicable?

Why wouldn’t you compare people’s times to a median rather than an average? That would eliminate the leveraging effect of extremely long times without discarding them entirely from your pool.

---

<div class="post-metadata">

### Author: ![Chronos](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/chronos/32/134_2.png) [@Chronos](https://boards.straightdope.com/u/Chronos)
#### Post date: [April 12, 2010, 8:15pm UTC](https://boards.straightdope.com/t/accounting-only-for-high-outliers-in-a-sample/535876/5 "2010-04-12T20:15:23Z")

</div>

I would agree that the median is the best measure to use here, unless you have some theoretical mathematical model to fit to. The mean and standard deviation are really only useful measures for Gaussian distributions; the only reason they’re so commonly used is that a lot of things are approximately Gaussian. The median, though (and the interquartile range, which is the natural “width” parameter to use with the median) is applicable to all distributions.

---

<div class="post-metadata">

### Author: ![Canadjun](https://avatars.discourse-cdn.com/v4/letter/c/76d3ee/32.png) [@Canadjun](https://boards.straightdope.com/u/Canadjun)
#### Post date: [April 12, 2010, 8:18pm UTC](https://boards.straightdope.com/t/accounting-only-for-high-outliers-in-a-sample/535876/6 "2010-04-12T20:18:33Z")

</div>

I agree with **zut** that the median is probably what you want. However, if you really want a mean and you think the times are (more or less) exponentially distributed then a geometric mean (nth root of the product of the n numbers) is probably better to use than the arithmetic mean.

---

<div class="post-metadata">

### Author: ![ComeToTheDarkSideWeHaveCookies](https://avatars.discourse-cdn.com/v4/letter/c/e9bcb4/32.png) [@ComeToTheDarkSideWeHaveCookies](https://boards.straightdope.com/u/ComeToTheDarkSideWeHaveCookies)
#### Post date: [April 12, 2010, 8:19pm UTC](https://boards.straightdope.com/t/accounting-only-for-high-outliers-in-a-sample/535876/7 "2010-04-12T20:19:41Z")

</div>

I’m willing to consider any changes. I inherited the logic as I described it above, and am trying to revise it in a more accurate fashion now based on the observations I’m seeing in the data regarding the high outliers.

The high numbers likely indicate interrupted completion of the task, and ideally I only want to be counting uninterrupted tasks, but the only data I get is the total time of completion. I do not have real-time visibility of the precise instants when the task is interrupted or resumed.

---

<div class="post-metadata">

### Author: ![ultrafilter](https://avatars.discourse-cdn.com/v4/letter/u/3d9bf3/32.png) [@ultrafilter](https://boards.straightdope.com/u/ultrafilter)
#### Post date: [April 12, 2010, 9:00pm UTC](https://boards.straightdope.com/t/accounting-only-for-high-outliers-in-a-sample/535876/8 "2010-04-12T21:00:17Z")

</div>

If you do a histogram of the data, does it look like it’s pretty evenly spread out, or are there multiple clumps? If it’s the latter, you can figure out where the dividing line between the clumps is (just eyeball it), and throw out everything above that. Otherwise, you should use the median.

---

<div class="post-metadata">

### Author: ![Indistinguishable](https://avatars.discourse-cdn.com/v4/letter/i/90ced4/32.png) [@Indistinguishable](https://boards.straightdope.com/u/Indistinguishable)
#### Post date: [April 13, 2010, 12:05am UTC](https://boards.straightdope.com/t/accounting-only-for-high-outliers-in-a-sample/535876/9 "2010-04-13T00:05:05Z")

</div>

> [@Chronos](#):
>
> I would agree that the median is the best measure to use here, unless you have some theoretical mathematical model to fit to. The mean and standard deviation are really only useful measures for Gaussian distributions; the only reason they’re so commonly used is that a lot of things are approximately Gaussian. The median, though (and the interquartile range, which is the natural “width” parameter to use with the median) is applicable to all distributions.

Of course, in a Gaussian distribution, the mean _is_ the median, so it’s just a matter of words, in that case.

---

<div class="post-metadata">

### Author: ![Chronos](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/chronos/32/134_2.png) [@Chronos](https://boards.straightdope.com/u/Chronos)
#### Post date: [April 13, 2010, 6:08am UTC](https://boards.straightdope.com/t/accounting-only-for-high-outliers-in-a-sample/535876/10 "2010-04-13T06:08:31Z")

</div>

If it happens to be a Gaussian, yes. But on the other hand, a Lorentzian distribution doesn’t even _have_ a well-defined mean, and an infinite standard deviation. But, like all distributions, its median and interquartile width are still perfectly well-behaved.

---

<div class="post-metadata">

### Author: ![Indistinguishable](https://avatars.discourse-cdn.com/v4/letter/i/90ced4/32.png) [@Indistinguishable](https://boards.straightdope.com/u/Indistinguishable)
#### Post date: [April 13, 2010, 6:09am UTC](https://boards.straightdope.com/t/accounting-only-for-high-outliers-in-a-sample/535876/11 "2010-04-13T06:09:28Z")

</div>

Right, right, I’m just agreeing with you that the median and interquartile range are often more useful measures, _even_ in the Gaussian case where they happen to reduce to the mean and (a constant times) the standard deviation. That is, even with a Gaussian distribution, often the only reason the mean is useful for some application is precisely _because_ it happens to equal the median.
