Frequency Histogram
Ever wonder how to make sense of a long list of numbers, like test scores or temperatures? A frequency histogram is a powerful graphical tool that transforms raw data into a clear picture, revealing patterns, trends, and the overall shape of your data at a single glance.

What Is a Frequency Histogram?
A frequency histogram is a graphical representation used to summarize the distribution of a continuous numerical dataset. Think of it as a special type of bar chart that groups numbers into ranges, called bins or class intervals. The height of each bar shows the number of data points—the frequency—that fall within that specific range. Unlike a standard bar chart, the bars in a histogram touch each other, which signifies that the data on the x-axis is continuous, with no gaps between the categories.
The primary purpose of a histogram is to give you a quick visual understanding of a dataset's underlying distribution. By looking at its shape, you can answer questions like:
- Where is the center of the data?
- How spread out is the data?
- Is the data symmetric or skewed in one direction?
- Are there any unusual values (outliers)?
The horizontal axis (x-axis) represents the data values broken into bins, while the vertical axis (y-axis) represents the frequency or count for each bin. It's a fundamental tool in statistics and data analysis for exploring and understanding quantitative information.
Histogram vs. Bar Chart: What's the Difference?
It's one of the most common points of confusion for students, but the distinction between a histogram and a bar chart is crucial. While they both use bars to represent data, they are designed for completely different purposes and types of data. The key difference lies in whether the data is quantitative (numerical) or categorical (descriptive).
Here is a table summarizing the main differences:
| Feature | Frequency Histogram | Bar Chart |
|---|---|---|
| Type of Data | Used for quantitative (numerical) data that is continuous or can be treated as continuous. | Used for categorical (qualitative) data, which consists of distinct groups or labels. |
| X-Axis | Represents continuous ranges of numbers called bins or class intervals (e.g., 10-20, 20-30). | Represents discrete categories or groups (e.g., 'Dogs', 'Cats', 'Birds'). |
| Bars | Bars touch each other to indicate that the variable is continuous along the axis. | Bars have spaces between them to show that the categories are separate and distinct. |
| Ordering of Bars | The order of the bars is fixed by the numerical order of the bins on the x-axis. | The order of the bars can be changed (e.g., alphabetical, by size) without changing the meaning. |
| Purpose | To show the shape and distribution of a single numerical variable. | To compare the values (like counts or percentages) across different categories. |
In short: use a histogram for numbers you can measure, like height, weight, or time. Use a bar chart for things you can count into distinct groups, like favorite colors or types of pets.
How Do You Create a Frequency Table?
Before you can draw a histogram, you must first organize your raw data into a frequency table. This table groups the data into bins and counts how many values fall into each one. Follow these steps to create one from scratch.
- Find the Range: Identify the minimum and maximum values in your dataset. The range is the difference between them.
Range = Maximum Value - Minimum Value - Determine the Number of Bins: Decide how many bars (bins) you want your histogram to have. There's no perfect rule, but using between 5 and 15 bins is a common starting point. Too few bins can hide important details, while too many can make the graph look noisy and difficult to interpret.
- Calculate the Bin Width: Divide the range by the number of bins you chose. It's often best to round this number up to a more convenient value (like the next whole number or a multiple of 5 or 10).Bin Width ≈ Range / Number of Bins
- Create the Bins: Starting from a number at or slightly below your minimum value, create the class intervals using the bin width you calculated. For example, if your first bin starts at 50 and the width is 10, the first bin is [50, 60), the second is [60, 70), and so on. The notation `[50, 60)` means the bin includes 50 but excludes 60.
- Tally the Data: Go through your dataset one value at a time and place a tally mark next to the bin it falls into. Once you've tallied all the data, count the tallies to find the frequency for each bin.
A physical education class of 30 students recorded their heights in centimeters. Create a frequency table for the following data:
162, 175, 151, 168, 172, 185, 165, 166, 170, 178, 155, 163, 171, 180, 190, 160, 168, 173, 175, 158, 162, 165, 167, 169, 170, 172, 174, 177, 181, 183
Step 1: Find the Range.
Minimum value = 151 cm. Maximum value = 190 cm.
Range =
Step 2: Determine the Number of Bins.
Let's choose to use 5 bins for this dataset.
Step 3: Calculate the Bin Width.
Bin Width ≈
Step 4 & 5: Create Bins and Tally Frequencies.
We'll start our first bin at 150 to nicely include our minimum value. With a width of 10, our bins will be [150, 160), [160, 170), etc. Now we tally the data.
| Height (cm) | Tally | Frequency |
|---|---|---|
| [150, 160) | ||| | 3 |
| [160, 170) | |||| |||| | | 11 |
| [170, 180) | |||| |||| | | 11 |
| [180, 190) | |||| | 4 |
| [190, 200) | | | 1 |
| Total | 30 |
This frequency table is now ready to be turned into a histogram.
How Do You Construct a Histogram from a Frequency Table?
With your frequency table complete, drawing the histogram is a straightforward process. It's all about translating the table's rows into bars on a graph.
- Draw and Label the Axes: Draw a horizontal x-axis and a vertical y-axis. Label the x-axis with the variable you are measuring (e.g., 'Height in cm'). Label the y-axis 'Frequency' or 'Number of Students'.
- Mark the X-Axis: Mark the boundaries of your bins along the x-axis. Your scale should be consistent. For our height example, you would mark 150, 160, 170, 180, 190, and 200.
- Mark the Y-Axis: Create a scale on the y-axis that can accommodate your highest frequency. The scale should start at 0 and increase in equal increments (e.g., 0, 2, 4, 6, ...).
- Draw the Bars: For each bin in your frequency table, draw a rectangular bar. The width of the bar should span the bin interval on the x-axis (e.g., from 150 to 160). The height of the bar should correspond to the frequency for that bin on the y-axis.
- Ensure Bars Touch: A key feature of a histogram is that adjacent bars must touch. This visually represents the continuous nature of the data.
- Add a Title: Give your histogram a descriptive title, such as 'Distribution of Student Heights'.
Construct a histogram using the frequency table for student heights from Example 1.
1. Axes: Draw an x-axis labeled 'Height (cm)' and a y-axis labeled 'Frequency (Number of Students)'.
2. X-Axis Scale: Mark the x-axis at 150, 160, 170, 180, 190, and 200.
3. Y-Axis Scale: The highest frequency is 11. A scale from 0 to 12, marked in increments of 2, would be appropriate.
4. Draw the Bars:
- For the bin [150, 160), draw a bar from x=150 to x=160 up to a height of y=3.
- For the bin [160, 170), draw a bar from x=160 to x=170 up to a height of y=11. This bar should touch the previous one.
- For the bin [170, 180), draw a bar from x=170 to x=180 up to a height of y=11.
- For the bin [180, 190), draw a bar from x=180 to x=190 up to a height of y=4.
- For the bin [190, 200), draw a bar from x=190 to x=200 up to a height of y=1.
5. Title: Add the title 'Distribution of Student Heights'.
The resulting graph would visually show that most students have heights between 160 cm and 180 cm, with fewer students at the shorter and taller extremes.
What Story Does Your Histogram Tell?
A histogram is more than just a set of bars; it's a story about your data. Learning to read its shape, center, and spread allows you to understand that story. Here are the key features to look for:
Shape and Distribution
The overall shape of the histogram reveals the data's distribution.
- Symmetric (or Bell-Shaped): The graph is roughly a mirror image on both sides of a central peak. This often indicates a 'normal' distribution, where most values cluster in the middle.
- Skewed Right (Positively Skewed): The peak is on the left side of the graph, and a long 'tail' of lower-frequency bars extends to the right. This means most values are low, but there are a few unusually high values.
- Skewed Left (Negatively Skewed): The peak is on the right, with a long tail extending to the left. This means most values are high, but there are a few unusually low values.
- Uniform: All bars are approximately the same height. This indicates the data is evenly spread across the entire range.
- Bimodal: The histogram has two distinct peaks. This often suggests there are two different groups combined in the dataset.
Center
The center describes a 'typical' value in the dataset. You can estimate the center by looking for the median bin—the bin that would contain the middle data point if all values were listed in order.
Spread
The spread tells you about the variability of the data. It is simply the range covered by the histogram, from the start of the first bin to the end of the last one.
The histogram below shows the time (in minutes) that 100 customers spent in a grocery store. What can you conclude from the graph?
(Imagine a histogram with bins 0-10, 10-20, 20-30, 30-40, 40-50, 50-60. The frequencies are approximately 40, 30, 15, 8, 5, 2. This creates a clear right skew.)
Interpretation:
- Shape: The histogram is skewed right. The peak is on the left side, with a long tail extending to the right. This indicates that most customers have a relatively short shopping trip, while a small number of customers spend a much longer time in the store.
- Center: The tallest bar is the [0-10) minute bin, and the next tallest is [10-20). The median time would likely fall somewhere in the [10-20) minute bin, as the first two bins contain
of the 100 customers. A typical shopping trip is likely around 15 minutes. - Spread: The data ranges from 0 minutes up to 60 minutes. The total spread is 60 minutes.
- Outliers: While there are no dramatic gaps, the few customers in the [40-50) and [50-60) minute bins could be considered high-value outliers, representing those doing a very large weekly shop.
Common Mistakes to Avoid
When working with histograms, a few common errors can lead to incorrect graphs and misinterpretations. Be sure to watch out for these pitfalls.
- Confusing Histograms with Bar Charts: This is the most frequent mistake. Remember: histograms are for continuous numerical data, and the bars must touch. Bar charts are for discrete categorical data, and the bars should have gaps.
- Choosing Inappropriate Bin Widths: The choice of bin width can drastically change the appearance of a histogram.
- Too Wide: If your bins are too wide, you might lump all your data into just a few bars. This oversimplifies the graph and hides important features like skewness or multiple peaks.
- Too Narrow: If your bins are too narrow, you might have many bars with very low frequencies, creating a noisy and chaotic-looking graph that makes it hard to see the overall shape.
- Leaving Gaps Between Bars: Intentionally leaving gaps between bars on a histogram is incorrect. The touching bars signify that the x-axis variable is a continuous scale. Gaps should only appear if a bin has a frequency of zero.
- Unequal Bin Widths (Without Adjustment): While advanced histograms can have bins of unequal widths, it requires adjusting the y-axis to represent frequency density (frequency divided by bin width) instead of just frequency. For standard histograms, always keep your bin widths equal.
- Misinterpreting Skewness: A common mix-up is the direction of the skew. The direction of the skew (left or right) is determined by the direction of the long 'tail', not the location of the peak. A tail to the right is skewed right; a tail to the left is skewed left.
Quick Summary and Key Concepts
Here’s a quick reference guide to the essential concepts of frequency histograms.
- Histogram: A graph for visualizing the distribution of continuous numerical data.
- Frequency: The count of data points within a specific range or bin.
- Bin (or Class Interval): A range of values on the x-axis that groups data points.
- Key Rule: Bars in a histogram must touch to show the data is continuous.
Steps to Create a Histogram:
- Collect Data: Start with a set of numerical data.
- Create a Frequency Table:
- Calculate the Range (Max - Min).
- Choose a Number of Bins (usually 5-15).
- Calculate Bin Width (Range / Number of Bins, then round up).
- Define the bins and tally the frequencies.
- Construct the Histogram:
- Draw and label the x-axis (with bins) and y-axis (with frequency).
- Draw a bar for each bin, with the height representing its frequency.
- Ensure all bars touch.
- Interpret the Histogram:
- Analyze the Shape (Symmetric, Skewed Left/Right, Uniform, Bimodal).
- Identify the Center (the typical value).
- Determine the Spread (the range of data).
Frequently Asked Questions
What is the main difference between a histogram and a bar chart?
The main difference is the type of data they represent. A histogram shows the distribution of continuous numerical data (like height or temperature), and its bars touch. A bar chart compares discrete categories (like favorite colors or car brands), and its bars have spaces between them.
Why do the bars in a histogram touch each other?
The bars touch to visually represent that the data on the x-axis is continuous. There are no gaps between the numerical ranges (bins), so a value of 19.9 is followed immediately by 20.0. Touching bars reinforce this continuous nature.
How do I choose the right number of bins for my histogram?
There is no single correct answer, as it depends on your dataset and what you want to show. A general rule of thumb is to use between 5 and 15 bins. The goal is to choose a number that clearly reveals the underlying shape of the data without being too cluttered or too simplified.
Can a histogram be used for categorical data like eye color?
No, a histogram is not appropriate for categorical data. Eye color is a set of distinct categories (blue, brown, green), not a continuous numerical scale. You should use a bar chart to display this type of data.
What does a 'skewed right' histogram tell me about the data?
A skewed right histogram means that most of the data values are clustered on the lower end (the left side of the graph), with a few unusually high values pulling the 'tail' out to the right. An example would be income, where most people earn a moderate amount but a few earn extremely high salaries.
What is a relative frequency histogram?
A relative frequency histogram is very similar to a standard frequency histogram, but the y-axis shows the proportion or percentage of the data in each bin instead of the raw count. The shape of the histogram remains exactly the same; only the scale on the y-axis changes.
Is the area of the bars in a histogram important?
Yes, the area of each bar is proportional to the frequency of the data in that bin. For standard histograms with equal bin widths, the height is also proportional to the frequency. The concept of area becomes especially important in advanced statistics when histograms are constructed with unequal bin widths.