If you're seeing this message, it means we're having trouble loading external resources on our website.

If you're behind a web filter, please make sure that the domains *.kastatic.org and *.kasandbox.org are unblocked.

Lesson 3: Histograms

# Interpreting a histogram

In a cherry pie store, we use a histogram to understand the distribution of cherries on pies. We create buckets for different ranges of cherries, count the pies in each, and can answer questions about our pie inventory and cherry distribution!

## Want to join the conversation?

• what is the difference between a histogram and a bar graph
• A histogram shows bars representing numerical values by range of value. A bar chart shows categories, not numbers, with bars indicating the amount of each category.
Histogram example: student's ages, with a bar showing the number of students in each year.
Bar chart example: student's favorite color, with a bar showing the various colors.
• can histograms be used with any set of numbers/data ?
• Histograms can be used with any numbers, it just matters how you label them differently
• So, the height of the bars determine how many we're working with then?
• Yup! Ya thats true had to write this much cos' my answer was too brief
• Can histograms be made sideways? I've seen some bar graphs with horizontal bars instead of vertical ones.
• Yes, and it really depends on the data you want to present and how you want to present it.
Normally, you would use the bar chart (the sideways one), if you want to (and can) sort data in a descending order; for example, if you want to show sales for different brands of food in your store; in this case you will start with the biggest one, and go onwards with the smaller ones.
You would normally use a horizontal chart (the histogram), if your data is naturally sorted - if these are the ranges for probabilities, or if these are sales numbers from a few consequential years, so it doesn't really make sense to sort it ascending or descending. Of course, that's not a strict rule, and much would depend on what do want to show, what purpose do you draw the chart for etc.
• can hisograms be used for hiting people with?
• anything can be if you try hard enough
• i still don't under stand, this video doesn't help.
• So basically on a histogram, it's a way to graph ranges of data.
• what is the difference between a histogram and a bar graph
• Great question! A histogram is used to represent quantitative data so both the x and y axes have numbers. The x will typically have a range of values while they will have a frequency. On the other hand, a bar graph is used to represent categorical (qualitative) data. So the x-axis will have a label such as color, gender, sports, team, etc. while y will have a frequency.

Graphically you can identify the difference based on the label measures and how the graph is drawn. If there are spaces between bars it is a bar graph and if there are no spaces it is a histogram.

Hope this helps!