Density Estimation - Histograms
Overview
A histogram is a chart where the dataset is divided into a set of buckets, and the number of items within each bucket
is plotted as the height of a column representing the bucket. For continuous variables, the buckets are
typically chosen as a set of equal size ranges.
copy
Histogram App
The
histogram app provides a method to quickly
graph a column chart that buckets the data into a set of
predefined intervals.
Histogram API
The
histogram api
provides a way to
let ht = await import('/lib/statistics/density-estimation/histograms/v1.0.0/histograms.mjs');
let data = [0.23, 0.4, 0.11, 0.67, 0.87, 0.3, 0.94, 0.99];
let histogram = ht.histogram(0, 1, 10, data);
let density = histogrmam(0.5);
Try it!