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.
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:
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:
Next, we count how many marks fall into each interval. This count is called the frequency.
| Class Interval (Marks) | Frequency (Number of Students) |
|---|---|
| 30 - 39 | 3 |
| 40 - 49 | 5 |
| 50 - 59 | 5 |
| 60 - 69 | 5 |
| 70 - 79 | 4 |
| 80 - 89 | 4 |
| 90 - 99 | 4 |
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.
Now that we have the frequency distribution, we can draw the histogram. Follow these steps:
Here is a histogram based on the frequency distribution table above (equal class widths):
Note: Bars touch each other because the data is continuous.
It is common to confuse histograms with bar graphs. Here are the key differences:
| 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 |
| Age (years) | Frequency |
|---|---|
| 10-14 | 5 |
| 15-19 | 12 |
| 20-24 | 15 |
| 25-29 | 8 |
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.
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.
| Hours Studied | Frequency |
|---|---|
| 0-5 | 10 |
| 5-15 | 20 |
| 15-20 | 15 |
Step 1: Calculate class widths:
Step 2: Calculate frequency density using the formula:
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.
| Marks | Frequency |
|---|---|
| 0-10 | 5 |
| 10-20 | 8 |
| 20-30 | 12 |
| 30-40 | 10 |
Step 1: Calculate cumulative frequencies:
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.
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.
When to use: When constructing histograms with unequal class intervals to ensure accurate bar heights.
When to use: To quickly distinguish between histograms and bar graphs in questions.
When to use: When asked to find median or quartiles from grouped data.
When to use: While drawing histograms to avoid confusion and gain full marks.
When to use: During exam preparation to handle diverse question types.
Progress tracking is paywalled — subscribe to mark subtopics as understood and save your streak.
Go to practice →