Turn counts for each category, or a raw list of answers, into proportions and percentages that add up to 100%, with a running total and a bar for each category.
Relative frequency = f ÷ n
Relative frequency is the number of times a category occurs divided by the total number of observations. It expresses each count as a share of the whole, so the shares always add up to 1, or 100%.
Shares make groups of different sizes comparable. 86 car commuters means little until you know it's 86 out of 200 (43%) rather than 86 out of 1,000 (8.6%).
Relative frequency is also the everyday way to estimate a probability from experience. If 43% of staff drove last year, 0.43 is a sensible estimate of the chance a new starter will drive. That estimate firms up as the sample grows.
As given in OpenStax Introductory Statistics, section 1.3. See Sources.
Cumulative shares only mean something when categories have a natural order, such as ratings from 1 to 5.
Active travel (walking and cycling) makes up 30%, more than the 21% who take the bus. That comparison is easy to miss in the raw counts.
The commuting survey written four ways. All say the same thing.
| Mode | Fraction | Decimal | Percent | About 1 in |
|---|---|---|---|---|
| Car | 86/200 | 0.43 | 43% | 2.3 |
| Bus | 42/200 | 0.21 | 21% | 4.8 |
| Walk | 38/200 | 0.19 | 19% | 5.3 |
| Cycle | 22/200 | 0.11 | 11% | 9.1 |
| Train | 12/200 | 0.06 | 6% | 16.7 |
Divide the count for a category by the total count. Multiply by 100 for a percentage.
It’s an estimate of probability based on observed data. With more data, it settles closer to the true probability.
Yes, when every observation falls in exactly one category. Rounding can make the displayed figures sum to 0.99 or 1.01.
In counts mode, one category per line with a colon, equals sign, comma, tab or space before the count. In raw mode, any list separated by commas, semicolons or new lines.
Yes, for weighted survey totals, for example. The shares are calculated the same way.
So the most common answers appear first. In counts mode, your own order is kept.
For numbers grouped into ranges, use the frequency distribution calculator, which builds the classes for you.
A bar chart of the percentages works for any categories. A pie chart works when there are only a few categories that make up a whole.
Related Tools
Gaussian probabilities.
Z-score from probability.
Binary outcome probabilities.
Rare event frequency.
Time between events.
Equal probability distribution.