Log in Sign up
Back to Discover
🔢

Histogram

math Maturity 7-9

We can use bars to show things.

Black cherry tree histogram.svg
Black cherry tree histogram.svg
These bars show many things at once. They help us see a pattern. You can see how many are in a group. It helps us learn. Do you see the shapes?

39 words

Imagine you have many pieces of fruit.

Example histogram.png
Example histogram.png
You want to see how many are big or small. You can sort them into groups. These groups are called bins.

A histogram is a way to show these groups. It uses bars to show the count. Each bar sits right next to the next one.

Black cherry tree histogram.svg
Black cherry tree histogram.svg

Tall bars mean there are many items in that group. Short bars mean there are fewer. This helps you see a pattern in your data. It can even show how people travel to work.

Travel time histogram total 1 Stata.png
Travel time histogram total 1 Stata.png
It is a great way to see the whole picture.

106 words

Imagine you have a large pile of fruit. You want to know how many are big or small. To do this, you sort them into groups. These groups are called bins.

Example histogram.png
Example histogram.png

A histogram is a special graph that shows these groups. It uses bars to show the count for each bin. Each bar sits right next to the next one.

Black cherry tree histogram.svg
Black cherry tree histogram.svg
This shows how the data flows from one group to another.

Tall bars mean there are many items in that group. Short bars mean there are fewer. This helps you see a pattern. You can use them to study many things. For example, they can show how long people travel to work.

Travel time histogram total 1 Stata.png
Travel time histogram total 1 Stata.png

A man named Karl Pearson gave the histogram its name in 1892. He chose the word because it refers to something set upright. This describes the vertical bars in the graph. You can change the width of the bins. Using different widths can help you see new details in your data.

Wikipedia bincounts.svg
Wikipedia bincounts.svg

174 words

A histogram is a special tool used to see how numbers are spread out. Imagine you have a huge list of measurements, like the heights of many trees. It is hard to see a pattern just by looking at a list of numbers. A histogram turns those numbers into a picture using bars. Each bar represents a specific range of values, which we call a bin.

Example histogram.png
Example histogram.png
These bins act like buckets that catch different numbers. By looking at the height of the bars, you can quickly see where most of the numbers fall. This helps you understand the shape and density of your data at a glance.

To build a histogram, you must first decide on your bins. You take your entire range of numbers and divide them into intervals. These intervals are usually the same size and sit right next to each other without overlapping.

Black cherry tree histogram.svg
Black cherry tree histogram.svg
Once you have your bins, you count how many values fall into each one. If many values fit into one bin, that bar will be very tall. If very few values fit, the bar will be short. You can even use different bin widths to see new details.
Wikipedia bincounts.svg
Wikipedia bincounts.svg
Sometimes, using wider bins helps smooth out messy data, while narrower bins show more precise details.

People have used bar graphs to show measurements for a long time. A Scottish economist named William Playfair used this technique in his book from 1786. However, the specific name "histogram" came later. Karl Pearson introduced the term in 1892 during lectures at University College London.

Example histogram.png
Example histogram.png
He was the founder of mathematical statistics and knew Ancient Greek very well. Some people think the name comes from Greek words for "history" or "drawing." But Pearson actually chose a Greek word that means "something set upright." He was thinking about the vertical bars that stand up in the graph.

Histograms can show many different kinds of real-world information. For example, the U.S. Census Bureau used them to look at travel times. In the year 2000, they found 124 million people worked outside their homes.

Travel time histogram total 1 Stata.png
Travel time histogram total 1 Stata.png
Their data showed how long it took people to get to work. You might notice some bars are taller because people tend to round their travel times. Histograms can also show proportions instead of just counts. In a unit area histogram, the total area of all the bars adds up to exactly one.
Travel time histogram total n Stata.png
Travel time histogram total n Stata.png

It is important not to confuse a histogram with a regular bar chart. In a bar chart, each bar represents a different category, like different types of fruit. In a histogram, the bars represent a continuous range of numbers. Because the numbers in a histogram are connected, the bars usually touch each other. This shows that the data flows from one interval to the next.

Cumulative vs normal histogram.svg
Cumulative vs normal histogram.svg
You can use words like "symmetric" or "skewed" to describe the shape you see. These shapes tell a story about how the numbers are distributed across the bins.

511 words

