While arranging large amount of data (in statistics), they are grouped into different classes to get an idea of the distribution, and the range of such class of data is called the Class Interval.
Class intervals are generally equal in width and are mutually exclusive.
The ends of a class interval are called class limits, and the middle of an interval is called a class mark.
Class interval is generally used to draw histogram.

In the table above, heights of 20 students of a class are divided into classes with the size of each class interval being 5.
A. 426 - 443
B. 335 - 351
C. 318 - 438
D. 336 - 353
Correct Answer: D
Step 1: Range of the data = higher value - lower value = 438 - 318 = 120
Step 2: Width = Range/number of classes = 120/7 = 17.14 ˜ 18
[Round to the higher value.]
Step 3: Construct the class limits (weight gains) with width 18, so that the least and the highest values are included.
Step 4: The class limits, boundaries, tally marks and the frequency for each class (number of tally marks) are shown in the table.
Step 5:

Step 6: The class interval in which the weight increase maximum is 336 - 353. [Frequency is more for the class 336 - 353.]
Q1: What is the class mark of the interval 20-30?
Q2: If the range of a dataset is 100 and you want to create 5 classes, what is the approximate class interval width?
Q: What happens if the number of classes is too small or too large?
A: Too few classes may hide important patterns in the data, while too many classes may result in a sparse distribution that is difficult to analyze.
Q: How do I determine the appropriate number of classes?
A: There are several rules of thumb, such as Sturges' rule, which suggests the number of classes k ≈ 1 + 3.322 * log(n), where n is the number of data points.