Functions and Data Sets for "That's Weird: Anomaly Detection Using R" by Rob J Hyndman
Stray anomalies
Stray scores
Surprisals and surprisal probabilities computed from data
Surprisals and surprisal probabilities computed from a model
Objects exported from other packages
Bagplot
Create distributional object based on a specified density
Anomalies according to Peirce's and Chauvenet's criteria
Create distributional object based on a kernel density estimate
Wine prices and points
Add ggplot layer of densities from distributional objects in 1 dimensi...
Produce ggplot of densities from distributional objects in 1 or 2 dime...
HDR plot
GLOSH scores
Statistical tests for anomalies using Grubbs' test and Dixon's test
Identify anomalies using the Hampel filter
Table of Highest Density Regions
Robust bandwidth estimation for kernel density estimation
Local outlier factors
Surprisals and surprisal probabilities
weird: Functions and Data Sets for "That's Weird: Anomaly Detection Us...
All functions and data sets required for the examples in the book Hyndman (2026) "That's Weird: Anomaly Detection Using R" <https://OTexts.com/weird/>. All packages needed to run the examples are also loaded.
Useful links