Frequency distributions and tables
A frequency distribution is the most basic summary of a variable: a list of the values it takes and how often each one occurs. It’s often the first table in a results section, and the first thing to look at when checking data for errors.
Categorical data: a frequency table
In a 1974 survey of 592 statistics students (R’s HairEyeColor data), hair colour was distributed like this:
| Hair colour | Frequency | Relative frequency |
|---|---|---|
| Brown | 286 | 48.3% |
| Blond | 127 | 21.5% |
| Black | 108 | 18.2% |
| Red | 71 | 12.0% |
| Total | 592 | 100% |
The relative frequency is the count divided by the total. Percentages make groups of different sizes comparable. For unordered categories, sorting by frequency makes the table easier to read. The most frequent category is the mode.
Ordinal and discrete data: add cumulative frequency
When values have a natural order, the cumulative percentage (the share at or below each value) is useful. Number of cylinders in the 32 mtcars cars:
| Cylinders | Frequency | % | Cumulative % |
|---|---|---|---|
| 4 | 11 | 34.4 | 34.4 |
| 6 | 7 | 21.9 | 56.3 |
| 8 | 14 | 43.8 | 100.0 |
So 56% of the cars have six cylinders or fewer. For survey items, cumulative percentages answer questions like “what share agreed or strongly agreed?”.
Continuous data: grouped frequencies and histograms
A continuous variable rarely repeats exact values, so you group them into intervals (bins). Fuel economy for the same 32 cars:
| MPG | Frequency |
|---|---|
| 10 to under 15 | 5 |
| 15 to under 20 | 13 |
| 20 to under 25 | 8 |
| 25 to under 30 | 2 |
| 30 to 35 | 4 |
Drawn as a histogram (bars touching, because the scale is continuous), this shows most cars in the 15–20 range, with a tail of high-mpg cars to the right: a mild positive skew.
Choosing bins
- Bins should be equal width, non-overlapping, and cover every value.
- Too few bins hide the shape. Too many make random noise look like real peaks. Software defaults (such as Sturges’ rule) are a reasonable start, but try a couple of widths before settling.
- State clearly which end of each bin is included.
Bar chart or histogram?
| Bar chart | Histogram | |
|---|---|---|
| For | Categorical and ordinal data | Continuous data |
| Bars | Separated by gaps | Touching |
| Order of bars | Any order for categories, natural order for ordinal data | Fixed by the number line |
What frequency tables catch
Running a frequency table on every variable is the fastest data check there is. It surfaces impossible codes (a 6 on a 1–5 scale), inconsistent spellings (“Male”, “male”, “M”), missing-value codes such as 99 or −999 that would wreck an average, and categories too small to analyse. See common data cleaning mistakes.
Our free descriptive statistics calculator and Likert scale analyzer both produce frequency tables in your browser. For a full summary, see descriptive statistics.
More in Descriptive statistics
Try it with the free tools
Run this on your own data
Upload a dataset and ask your question in plain English. Analytika checks the assumptions, picks the test, runs it, and writes the results up in APA format.