Skip to content

histogram


A histogram is a graph that shows how data are distributed by grouping values into bins (intervals) and showing how many observations fall into each bin.

It’s perfect for visualizing:

  • shape (skewed, symmetric, bimodal)
  • spread
  • clusters
  • outliers

Think of it as stacking blocks into intervals to see where the data pile up.


⭐ Key Features of a Histogram

  • X‑axis: the bins (ranges of values)
  • Y‑axis: frequency (count) or relative frequency (proportion)
  • Bars touch because the data are continuous or ordered
  • Bin width matters — too wide hides structure, too narrow creates noise

⭐ Examples

Example 1: Test Scores

Suppose 30 students take a math test, and their scores range from 40 to 100.

If we choose bins of width 10 (40–49, 50–59, …):

Score RangeFrequency
40–492
50–595
60–698
70–799
80–894
90–1002

A histogram would show:

  • A peak around 70–79
  • Fewer very low or very high scores
  • A roughly bell‑shaped distribution

Example 2: Heights of 100 People

Heights (in cm) might fall between 150 and 200.

If we use bins of width 5 cm:

  • 150–155: 3 people
  • 155–160: 7
  • 160–165: 15
  • 165–170: 22
  • 170–175: 25
  • 175–180: 18
  • 180–185: 8
  • 185–190: 2

The histogram would show:

  • A strong peak around 170–175
  • A symmetric, bell‑shaped pattern
  • Very few extremely tall or short individuals

Example 3: Daily Coffee Consumption

Survey 50 adults on how many cups of coffee they drink per day.

Cups per DayFrequency
06
112
218
310
43
5+1

A histogram would show:

  • A right‑skewed distribution
  • Most people drink 1–2 cups
  • A long tail of heavy coffee drinkers

⭐ Histogram vs. Bar Chart (Quick Reminder)

FeatureHistogramBar Chart
Data typeNumericalCategorical
Bars touch?YesNo
X‑axisIntervalsCategories
ShowsDistributionCounts per category

Leave a Reply

error: Content is protected !!