Home / Methods / Society / Zipf's law
Zipf's law
For cities by population, words by frequency, products by sales, customers by revenue.
What you need
- values in descending order
What it calculates
- the exponent of the rank distribution (~1 is classic Zipf)
- how well the data fits Zipf's law (0…1)
- the share of the total held by the top item (%), %
- what the second-ranked value should be under Zipf's law
Examples
Ten products by falling sales
| the exponent of the rank distribution (~1 is classic Zipf) | 1.0137 |
| how well the data fits Zipf's law (0…1) | 0.999 |
| the share of the total held by the top item (%) | 33.8983 % |
| what the second-ranked value should be under Zipf's law | 500 |
The seven largest cities by population, from 8.4 to 1.4 million
| the exponent of the rank distribution (~1 is classic Zipf) | 0.932 |
| how well the data fits Zipf's law (0…1) | 0.988 |
| the share of the total held by the top item (%) | 38.5321 % |
| what the second-ranked value should be under Zipf's law | 4,200,000 |
Example numbers are checked against an independent calculation. The AI in Numo does not compute: it only parses your question; a deterministic engine does the maths.
Careful
When the exponent is near 1, the second item is half the first, the third a third — classic Zipf. A big deviation is itself informative: it means the market or language works differently.
Typical mistakes
- Entering values not in descending order.
- Expecting a perfect law on a small sample.