Histogram frequency bins

Build equal-width histogram bins with counts, relative frequencies and cumulative counts.

The example value has been entered. Check it immediately or change the value.

Input is processed in the browser. Refreshing returns a sample value.

Result

Instructions and example

bin=floor((x−min)/width)

The 4 default bins have frequencies 3, 1, 1 and 3, containing all 8 samples.

Use 1–1000 samples and 1–50 bins; only the last bin includes its right endpoint.

Frequently asked questions

Which histogram bin receives boundary values?

Bins include the left edge and exclude the right; the final bin includes the right edge to retain the maximum.

What if all histogram samples are equal?

All observations are collected at that value, avoiding division by a zero range.

Calculation criteria and reference materials

Verification of calculation criteria: · Calculation·verification principles · Report errors