Class interval
From WikiEducator
This glossary is far from complete. We are constantly adding math terms.
For instructions on adding new terms, please refer to Math Glossary Main Page
Definition
Class Interval

 Sturgis's Rule: Set the number of class intervals as close as possible to , where is the base 2 logarithm of the number of observations, n. The formula can also be written as where is the base 10 logarithm of the number of observations. According to Sturgis' rule, 1000 observations would be graphed with 11 class intervals since 10 is the closest integer to .
 Rice Rule: Set the number of class intervals to twice the cube root of the number of observations. In the case of 1000 observations, the Rice rule yields 20 class intervals (compared to the 11 recommended by Sturgis' rule).
 Experiment with different choices of width, choosing an interval width according to how well it communicates the shape of the distribution when displayed as a histogram.
Examples
Pulse rates, in beats per minute, were calculated for 192 students enrolled in a statistics course at the University of Adelaide.^{[2]} The pulse rates in the dataset range from 35 to 104 beats per minute, 70 possible values. An ungrouped frequency distribution listing the counts for each of the 70 possible values will be large and cumbersome to interpret effectively. Interpretation is simplified by grouping the data into class intervals.
Use the number of observations, in this example , to determine the number of class intervals to use in a grouped frequency distribution:
 Sturgis's rule, , suggests 8 or 9 class intervals.
 The Rice rule, , suggests 11 or 12 class intervals.
There is no right answer for the number of class intervals. For this example we will group the data into 10 classes, splitting the difference between the two methods.
The following frequency table provides the count and percent for the data values grouped into 10 class intervals.
Pulse Rate*  Count  Percent 

(3441]  2  1.0% 
(4148]  2  1.0% 
(4855]  4  2.1% 
(5562]  19  9.9% 
(6269]  40  20.8% 
(6976]  53  27.6% 
(7683]  30  15.6% 
(8390]  27  14.1% 
(9097]  10  5.2% 
(97104]  5  2.6% 
Total  192  100.0% 
 The limits of each class are indicated by the parenthesis, which means
"not including", and the square bracket, which means "including".
Notes
 ↑ "Histograms" in Chapter: 2. Graphing Distributions. Online Statistics: An Interactive Multimedia Course of Study. Retrieved on 20090212.
 ↑ See the dataset, survey, available in the MASS package in R, an open source statistical computing software application.