Probability

Two thresholds, not one

A random graph acquires a piece holding most of its points at average degree one, and is still not connected. Connectivity waits until the average degree reaches the logarithm of the size, and what holds it up is the very last isolated point.

Worth reading first: The moment everything joins up · The moment a giant appears.

The previous rung locates the moment a random graph acquires a giant component: average degree one. It is easy to read that as the moment the graph “joins up”, and it is not.

At average degree two the giant holds about eighty per cent of the points, at three about ninety-four, and at neither is the graph connected. The share missing shrinks exponentially and never reaches zero, and connectivity requires it to — which is the difference between a statement about a proportion and a statement about every member, and the whole of this rung.

One piece, and connected, are different thresholds. Two curves against the average degree for graphs of 400 points: the largest component's share, rising from an average degree of one, and the probability of connectivity, rising only near the logarithm of the point count.
Fig. 1 Two curves over graphs of four hundred points: the share in the largest piece, which climbs from nothing at an average degree of one, and the chance the whole graph is connected, which stays at nothing until an average degree near the logarithm of the point count. Between them the graph is nearly all one piece and not connected.

The last obstruction

What stops a graph with a ninety-four per cent giant from being connected is not a second large piece — the previous rung’s duality rules that out. It is the small pieces, and overwhelmingly the smallest possible: single points with no edges at all.

The expected number of them is easy. A given point is isolated when all n1n-1 of its possible edges are absent, which has probability (1p)n1(1-p)^{n-1}. With p=c/np = c/n that is approximately ece^{-c}, so the expected count is

nec.n \, e^{-c}.

That is the whole calculation, and everything follows from setting it against one.

At c=3c = 3 and n=1000n = 1000 the expected count is about fifty — fifty isolated points, and a graph with even one is not connected. To bring the expectation below one requires ec<1/ne^{-c} < 1/n, that is c>lognc > \log n, which at a thousand points is about seven.

So the connectivity threshold is at c=lognc = \log n, seven times further along than the giant’s, and the two thresholds are not close. At a million points the factor is fourteen; at a billion, twenty-one. The gap grows without limit, which is the sharpest statement of how different the two properties are: no fixed amount of extra connectivity ever suffices, because the requirement grows with the size and the giant’s does not.

Why the expectation is enough

Turning an expected count into a probability needs two arguments, one easy and one less so, and they are the standard pair.

If the expectation is small, the probability is small. That is Markov’s inequality: a non-negative count with expectation μ\mu is at least one with probability at most μ\mu. So above c=logn+ωc = \log n + \omega for any growing ω\omega, the chance of an isolated point tends to zero.

If the expectation is large, the probability is large — but only with a second-moment argument, because a large expectation is compatible with the count being zero almost always and enormous occasionally. A lottery has a large expected payout and pays nothing almost always. Here the isolated points are nearly independent, the variance is close to the mean, and Chebyshev’s inequality gives what is wanted: the count is within a constant factor of its mean with probability tending to one, so a mean above one forces a positive count.

Both directions are needed and only the first is free. The pattern — first moment for the upper bound, second moment for the lower — is the standard method for locating a threshold, and it works here because the events are nearly independent.

There is one further step. Ruling out isolated points does not by itself give connectivity: a graph could split into two large pieces without any isolated point. That it does not is the substantive part of the theorem, and it is proved by counting the ways a graph can split — the expected number of splits into pieces of size kk and nkn-k is small for every kk once cc exceeds logn\log n.

The count is worth a sentence because it is where the argument could have failed. There are (nk)\binom{n}{k} ways to choose the smaller side, and each requires all k(nk)k(n-k) edges between the sides to be absent, with probability (1p)k(nk)(1-p)^{k(n-k)}. Multiplying and summing over kk from one to n/2n/2, the terms are largest at k=1k = 1 — which is the isolated points — and fall away rapidly. The binding case is the smallest one, and that is why the isolated points decide the threshold.

So isolated points are the binding obstruction rather than the only conceivable one, which is why the threshold is exactly where they vanish.

Connected, against merely having no point left out — 6 points. Two exact probability curves for a random graph on a few labelled points: the chance it is connected and the chance no point is isolated, with the gap between them shaded.
Fig. 2 The count of isolated points as the edge chance rises, which is what the threshold is really about. The count falls as necn e^{-c} and the graph is connected only once it reaches zero, which is a much later moment than the one at which most of the graph is in one piece.

The coupon collector, arriving again

The appearance of a logarithm should be recognised, because it is the same logarithm as in a much more familiar problem.

Collecting nn kinds of coupon, one at a time uniformly at random, takes about nlognn \log n draws to get them all — the coupon collector’s answer — and the reason is that the last few kinds are individually unlikely and there are many of them. The expected number of kinds still missing after mm draws is n(11/n)mnem/nn(1-1/n)^m \approx ne^{-m/n}, which reaches one at m=nlognm = n\log n.

