liveBook · Manning

Anomaly

As explained in Grokking Statistics

An outlier is an observation that differs markedly from most other observations in a dataset.

An outlier is an observation that differs markedly from most others. It can pull the mean away from what feels typical, while the median is less affected. section 2.14

Useful clues for spotting outliers include:

  • A large gap between mean and median suggests that extreme values are skewing the data. section 2.14
  • Under the empirical rule, observations beyond two or three standard deviations from the mean are often treated as unusual. section 4.7
  • Extreme observations deserve scrutiny rather than automatic dismissal: they may reveal unusual cases or problems with a model. section 4.7

The high-roller bar tab

For bar tabs of 7, 18, 19, 20, 21, 22, 25, 120, and 1,500 dollars, NumPy reports a mean of about $194.67 and a median of $21. The $1,500 tab is an outlier, so $21 better represents a typical patron. section 2.14

How Grokking Statistics covers it

How deep it goes
Defines outliers through examples and standard-deviation thresholds, stopping short of formal detection methods.
Examples
Uses bar tabs, extreme coffee measurements, and an unlikely investment return to illustrate unusual observations.
What it assumes
Introduces the idea through everyday data before using mean, median, and standard deviation as interpretive tools.
What you can do after
Evaluate/understand how extreme values affect summaries and identify unusually distant observations with standard-deviation ranges.
How it connects
Connects outliers with mean, median, skewness, standard deviation, the empirical rule, and model scrutiny.

Also explained in

Compare how 14 books explain anomaly →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Grokking Statistics. The section links point to the parts of the book it draws on.