What Frequency Means and Why You Count It
Frequency is the number of times a value appears in a dataset. If you survey 30 people about their favorite color and 12 say blue, the frequency of blue is 12. Frequency is the foundation of most statistical analysis—you cannot describe a dataset, build a chart, or run a test without first counting how often each value shows up.
Computing frequency is straightforward: you list each unique value in your data, then count how many times it occurs. The result is a frequency table, which organizes your data so you can spot patterns, compare groups, and prepare for further analysis. A frequency table is often the first step before calculating percentages, averages, or building a graph.
Key Takeaways
- Frequency is straightforward the count of how many times each value appears in your dataset.
- A frequency table lists each unique value and its count in two columns, making patterns visible at a glance.
- Relative frequency divides each count by the total number of observations to show what fraction or percentage each value represents.
- Cumulative frequency adds up the counts as you move down the table, showing how many observations fall at or below each value.
- Tallying by hand works for small datasets; spreadsheet formulas like COUNTIF save time and reduce errors on larger data.
Building a Frequency Table by Hand
Start with raw data—a list of values with no particular order. Suppose you recorded the number of hours 15 students studied for a test: 2, 3, 2, 4, 3, 2, 5, 3, 2, 4, 3, 2, 5, 4, 3. To build a frequency table, first identify every unique value that appears. In this case: 2, 3, 4, and 5 hours.
Write these values in the left column of a two-column table. In the right column, count how many times each value appears. The easiest method is to go through your data once and make a tally mark next to each value, then count the marks. For the study hours: 2 appears 5 times, 3 appears 5 times, 4 appears 3 times, and 5 appears 2 times. Your frequency table now shows the distribution of study time across the group.
Check your work by adding all the frequencies together. The sum should equal the total number of observations (15 in this example). If it does not, you missed or double-counted a value.
Computing Relative Frequency
Relative frequency expresses each count as a fraction or percentage of the total. It answers the question: "What share of the data does this value represent?" To calculate relative frequency, divide each frequency by the total number of observations.
Using the study hours example: the total is 15 students. The relative frequency of 2 hours is 5 ÷ 15 = 0.333 (or 33.3%). The relative frequency of 3 hours is 5 ÷ 15 = 0.333 (or 33.3%). The relative frequency of 4 hours is 3 ÷ 15 = 0.2 (or 20%). The relative frequency of 5 hours is 2 ÷ 15 = 0.133 (or 13.3%). All relative frequencies should add up to 1.0 (or 100%).
Relative frequency is useful when you want to compare datasets of different sizes. If one class has 20 students and another has 30, comparing raw frequencies is misleading—relative frequencies let you see the true proportion in each group.
Understanding Cumulative Frequency
Cumulative frequency is a running total: it adds up all the frequencies from the top of the table down to the current row. It shows how many observations fall at or below each value. To compute it, start with the first frequency, then add each subsequent frequency to the previous total.
For the study hours: cumulative frequency for 2 hours is 5. For 3 hours, it is 5 + 5 = 10. For 4 hours, it is 10 + 3 = 13. For 5 hours, it is 13 + 2 = 15. The final cumulative frequency should always equal the total number of observations. Cumulative frequency is especially useful for finding medians, quartiles, and percentiles in larger datasets.
Using a Spreadsheet to Count Frequency
For datasets with hundreds or thousands of values, hand-tallying is impractical. Spreadsheet software like Excel, Google Sheets, or LibreOffice Calc can count frequencies automatically using the COUNTIF function. The syntax is =COUNTIF(range, criteria), where range is the column containing your data and criteria is the value you want to count.
Suppose your study hours data is in cells A2 through A16. In a new column, list the unique values (2, 3, 4, 5) in cells C2 through C5. In cell D2, type =COUNTIF($A$2:$A$16,C2). The dollar signs lock the data range so it does not change when you copy the formula down. Press Enter, then copy the formula down to D5. Each cell now shows the frequency of the corresponding value in column C.
For relative frequency in a spreadsheet, divide each frequency by the total count. In cell E2, type =D2/SUM($D$2:$D$5) and copy down. Format these cells as percentages to display them clearly. For cumulative frequency, use =SUM($D$2:D2) in the first row and copy down—the first dollar sign stays fixed while the second adjusts, creating a running total.
Common Mistakes to Avoid
The most frequent error is miscounting when tallying by hand, especially with large datasets or messy data. Always go through your original list systematically—top to bottom, left to right—and mark each value as you count it to avoid skipping or recounting. A second person checking your tally catches mistakes quickly.
Another mistake is forgetting to include zero-frequency values. If your data includes categories that do not appear at all, they should still appear in your frequency table with a count of zero. This is especially important in categorical data (like survey responses) where missing categories can mislead interpretation.
When using spreadsheets, watch for inconsistent data entry. If some cells contain "2 hours" and others contain "2" or "2.0", the COUNTIF function will count them separately. Clean your data first by standardizing format and removing extra spaces.
Frequency Tables for Grouped Data
When your dataset contains many unique values or continuous measurements (like height or weight), grouping values into ranges makes the frequency table readable. Decide on a reasonable range width—often 5 or 10 units—then count how many observations fall into each range.
For example, if you measured the heights of 50 people and values range from 58 to 76 inches, you might create ranges: 58–62, 63–67, 68–72, 73–76. Count how many people fall into each range. This grouped frequency table is easier to read than a table with 19 separate rows, and it still shows the overall distribution. The trade-off is that you lose information about exact values—you know 12 people were 63–67 inches tall, but not their precise heights.
Frequently Asked Questions
What is the difference between frequency and relative frequency?
Frequency is the raw count of how many times a value appears. Relative frequency is that count divided by the total number of observations, expressed as a decimal or percentage. If 12 out of 30 people prefer blue, the frequency is 12 and the relative frequency is 0.4 or 40%.
Do I have to include values with zero frequency in my table?
It depends on context. For categorical data where certain categories are meaningful but absent (like survey options nobody selected), include them with a frequency of zero. For continuous data, you typically do not list every possible value that did not occur—that would be endless. Use your judgment based on what the table needs to show.
Can I compute frequency for non-numeric data like colors or names?
Yes. Frequency works on any type of data—numbers, text, categories, or labels. Count how many times each unique value appears, just as you would with numbers. The process is identical; only the values themselves differ.
What is the fastest way to compute frequency on a large dataset?
Use a spreadsheet formula like COUNTIF or a pivot table feature. Both are much faster and more accurate than hand-tallying. If your data is in a spreadsheet already, a pivot table can build a complete frequency distribution in seconds.
Why does cumulative frequency matter if I already have a regular frequency table?
Cumulative frequency lets you answer questions like "How many students studied 3 hours or fewer?" or "What percentile does this value fall into?" It is essential for finding medians, quartiles, and for creating cumulative distribution graphs.