That is the same expression with the same reasoning. A random graph’s isolated points are the coupons not yet collected; each edge is a draw that covers two of them; and the threshold is where the expected number missing reaches one.

The general principle is worth stating: a threshold at logn\log n is a signature of “the last of many independent rare events”, and wherever it appears the underlying calculation is nn times a small probability set against one.

That also explains the sharpness. The number of isolated points near the threshold is approximately Poisson, so the probability of connectivity is approximately eμe^{-\mu} where μ\mu is the expected count — a smooth function of cc that moves from nearly zero to nearly one over a range of cc of order one around the threshold, which is a vanishing fraction of logn\log n. The transition is sharp relative to where it happens, which is the sense in which every threshold in this subject is sharp.

The Poisson approximation there is worth trusting for a specific reason: isolated points are a collection of rare, nearly independent events, and a count of such events is Poisson by the standard limit. That gives more than a threshold — it gives the whole curve, exp(nec)\exp(-ne^{-c}), which is the shape the connectivity measurement traces.

One piece, and connected, are different thresholds. Two curves against the average degree for graphs of 200 points: the largest component's share, rising from an average degree of one, and the probability of connectivity, rising only near the logarithm of the point count.
Fig. 3 The same two curves on smaller graphs. The giant’s threshold is at one whatever the size; the connectivity threshold moves with the logarithm of the point count, so it sits closer here. The gap between the two grows without limit as the graphs grow.
The moment a giant piece appears. The largest component's share of 900 points plotted against the average degree, with the measured values as dots and the predicted curve behind them. The curve is flat at zero below an average degree of one and rises steeply above it.
Fig. 4 The earlier threshold, for comparison. The giant’s share reaches ninety-four per cent at average degree three, at which point the connectivity curve of the hero is still flat at zero — the two figures measure different things about the same graphs and disagree completely about when the graph has joined up.

Reading the two measurements together is the rung in one gesture. At average degree three, ninety-four per cent of the points are in one piece and the probability of connectivity is essentially nought. Both statements are about the same graphs and both are correct, and anybody who had only the first would conclude the graph was connected.

That is a general hazard of summary statistics. “The largest component holds most of the graph” is a fact about the bulk and says nothing about the tail, and connectivity is entirely a fact about the tail.

The hitting-time version, which is the sharpest statement

There is a way of stating the result that is stronger than either threshold and is the reason this is one of the prettiest theorems in the subject.

Add edges one at a time in a uniformly random order and watch two moments: the moment the last isolated point acquires an edge, and the moment the graph becomes connected.

They are the same moment, with probability tending to one.

That is Bollobás and Thomason’s hitting-time theorem, and it says the obstruction is not merely the binding one asymptotically — it is the only one, in the strongest sense. The graph is disconnected because of an isolated point, right up to the instant it is not.

Its proof is the counting argument above sharpened: every other way of being disconnected has expected count tending to zero at the moment the last isolated point disappears, so nothing else can be responsible.

Stating it as a coupling of two moments rather than as a coincidence of two thresholds is worth the effort because the two are genuinely different claims. Two thresholds coinciding says the probabilities cross at the same place; two hitting times coinciding says that in almost every single realisation, the same edge does both jobs. The second implies the first and the first does not imply the second, and results of the stronger kind are what a subject produces once it understands its objects rather than only their statistics.

A result of that form is worth recognising as a type. It replaces “these two thresholds coincide” with “these two events coincide”, which is a statement about a single random object rather than about two probabilities, and it is much stronger.

Connected, against merely having no point left out — 5 points. Two exact probability curves for a random graph on a few labelled points: the chance it is connected and the chance no point is isolated, with the gap between them shaded.
Fig. 5 The isolated-point calculation at a size where it can be checked exhaustively. Every graph on five points is enumerated, the isolated points counted, and the expected number compared against the formula — which is the same formula the threshold argument uses at a thousand points, verified where verification is possible.

Checking the formula at five points and applying it at a thousand is the ordinary relationship between an exact small case and an asymptotic argument, and it is worth being clear about which part is being checked. The expectation n(1p)n1n(1-p)^{n-1} is exact at every size — it is a sum over points of a probability, and expectations add whatever the dependence. What is asymptotic is the approximation of that by necne^{-c}, and the deduction from the expectation to the probability.

The expectation is exact and its consequences are asymptotic, which is the usual division of labour in a first-moment argument.

Where the gap matters

The distance between the two thresholds is not a curiosity; it is the reason several practical questions have the answers they do.

A network can be well connected and unreliable. A communication network at average degree three has almost everything in one piece and a scattering of unreachable nodes. Designing for “most of the network works” and designing for “every node is reachable” are different problems with different costs, and the ratio between them is logn\log n.

