Last updated on June 4th, 2025
Class intervals are a way to organize data into groups or classes. This makes it easier to understand and analyze the data that has been collected. In this topic, we are going to talk about class intervals and their types.
In statistics, class intervals are used to group data into specific ranges. This makes it easier to organize and analyze data efficiently. It is especially useful when we deal with continuous data, where the individual data values vary continuously over a range.
By grouping data into intervals it makes it easier to identify patterns and trends. Class intervals are defined with two values which are lower limits the smallest values in a class interval and
upper limit the largest value in a class interval.
We know that data is categorized into two types: Grouped and ungrouped. Here is the formula to calculate class intervals:
Class Interval = Upper Limit - Lower Limit
Class width = (Range of data) / (Number of class intervals)
In class, width: Range of data = Maximum value - minimum value
Step 1: First, we find the minimum and maximum values in the dataset.
Step 2: Next, we calculate the range.
Step 3: Choose the number of class intervals
Step 4: Calculate the class width using the formula
Step 5: Create the intervals.
To find class intervals of datasets accurately, we follow these steps:
Step 1: To find the range, subtract the minimum value of the dataset from the maximum value.
Step 2: Next, choose the amount of intervals based on the size of the dataset.
Step 3: Calculate the class width. We do this by dividing the range by the number of intervals you have decided.
Step 4: Organize the data into suitable intervals.
Class intervals are categorized into different types based on how they are structured and what kind of data we want to represent:
Exclusive class intervals are when the lower bound or the minimum value is included in the interval and the upper bound or maximum value is excluded. This means that any data point equal to the upper bound is assigned to the previous interval. For example, in the interval (10, 20), include from 10 to 19.999, but not 20.
Class Interval |
Frequency |
0-10 | 9 |
10-20 | 11 |
20-30 | 10 |
As you can see in this table, in an exclusive class interval, the next class interval’s lower limit is equal to the upper limit of the previous interval.
In inclusive class intervals, both the lower limit and upper limits are included within the interval. We use inclusive class intervals when we want to ensure that all the data values in the data set are equal to the limits that are part of that interval.
Class Interval |
Frequency |
0-11 | 9 |
12-23 | 11 |
24-35 | 10 |
In this case, both lower and upper limits are included in the interval and the upper limit of one class interval is different from the lower limit of the next class interval.
Class intervals can be represented graphically using graphs such as histograms or frequency polygons. Class intervals show how data is distributed across different ranges. These graphs help in visualizing trends and frequencies in the dataset.
To represent a class interval graphically:
Step 1: Prepare a frequency table by organizing the data into class intervals, and then we count the number of values in each interval.
Step 2: Label the axes, the x-axis will represent the class intervals and the y-axis will represent the frequency.
Step 3: Plot the data by taking the frequency for each interval which is marked as a bar, point, or curve depending on the graph used. In most cases, intervals are continuous, meaning the bars or points are connected without any gaps.
This is a general approach that gets applied to different types of graphs like histograms or frequency polygons, etc.
Class intervals are widely used in various fields in the real world. Here are a few real-world applications of class intervals:
Students make mistakes when trying to create class intervals. So here are a few common mistakes that students tend to make and ways to avoid them:
Create class intervals for the dataset of heights ranging from 68-85 inches.
Class intervals will be 68-70, 71-73, 74-76, 77-79, 80-82, 83-85.
Start with the minimum value (68) and add a class width (in this case 3) successively to set the boundaries. Group the heights into these intervals.
Data points given are: 5, 7, 8, 10, 15, 22, 25, 28, 30, 35, 38, 42, 45, 47, 49, 51, 54, 56, 58, 60. Create a class interval with a class width of 10.
Class intervals: 0-10, 11-20, 21-30, 31-40, 41-50, 51-60.
Start with the minimum value (5) and create intervals of width 10 until the maximum value (60).
Convert the inclusive intervals into exclusive class intervals. 0-5, 6-11, 12-17, 18-23.
Exclusive class intervals: 0-6, 6-12, 12-18, 18-24
We adjust the upper limit of each interval to be the lower limit of the next class interval.
Create class intervals for the dataset of student scores: 45, 68, 82, 79, 67, 55, 75, 55, 85, 89, 90, 78, 45, 66, 49.
The class intervals are 40-50, 50-60, 60-70, 70-80, 80-90, 90-100
Start with the minimum score which is 45 and create intervals of width 10 until the maximum score is 90.
Determine the class intervals for the following income data: $5,000, $12,000, $18,000, $25,000, $32,000, $40,000.
Class intervals for the income data are: $0-$10,000, $10,001-$20,000, $20,001-$30,000, $30,001-$40,000, $40,001-$50,000.
Group the data into intervals of width $10,000, starting from the minimum value that is $5,000 to the maximum value $40,000.
Jaipreet Kour Wazir is a data wizard with over 5 years of expertise in simplifying complex data concepts. From crunching numbers to crafting insightful visualizations, she turns raw data into compelling stories. Her journey from analytics to education ref
: She compares datasets to puzzle games—the more you play with them, the clearer the picture becomes!