The shape a random partition takes
Worth reading first: The size of a number with no formula · A diagram turned on its side.
The number of partitions of has no formula but has a size: it grows like divided by , accurately enough that rounding a few terms of the refinement gives the exact count. For the count is , about . That essay asked how many there are. This one asks what a typical one looks like.
The answer is one of the most surprising facts about partitions, and one of the easiest to see. Pick a partition of uniformly at random from all of them, draw its Ferrers diagram — a row of dots for each part, longest first — and shrink it by in both directions. The staircase it makes is almost exactly the curve
Pick another and the same thing happens. Among the partitions, all but a vanishing fraction have this shape. Anatoly Vershik proved it in 1996, and Harold Temperley had found the curve in 1952, from a model of crystal surfaces rather than from number theory.
Many random partitions, one curve
The outlines differ in detail — one has an unusually long first part, another a few extra ones at the end — and agree in shape. Each is a staircase that starts high and steep near the vertical axis, where the largest parts are, bends through a corner near , and runs out long and flat along the horizontal axis, where the many small parts are. The curve through them is the same for all four.
Choosing a partition uniformly at random is not as easy as choosing a number at random, and it is worth saying how the figure does it, because the method explains the curve. Treat each possible part size independently, and choose how many times it appears — its multiplicity — from a geometric distribution with parameter , where . The total is then a random number close to , and every partition of that total is equally likely, because the probability of a given set of multiplicities is proportional to raised to the total. Keep only the samples whose total is exactly — about one in three hundred and fifty, for — and the result is uniform on the partitions of . This is Boltzmann sampling, named for the physics it comes from, and the independence of the multiplicities is the key to the shape.
The rejection rate is itself a small measurement. The random total spreads about with a standard deviation that grows like — the multiplicities are independent, and their variances add up to about times a constant — so the chance that it lands exactly on is of order . For , is about one in a hundred and eighty, and the sampler’s observed one in three hundred and fifty is that rate times a constant close to a half. Choosing is choosing a temperature: closer to one makes larger totals likelier, and is exactly the temperature at which the average total is .
Why the curve is symmetric
The curve is unchanged when and are swapped, and it has to be, for a reason that has nothing to do with probability.
Turning a Ferrers diagram on its side — reading its columns instead of its rows — turns a partition into another partition of the same number, and turns the largest part into the number of parts. It is a one-to-one correspondence on the partitions of , so a uniformly random partition, turned over, is still a uniformly random partition. Every statement about the typical shape must therefore hold equally for the shape reflected in the diagonal. The figure counts the partitions of thirty both ways, by largest part and by number of parts, and the two tallies agree exactly at every size.
The symmetry pins down where the curve crosses the diagonal. On the diagonal , so , and . That crossing is the corner of the Durfee square — the largest square of dots that fits in the diagram’s corner — so the typical Durfee square has side about .
Where the curve comes from
The independence in the sampling method makes the curve computable in a few lines. Under the Boltzmann distribution, the number of parts equal to has mean . The number of parts that are at least — which is the height of the Ferrers diagram at column — is the sum of those means from upward. With and , each term is and the sum becomes an integral:
So the scaled height at is , which rearranges to . The constant is fixed by requiring the total to be , which means the area under the curve must be one: , and setting that to one gives . The is Euler’s sum of the reciprocal squares, , turning up because the area is a sum of terms in disguise.
That same is what put in the exponent of Hardy and Ramanujan’s formula for the count. The count and the shape come from one computation: the number of partitions is dominated by the shapes near this curve, and the curve is where the dominant term’s exponent is largest. The two constants are one constant.
The staircase smoothing
For small the diagram is visibly a staircase, and the resemblance to the curve is rough. As grows the steps shrink.
At fifty the diagrams are coarse and scatter visibly about the curve; at five thousand they hug it. Each step of the staircase is one dot, which is after scaling, so the steps vanish at that rate. The random wobble of the outline about the curve vanishes more slowly: Boris Pittel showed in 1997 that it is of order after scaling, and approximately Gaussian at each point. So the limit shape is a law of large numbers, and its fluctuations obey a central limit theorem, exactly as the average of many coin tosses does — except that here the “average” is a whole curve.
How many ones, and how many of each
The same independence answers a question that sounds harder than it is: how many parts equal to does a random partition have? Under Boltzmann sampling the multiplicity of is geometric with mean , which for is very nearly . For that predicts . The exact average, over all partitions — computable because the number of partitions of with at least ones is just — is .
More generally the number of parts equal to is roughly geometric with mean : about for small , falling off exponentially once is a sizeable multiple of . So a typical partition of has about twenty-five ones, twelve twos, eight threes, and then fewer and fewer of each larger size, with the last few parts appearing once or not at all. That profile, integrated up, is the curve. It is the pattern of a gas at a low temperature, where each energy level holds a number of particles that falls off with its energy — the same that Planck wrote down in 1900 for the light inside a heated box, where the energy levels are the frequencies and the parts are photons.
The largest part
The curve says nothing about the very largest parts, because they sit near the vertical axis where the curve shoots up to infinity. The largest part of a random partition is a separate question, and it has a separate and older answer.
Paul Erdős and Joseph Lehner showed in 1941 that the largest part is about , with fluctuations of order that follow the Gumbel distribution — the law of the maximum of many independent quantities, which is what the largest part is, under Boltzmann sampling: the largest with a nonzero multiplicity. For the centre is and the scale , and the exact distribution, counted from the numbers of partitions with all parts at most , follows the Gumbel curve to within . The fit improves as grows — the figure checks that the gap shrinks from to to — but slowly, and at any size a small shift remains.
The largest part grows like , faster than the scaling of the shape, which is exactly why the curve’s vertical axis is an asymptote. And by the symmetry of the previous section, the number of parts has precisely the same distribution: half of all partitions of have a largest part of at most , and half have at most parts.
The Durfee square, exactly
The corner of the shape can be checked without sampling at all, because the Durfee square has an exact count.
A partition with Durfee square of side is the square, plus a partition into parts of size at most hanging below it, plus the mirror image — a partition with at most parts — to its right. So the number of partitions of with Durfee side is a convolution of two counts of restricted partitions, and summing times that count over gives the average side exactly. The figure checks that the counts over all add up to , which confirms that every partition is counted exactly once, and then plots the average side divided by . It falls steadily towards , the crossing point of the curve — the shape’s corner predicted by the symmetry argument, reached by pure counting. This is the same square that the essay on the diagram turned on its side used to prove identities; here it measures where every large partition bends.
Counting by the corner square
The Durfee decomposition used above is also an identity, and it is worth writing down because it points straight at the next essay. A partition is its Durfee square, of side , together with a partition into parts at most below it and a partition into at most parts beside it. Partitions into parts at most are counted by , and by conjugation so are partitions into at most parts. So, counting by the corner square,
The left side is the product that holds every partition; the right side sorts them by where the diagram bends. The is the square itself. Replace the square by a staircase of rows — , which also adds up to — and remove one of the two flanking partitions, and the same bookkeeping produces the sum side of the Rogers–Ramanujan identities, . The corner of the typical shape and the most famous identity in the subject are built from the same square number of dots.
Partitions into different parts have a different shape
Restrict to partitions whose parts are all different and the shape changes, which is a useful check that the curve is not an artefact of scaling. Under Boltzmann sampling each part size now appears zero times or once, with probability of appearing, and the same integral gives the curve with , the constant now coming from Euler’s alternating sum . The new curve meets one axis at a finite height instead of running off to infinity: since no part can repeat, the number of parts cannot pile up, and a random partition into distinct parts has about parts, where an unrestricted one has about times a constant, which is larger for every large . These partitions are also far rarer: of the partitions of , only have all their parts different, a fraction of about . So the distinct-part partitions are a thin, differently shaped slice of the whole, and a uniformly random partition essentially never lands in it. Euler’s theorem that partitions into distinct parts are as numerous as partitions into odd parts means the odd-part partitions share that count — and, pleasingly, not that shape.
The same curve elsewhere
Temperley found the curve in 1952 in a model of how a crystal grows: a corner of a crystal, built of cubes stacked into a staircase, whose surface at equilibrium takes exactly this shape. A Ferrers diagram is such a staircase — the dots are cubes seen end-on — and the uniform distribution on partitions is the equilibrium of a crystal with no preference for any arrangement. The same mathematics describes Bose–Einstein statistics: the multiplicities of part sizes are the occupation numbers of energy levels, geometric because any number of indistinguishable bosons may share a level, and the limit shape is the energy distribution of a cold gas.
In three dimensions the analogue is the plane partition — cubes stacked in the corner of a room — and a random large one has a limit shape too, computed by Andrei Okounkov and Nicolai Reshetikhin in 2003: a curved surface with a frozen flat region near each wall and a disordered region in the middle, separated by a curve. And for random partitions under a different distribution, the Plancherel measure that arises from counting Young tableaux, the limit shape is a completely different curve, found by Vershik and Kerov and independently by Logan and Shepp in 1977. Its fluctuations at the edge are those of the largest eigenvalue of a random matrix, which is how the longest increasing subsequence of a random permutation acquired its famous wobble.
What the samples cannot show
They cannot show uniformity at the scale of all partitions. The figures draw a few samples; that almost all of the partitions of lie near the curve is Vershik’s theorem, and a handful of samples is evidence, not a proof. The exact counts — the largest-part distribution, the Durfee averages, the conjugation symmetry — are complete for the sizes they cover.
They cannot show the limit. At every finite the Gumbel fit is off by a few hundredths and the Durfee ratio is above its limit by a few thousandths. The limits are theorems; the figures show the approach, and the slowness of the approach is itself part of what they show.
And they cannot show the fluctuations’ shape. Pittel’s Gaussian fluctuations of order are quoted; eight samples at three sizes show the distance shrinking, not its distribution.
Where the shape leads next
The shape describes a partition’s size profile and says nothing about its arithmetic — which partitions have parts differing by at least two, or all parts leaving one on division by five. Those restricted families have their own counts, and some of them agree with each other for reasons no shape can explain. The most famous such agreement, the pair of identities Rogers and Ramanujan found, has been named in these essays since the product that hides every partition and never developed. It is the next essay.
A shape out of noise
A uniformly random partition of a large number , shrunk by , is almost certainly close to the curve with . The curve comes from treating each part size’s multiplicity as an independent geometric random variable, and its constant from making the area one — which brings in Euler’s and is the same constant as in Hardy and Ramanujan’s count.
Turning diagrams over makes the curve symmetric, so it crosses the diagonal at , the typical Durfee square’s side over , confirmed by exact counting. The largest part escapes the curve, growing like with Gumbel fluctuations, and the whole staircase smooths as grows, its wobble shrinking like .
Uniform randomness over an enormous set is often not formless at all — count the set cleverly, and the typical member has a shape.
What links here
Computed from the collection, not written here: the essays that point at this one.
Reads more easily once this is understood
Essays that name this one as worth reading first.
Shares its objects with
Essays that name at least two of the same things, and that neither author linked.
- A polynomial that counts — both name generating function, partition
- The coefficient that is a polynomial — both name generating function, partition
- The equation a sequence satisfies — both name asymptotics, generating function
- The terms that cancel almost everything — both name generating function, partition
Named objects
A dashed tag is an object no other essay names yet.
AsymptoticsConjugate partitionDurfee squareFerrers diagramGenerating functionLimit shapePartitionPiProbability distribution