Redundancy is cheap in the middle and expensive at the end. Going from average degree one to three takes the giant from nothing to ninety-four per cent; going from three to seven buys the last six per cent and connectivity. In edge counts that is a doubling of the network’s cost to gain the last sliver, and at larger sizes the ratio is worse. Most of the cost is spent on the last few points, which is a general feature of coverage problems and is why guarantees of the form “every one” are so much more expensive than “almost all”.

A guarantee of connectivity has to be paid for in the worst place. The nodes that are hard to connect are the ones with few opportunities, and adding edges uniformly is the least efficient way to reach them. Any design that can direct its edges — connect the isolated nodes deliberately — beats the random model by the whole factor of logn\log n, which is the practical reason real networks are not built at random.

And random graphs are a poor model where the last points matter. Real networks have degree distributions with heavy tails, so isolated points are much rarer than the random model predicts, and the connectivity threshold in a heavy-tailed network is much earlier. Using the random model to price reliability would be pessimistic by a large factor.

The same shape in three other places

A threshold at logn\log n produced by “the last of many rare events” is common enough to be worth recognising on sight.

Covering a set by random subsets. Throwing random subsets of a given density at an nn-element set until every element is covered takes logn\log n times as many as coverage of a constant fraction does, for the identical reason: the last elements are individually unlikely and there are many of them.

Every bin occupied. Throwing balls into nn bins until none is empty takes nlognn\log n balls, which is the coupon collector exactly. The related question of the fullest bin has a different and stranger answer, of order logn/loglogn\log n / \log\log n, which is the same calculation run at the other tail.

And the birthday problem, inverted. The famous version asks when a collision becomes likely, which happens at n\sqrt{n} draws; asking when every value has been seen is the coupon collector at nlognn\log n. The same nn objects give a threshold at the square root for one question and at nlognn \log n for another, and the gap between them is the difference between a first collision and a last omission.

The unifying calculation is the same throughout: set nn times a small probability against one, and the threshold is where the small probability is 1/n1/n. Whenever that is the structure, a logarithm appears and the interesting behaviour is entirely at the tail.

What the pictures cannot show

Four hundred points is a small graph, and the two thresholds are close there for exactly that reason. The two thresholds are at one and about six, so the gap is a factor of six; at a million points it is a factor of fourteen; and the statement being illustrated is that the ratio grows without limit. A figure at any single size shows a gap and not a growing one.

The connectivity curve is a probability estimated from samples. Each point is a proportion over a handful of graphs, so the curve is noisy where it is steep — which is precisely where it matters. The count of isolated points is the smoother and more informative quantity, and the figure checks it against necne^{-c} at every value where the approximation applies, which is a stronger statement than the connectivity curve makes.

The isolated-point count is exact and the connectivity is sampled, and the two are drawn at different sizes. That is deliberate — the count is smooth and the probability is noisy — and it means the two figures cannot be laid over each other, so the claim that the count reaching zero is what makes the graph connected has to be taken from the prose.

And the hitting-time theorem has no figure at all. It is a statement about two random moments in a single evolving graph being equal, which would need a picture of one graph over time with two marked instants, and the instants coincide — so the picture would show one mark and would not display that it is two.

Where the ladder goes next

The next rung asks the general question these two thresholds are instances of: given any property, where is its threshold, and how is one found? The method is two moments, and the triangle is the example on which it is cleanest.

Named here as debts. The hitting-time theorem’s proof, described above and not given. And the connectivity of random graphs with prescribed degrees, which is the model that fits real networks and where the isolated-point calculation is replaced by a different one.

Sideways, the logarithm is the coupon collector’s, the concentration that turns an expectation into a probability is the deviation bound, the giant whose appearance is the earlier threshold is the previous rung’s, and the original observation is the anchor’s first.

Sideways: how long until every one turns up is the coupon-collector count this threshold is built from, and more things than boxes is the counting principle underneath the first-moment half of the argument.

What is worth carrying away

Two properties that seem to be the same property can have thresholds a factor of logn\log n apart, and the gap is where the interesting engineering lives.

“Mostly joined up” happens at average degree one and “entirely joined up” at logn\log n, and in between sits a graph that is ninety-something per cent one piece with a dust of isolated points. Nothing about the informal description distinguishes the two, and the calculation that separates them is one line: the expected number of isolated points is necne^{-c}.

The habit worth taking is to ask what the last obstruction is. A property holding for almost everything and a property holding for everything differ by whatever is hardest to include, and identifying that thing usually gives the threshold immediately.

The same reading applies well beyond this graph model. Whenever a system is described as working almost everywhere, the question worth asking is what the last few failures have in common; the answer is usually a single small structure, and its expected count is the threshold. Isolated points here, uncovered cells elsewhere — the arithmetic is the same and so is the conclusion.