Statistics

Frequency Tables and Histograms

Last updated: March 2026 · Intermediate
Before you start

You should be comfortable with:

Real-world applications
Electrical

Voltage drop, wire sizing, load balancing

💰
Retail & Finance

Discounts, tax, tips, profit margins

When you collect a large set of numbers, looking at every individual value is overwhelming. A frequency table organizes raw data by counting how often each value (or range of values) occurs. A histogram is the visual version — a bar chart specifically designed for showing frequency distributions of continuous data.

Building a Frequency Table from Raw Data

Start with raw data and tally how many times each value appears.

Example 1: Quiz Scores

A class of 20 students received these quiz scores (out of 10):

7,8,9,7,6,8,10,7,8,9,5,7,8,6,9,8,7,10,8,97, 8, 9, 7, 6, 8, 10, 7, 8, 9, 5, 7, 8, 6, 9, 8, 7, 10, 8, 9

Step 1: List every unique value and count its occurrences.

ScoreTallyFrequency
5I1
6II2
7IIIII5
8IIIIII6
9IIII4
10II2
Total20

Step 2: Verify the frequencies sum to the total number of data points.

1+2+5+6+4+2=201 + 2 + 5 + 6 + 4 + 2 = 20 \checkmark

This table immediately shows that 8 was the most common score (the mode) and that most students scored 7 or above.

Class Intervals (Bins)

When data has many distinct values or is continuous (like heights, weights, or temperatures), grouping values into class intervals (also called bins) makes the table manageable.

Guidelines for choosing intervals:

  • Use 5 to 10 intervals for most datasets
  • Make all intervals the same width
  • Intervals should not overlap — use ranges like 60–69, 70–79 (or 60 to under 70, 70 to under 80)
  • Every data point must fall into exactly one interval

Example 2: Employee Ages

A company has 25 employees with these ages:

22,25,28,31,33,35,36,38,40,41,42,43,44,45,47,48,50,52,53,55,56,58,60,62,6422, 25, 28, 31, 33, 35, 36, 38, 40, 41, 42, 43, 44, 45, 47, 48, 50, 52, 53, 55, 56, 58, 60, 62, 64

Using intervals of width 10:

Age RangeFrequencyRelative Frequency
20-293325=12%\frac{3}{25} = 12\%
30-395525=20%\frac{5}{25} = 20\%
40-498825=32%\frac{8}{25} = 32\%
50-596625=24%\frac{6}{25} = 24\%
60-693325=12%\frac{3}{25} = 12\%
Total25100%

Relative and Cumulative Frequency

Relative frequency expresses each frequency as a fraction or percentage of the total. It answers: “What proportion of the data falls in this interval?”

Relative Frequency=FrequencyTotal Number of Values×100\text{Relative Frequency} = \frac{\text{Frequency}}{\text{Total Number of Values}} \times 100

Cumulative frequency is a running total — it answers: “How many data points fall at or below this interval?”

Using the employee age data:

Age RangeFrequencyRelative FrequencyCumulative Frequency
20-29312%3
30-39520%8
40-49832%16
50-59624%22
60-69312%25

From the cumulative column, we can quickly see that 16 out of 25 employees (64%) are 49 or younger, and 22 out of 25 (88%) are 59 or younger.

Histograms vs. Bar Charts

Histograms and bar charts look similar but serve different purposes:

FeatureBar ChartHistogram
Data typeCategorical (colors, brands, cities)Continuous/numerical (ages, scores, temperatures)
Bar spacingGaps between barsNo gaps — bars touch
X-axisCategory labelsNumerical intervals
PurposeCompare distinct categoriesShow shape of a distribution

In a histogram, bars touch because the data is continuous — the end of one interval is the start of the next. The height of each bar represents the frequency (or relative frequency) of that interval. The shape of the histogram reveals whether data is symmetric, skewed left, skewed right, or uniform.

Calculating the Mean from a Frequency Table

You can estimate the mean from a frequency table without going back to the raw data.

Mean=(value×frequency)frequency\text{Mean} = \frac{\sum (value \times frequency)}{\sum frequency}

For grouped data, use the midpoint of each interval as the value.

Using the employee age data:

Age RangeMidpointFrequencyMidpoint ×\times Frequency
20-2924.5373.5
30-3934.55172.5
40-4944.58356.0
50-5954.56327.0
60-6964.53193.5
Total251,122.5

Estimated Mean=1122.525=44.9 years\text{Estimated Mean} = \frac{1122.5}{25} = 44.9 \text{ years}

Real-World Application: Electrician — Checking Voltage Consistency

An electrician takes 30 voltage readings from a commercial power outlet to verify it stays within the acceptable range of 114V114\text{V} to 126V126\text{V} (the standard 120V±5%120\text{V} \pm 5\%):

