Mathwords logoMathwords

Rank–Size Distribution — Definition, Formula & Example

The rank–size distribution is a pattern in which the second-largest item is about half the size of the largest, the third-largest about one-third, and so on. It describes many real datasets, such as city populations and word counts in a book.

Order NN items so that S(1)≥S(2)≥⋯≥S(N)S(1) \ge S(2) \ge \dots \ge S(N). The data follow a rank–size distribution when S(r)∝r−qS(r) \propto r^{-q} for some exponent q>0q > 0. Equivalently, log⁡S(r)=log⁡S(1)−qlog⁡r\log S(r) = \log S(1) - q \log r, so a plot of log⁡S\log S against log⁡r\log r is a straight line with slope −q-q. Zipf's law is the case q=1q = 1. In its probability form, the chance that a randomly chosen unit belongs to the rank-rr item is P(r)=r−s∑k=1Nk−sP(r) = \dfrac{r^{-s}}{\sum_{k=1}^{N} k^{-s}}, with ss close to 1. This is an empirical regularity, not a theorem. Real data fit it only approximately, and usually only across the upper ranks.

Key Formula

S(r)=S1rqS(r) = \frac{S_1}{r^{q}}
Where:
  • S(r)S(r) = Size (population, frequency, count) of the item with rank r
  • S1S_1 = Size of the largest item, rank 1
  • rr = Rank, a positive integer with 1 for the largest item
  • qq = Exponent controlling how fast sizes fall off. Zipf's law uses q = 1

Worked Example

Problem: In a long novel, the most common word appears 6,000 times. Assume Zipf's law holds (q=1q = 1). Predict how often the 3rd- and 4th-ranked words appear. Then find the rank of a word that appears 500 times.
Step 1: Substitute S1=6000S_1 = 6000 and r=3r = 3 into the formula.
S(3)=60003=2000S(3) = \frac{6000}{3} = 2000
Step 2: Repeat with r=4r = 4. The drop from rank 3 to rank 4 is much smaller than the drop from rank 1 to rank 2.
S(4)=60004=1500S(4) = \frac{6000}{4} = 1500
Step 3: Set S(r)=500S(r) = 500 and solve for rr.
6000r=500  ⟹  r=6000500=12\frac{6000}{r} = 500 \implies r = \frac{6000}{500} = 12
Answer: The model predicts about 2,000 uses of the 3rd-ranked word and 1,500 uses of the 4th-ranked word. A word used 500 times should rank about 12th.

Visualization

Why It Matters

AP Human Geography and urban economics courses use the rank–size rule to judge whether a country's cities form a balanced hierarchy. A primate city far larger than the rule predicts signals imbalance. In linguistics and data science, Zipf's law helps you estimate vocabulary size, design text compression, and model website or search-query traffic, where a few items take most of the volume.

Common Mistakes

Mistake: Assuming each item is half the size of the one ranked just above it, so rank 3 is one-quarter of rank 1.
Correction: Under Zipf's law, sizes follow S1/rS_1/r, not S1/2r−1S_1/2^{r-1}. Rank 3 is one-third of rank 1, and rank 4 is one-quarter. The ratios between neighboring ranks approach 1 as rr grows, so the tail falls off slowly.

Related Terms