A histogram is a visual tool used to represent the distribution of quantitative data. It allows researchers to see how values are spread across a range. By using rectangles of varying heights, a histogram reveals the density of the underlying data. This makes it easier to estimate a probability density function, which is a mathematical way to describe how likely certain values are to occur.

Example histogram.png
Example histogram.png
While they look similar to bar charts, histograms serve a very different purpose. A bar chart compares different categories, such as different types of fruit. In contrast, a histogram illustrates how a single variable is distributed across continuous intervals.

To construct a histogram, you must first perform a process called "binning." This involves taking the entire range of values and dividing it into a series of intervals called bins. These bins are typically consecutive and non-overlapping. They are usually designed to be of equal size, though this is not strictly required. Once the bins are set, you count how many data points fall into each specific interval. The height of each bar is then determined by this count or frequency.

Black cherry tree histogram.svg
Black cherry tree histogram.svg
If the intervals on the x-axis all have a length of one, the histogram becomes identical to a relative frequency plot.

There are different ways to interpret the vertical scale of a histogram. One common method uses absolute numbers, where the area of each block represents the total count of cases. For example, a histogram of U.S. Census Bureau data regarding travel times to work shows the total number of people in each time interval.

Travel time histogram total n Stata.png
Travel time histogram total n Stata.png
Another method is the unit area histogram, which shows proportions. In this version, the total area of all the bars is normalized to exactly 1. This represents the entire dataset as a whole. The height of each block in this version represents the frequency density, or the percentage per horizontal unit.
Travel time histogram total 1 Stata.png
Travel time histogram total 1 Stata.png

Researchers often use specific terms to describe the patterns found in a histogram. A distribution might be described as "symmetric" if both sides look similar. It can also be described as "skewed left" or "skewed right" if the data leans toward one side. If a histogram has one clear peak, it is called unimodal. If it has two peaks, it is bimodal, and more than two peaks make it multimodal.

Cumulative vs normal histogram.svg
Cumulative vs normal histogram.svg
You can also create a cumulative histogram. This type of graph maps the cumulative number of observations in all the bins up to a specific point.

Determining the number of bins is a critical step in data analysis. There is no single "best" number of bins, as different widths can reveal different features. Using wider bins can reduce noise caused by sampling randomness. Using narrower bins can provide greater precision in areas where data density is high.

Wikipedia bincounts.svg
Wikipedia bincounts.svg
Several mathematical rules exist to help choose the number of bins. Sturges's formula, developed in 1926, is based on a binomial distribution and assumes a normal distribution. The square-root choice is another method often used in software. Other options include the Rice rule and Doane's formula, which attempts to improve performance for non-normal data. Scott's normal reference rule is also widely used and is the default in Microsoft Excel.

The history of the histogram involves several important figures in statistics. While the technique of using bars to represent measurements was devised by the Scottish economist William Playfair in 1786, the name "histogram" is newer. Karl Pearson, the founder of mathematical statistics, introduced the term in 1892 during lectures at University College London.

Example histogram.png
Example histogram.png
Although some mistakenly believe the name comes from Greek words for "history" or "drawing," Pearson actually derived it from a different Greek root. He chose a word meaning "something set upright" or "mast" to refer to the vertical bars in the graph. He viewed the term as part of a series of new names, similar to "stigmogram" or "radiogram."

Histograms are deeply connected to more advanced statistical concepts like kernel density estimation. A histogram can be viewed as a simplistic version of this estimation, which uses a "kernel" to smooth frequencies over the bins. While density estimates are often drawn as smooth curves, histograms are often preferred in practical applications. This is because the statistical properties of a histogram are easier to model mathematically. In a histogram, each bin can vary independently, whereas the variations in a kernel density estimate are much more difficult to describe.

749 words
🖼️ Images & Media (8)
File:Black_cherry_tree_histogram.svg
Black_cherry_tree_histogram.svg
File:Example histogram.png
Example histogram.png
File:Travel time histogram total n Stata.png
Travel time histogram total n Stata.png
File:Travel time histogram total 1 Stata.png
Travel time histogram total 1 Stata.png
File:Cumulative vs normal histogram.svg
Cumulative vs normal histogram.svg
File:Wikipedia bincounts.svg
Wikipedia bincounts.svg
File:Gumbel distribtion.png
Gumbel distribtion.png
File:Daisy histogram.jpg
Daisy histogram.jpg
Up Next
🔢
Bar chart
Math
More to explore

What is Nepedia?

A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.