Identify the data points that are distincly separate from the rest of the data collection.

Downloads in past


600.0.18 years ago10 years agoMinified + gzip package size for outlier in KB


In statistics, an outlier is a data point that significantly differs from the other data points in a sample. Often, outliers in a data set can alert statisticians to experimental abnormalities or errors in the measurements taken, which may cause them to omit the outliers from the data set.

Getting Started

Install the module with: npm install outlier.
var outlier = require('outlier');
outlier([12, 14, 51, 12, 10, 9, 16]).findOutliers(); // [51]
outlier([12, 14, 51, 12, 10, 9, 16]).testOutlier(51); // true


In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.