Relative Frequency Calculator

Calculate relative frequencies, percentages, and cumulative relative frequencies from your data

About the Relative Frequency Calculator

The Relative Frequency Calculator is a statistical tool designed to convert raw counts into meaningful proportions. In any data set, the absolute frequency tells you how often a specific value appears, but it does not provide context regarding the whole. By calculating the relative frequency, you can determine what fraction or percentage of the total data set a specific subgroup represents. This tool is essential for researchers, students, and data analysts who need to normalize data to make fair comparisons between different sample sizes or to visualize the distribution of a population.

The calculator processes a list of frequencies to generate three key metrics: the relative frequency (as a decimal), the percentage, and the cumulative relative frequency. These values are foundational for creating histograms and probability distributions. Whether you are analyzing survey results, quality control data in manufacturing, or grade distributions in a classroom, understanding relative frequency allows you to see the "big picture" that raw numbers often obscure. It helps identify trends and outliers by showing the weight each category carries relative to the entire set.

Formula

Relative Frequency = f / n

The variable 'f' represents the absolute frequency, which is the number of times a specific event or value occurs in your dataset. The variable 'n' represents the total number of observations or the sum of all frequencies in the entire sample. To get the percentage, you simply multiply the resulting decimal by 100.

Cumulative relative frequency is calculated by adding the relative frequency of the current category to the sum of the relative frequencies of all preceding categories in the data table.

Worked examples

Example 1: A bag contains 20 marbles: 8 are red, 6 are blue, and 6 are green. Calculate the relative frequency for each color.

Total (n) = 8 + 6 + 6 = 20\nRed: 8 / 20 = 0.40\nBlue: 6 / 20 = 0.30\nGreen: 6 / 20 = 0.30

Result: The relative frequency for Red is 0.40 (40%), Blue is 0.30 (30%), and Green is 0.30 (30%). This totals 1.00 or 100%.

Example 2: A business receives 40 reviews: 4 are 1-star, 6 are 2-stars, and 30 are 3-stars. Find the cumulative relative frequency.

Total (n) = 4 + 6 + 30 = 40\nRel. Freq 1-star: 4 / 40 = 0.10\nRel. Freq 2-star: 6 / 40 = 0.15\nRel. Freq 3-star: 30 / 40 = 0.75\nCum. Rel. Freq 1: 0.10\nCum. Rel. Freq 2: 0.10 + 0.15 = 0.25\nCum. Rel. Freq 3: 0.25 + 0.75 = 1.00

Result: The cumulative relative frequency for 1-star reviews is 0.10, for 2-star is 0.25, and for 3-star is 1.00. 100% of the data is accounted for by the final category.

Common use cases

Pitfalls and limitations

Frequently asked questions

is relative frequency the same as percentage

Both represent the same proportion, but relative frequency is typically expressed as a decimal between 0 and 1, whereas percentage is that same decimal multiplied by 100. For example, a relative frequency of 0.25 is exactly the same as 25%.

what should the sum of all relative frequencies be

The sum of all relative frequencies in a complete data set must always equal exactly 1 (or 100% if using percentages). If your sum is slightly off, like 0.999 or 1.001, it is usually due to rounding errors in the individual category calculations.

difference between relative frequency and cumulative relative frequency

Relative frequency tells you what proportion of the total a single category represents, while cumulative relative frequency is the running total of those proportions. It shows the percentage of data points that fall at or below a certain category or value.

how to find relative frequency from a frequency table

First, sum all the individual frequencies to find the total sample size (N). Then, divide the frequency of your specific category (f) by that total (N). The resulting decimal is your relative frequency.

why use relative frequency instead of absolute frequency

Relative frequency is better for comparing two different datasets of unequal sizes. For instance, comparing 50 "yes" votes in a group of 100 to 50 "yes" votes in a group of 1,000 is only possible if you see that one is 50% and the other is 5%.

Related calculators

5 Number Summary Calculator
Calculate the five-number summary (min, Q1, median, Q3, max) and visualize with a box plot
Absolute Uncertainty Calculator
Calculate absolute and relative uncertainty for measurements and experimental data
Average Rating Calculator
Calculate the weighted average star rating from individual vote counts for reviews and feedback
Accuracy Calculator
Calculate accuracy, precision, and error rates for statistical analysis
Adjusted R-Squared Calculator
Calculate adjusted R² to account for the number of predictors in regression models
AIC/BIC Calculator
Compare statistical models using Akaike and Bayesian Information Criteria for model selection
Accuracy Calculator
Calculate accuracy, precision, and error rates for statistical analysis
ANOVA Calculator
Perform one-way Analysis of Variance to test if group means differ significantly