117.2,118.5,119.0,119.3,119.8,120.1,120.4,118.9,121.0,119.5117.2, \, 118.5, \, 119.0, \, 119.3, \, 119.8, \, 120.1, \, 120.4, \, 118.9, \, 121.0, \, 119.5

120.8,121.3,118.2,119.7,120.0,120.6,121.5,119.1,118.8,120.3120.8, \, 121.3, \, 118.2, \, 119.7, \, 120.0, \, 120.6, \, 121.5, \, 119.1, \, 118.8, \, 120.3

121.8,122.0,119.4,120.2,118.6,120.9,121.1,119.6,120.5,121.7121.8, \, 122.0, \, 119.4, \, 120.2, \, 118.6, \, 120.9, \, 121.1, \, 119.6, \, 120.5, \, 121.7

Step 1: Organize into a frequency table with 1-volt intervals.

Voltage RangeFrequencyRelative Frequency
117.0 - 117.913.3%
118.0 - 118.9516.7%
119.0 - 119.9826.7%
120.0 - 120.9930.0%
121.0 - 121.9620.0%
122.0 - 122.913.3%
Total30100%

Step 2: Interpret the results.

  • All 30 readings fall within the 114V114\text{V} to 126V126\text{V} acceptable range.
  • The distribution is concentrated around 119V119\text{V} to 121V121\text{V} — that’s 8+9+630=76.7%\frac{8 + 9 + 6}{30} = 76.7\% of all readings.
  • The shape is roughly symmetric and centered near 120V120\text{V}.

Conclusion: The power supply is consistently within spec. A histogram of this data would show a bell-shaped distribution centered near the target of 120V120\text{V}, confirming stable and reliable voltage.

Frequency Table Reference

TermDefinition
FrequencyNumber of times a value or interval appears
Relative frequencyFrequency divided by total, expressed as a percentage
Cumulative frequencyRunning total of frequencies up to and including each interval
Class interval (bin)A range of values grouped together
Class widthThe size of each interval (e.g., 10 in “20-29, 30-39, …”)
MidpointThe center of a class interval: lower+upper2\frac{\text{lower} + \text{upper}}{2}

Practice Problems

Test your understanding with these problems. Click to reveal each answer.

Problem 1: A retail store tracks the number of items per transaction for 15 customers: 3, 5, 2, 7, 4, 3, 6, 2, 5, 4, 3, 8, 4, 5, 3. Build a frequency table and find the mode.
ItemsFrequency
22
34
43
53
61
71
81
Total15

The mode is 3 (highest frequency of 4).

Problem 2: Using the frequency table below, calculate the relative frequency for each interval and the cumulative frequency.
Score RangeFrequency
50-594
60-698
70-7912
80-8910
90-996

Total = 4+8+12+10+6=404 + 8 + 12 + 10 + 6 = 40

Score RangeFrequencyRelative Freq.Cumulative Freq.
50-59410%4
60-69820%12
70-791230%24
80-891025%34
90-99615%40
Problem 3: Estimate the mean from this grouped frequency table of daily temperatures (°F).
Temp RangeFrequency
60-643
65-697
70-7410
75-796
80-844

Midpoints: 62, 67, 72, 77, 82. Total frequency: 3+7+10+6+4=303 + 7 + 10 + 6 + 4 = 30.

Sum=(62×3)+(67×7)+(72×10)+(77×6)+(82×4)\text{Sum} = (62 \times 3) + (67 \times 7) + (72 \times 10) + (77 \times 6) + (82 \times 4)

=186+469+720+462+328=2,165= 186 + 469 + 720 + 462 + 328 = 2{,}165

Mean=21653072.2°F\text{Mean} = \frac{2165}{30} \approx 72.2°\text{F}

Answer: The estimated mean temperature is approximately 72.2°F.

Problem 4: Name two differences between a histogram and a bar chart.
  1. Data type: Histograms display continuous/numerical data; bar charts display categorical data.
  2. Bar spacing: Histogram bars touch (no gaps) because the intervals are continuous; bar chart bars have gaps because the categories are distinct.

Key Takeaways

  • Frequency tables organize raw data by counting how often each value or range appears
  • Use class intervals (bins) when data has many distinct values — aim for 5-10 intervals of equal width
  • Relative frequency converts counts to percentages, making comparison across different-sized datasets easier
  • Cumulative frequency provides a running total that answers “how many values are at or below this point?”
  • Histograms are bar charts for continuous data — bars touch, and the shape reveals the distribution pattern
  • You can estimate the mean from a frequency table using midpoints: (midpoint×frequency)frequency\frac{\sum(\text{midpoint} \times \text{frequency})}{\sum \text{frequency}}

Return to Statistics for more topics in this section.

Last updated: March 28, 2026