How it’s calculated
A frequency table counts how often each value, or each range of values, appears in a data set. Relative frequency turns each count into a share of the total, and the cumulative columns show running totals, which answer questions such as “what share of the values are 5 or less?”.
For classes, pick a start and a width. Each class includes its lower limit and excludes its upper limit, so the value 5 with start 0 and width 5 falls in the class “5 to under 10”. Every value must belong to exactly one class.
Example (OpenStax Introductory Statistics 2e, Example 1.17): nineteen people report how many miles they commute: 2, 5, 7, 3, 2, 10, 18, 15, 20, 7, 10, 18, 5, 12, 13, 12, 4, 5, 10. The value 2 occurs twice (2 ÷ 19 = 0.1053), 3 once (cumulative 3 ÷ 19), 4 once (cumulative 4 ÷ 19), 5 three times (cumulative 7 ÷ 19), and so on up to 20 with cumulative relative frequency 19 ÷ 19 = 1. So 12 ÷ 19 of the people commute 10 miles or less.
Frequently asked questions
What is the difference between relative and cumulative relative frequency?
Relative frequency is one row’s share of the total. Cumulative relative frequency adds up the shares from the first row down to the current row, so it ends at 1 (100%).
How wide should the classes be?
Aim for roughly 5 to 15 classes. Too few hide the shape of the data; too many make it look jagged. Use equal widths and start at or below the minimum.
Which class does a boundary value go in?
Here every class includes its lower limit and excludes its upper limit. A value of exactly 10 with classes 5 to under 10 and 10 to under 15 goes in the second class. Some textbooks use the opposite convention, so check yours.
Can I use this for text categories?
No, this tool works with numbers. For categories, count each label and divide by the total using the same formulas.
Embed this calculator
Add this free calculator to your own website. Copy the code below into your page’s HTML:
Need this calculator branded, changed or built around your own prices?See custom business solutions →
Sources
- Introductory Statistics 2e, §1.3 Frequency, Frequency Tables, and Levels of Measurement — OpenStax
- Introductory Statistics 2e, §2.2 Histograms, Frequency Polygons, and Time Series Graphs — OpenStax
Formulas are taken from the free public references above. Results are provided “as is” for informational and educational purposes only. See our disclaimer.
Added · Last updated · How we check our calculators
Spotted a mistake or missing option? Report a problem· Suggest a calculator