👁 Preview — Study, Practice and Revise are open; mock tests and the rest of the syllabus unlock on subscription. Unlock all · ₹4,999
← Back to Collection and Classification of Data
Study mode

Histograms

Introduction to Histograms

When we collect data, especially numerical data like heights, weights, or marks scored by students, it often comes as a long list of numbers. To understand this data better, we need to organize and visualize it. One powerful way to do this is by using a histogram.

A histogram is a type of bar graph that shows how data is distributed across different ranges, called class intervals. Unlike simple bar graphs, histograms are used for continuous data-data that can take any value within a range, such as time, length, or temperature.

Histograms help us quickly see patterns like which ranges have the most data points, where the data is concentrated, and if there are any gaps or unusual values. This visual insight is crucial for making decisions based on data.

Frequency Distribution and Class Intervals

Before drawing a histogram, we need to organize raw data into a frequency distribution. This means grouping data into intervals and counting how many data points fall into each interval.

For example, consider the marks scored by 30 students in a test out of 100:

  • 45, 52, 48, 60, 55, 70, 65, 72, 68, 75, 80, 85, 90, 88, 92, 95, 98, 85, 78, 74, 60, 62, 58, 55, 50, 48, 45, 40, 38, 35

To analyze this data, we create class intervals, which are continuous ranges that cover all data points without overlapping or gaps. For example, intervals of width 10:

  • 30-39
  • 40-49
  • 50-59
  • 60-69
  • 70-79
  • 80-89
  • 90-99

Next, we count how many marks fall into each interval. This count is called the frequency.

Frequency Distribution Table
Class Interval (Marks) Frequency (Number of Students)
30 - 393
40 - 495
50 - 595
60 - 695
70 - 794
80 - 894
90 - 994

Why continuous class intervals? Because marks are measured on a continuous scale, using continuous intervals like 30-39.99, 40-49.99, etc., avoids gaps between intervals and ensures every mark fits into exactly one class.

Constructing a Histogram

Now that we have the frequency distribution, we can draw the histogram. Follow these steps:

  1. Determine Class Width: The class width is the size of each interval. In our example, it is 10 (e.g., 30 to 39 covers 10 marks).
  2. Calculate Frequency Density: When class widths are equal, frequency density equals frequency. But if class widths differ, frequency density adjusts for width differences (explained later).
  3. Draw Axes: On the horizontal axis (x-axis), mark the class intervals. On the vertical axis (y-axis), mark the frequency or frequency density.
  4. Draw Bars: For each class interval, draw a bar whose width equals the class width and height equals the frequency density. Bars must be adjacent (touching) because the data is continuous.

Here is a histogram based on the frequency distribution table above (equal class widths):

30-39 40-49 50-59 60-69 70-79 80-89 90-99 0 1 2 3 4 5

Note: Bars touch each other because the data is continuous.

Difference Between Histogram and Bar Graph

It is common to confuse histograms with bar graphs. Here are the key differences:

Histogram vs Bar Graph
Feature Histogram Bar Graph
Type of Data Continuous data (e.g., heights, marks) Categorical data (e.g., colors, brands)
Bar Spacing Bars touch each other (no gaps) Bars separated by gaps
X-axis Labels Class intervals (ranges) Categories (names)
Y-axis Frequency or frequency density Frequency or count

Worked Examples

Example 1: Constructing a Histogram with Equal Class Widths Easy
The ages of 40 students are grouped as follows:
Age (years)Frequency
10-145
15-1912
20-2415
25-298
Draw a histogram to represent this data.

Step 1: Identify class width. Here, each class interval covers 5 years (e.g., 10 to 14).

Step 2: Since class widths are equal, frequency density = frequency.

Step 3: Draw x-axis with class intervals and y-axis with frequency.

Step 4: Draw bars for each class interval with height equal to frequency and width equal to class width.

Answer: The histogram will have bars touching each other with heights 5, 12, 15, and 8 respectively for the intervals 10-14, 15-19, 20-24, and 25-29.

Example 2: Interpreting a Histogram Medium
A histogram shows the distribution of monthly incomes (in INR) of workers in a factory. The highest bar corresponds to the class interval 15,000-20,000 INR. What does this tell you about the income distribution? Identify the modal class.

Step 1: The highest bar represents the class with the greatest frequency.

Step 2: Since the highest bar corresponds to 15,000-20,000 INR, most workers earn between 15,000 and 20,000 INR.

Step 3: The modal class is the class interval with the highest frequency, here 15,000-20,000 INR.

Answer: The modal class is 15,000-20,000 INR, indicating that most workers have monthly incomes in this range.

Example 3: Calculating Frequency Density for Unequal Class Widths Hard
The following frequency distribution shows the number of hours studied by students in a week:
Hours StudiedFrequency
0-510
5-1520
15-2015
Construct a histogram by calculating the frequency density for each class.

