A histogram displays the distribution of numerical observations across intervals. It helps reveal where measurements are concentrated, how widely they vary and whether the distribution contains unusual features that deserve investigation. Unlike a time-ordered chart, it does not show when each observation occurred. Unlike a categorical bar chart, its horizontal position represents a numerical interval. The original fictional examples in this guide use bicycle rental waiting times, furniture component measurements and mixed service populations to demonstrate reproducible frequency calculations and responsible interpretation. All numerical observations are invented for instruction.
Quick Answer
Define the numerical observations, choose nonoverlapping bins, count the values, plot frequency for equal-width intervals or density for unequal-width intervals, and interpret the distribution with its limitations.
Table Of Contents
- What Is A Histogram?
- Define The Observations And Interval Convention
- Worked Example: Bicycle Rental Waiting Times
- Calculate Summary Measures Alongside The Histogram
- Worked Example: Unequal Bin Widths
- Choose Bin Width According To The Question
- Worked Example: A Mixture Of Different Processes
- Use The Right Chart For The Question
- Reusable Histogram Worksheet
- Frequently Asked Questions
What Is A Histogram?
The NIST Engineering Statistics Handbook explanation of histograms describes the use of histograms to investigate characteristics such as the center, spread, skewness, outliers and possible multiple modes of a dataset. A histogram groups numerical observations into bins. Each bin covers a range of values, and a rectangular bar represents the frequency or an appropriately normalized frequency density associated with that range.
For equal-width intervals, using count as the vertical axis makes the bars directly comparable in frequency. If the interval widths differ, bar area rather than height must represent frequency. The appropriate height then depends on the width of the interval. The axis label must state what the height represents. A chart that shows unequal-width intervals with ordinary counts as heights can visually exaggerate wider intervals.
A histogram is an exploratory description of observed values. It does not establish the probability distribution of the whole process or the cause of an observed pattern. Our problem solving examples explain why evidence should guide investigation rather than be treated as proof of the first plausible explanation.
Define The Observations And Interval Convention
Before choosing the bins, determine what each observation represents. A bicycle rental cooperative might monitor the elapsed minutes from an eligible customer’s arrival to receipt of a verified rental allocation. Define whether the observations include people who abandon the queue, reservations requiring additional authorization, or customers arriving outside the agreed operating conditions. The answer should match the investigation question.
Record measurements in a consistent unit and preserve the underlying data. A chart grouped into ten-minute intervals cannot reveal the exact value of each observation within those intervals. Rounding observations before grouping may also affect the result. If the original record includes 9.8 minutes but is rounded to ten, its assigned bin may change. Use a consistent convention and document it.
This guide uses intervals that include their lower endpoint and exclude their upper endpoint. Thus a value of ten belongs in the interval from ten up to but not including 15, rather than in the interval from five up to ten. Ensure the last interval covers the greatest observed value; if using a different endpoint convention, state it explicitly. Avoid overlapping or omitted boundaries that count a value twice or not at all.
Our problem definition examples describe defining the observable condition before analyzing a problem. A histogram of an incorrectly defined measure may be calculated perfectly and still answer the wrong question.
Worked Example: Bicycle Rental Waiting Times
A fictional bicycle rental cooperative records the following 24 completed eligible allocations in minutes during a short observation period. The underlying values are retained so readers can reproduce the grouped counts. They are ordered here only for convenient counting, not as a record of chronological arrival.
| Sorted Observations | Values In Minutes |
|---|---|
| First Six | 3, 4, 5, 5, 6, 7 |
| Next Six | 7, 8, 8, 9, 10, 10 |
| Next Six | 11, 11, 12, 12, 13, 14 |
| Final Six | 15, 16, 18, 20, 23, 29 |
Choose five-minute intervals beginning at zero and continuing to 30. Count the observations using the stated lower-inclusive, upper-exclusive convention. For example, the first interval contains three and four, giving two observations. Both values of five belong in the second interval. The value of 20 belongs in the interval beginning at 20.
| Interval In Minutes | Frequency | Relative Frequency | Cumulative Count |
|---|---|---|---|
| 0 To Under 5 | 2 | 8.33% | 2 |
| 5 To Under 10 | 8 | 33.33% | 10 |
| 10 To Under 15 | 8 | 33.33% | 18 |
| 15 To Under 20 | 3 | 12.50% | 21 |
| 20 To Under 25 | 2 | 8.33% | 23 |
| 25 To Under 30 | 1 | 4.17% | 24 |
| Total | 24 | 100% Before Rounding | 24 |
For an ordinary frequency histogram with equal-width bins, the bar heights are 2, 8, 8, 3, 2 and 1. The bars occupy consecutive five-minute intervals. The relative frequency for the second interval is eight divided by 24, approximately 33.33%. The cumulative count through the third interval is 18. That means 18 of the 24 observed allocations took less than 15 minutes under this example’s boundary convention.
The largest frequencies occur in the two central intervals, and the remaining observations extend toward longer waits. The data suggest a concentration of relatively short waits with a right tail. The small sample does not establish the shape of a stable underlying distribution. Investigate whether the longer observations concern legitimate exceptions, unusually high demand or a different preparation route. Do not remove the 29-minute observation simply because it makes the display less symmetrical.
Calculate Summary Measures Alongside The Histogram
The underlying 24 observations sum to 276 minutes, giving an arithmetic mean of approximately 11.50 minutes. The two middle observations in the sorted list are ten and 11, so the median is 10.5 minutes. The minimum is three and the maximum is 29, giving a range of 26 minutes.
These summary measures help describe the distribution, but they do not replace the raw observations. The difference between mean and median is consistent with the influence of longer waits in this particular example. It does not prove a specific distributional model. A histogram can also reveal that a numerical average lies in an area where relatively few observations occur, especially when different groups have been combined.
If the service requirement is an allocation wait of less than 15 minutes, the observed proportion meeting it is 18 out of 24, or 75%. If the requirement instead includes 15 minutes, the value of 15 must also be counted, giving 19 out of 24, approximately 79.2%. The difference illustrates why a histogram bin boundary is not automatically the same as a service acceptance criterion.
Our before and after solution review examples explain the importance of comparable outcome definitions. Keep the underlying data available when the exact threshold lies within a bin or includes a boundary value.
Worked Example: Unequal Bin Widths
Suppose a fictional municipal bicycle repair desk has 50 observations grouped into three intervals. Twenty observations fall between zero and under ten minutes, 20 between ten and under 30 minutes, and ten between 30 and under 60 minutes. The intervals have widths of ten, 20 and 30 minutes respectively.
The Stata guidance on variable-width histograms explains why density rather than raw frequency is the appropriate vertical quantity when the widths differ. Frequency density is count divided by bin width. In this example, the respective heights are two observations per minute, one observation per minute and approximately one-third of an observation per minute.
| Interval | Width | Count | Frequency Density |
|---|---|---|---|
| 0 To Under 10 | 10 | 20 | 2 |
| 10 To Under 30 | 20 | 20 | 1 |
| 30 To Under 60 | 30 | 10 | 0.3333 |
The rectangle areas are width multiplied by height. They recover counts of 20, 20 and ten, before rounding. If the first two bars were drawn with equal height because their counts are equal, the second rectangle would have twice the area of the first and misrepresent the relative number of observations. The wider second interval needs a shorter bar to preserve the frequency-area relationship.
For a probability-density histogram, divide each count by the total observation count and then by its bin width. The first height becomes 20 divided by 50 divided by ten, or 0.04 per minute. Its rectangle area is 0.4, the relative frequency of 40%. The other two areas are 0.4 and 0.2. The total area is one before rounding. A density height is not itself a probability; the area over the specified interval represents the corresponding relative frequency.
Choose Bin Width According To The Question
Different bin widths can produce different visual impressions of the same observations. Returning to the 24 bicycle rental waits, use ten-minute intervals instead of five-minute intervals. The first interval contains ten observations, the second contains 11 and the third contains three. The two equally high five-minute central bars have been combined with adjacent values, making the shorter distribution summary look different.
| Interval Width | Grouped Frequencies |
|---|---|
| Five Minutes | 2, 8, 8, 3, 2, 1 |
| Ten Minutes | 10, 11, 3 |
A very wide bin can conceal meaningful detail. A very narrow bin may produce many empty or sparsely populated intervals, especially for a small sample. The aim is to choose a resolution that helps answer the question without exaggerating random variation. Compare a reasonable range of bin widths and inspect the underlying observations rather than selecting the setting that makes a favored interpretation most dramatic.
The placement of bin edges matters as well. Shifting the origin may move a concentration of observations into two adjacent intervals instead of one. For a comparison of different groups or observation periods, use consistent bins and axis scales when the measurements are comparable. If a change in binning is necessary, explain it. Do not present two charts with different widths or scales as if apparent differences in bar height directly establish a change in performance.
Worked Example: A Mixture Of Different Processes
A fictional furniture cooperative measures the preparation time for two legitimate categories of component sets. Standard sets usually require less preparation than custom sets. Suppose six observed standard sets take 8, 9, 10, 10, 11 and 12 minutes. Six custom sets take 24, 25, 26, 27, 28 and 29 minutes. The combined sample contains a clear gap between 12 and 24 minutes.
The combined mean is 18.25 minutes because the standard values sum to 60 and the custom values sum to 159, giving a total of 219 across 12 observations. The combined median is 18 minutes, halfway between 12 and 24. No observation in the illustrative sample is close to that median. Reporting only the combined average could give an inaccurate impression of a typical individual job.
| Group | Observations | Mean Preparation Time |
|---|---|---|
| Standard Sets | 6 | 10 Minutes |
| Custom Sets | 6 | 26.5 Minutes |
| Combined | 12 | 18.25 Minutes |
A histogram may suggest multiple concentrations, prompting investigation of the relevant process categories. Do not conclude that two peaks always correspond to two distinct causes. The apparent structure may depend on sample size, bin width, rounding or another factor. In this fictional case the group labels are already available, making it possible to compare the separate distributions directly.
The process mapping guide explains how work routes can differ. Stratify observations when there is a meaningful and defensible process distinction, while retaining the overall distribution if the decision concerns the experience of all eligible recipients. A change in the mix of standard and custom jobs can shift the combined distribution even when neither group’s own performance changes.
Use The Right Chart For The Question
A histogram groups values and discards their sequence. Two processes can have identical histograms even if one is stable over time and another alternates between high and low values. If the question concerns a shift after an intervention, a run chart or an appropriate control chart may provide relevant time-order information. If the question concerns the relationship between preparation time and another measured variable, a scatter plot may be appropriate.
A categorical bar chart is appropriate when the horizontal positions represent distinct categories such as reasons for a delay. Its bars need not occupy contiguous numerical intervals. A Pareto chart ranks categories according to a defined measure to support prioritization. Our value stream mapping examples show a different way to examine elapsed time by identifying the stages and queues that contribute to it. These methods answer complementary questions.
A histogram can include reference lines for a target or specification, but those lines are not statistically calculated control limits. Do not declare a process stable, capable or compliant merely because most observations appear within an interval. Establish the relevant acceptance rule, sample design, time order and uncertainty. Where consequential statistical judgments are needed, seek an appropriately qualified analysis.
Missing observations should be described separately from the plotted distribution. Suppose 24 completed allocations are observed, but four eligible customers leave before receiving an allocation. Their completed waiting times are not observed, and treating them as zero would create a misleading distribution. The team may instead record abandonment as a separate outcome and preserve the elapsed time until departure where that information is available and appropriate. A histogram of completed waits answers a question about completed allocations, not necessarily the experience of everyone who entered the queue. Define the population and denominator accordingly. This distinction becomes especially important when comparing two arrangements that have different completion or abandonment rates.
Inspect the measurement precision before choosing a very narrow bin width. Suppose a cooperative records elapsed times rounded to the nearest five minutes. A histogram using one-minute bins would show concentrations at multiples of five with empty intervals between them. That appearance could reflect the recording convention rather than genuine differences in the underlying waiting-time distribution. Preserve the recorded precision and avoid inferring detailed structure that the measurements cannot resolve. If the decision requires distinguishing waits just above and below a threshold, examine whether the available timing system can support that distinction.
For a threshold that falls inside a wide interval, the grouped data can provide bounds but may not establish an exact proportion. In the unequal-width example, the 20 observations in the interval from ten to under 30 minutes cannot be divided accurately at a 20-minute threshold without the original values. At least the 20 observations below ten minutes are below 20, and at most 40 observations could be below 20. The exact count depends on the distribution within the middle interval. Avoid assuming a uniform distribution within that interval unless the assumption is explicitly justified for the analysis.
Reusable Histogram Worksheet
| Field | What To Record |
|---|---|
| Question | Distribution Characteristic Or Decision |
| Observations | Eligible Unit, Measure And Data Source |
| Sample | Count, Missingness And Relevant Conditions |
| Bins | Edges, Widths And Endpoint Convention |
| Frequency | Count In Each Mutually Exclusive Bin |
| Density | Count Or Relative Frequency Divided By Width |
| Checks | Total Count, Area And Comparable Axes |
| Interpretation | Shape, Unusual Observations And Limitations |
| Follow-Up | Relevant Stratification, Time Analysis Or Investigation |
Retain the numerical observations, bin boundaries and the method used to generate the chart. Confirm that every eligible observed value is represented exactly once and that the counts match the sample size. Investigate unusual features before drawing conclusions about their causes. A useful histogram makes the distribution easier to understand while preserving the distinction between observed data, analytical choices and uncertain explanations.
Frequently Asked Questions
What is a histogram?
A chart grouping numerical observations into intervals to show their distribution.
What is a bin?
A numerical interval used to group observations.
What happens to a value on a bin boundary?
Apply the documented endpoint convention consistently so it belongs to exactly one interval.
How do you calculate frequency?
Count the eligible observed values within the defined interval.
How do you calculate frequency density?
Divide the bin count by its width, or use relative frequency divided by width for probability density.
Why do unequal-width bins need density?
Bar area must represent frequency, so different widths require appropriately adjusted heights.
Can different bin widths change the apparent shape?
They can change visual detail and apparent concentrations even when observations remain identical.
Does a histogram show changes over time?
It groups observations by value, not their chronological order.
Does a histogram prove normality?
Its appearance alone does not establish a distributional model.
Should raw observations be retained?
Retain them to verify counts, calculate exact thresholds and investigate relevant patterns.
