block by phil-pedruco 6917114

Histogram with Chauvenet's criterion for outliers

Full Screen

Trimming outliers using Chauvenet’s criterion

This is an example of trimming outliers from datasets to allow the plotting of a histogram. The synthetic dataset in random.csv has had some obvious outliers added to it making it difficult to plot using d3’s native histogram. Chauvenet’s criterion has been used to trim the outliers allowing a ‘better’ representation of the data. This gist/bl.ock has been created in response to this Stack Overflow question.

To allow implementation of Chauvenet’s criterion required use of Jason Davies science library and the histogram is based on Mike Bostocks example here.

index.html

random.csv