Step 1: Calculate class widths:

  • 0-5: width = 5
  • 5-15: width = 10
  • 15-20: width = 5

Step 2: Calculate frequency density using the formula:

Frequency Density

\[\text{Frequency Density} = \frac{\text{Frequency}}{\text{Class Width}}\]

Height of bars in histogram when class widths differ

Frequency = Number of observations in the class
Class Width = Width of the class interval
  • 0-5: \( \frac{10}{5} = 2 \)
  • 5-15: \( \frac{20}{10} = 2 \)
  • 15-20: \( \frac{15}{5} = 3 \)

Step 3: Draw the histogram with bars of widths equal to class widths and heights equal to frequency densities. Bars must touch each other.

Answer: The histogram bars will have heights 2, 2, and 3 for the intervals 0-5, 5-15, and 15-20 respectively.

Example 4: Estimating Median from Histogram Medium
Given a histogram of students' marks with the following frequency distribution:
MarksFrequency
0-105
10-208
20-3012
30-4010
Estimate the median class.

Step 1: Calculate cumulative frequencies:

  • 0-10: 5
  • 10-20: 5 + 8 = 13
  • 20-30: 13 + 12 = 25
  • 30-40: 25 + 10 = 35

Step 2: Total frequency = 35. Median position = \( \frac{35}{2} = 17.5 \)

Step 3: Find the class interval where cumulative frequency just exceeds 17.5, which is 20-30 (cumulative frequency 25).

Answer: Median class is 20-30.

Example 5: Comparing Histogram and Bar Graph Easy
A student is given two graphs: one with bars touching and one with bars separated. Both graphs show data about favorite fruits of students. Which graph is a histogram and which is a bar graph? Explain why.

Step 1: Bars touching indicate continuous data representation, so that graph is a histogram.

Step 2: Bars separated indicate categorical data representation, so that graph is a bar graph.

Step 3: Since favorite fruits are categories, the correct graph should be a bar graph with separated bars.

Answer: The graph with separated bars is the bar graph (correct for categorical data). The graph with touching bars is a histogram (used for continuous data), so it is not appropriate for favorite fruits.

Formula Bank

Formula Bank

Frequency Density
\[ \text{Frequency Density} = \frac{\text{Frequency}}{\text{Class Width}} \]
where: Frequency = number of observations in the class; Class Width = difference between upper and lower class boundaries

Tips & Tricks

Tip: Always calculate frequency density when class widths are unequal before plotting histogram bars.

When to use: When constructing histograms with unequal class intervals to ensure accurate bar heights.

Tip: Remember that histogram bars touch each other, unlike bar graphs where bars are separated.

When to use: To quickly distinguish between histograms and bar graphs in questions.

Tip: Use cumulative frequency tables alongside histograms to estimate median and quartiles effectively.

When to use: When asked to find median or quartiles from grouped data.

Tip: Label axes clearly with class intervals on x-axis and frequency density on y-axis for clarity.

When to use: While drawing histograms to avoid confusion and gain full marks.

Tip: Practice drawing histograms from frequency tables with varying class widths to build confidence.

When to use: During exam preparation to handle diverse question types.

Common Mistakes to Avoid

❌ Plotting frequency instead of frequency density when class widths are unequal.
✓ Calculate and plot frequency density (frequency divided by class width) on the y-axis.
Why: Students often overlook the need to adjust for unequal class widths, leading to incorrect histograms.
❌ Leaving gaps between bars in histograms.
✓ Ensure bars are adjacent without gaps since histograms represent continuous data.
Why: Confusing histograms with bar graphs causes incorrect graphical representation.
❌ Using discrete class intervals instead of continuous class boundaries.
✓ Use continuous class boundaries to avoid gaps and overlap in histograms.
Why: Discrete intervals can misrepresent data distribution and confuse interpretation.
❌ Mislabeling axes or not specifying units (e.g., cm, kg).
✓ Always label axes with correct variable names and units (metric system).
Why: Proper labeling is essential for clarity and full credit in exams.
❌ Confusing histogram with bar graph and interpreting data incorrectly.
✓ Understand that histograms are for grouped continuous data; bar graphs are for categorical data.
Why: Misinterpretation leads to wrong conclusions about data patterns.
Key Concept

Histograms

Histograms graphically represent frequency distributions of continuous data using adjacent bars. Heights correspond to frequency density, especially important when class widths vary.

Curated videos per subtopic
Top YouTube explainers, AI-ranked for your exam and language. Unlocks with subscription.
Unlock

Try Practice next.

Progress tracking is paywalled — subscribe to mark subtopics as understood and save your streak.

Go to practice →
Ask a doubt
Histograms · 10 free messages
Ask me anything about this subtopic. You have 10 free messages this session — chat history isn't saved in preview.