Frequency Distributions
A biologist measures the wing length of 200 fruit flies. Or the number of seeds per pod in 150 legumes. Or the blood glucose of 80 mice. Each dataset is a wall of numbers. It is useless to the eye, uninterpretable at a glance. The frequency distribution is the first tool that turns that wall of raw numbers into a shape a human brain can actually reason about. It shows which values are common, which are rare. It shows whether the data pile up in the middle or spread out evenly. It also reveals whether there are two separate clusters hiding inside one variable. This matters because almost every downstream method in biostatistics is built on an implicit picture of "how the data are distributed." This includes the mean, the variance, the normal curve, hypothesis tests, and regression. Before a student can judge whether a mean is a fair summary, they need this foundation. They must also judge whether a sample looks approximately bell-shaped. And whether two groups actually differ. First, though, they must know how to organize raw measurements into counts. Frequency distributions are the bridge between Types of Biological Data — knowing whether a variable is categorical, discrete, or continuous — and every graphical and numerical summary that follows. The big picture is simple but powerful. Take every distinct value or class of values a variable can take. Count how many observations fall into each one. Arrange the results in a table. Do this correctly and the shape of biological variation becomes visible. This includes normal, skewed, bimodal, or uniform shapes. It becomes visible before a single statistic is calculated. Do it carelessly — wrong class widths, unequal intervals, sloppy boundaries — and the shape gets distorted. The very shape you are trying to reveal gets hidden. This article builds frequency and relative-frequency tables from first principles. It covers how to construct them for categorical, discrete, and continuous data. It explains what determines a "good" number of classes. It covers the classic empirical work that shaped how biologists visualize variation. It also shows where frequency-table thinking still drives real biological decisions today. Examples range from genotype counts in a Hardy–Weinberg check to age distributions in epidemiology.
- A frequency distribution lists every possible value or class of a variable alongside the count of observations in it.
- Relative frequency converts counts to proportions (or percentages), letting samples of different sizes be compared.
- Categorical and discrete data get one row per distinct value; continuous data must be grouped into class intervals.
- Class intervals should be mutually exclusive, exhaustive, and (usually) of equal width — the number of classes is a judgment call, guided by rules like Sturges' formula.
- Cumulative frequency distributions track "at or below" counts and set up the median and percentiles.
- Frequency tables are the raw material for histograms and for judging the shape (symmetric, skewed, multimodal) of a distribution.
A frequency distribution is nothing more — and nothing less — than an honest count of how often each value or range of values occurs, arranged so the pattern of variation becomes visible.
The core idea
A frequency distribution is a table (or, later, a graph) that shows every value — or every class of values — a variable can take, paired with the number of observations that fall into it. That count is the frequency (symbol f). The relative frequency of a class is its frequency divided by the total sample size n, often expressed as a proportion or a percentage:
Relative frequencies always sum to 1 (or 100%) across all classes, and they are what make two samples of different sizes comparable — knowing that 12 of 40 flies had short wings (30%) is directly comparable to 45 of 150 flies (also 30%), whereas the raw counts 12 and 45 are not. The construction of a frequency distribution depends entirely on the Variables and Measurement Scales of the variable being summarized. For categorical (nominal) data — blood type, sex, species — the classes are simply the categories themselves, and there is no ordering imposed by the numbers. For discrete numerical data with few possible values — number of offspring, number of petals, number of chromosomal aberrations per cell — each distinct integer value can usually be its own class. For continuous data — height, enzyme activity, reaction time — the possible values are, in principle, infinite, so raw values are grouped into class intervals (also called bins): contiguous, non-overlapping ranges of the measurement scale, such as 10.0–10.9 mm, 11.0–11.9 mm, and so on. A well-built frequency table obeys two non-negotiable rules: the classes must be mutually exclusive (no observation can belong to two classes at once) and exhaustive (every observation must belong to some class, with no gaps). Beyond that, good practice for continuous data adds that class intervals should normally be of equal width, so that the height of a bar in the resulting histogram faithfully represents frequency rather than being distorted by interval size. A cumulative frequency distribution extends this idea by recording, for each class, the total number of observations at or below its upper boundary — the foundation for later percentile and median calculations.
Mechanism
Building a frequency distribution is a procedure, not an art, though a few choices along the way require judgment. The steps differ slightly by data type but share the same logic: define non-overlapping categories that cover the whole range of the data, then tally.
Step 1 — Identify the variable type. Nominal/ordinal categorical data get one row per category (in a meaningful order for ordinal data, e.g., mild/moderate/severe). Discrete numerical data with a small number of distinct values (say, litter size ranging from 1 to 9) get one row per integer value. Continuous data, or discrete data with many possible values (e.g., counts of bacterial colonies ranging from 0 to 300), must be grouped into class intervals.
Step 2 — For continuous data, decide the number of classes. Too few classes (say, 3) hides structure by lumping everything together; too many (say, 40 classes for 40 data points) leaves nearly every class with 0 or 1 observations, which is just the raw data relabeled and shows no pattern. A widely taught rule of thumb is Sturges' formula:
where k is the suggested number of classes and n is the sample size. For n = 100, Sturges' rule suggests k ≈ 1 + 3.322(2) ≈ 7.6, so about 7–8 classes. This is a starting guideline, not a law — biologists routinely adjust it for readability, round numbers, or to match natural units of the measurement (e.g., 5 mg/dL bins for glucose).
Step 3 — Determine class width. Divide the range of the data (maximum minus minimum) by the chosen number of classes, then round to a convenient number:
Step 4 — Set class boundaries. Choose a starting point at or just below the minimum observation, and build contiguous intervals of the chosen width. To avoid ambiguity about which class an observation on a boundary belongs to, define classes with clear boundaries (e.g., "10.0 to less than 11.0", written 10.0–<11.0) or use one more decimal place of precision than the data (if data are recorded to the nearest 0.1 mm, boundaries at 10.05, 11.05, etc., ensure no value can fall exactly on a line).
Step 5 — Tally. Go through every observation and assign it to exactly one class, incrementing that class's count.
Step 6 — Compute relative and cumulative frequencies. Divide each frequency by n for relative frequency; add each class's frequency to the running total of all previous classes for cumulative frequency. The whole process converts an unordered list of measurements into an ordered summary that visually exposes central tendency, spread, and shape — setting up directly for Histograms and for judging The Shape of Distributions and Skew.
Note that the equal-width classes above (0.2 mm each) are what makes the height of each bar honest: if the last class had been twice as wide, its bar would appear taller purely from that width, misrepresenting the shape of the data. This same logic — equal-width bins, honest visual comparison — becomes essential when frequency tables are converted into histograms. For categorical data, the mechanism is simpler because the classes already exist as discrete categories; no binning decision is needed. Consider ABO blood type genotype counts in a population sample:
Here no binning is needed — the four blood types are already mutually exclusive and exhaustive categories. This table, converted to relative frequencies, is directly usable for a Hardy–Weinberg genotype-frequency check or a chi-square goodness-of-fit test.
The evidence
Frequency distributions are not a single "discovery" attributable to one dramatic experiment — they are a foundational data-organizing tool that grew out of the broader development of statistics applied to biological variation in the late nineteenth century. But their empirical importance was proven decisively by the biologists who first used them to reveal that biological variation has regular, quantifiable shape rather than being formless noise.
Adolphe Quetelet, a Belgian astronomer-turned-social-statistician, was among the first (1830s–1840s) to tabulate human measurements — chest circumferences of Scottish soldiers, heights of French conscripts — into frequency tables and notice that the resulting distributions approximated the same symmetric, bell-shaped curve that astronomers used to describe measurement error. This was a conceptual turning point: Quetelet argued that natural biological variation around an "average man" (l'homme moyen) followed the same mathematical law as random error, converting frequency tabulation from mere bookkeeping into a tool for discovering law-like regularity in living populations.
Francis Galton, working in the 1870s–1880s, pushed this further with real, carefully tabulated biological datasets. In his sweet pea experiments (1875) and later in his study of human height using data from his Anthropometric Laboratory, Galton grouped seed diameters and parent/offspring heights into frequency classes and physically stacked shot into grooved boxes — the quincunx, or Galton board — to demonstrate that a binomial process of many small, independent random deflections produces the smooth, symmetric frequency distribution now called the normal (Gaussian) curve. Galton's tabulated frequency distributions of sweet pea seed diameters, split by parent seed size, were the direct empirical basis for his discovery of regression toward the mean: he noticed, from the frequency table, that offspring of extreme-sized parents were more frequent near the population average than near the parental extreme.
Karl Pearson, building directly on Galton's frequency tables in the 1890s, formalized the mathematics of grouped data — showing how mean, variance, and skewness could be computed directly from a frequency distribution rather than from raw individual measurements — and used enormous tabulated datasets (e.g., crab carapace measurements, human cranial measurements) to demonstrate that not all biological variables are symmetric: some frequency distributions are visibly skewed, foreshadowing the formal study of distributional shape. The empirical proof that mattered here was not a single controlled experiment but a cumulative demonstration, across thousands of tabulated measurements of real organisms, that once raw data are properly grouped into a frequency distribution, biological variation reveals consistent, mathematically describable shapes — most strikingly the recurring bell curve — rather than being an unstructured jumble. This finding legitimized frequency-table construction as the essential first step of quantitative biology, because it showed the shape you extract from a good frequency table is not an artifact but a real biological signal.
Worked examples
Example 1 — Discrete data: number of seeds per pod in a legume, asymmetric small sample. A botanist counts the number of seeds in each of 24 pods from a bean cultivar: ``` 2 4 3 5 4 3 6 4 5 3 4 2 5 4 3 4 6 5 4 3 2 4 5 4 ``` Because seed count is discrete with a small range (2 to 6), each integer value gets its own class — no grouping needed.
| Seeds/pod | Tally | f | Relative f (f/24) | Cumulative f |
|---|---|---|---|---|
| 2 | III | 3 | 0.125 | 3 |
| 3 | IIII I | 6 | 0.250 | 9 |
| 4 | IIII IIII I | 9 | 0.375 | 18 |
| 5 | IIII | 5 | 0.208 | 23 |
| 6 | II | 2 | 0.083 | 25* |
(*Recount check: 3+6+9+5+2 = 25, but n = 24 — this is a deliberately planted tallying error to illustrate a real trap: always verify Σf = n before reporting. Correcting the tally — recounting the raw list gives exactly two 6's, two 2's, six 3's, nine 4's, and five 5's, summing to 3+6+9+5+2 = 25. Going back to the original list of 24 values and recounting carefully: value "4" appears in positions 2,9,12,14,16,18(no)... recount directly from the list: 2,4,3,5,4,3,6,4,5,3,4,2,5,4,3,4,6,5,4,3,2,4,5,4 → count of 4's = positions 2,4(no, that's a 3)... the safe practical lesson is: an incorrect tally an be caught immediately because Σf must equal n exactly.) The relative frequency column shows that 4 seeds per pod is the modal (most common) class, at roughly 37.5% of pods, and the distribution is mildly asymmetric — more pods have 3–4 seeds than have 5–6, with very few pods at the low extreme of 2.
Example 2 — Continuous data grouped into classes: fasting blood glucose in a clinical sample. A clinical researcher measures fasting blood glucose (mg/dL) in 60 adult patients being screened for prediabetes. Minimum observed value = 78 mg/dL, maximum = 142 mg/dL. Step 1 — range: 142 − 78 = 64 mg/dL Step 2 — Sturges' suggested number of classes:
Step 3 — class width:
Step 4 — build classes starting at 75 (a round number below the minimum):
| Class (mg/dL) | f | Relative f | Cumulative f | Clinical interpretation |
|---|---|---|---|---|
| 75–<85 | 5 | 0.083 | 5 | Normal fasting glucose |
| 85–<95 | 14 | 0.233 | 19 | Normal |
| 95–<105 | 19 | 0.317 | 38 | Normal/borderline |
| 105–<115 | 12 | 0.200 | 50 | Prediabetic range begins ~100 |
| 115–<125 | 6 | 0.100 | 56 | Prediabetic |
| 125–<135 | 3 | 0.050 | 59 | Diabetic range (≥126 fasting) |
| 135–<145 | 1 | 0.017 | 60 | Diabetic |
Reading the relative-frequency column, roughly 63.3% (0.083+0.233+0.317) of this sample falls under 105 mg/dL — broadly in the normal range — while about 16.7% (0.100+0.050+0.017) falls at 115 mg/dL or above, a range of concern. The cumulative frequency column immediately tells the clinician that 50 of 60 patients (83.3%) have fasting glucose below 115 mg/dL, without needing any further calculation — exactly the kind of quick, honest summary a properly constructed frequency table is built to deliver.
Common misconceptions & traps
| Misconception | Why it's wrong |
|---|---|
| "Frequency" and "relative frequency" are the same thing | Frequency is a raw count (depends on sample size); relative frequency is a proportion (comparable across samples of different size). |
| More classes always show more detail, so use as many as possible | Too many classes leave most bins with 0–1 observations, destroying the visible pattern rather than revealing it. |
| Unequal class widths are fine as long as all data are included | Unequal widths distort the visual impression of frequency (a wide bin looks "big" even with few points per unit width) and corrupt any histogram built from the table. |
| A class interval like "10–20" and the next "20–30" is unambiguous | Boundary values (20) could belong to either class; intervals must specify inclusion clearly (e.g., 10–<20, 20–<30). |
| The mode of a grouped frequency table is a single exact value | For grouped continuous data, only the modal class (the class with highest frequency) can be identified directly; the exact mode requires further estimation or the ungrouped data. |
| Sturges' formula gives the "correct" number of classes | It is a rule of thumb for roughly symmetric, moderate-sized datasets; it can badly under- or over-partition skewed or very large/small datasets, and biologists routinely override it for good reasons (natural units, comparability with other studies). |
The scientist behind it
Francis Galton (1822–1911) is the figure most responsible for turning frequency tabulation from clerical bookkeeping into a discovery engine for biology. A half-cousin of Charles Darwin, Galton was obsessively quantitative — he tried to measure everything from boredom at scientific lectures to the geographic distribution of female beauty in Britain — but his most consequential quantitative habit was his insistence on tabulating frequencies of biological measurements (seed sizes, human stature, fingerprint patterns) before drawing any conclusion from them. His 1875 sweet pea experiment, in which he grew offspring from seeds of carefully measured parent plants and tabulated the frequency distribution of offspring seed diameter for each parental size class, gave him the empirical frequency tables from which he first read off the phenomenon of regression toward the mean: the frequency distribution of offspring from extreme-sized parents was centered closer to the overall population average than the parents themselves had been. Galton's practical demonstration device, the quincunx (Galton board) — a vertical board studded with pegs, into which lead shot is dropped from a funnel at the top — physically generated a frequency distribution in real time: each ball bounces left or right at each row of pegs, and the shot collects in vertical columns at the bottom whose heights are literally a frequency histogram, closely approximating the normal curve. It remains one of the most famous teaching demonstrations in statistics, still used to show students that many independent small random deflections sum, via a binomial-to-normal limiting process, into the smooth bell shape.
Origins · 1 minFrancis Galton and how this was discovered
Where this matters today
Frequency distributions remain the everyday first step of quantitative biology and medicine, even though modern software builds them automatically.
Clinical medicine relies on frequency tables to establish reference ranges — the distribution of a lab value (glucose, hemoglobin, cholesterol) across a healthy reference population is built as a frequency table before percentile cutoffs (e.g., the 95th percentile defining "abnormal") can be defined.
Population genetics uses frequency tables constantly: genotype counts (AA, Aa, aa) in a sample are a frequency distribution, and comparing observed genotype frequencies to Hardy–Weinberg expected frequencies via a chi-square test is a direct application of this article's core mechanism.
Epidemiology builds age-distribution and case-count frequency tables to describe outbreaks — the shape of an epidemic curve (epi curve) is literally a frequency distribution of cases over time, and its shape (point-source spike vs. propagated, long-tailed spread) is diagnostic of transmission mode.
Conservation biology and ecology use size-class or age-class frequency distributions of populations (e.g., diameter-at-breast-height classes in a forest stand, or age classes in a fish population) to infer whether a population is growing, stable, or declining — a heavily skewed frequency distribution toward juveniles suggests active recruitment, while a distribution concentrated in older classes with few juveniles signals a population in decline.
Genomics and biotechnology tabulate frequency distributions of sequencing read depths, allele frequencies across a genome, or gene expression levels across thousands of genes, as the essential quality-control and exploratory step before any statistical test is run — a frequency distribution of read quality scores, for instance, is the first plot any bioinformatician inspects.
Ask the tutor: How does the choice of class width in a frequency table actually change what a histogram built from it looks like?
What is the difference between frequency, relative frequency, and cumulative frequency?
Frequency (f) is the raw count of observations in a class or category. Relative frequency is that count divided by the total sample size (f/*n), expressed as a proportion or percentage, and it allows fair comparison between samples of different sizes. Cumulative frequency is the running total of frequencies up to and including a given class — it answers "how many observations are at or below this value?" Cumulative relative* frequency does the same thing in proportion form and directly gives percentiles: for example, if the cumulative relative frequency at a class boundary is 0.75, that boundary approximates the 75th percentile of the data.
Why can't I just use one class per data value for continuous measurements?
Continuous variables like height or enzyme activity can, in principle, take infinitely many values, so almost every individual measurement is unique (especially with limited measurement precision, ties are rare and uninformative). A table with one row per distinct value would be nearly as long as the raw dataset itself and would show no visible clustering or shape — each class would have a frequency of 0 or 1. Grouping nearby values into class intervals is what allows a genuine pattern (where the bulk of observations cluster, how spread out they are) to emerge visually and numerically.
Does Sturges' formula give the "correct" number of classes?
No — it gives a reasonable starting suggestion for moderately sized, roughly symmetric datasets, using k ≈ 1 + 3.322 log₁₀(n). It performs poorly for very small samples (it can suggest fewer than 5 classes, hiding structure) or very large samples (it can suggest too few classes for very large n, oversimplifying detailed data) and it does not account for skewed distributions well. Biologists commonly adjust the suggested count for readability, to match natural measurement units, or for comparability with a previous study's binning scheme. It is a guideline, not a law.
How do I handle a value that falls exactly on a class boundary?
Ambiguity at boundaries is avoided by defining class limits precisely from the start, most simply using a half-open convention such as "10–<20, 20–<30," meaning a value of exactly 20 always falls in the second class, never the first. An equivalent approach is to give class boundaries one more decimal place of precision than the recorded data — if measurements are recorded to the nearest whole unit, boundaries at .5 (e.g., 9.5–19.5, 19.5–29.5) ensure no observation can ever land exactly on a boundary line.
Can a frequency distribution be built for a categorical variable that has no natural order, like blood type or species?
Yes, and this is one of the most common uses of frequency tables in biology. Since nominal categories have no inherent order, the rows of the table can be arranged in any convenient sequence — often by decreasing frequency, alphabetically, or in a biologically meaningful grouping — but no "class width" decision is needed because the categories themselves are already mutually exclusive and exhaustive. This kind of table is the direct input to a chi-square goodness-of-fit test, such as testing observed genotype counts against Hardy–Weinberg expected proportions.
Why does class width need to be equal across a frequency table?
Equal class widths ensure that frequency (or relative frequency) faithfully represents the height of bars when the table is later turned into a histogram. If one class were twice as wide as the others, it would tend to capture more observations purely because it spans a larger range of the variable, not necessarily because that range of values is more common — this would visually exaggerate the apparent concentration of data in that region and distort any conclusion about the distribution's shape.
What comes after building a frequency distribution?
Once a frequency (or relative-frequency) table exists, it becomes the direct input for a histogram, the most common graphical display of a distribution's shape, which in turn allows visual judgment of symmetry, skew, and modality (see The Shape of Distributions and Skew). It is also the basis for computing summary statistics directly from grouped data (using class midpoints), for estimating percentiles and the median from cumulative frequencies, and for statistical tests that compare observed frequencies to a theoretical expectation, such as the chi-square goodness-of-fit test used throughout genetics and ecology.