help-calc

06 Statistics and Data

Cumulative Relative Frequency Calculator

Card 06-0171 · Updated · Standard formula, shown below

The calculator on this page is switched off while it is checked. The formula is below, and the worked example shows how to do the sum by hand.

This calculator computes the cumulative relative frequency for each value in a data set, showing the proportion of observations that fall at or below each point. You enter a comma-separated list of numbers (or frequency counts), and you get back a table of cumulative relative frequencies as percentages or decimals, plus the total count. It’s the standard tool for understanding how a distribution accumulates from the lowest to the highest value.

Formula

Cumulative relative frequency at a given value x is the sum of the relative frequencies of all values ≤ x:

CRF(x) = (number of observations ≤ x) / n × 100%

where n is the total number of observations. If you have frequencies (counts) for each distinct value, the relative frequency of a value is its count divided by n, and the cumulative relative frequency is the running total of those relative frequencies. The result is often expressed as a percentage (0–100) or a decimal (0–1).

Worked Example

Using the default data set: 5, 3, 8, 3, 6, 8, 5, 3, 7, 8.

  1. Sort the data: 3, 3, 3, 5, 5, 6, 7, 8, 8, 8.
  2. Count total observations: n = 10.
  3. Count frequencies: 3 appears 3 times, 5 appears 2 times, 6 appears 1 time, 7 appears 1 time, 8 appears 3 times.
  4. Compute relative frequencies: 3/10 = 0.3 (30%), 2/10 = 0.2 (20%), 1/10 = 0.1 (10%), 1/10 = 0.1 (10%), 3/10 = 0.3 (30%).
  5. Compute cumulative relative frequencies: 30%, 30%+20%=50%, 50%+10%=60%, 60%+10%=70%, 70%+30%=100%.

So the cumulative relative frequency for value 5 is 50% (since 5 observations are ≤ 5), and for value 8 it is 100% (all observations are ≤ 8). The calculator returns these percentages for each distinct value.

When to Use This Calculator

Use cumulative relative frequency when you want to know what fraction of a data set lies below a certain threshold. It’s common in:

  • Statistics classes to build ogive curves.
  • Quality control to see what proportion of products fall within a spec limit.
  • Survey analysis to understand income distribution, test scores, or age groups.
  • Any situation where you need percentiles or “what percentage is at most this value?”

Unlike a simple frequency table, cumulative relative frequency gives you a running total that always ends at 100% (or 1.0). This makes it easy to compare distributions of different sample sizes.

How to Read the Results

The output table shows each distinct value (sorted ascending) and its cumulative relative frequency. For example, if a value shows 70%, that means 70% of all observations are less than or equal to that value. The last row will always be 100% (or 1.0) because all observations are ≤ the maximum value. You can also use this to find percentiles: the value at which the cumulative relative frequency reaches 25% is the 25th percentile (first quartile).

Common Mistakes and Pitfalls

  • Forgetting to sort the data: Cumulative frequency only makes sense when values are in ascending order. The calculator sorts automatically, but if you do it manually, sort first.
  • Confusing relative frequency with cumulative frequency: Relative frequency is the proportion for a single value; cumulative relative frequency is the running total.
  • Using percentages vs. decimals: Both are valid, but be consistent. The calculator outputs percentages by default.
  • Mixing up “less than or equal” vs. “less than”: Cumulative relative frequency typically includes the current value. If you need “less than” (strict), subtract the relative frequency of that value.
  • Entering frequencies incorrectly: If you provide a frequency list, it must align with the sorted distinct values. The calculator expects either raw data or a value-frequency pair.

Limitations and Notes

This calculator works for numeric data only. For grouped data (e.g., age ranges), you would need the class boundaries and frequencies; the formula is the same but applied to class midpoints or upper boundaries. Also, the cumulative relative frequency is undefined for empty data sets. The calculator requires at least one number. If you have a very large data set (thousands of values), the comma-separated input may become unwieldy; in that case, consider using a spreadsheet or statistical software, but the underlying math is identical.

Frequently Asked Questions

What is the difference between cumulative frequency and cumulative relative frequency?

Cumulative frequency is the running count of observations up to a value (e.g., 5 observations are ≤ 5). Cumulative relative frequency is that count divided by the total number of observations, expressed as a decimal or percentage (e.g., 5/10 = 50%). The cumulative frequency depends on the sample size, while the cumulative relative frequency normalizes it, making comparisons between different-sized samples easier.

Can I use this for grouped data like age ranges?

Yes, but you need the frequency for each group and the upper boundary of each group. Enter the upper boundaries as the “data values” and the frequencies as the frequency list. The cumulative relative frequency will then represent the proportion of observations up to each boundary.

Why does the last cumulative relative frequency always equal 100%?

Because the last value in the sorted data set is the maximum, and all observations are less than or equal to that maximum. So the cumulative count equals the total count, making the relative cumulative frequency 100% (or 1.0). This is a good check that your calculations are correct.

How do I find the median using cumulative relative frequency?

The median is the value where the cumulative relative frequency reaches 50%. If the data set has an odd number of observations, it’s the middle value; if even, it’s the average of the two middle values. Using the cumulative relative frequency, find the first value where the cumulative percentage is ≥ 50%—that’s the median.

What if my data has repeated values?

That’s fine. The calculator groups identical values and sums their frequencies. For example, if 3 appears three times, its relative frequency is 3/n, and the cumulative relative frequency jumps by that amount at that value.

Can I get the output as a decimal instead of a percentage?

Yes, you can divide the percentages by 100. The calculator uses percentages by default, but the underlying formula is the same. If you need decimals, just interpret the percentage as a proportion (e.g., 50% = 0.5).

Related

Formula used
in data | Data values (comma-separated) | - | 5, 3, 8, 3, 6, 8, 5, 3, 7, 8 | 0 | 100000
in freq | Frequencies (optional, comma-separated) | - |  | 0 | 100000
out cumrel | Cumulative relative frequency | % |  | 2

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.

More on this shelf

The whole Statistics and Data shelf →