Relative Frequency Calculator

Calculate relative frequency, cumulative frequency, percentages, and Shannon entropy from ungrouped data. Includes bar chart, ogive curve, and frequency distribution table.

Discrete values
Total (n)
15
Total observations
Unique Values
5
Distinct categories
Mode
3.00
Frequency = 5
Mean
3.4000
Arithmetic average
Std. Deviation
1.1431
Population SD
Entropy
2.1493 bits
Max possible: 2.3219 bits
Normalized Entropy
92.6%
100% = perfectly uniform

Relative Frequency Bar Chart

6.7%
1.00
13.3%
2.00
33.3%
3.00
26.7%
4.00
20.0%
5.00

Cumulative Frequency Curve

100%
50%
0%

Frequency Distribution Table

ValueFreq.Rel. Freq.PercentageCum. Freq.Cum. %Bar
1.0010.06676.67%16.67%
2.0020.133313.33%320.00%
3.0050.333333.33%853.33%
4.0040.266726.67%1280.00%
5.0030.200020.00%15100.00%
Total151.0000100.00%15100.00%
Entropy & Uniformity
MeasureValueInterpretation
Shannon Entropy2.1493 bitsInformation content per observation
Max Entropy2.3219 bitsIf all values equally likely (log₂ k)
Normalized Entropy92.6%Near-uniform
Planning notes, formulas, and examples

About the Relative Frequency Calculator

The relative frequency calculator converts raw counts into proportions, percentages, and cumulative frequencies for discrete data. Relative frequency (count / total) is the observed share of each value and a practical way to compare uneven categories.

This calculator builds a frequency table with absolute frequency, relative frequency, percentage, cumulative frequency, and cumulative percentage. It also shows the mode, Shannon entropy, a bar chart, and an ogive so you can read both the shape and the spread of the data.

Enter discrete values and use the table to see which outcomes dominate, how quickly the totals accumulate, and whether the distribution is balanced or concentrated in just a few values.

When This Page Helps

Use this calculator when you need to turn counts into proportions, compare categories with different totals, or inspect whether one value dominates the dataset. The cumulative columns make it easy to read running totals, while entropy gives a compact measure of how even the distribution is.

It is useful for survey answers, dice rolls, classroom data, quality checks, and any small discrete dataset where a table and chart are easier to read than a raw list.

How to Use the Inputs

  1. Enter discrete data values separated by commas or spaces.
  2. Select ascending or descending sort order for the table.
  3. Choose whether to display cumulative frequencies.
  4. Read relative frequencies as proportions (sum to 1.0) and percentages (sum to 100%).
  5. View the bar chart to compare category frequencies visually.
  6. Check the cumulative curve to see how observations accumulate.
  7. Review entropy to measure how evenly distributed the data is.
Formula used
Relative frequency = fᵢ / n where fᵢ is the frequency and n is the total. Cumulative frequency = sum of all frequencies up to and including current value. Shannon entropy H = −Σ pᵢ log₂(pᵢ). Normalized entropy = H / log₂(k) where k = number of unique values.

Example Calculation

Result: Mode = 3 (freq 5), Entropy = 2.15 bits

Value 1: 1/15 = 6.67%. Value 2: 2/15 = 13.33%. Value 3: 5/15 = 33.33% (mode). Value 4: 4/15 = 26.67%. Value 5: 3/15 = 20.00%. Shannon entropy = 2.15 bits out of max 2.32 bits, giving 92.6% normalized entropy — a fairly even distribution.

Tips & Best Practices

  • Relative frequencies sum to exactly 1.0 (100%). If they don't, there's a rounding error — check the raw fractions.
  • Cumulative relative frequency at the last value should always be 1.0 (100%).
  • The mode is the value with the highest relative frequency — it's highlighted in the bar chart.
  • Shannon entropy measures "surprise" or "information": high entropy means values are evenly distributed, low entropy means one value dominates.
  • For continuous data, you need to group values into classes first — use the frequency distribution calculator instead.
  • Relative frequency is the empirical ("observed") probability. As sample size increases, it converges to the true probability (law of large numbers).

Relative Frequency as a Data Summary

Relative frequency is the count for one value divided by the total number of observations. It is the simplest normalized description of a dataset, so the same table can be used even when sample sizes differ.

Reading the Cumulative Columns

Cumulative frequency tells you how many observations are at or below a value. Cumulative relative frequency shows the same idea as a fraction or percentage, which makes percentile-style interpretation straightforward.

Entropy and Spread

Shannon entropy is highest when the values are evenly distributed and lowest when one value dominates. For a discrete dataset, it gives a quick way to compare concentration without having to inspect every row of the table.

Sources & Methodology

Last updated:

Frequently Asked Questions

  • Relative frequency is the proportion of observations that have a specific value: frequency / total count. It ranges from 0 (value never appears) to 1 (all observations are this value). Multiplied by 100, it gives the percentage. Relative frequencies always sum to 1.0 (or 100%) across all values.