Formula: read area rather than height
li and ui are lower and upper boundaries, bi is width, ni is count and N is total count. fi=ni/N is dimensionless.[1][2]
Symbols vary between sources. Here h denotes count density: observations per horizontal unit. d denotes relative density: proportion per horizontal unit. Either height must be multiplied by its own width before it gives a frequency. A bin with higher density need not contain more observations than a much wider bin.[1]
Four steps to an area-correct histogram
- Choose nonoverlapping bins with unambiguous endpoint assignment; their widths bi=ui−li are positive.
- Count ni and, for relative normalization, determine total count N and fi=ni/N.
- Set rectangle area equal to frequency: bihi=ni or bidi=fi. Divide by bi to obtain the height.
- Check the areas: Σbihi=N and Σbidi=1 for a complete binning. Summing heights is not a normalization check.
Dividing by width follows directly from the area requirement. The drawn density is constant within each bin; this does not establish that the observations were uniformly distributed inside it. A later question about half of one bin cannot generally be answered exactly from grouped counts alone.[1]
Specify bins, endpoints and units
Use a quantitative scale with nonoverlapping intervals. Example 1 includes each left boundary and excludes its right boundary, except the final right boundary. Other unambiguous conventions are valid. An empty bin retains its horizontal width but has height zero. “More than 30 minutes” is not a finite-width bin unless an upper boundary is specified.[3][4]
For journey times in minutes, both densities have inverse unit min−1; count density measures observations per minute. The calculator uses x as one consistently chosen horizontal unit. For example, enter every width in minutes; it does not choose or convert the measured variable itself. Frequencies are whole counts, whereas bin widths may be any positive finite real values.[1]
Two fully worked examples
School journeys with three different bin widths
- Given
- Original example data: 60 journeys, with 15 in [0,5), 30 in [5,15) and 15 in [15,30] minutes.
- Find
- Calculate both density scales and check their total normalization.
Determine actual widths rather than drawing three equal-width bars.
For count heights use h=n/b.
Divide count densities by N=60.
Result: The bin proportions are 25%, 50% and 25%. The first two rectangles have equal height, but the second has twice the area.
Check: Count areas: 5·3+10·3+15·1=60. Relative areas: 0.25+0.50+0.25=1.
A density above one is possible
- Given
- Original example data: 12 of 40 parcels fall into mass bin [1.00,1.25) kg.
- Find
- Calculate relative density and distinguish it from a bin proportion.
Determine width and proportion separately.
Divide area f by width.
Result: Height is 1.2 kg−1, but the bin proportion is only 0.30=30%. Height 1.2 does not mean a 120% proportion.
Check: Area 1.2 kg−1·0.25 kg=0.30 agrees with 12/40.
Recall the method later with the formula’s flashcards.
11 flashcards · English materials
Already have an account? Sign in for flashcardsAvailable from Essential. A ready-made formula set, no AI credits required. Article exercises are not all included.
Equal heights, different areas
Count density of school journeys
Free with a Quanta account. Your download stays ready after registration.
Five exercises with solutions
Calculate · Application
A bin 8 min wide contains 24 of 80 observations. Find both densities and the relative bin frequency.
Show hint
Use n/b, then n/(Nb); multiply by b to recover area.
Learning goal: Calculate count and relative densities
Rearrange · Application
A relative histogram height is 0.04 min−1 over a bin width of 7.5 min. There are 200 observations in total. How many belong to the bin?
Show hint
Calculate f=d·b, then n=N·f.
Learning goal: Recover a count from density
Interpret · Application
Bin A contains 18 measurements over 3 cm; bin B contains 30 over 10 cm. Which has more observations, and which has greater count density?
Show hint
Compare counts separately from the ratios n/b.
Learning goal: Distinguish density from total count
Error analysis · Application
For widths 5 and 20 min, counts 10 and 20 are used directly as histogram heights. Why is the comparison distorted? Give the correct count densities.
Show hint
First calculate the ratio of the incorrectly drawn areas.
Learning goal: Correct distorted bar heights
Transfer · Challenge
A 10-minute bin contains 20 of 100 observations. Find relative density per minute and per hour. Does its proportion change?
Show hint
10 min equals 1/6 h. Density and width change by reciprocal factors.
Learning goal: Change units while preserving area
Check your understanding with the formula’s reference test.
8 test questions · English materials
Already have an account? Sign in for the testAvailable from Essential. A ready-made formula set, no AI credits required. Article exercises are not all included.
Histogram, empirical distribution and theoretical density
The empirical distribution function counts proportions up to a boundary. A normal distribution is a theoretical model with a continuous density. A histogram alone does not establish normality: bin choice and sampling variation affect its appearance. A continuous uniform distribution models an entire range, whereas a constant histogram-bar height is initially a plotting convention.[2][1]
Sources for this explanation
Quanta · Updated November 10, 2026
- HTW Dresden: Statistics I, grouped data (translated source label)
- NIST/SEMATECH e-Handbook: 1.3.3.14 Histogram
- R graphics documentation: hist, Details and Value
- OpenStax Introductory Statistics 2e, 2.2 Histograms, Frequency Polygons, and Time Series Graphs
Editorial responsibility: Quanta Study editorial team
Review scope
This explanation, 2 worked examples and 5 exercises are available in German and English. Structure, source references and mathematical notation undergo automated checks. Calculations, model assumptions and both language versions receive a separate AI review.
An independent, named human subject review has not yet been documented. Our exercise numbers are worked examples, rather than measurements published by the cited sources.
Editorial responsibility, sources and methodsChange history
- Created a complete histogram article with count and relative densities, two examples, an area-correct diagram and five solved exercises.
Cite this reference page
Quanta. Histogram and frequency density. Updated November 10, 2026. https://quanta-study.de/en/formula-sheet/histogramm-haeufigkeitsdichte
When citing a specific scientific statement, also cite the specialist source linked to that statement.