News for hackers. Stuff that matters.
Re:New method identifies the root causes of statistical outl... by clircle on Tuesday July 19, 2022 @03:23PM (#32156653)
Very bold of them to assume that outliers even exist. Most statisticians would say that there's not really a difference between an outlier and a non-outlier, but actually the data just have fatter tails than you originally thought, and you need to use a robust modeling method to account for that.
Re:New method identifies the root causes of statistical outl... by aquafox on Tuesday July 19, 2022 @04:33PM (#32157577)
That's not true. There's a variety of reasons why outliers can exist, for example data quality issues where an experiment failed or the method to measure the data did not work. The approach presented there in my opinion has one big caveat: It tries to learn the cause of outliers from the data itself instead of incorporating domain knowledge! Having and using domain knowledge is time consuming and difficult, but nothing can replace it. One cannot automate away to critically explore and understand the data, although machine learning folks think they do.
Re:New method identifies the root causes of statistical outl... by Retric on Tuesday July 19, 2022 @08:44PM (#32159885)
If your population is sensor readings rather than actual objects then malfunctions should be completely expected behavior.

Treating them as exceptional is simply a sign you don’t have enough data.

Re:New method identifies the root causes of statistical outl... by kqr on Wednesday July 20, 2022 @03:40AM (#32162698)
There's a difference between expected malfunctions (due to common causes) and exceptional malfunctions (due to assignable causes) though.
Re:New method identifies the root causes of statistical outl... by civilized on Tuesday July 19, 2022 @06:48PM (#32158985)
> Most statisticians would say that there's not really a difference between an outlier and a non-outlier

Definitely untrue. Suppose we throw 1,000 baseballs, shoot one rocket (45 degree angle), record the distance each one flew, and present the 1,001 data points to someone for analysis. Most people, statisticians or not, will recognize the rocket's distance as an outlier, even if they don't know the cause of it. And they'll be right to do so.

It's true that there is no universal definition of outlier. But outliers are very clearly defined in some contexts.

Re:New method identifies the root causes of statistical outl... by timy2shoes on Tuesday July 19, 2022 @06:56PM (#32159047)
> Suppose we throw 1,000 baseballs, shoot one rocket (45 degree angle), record the distance each one flew, and present the 1,001 data points to someone for analysis.

But I would argue that's not really a case of an outlier, that's a mixture distribution because the underlying identifying feature (baseball or rocket) is missing.

Re:New method identifies the root causes of statistical outl... by civilized on Tuesday July 19, 2022 @06:58PM (#32159069)
You've almost grasped the point. Mixture distributions with a missing underlying feature are how outliers (in the meaningful, well-defined sense) are generated. And if you dig into this paper (I have not yet), I can almost guarantee you that this is foundational to the paper.
Re:New method identifies the root causes of statistical outl... by dekhn on Wednesday July 20, 2022 @01:39PM (#32169398)
It's kind of funny just how long I had to work with statisticians to see that stats people and physics people look at generative processes in two completely different ways:

"There are two cultures in the use of statistical modeling to reach conclusions from data. One assumes that the data are generated by a given stochastic data model. The other uses algorithmic models and treats the data mechanism as unknown. The statistical community has been committed to the almost exclusive use of data models"

Re:New method identifies the root causes of statistical outl... by timy2shoes on Tuesday July 19, 2022 @07:42PM (#32159430)
I can tell you from extensive experience that domain knowledge is more critical to understanding such issues than this algorithm. Fundamentally, such causes can not be identified if they don't exist in the data and the algorithm doesn't "see" them. Like the previous example where the identity of the object being hurled is hidden and all the data shows is the distance. And the causes change a lot from field to field.
Re:New method identifies the root causes of statistical outl... by civilized on Tuesday July 19, 2022 @07:44PM (#32159453)
I don't believe that your extensive experience tells you about the utility of an algorithm you've never used that was developed by Amazon researchers most likely to help with problems at Amazon.
Re:New method identifies the root causes of statistical outl... by nl on Tuesday July 19, 2022 @07:52PM (#32159513)
> But I would argue that's not really a case of an outlier,

From the point of view of the data it is definitely an outlier.

> that's a mixture distribution because the underlying identifying feature (baseball or rocket) is missing.

This is the point of the paper. They literally say in the blog post summary:

To attribute the outlier event to a variable, we ask the counterfactual question “Would the event not have been an outlier had the causal mechanism of that variable been normal?”

Re:New method identifies the root causes of statistical outl... by amelius on Tuesday July 19, 2022 @08:26PM (#32159773)
Quantum mechanics allows a basketball to spontaneously morph into a rocket and back .. It's not very likely, but it can happen in theory. Statisticians should be able to deal with it in any case.
Re:New method identifies the root causes of statistical outl... by uoaei on Tuesday July 19, 2022 @09:29PM (#32160208)
Then you require a hierarchial model which first estimates the membership of observations to discrete and non-overlapping sets of objects, and second estimates the quantity of interest. This is still a mixture distribution.

Statisticians are known to use this kind of model. See https://en.wikipedia.org/wiki/Dirichlet_process

Re:New method identifies the root causes of statistical outl... by gmadsen on Tuesday July 19, 2022 @07:45PM (#32159468)
i think robotics is probably an easier example to think about. if you have a sensor who's normal operation has a well defined gaussian, but every 2-4 seconds a spike in the data stream is seen for a millisecond due to any variety of reasons, you treat the spike as an outlier and dont let it ruin the gaussian that is actually governing your system, the spike is obviously not part of the nominal distribution, and it wouldn't be of any usable value to think of the system as a mixture.
Re:New method identifies the root causes of statistical outl... by civilized on Tuesday July 19, 2022 @07:52PM (#32159516)
This is treating the system as a mixture. It's just immediately getting rid of the component of the mixture you don't want. If you can do so reliably, you never have to think about it as a mixture again.
Re:New method identifies the root causes of statistical outl... by kqr on Wednesday July 20, 2022 @03:42AM (#32162712)
It's incredibly valuable to think of the system as a mixture, and work on both components of the problem in parallel. (Both increasing precision to narrow the width of the gaussian, and removing the defective interaction that causes the spikes.)
Re:New method identifies the root causes of statistical outl... by clircle on Tuesday July 19, 2022 @07:33PM (#32159358)
You are trying to add in a factor effect and call it an outlier. Its just unmodeled variation.
Re:New method identifies the root causes of statistical outl... by civilized on Tuesday July 19, 2022 @07:43PM (#32159441)
Are you sure you know the difference between an outlier and a point that is far out of the distribution of the other points because of unmodeled variation?

Just because you have a name for something doesn't mean it doesn't have other names as well.

Re:New method identifies the root causes of statistical outl... by uoaei on Tuesday July 19, 2022 @09:31PM (#32160227)
Anyone who knows what they're doing would describe it as a probabilistic model, which necessarily includes likelihoods and confidence bounds with probabilities other than 0 or 1. There is a certain probability that it is a part of one distribution, and an inverse probability that it is part of another distribution. Statisticians worth their salt will not state certainties as you seem to demand.
Re:New method identifies the root causes of statistical outl... by civilized on Tuesday July 19, 2022 @09:39PM (#32160297)
Hmm, I'm not sure where I demanded a certainty?
Re:New method identifies the root causes of statistical outl... by uoaei on Wednesday July 20, 2022 @02:51AM (#32162386)
> the difference between an outlier and a point that is far out of the distribution of the other points because of unmodeled variation

The phrasing implies mutual exclusivity here, which thus implies probability one of a data point belonging to one set and probability zero of that point belonging to the other set.

To be fair, in natural language it tends to be difficult to unambiguously represent ambiguity.

Re:New method identifies the root causes of statistical outl... by civilized on Wednesday July 20, 2022 @08:36AM (#32164842)
I wasn't drawing a dichotomy between "an outlier and a point that is far out of the distribution of the other points because of unmodeled variation". I was suggesting that they may be the same thing.
Re:New method identifies the root causes of statistical outl... by nl on Tuesday July 19, 2022 @08:12PM (#32159664)
> Most statisticians would say that there's not really a difference between an outlier and a non-outlier, but actually the data just have fatter tails than you originally thought, and you need to use a robust modeling method to account for that.

No statisticians would ever propose that as a practical industrial method. Sometimes a bat falls in your vat of beer at the exact moment the lid is off and no sensible statistician proposes modelling the flight path of bats.

Understanding and removal of outliers has been part of the statisticians toolbox forever. Gosset's[1] (The inventor of modern statistics) whole work on Student's t-distribution was because he had to deal with small sample size and know when sample weren't representative, and how to discard outliers.

Studentized Residual is named for him and is (to quote Wikipedia)[2]: an important technique in the detection of outliers.

The statisticians I've worked with are very pragmatic, and none want to try to model the whole universe. It was a statistician who came up with "all models are wrong but some are useful" after all.

[1] https://en.wikipedia.org/wiki/William_Sealy_Gosset

[2] https://en.wikipedia.org/wiki/Studentized_residual

Re:New method identifies the root causes of statistical outl... by mhh__ on Tuesday July 19, 2022 @04:29PM (#32157530)
Sometimes there's a horse rubbing against your air pressure sensor though.
Re:New method identifies the root causes of statistical outl... by WastingMyTime89 on Tuesday July 19, 2022 @04:05PM (#32157211)
By definition outliers are just points which differ significantly from the others. Obviously if your distribution has heavy tails they are likely to be there. They could also be noise or simply errors. The only things you know before analysing is that they are different which is why they are outliers.
Re:New method identifies the root causes of statistical outl... by whatshisface on Tuesday July 19, 2022 @04:15PM (#32157345)
If you carefully read the article, what they're doing is classifying points by how unlikely they'd be according to their model of their system, and they are using that to find inaccuracies in their model.

Without a model there is no difference between outliers and "regular" data points, because a data point will always match a distribution made from itself.

Re:New method identifies the root causes of statistical outl... by WastingMyTime89 on Tuesday July 19, 2022 @07:02PM (#32159104)
You don’t need a model for a point to be significantly different. It just needs to have characteristics making it stand out. Outliers are an important concept for the theory of estimators for exemple and that doesn’t involve modelling at all. This discussion is why I regret that people doing CS have so little exposure to frequentist statistics.
Re:New method identifies the root causes of statistical outl... by whatshisface on Tuesday July 19, 2022 @07:19PM (#32159244)
If you measure 5, 5, 5, 9999999999, then your measured distribution is a peak at 5 and another at 9999999999. You can't say that 9999999999 is a surprising measurement unless you have a theoretical distribution - usually an implicit one - to evaluate at it and find a low probability. In other words, if being surprised means having your expectations violated, an expression of surprise implies that you must have had expectations to violate.
Re:New method identifies the root causes of statistical outl... by strangedejavu on Tuesday July 19, 2022 @07:43PM (#32159447)
This argument doesn't make much sense to me. You can definitely associate a probability based just on the measured data. What if you measured 5, 5, 5, 5, 5, 5,5 (1000 more 5s) , 5, 999999999? I think it's pretty intuitive to say that 999999999 is unexpected relative to the 5s. And you certainly can have expectations that are generated purely based off of the measured distribution and not off of some theoretical model.
Re:New method identifies the root causes of statistical outl... by whatshisface on Tuesday July 19, 2022 @07:52PM (#32159511)
It is unexpected relative to the 5s, but it is also rare in your sample, meaning that its occurrence in the sample is in exact proportion to how often you'd expect it to occur, given the distribution you inferred from your sample. That means you have no grounds for singling it out as "abnormal."
Re:New method identifies the root causes of statistical outl... by nl on Tuesday July 19, 2022 @08:15PM (#32159687)
And here we see the "Bayesian vs Frequentist" argument.

If this gets resolved in a HN thread you should publish it.

Re:New method identifies the root causes of statistical outl... by WastingMyTime89 on Tuesday July 19, 2022 @08:13PM (#32159670)
Obviously you can say that 9999999999 is very different from the rest of the sample consisting of 5 without an implicit distribution. It’s incredibly far from the median compared to all the other value.
Re:New method identifies the root causes of statistical outl... by whatshisface on Wednesday July 20, 2022 @12:22AM (#32161384)
But is it surprising to find it far from the median?
Re:New method identifies the root causes of statistical outl... by WastingMyTime89 on Wednesday July 20, 2022 @12:36AM (#32161464)
It doesn’t matter if it’s surprising. It might be a measurement mistake, a mixed population, a fat tail or a poor sample. It’s different therefore an outlier.
Re:New method identifies the root causes of statistical outl... by nl on Wednesday July 20, 2022 @02:00AM (#32162002)
There are many statistical tests that will tell you that based on the observations alone (with no model). Basically this depends on how many 5s there are.
Re:New method identifies the root causes of statistical outl... by whatshisface on Wednesday July 20, 2022 @10:56AM (#32166644)
Every single one of those tests makes an implicit assumption about the distribution, explicit in its derivation. Usually, it is that the distribution is Gaussian.
Re:New method identifies the root causes of statistical outl... by dekhn on Wednesday July 20, 2022 @01:37PM (#32169366)
Some statisticians may say that, but as the two cultures swap places (http://www2.math.uu.se/~thulin/mm/breiman.pdf) more folks take a mechanistic view of data collection, in which some observations are truly what we would call "out of class where the class boundaries are well-defined". I suppose this gets into your definition of reality and how that relates to class boundaries.
Re:New method identifies the root causes of statistical outl... by magicalhippo on Tuesday July 19, 2022 @06:07PM (#32158611)
Lets say you time some code, and get a nice Gaussian at around 1ms say, but with a smaller peak far to the right (ie +20ms or so). The second peak is because your thread got scheduled. You don't care about those samples, they don't matter.

Can't you just say those are outliers and not consider them? Ideally you'd build some bimodal model, but given that they don't matter, what's wrong with throwing away those samples?

Re:New method identifies the root causes of statistical outl... by kqr on Wednesday July 20, 2022 @03:46AM (#32162732)
This is the problem with how most people deal with outliers. You should absolutely care about your code being scheduled away. If you care about speed and then you change your code in ways that makes it get pre-empted more often, that matters!

Outliers are still useful data!

Re:New method identifies the root causes of statistical outl... by magicalhippo on Wednesday July 20, 2022 @11:27AM (#32167156)
If you write code that gets pre-empted more often, then you've deliberately done that by inserting system calls or similar, and that would be an entirely different scenario. I agree that in such a scenario, it would not be an outlier.