Calculate frequency density, class width, or frequency from any two values, and find each grouped class width and density for up to five classes.
Calculator Functions
| Function | What it does | What it requires |
|---|---|---|
| Frequency density | Divides the frequency of a class by its class width | Requires the class frequency and the class width |
| Frequency | Multiplies the frequency density of a class by its class width | Requires the frequency density and the class width |
| Class width | Divides the frequency of a class by its frequency density | Requires the class frequency and a frequency density above zero |
| Grouped classes | Finds the width and frequency density of up to five classes at once, and the total frequency | Requires one line per class with the lower boundary, the upper boundary and the frequency |
Class width is the upper class boundary minus the lower one, so the class 10–20 has a width of 10. Widths can be left with no unit, or given in m, cm, ft or in when the data are lengths, in which case the density is per meter, centimeter, foot or inch. A calculation has to use no unit throughout or length units throughout.
Frequency Density Formulas
| FD | Frequency density: frequency per unit of class width |
| f | Frequency of the class |
| w | Class width: upper class boundary minus lower class boundary |
Frequency density is the frequency of a class divided by its class width [1]. It is used when the classes of a grouped frequency table have unequal widths. On a histogram drawn with frequency density on the vertical axis, the area of each bar gives the frequency and the height does not [1][2]. A class that is half as wide as another with the same frequency therefore has twice the frequency density [2].
How to Calculate Frequency Density
Subtract the lower class boundary from the upper class boundary to get the class width, then divide the frequency of the class by that width. A class from 30 to 50 with a frequency of 45 has a width of 50 − 30 = 20 and a frequency density of 45 ÷ 20 = 2.25. Repeat this for every class in the table, because each class uses its own width.
Frequency density
This is the main formula. A frequency of 45 in a class 20 wide gives 2.25, and a frequency of 9 in a class 5 wide gives 1.8.
Frequency
This reads a frequency back from a histogram: bar height times bar width. A bar 2.25 high and 20 wide stands for a frequency of 45.
Class width
A frequency of 45 at a frequency density of 2.25 means the class is 20 wide. A frequency density of zero cannot give a width.
Grouped classes
Each line is one class, written as lower boundary, upper boundary, frequency. The classes 0–10 with frequency 5, 10–15 with frequency 9 and 15–20 with frequency 6 have widths of 10, 5 and 5 and frequency densities of 0.5, 1.8 and 1.2, with a total frequency of 20. The middle class is the densest even though the first class is twice as wide. Classes may share a boundary but may not overlap.
Limits of This Estimate
- Frequency density is not probability density. The result is not divided by the total frequency, so the bar areas add up to the total frequency and not to 1.
- The class width must come from the class boundaries. For data rounded to whole numbers, a class written as 10–19 usually runs from 9.5 to 19.5 and is 10 wide, not 9.
- Grouped classes accepts up to five classes per calculation.
Sources
- The Open University, OpenLearn, Data analysis: visualisations in Excel, 2.4 Frequency density: definition, formula and use with unequal class widths
- Durham University, Department of Physics, Lab skills: Histograms: area as the measure of frequency on a frequency density histogram
