Mathematics & statistics

Zipf's law

George Kingsley Zipf (1902–1950) Studied by Zipf, 1932–1949

In a long text, the second most common word appears about half as often as the first, the third about a third as often, and so on.

The idea

Zipf's law says that if you count every word in a long text and rank the words from most to least common, a word's count is roughly the top word's count divided by its rank. The second word turns up about half as often as the first, the tenth about a tenth as often. Plot rank against count on log–log scales and the points fall close to a straight line.

It is named after George Kingsley Zipf, a Harvard linguist who studied it in books from 1932 to 1949. He wasn't first, and said so. The French stenographer Jean-Baptiste Estoup had noticed it in French by 1916, and the physicist Edward Condon plotted it for English in 1928. In 1913, Felix Auerbach found the same pattern in the sizes of cities.

One of Zipf's examples was James Joyce's Ulysses: 260,430 words in all, 29,899 different ones. The 10th most common word appears 2,653 times; the 100th, 265 times. Rank times count stays near 26,500.

So a few words do most of the work. Similar rank patterns turn up in city sizes, company sizes and incomes, the territory of the Pareto principle.

It is an empirical regularity, not a law of nature, and nobody agrees why it happens. Even random strings of letters and spaces produce something like it. Real data bend away at the ends, and many texts fit only loosely.

Try it yourself

Try this: Switch to log–log. Then drag the exponent until the line runs through Joyce’s words.