Histogram Calculator
Create histogram-friendly bin tables with frequencies and densities for any numeric dataset.
Data points: 16
Bins used: 4
| Bin | Frequency | Relative Frequency | Density |
|---|---|---|---|
| [2.00, 7.00) | 5 | 0.313 | 0.063 |
| [7.00, 12.00) | 6 | 0.375 | 0.075 |
| [12.00, 17.00) | 2 | 0.125 | 0.025 |
| [17.00, 22.00] | 3 | 0.188 | 0.037 |
How to Use This Calculator
- Paste raw numeric observations above.
- Specify the number of histogram bins or accept the default.
- Use the table to plot rectangle heights (frequency or density) across bin intervals.
- Ensure all bins have equal width for standard histograms.
Formula
Density = Frequency / (Total count × Bin width)
Use densities when comparing histograms with differing bin widths; otherwise, raw frequencies suffice.
Frequently Asked Questions
Why are densities needed?
Densities normalize frequencies by bin width, ensuring areas correspond to probabilities.
How should I choose bin widths?
Start with Sturges’ rule or the square-root rule, then adjust for clarity or domain requirements.