First moment method Created 2026-09-24 Updated 2026-10-14
The first moment method uses the expected value of a count to control whether any counted occurrence exists. For a random variable taking nonnegative integer values, Markov's inequality gives
Consequently, implies , proving that an outcome with no counted occurrence exists. For a sequence of such counts, shows that with probability tending to one. The first moment method uses information about the average count, while the complementary second moment method also uses its variance.
A complete three-uniform hypergraph on four vertices has four edges. In the binomial random hypergraph , its count has mean . If , the first moment method gives . Two distinct four-sets have independent clique indicators unless they share three vertices; in that case their combined edge set has seven triples. There are such ordered pairs, so . Consequently if . The second moment method then gives . These two implications establish the threshold function.
Write and . The first mean condition implies eventually. For , this yields , and each fixed- term tends to zero when . The second mean condition implies eventually. Writing gives for , and . Both bounding series are summable. The overlap formula for the variance of a clique count therefore gives relative variance tending to zero; the second moment method proves an -clique exists with high probability.
Lyapunov moment inequality Created 2026-10-06 Updated 2026-10-14
The Lyapunov moment inequality says that higher positive absolute moments give no smaller absolute moment sizes on a probability space. For a real random variable and ,
allowing an infinite value. For the left expression is an Lp norm; below one it is a quasi-norm, so the usual triangle inequality terminology needs that distinction. The comparison uses a probability measure of total mass one; arbitrary unnormalized measure spaces need a factor depending on their total mass.
For a nonnegative count, the first moment size is its expected value, while the second is the square root of its second moment. Both ten-trial counts in second moment method have first moment size one. The independent count has second moment size , whereas the shared-outcome count has second moment size . The second moment distinguishes models with the same average because its square increases the influence of rare large counts.
More generally, for with a Bernoulli random variable of parameter ,
It rises from one at toward ten as . Replacing by a parameter gives , which decreases toward zero for a fixed positive exponent when , making the rare-event and large-exponent limits different questions. For a scaled Rademacher random variable taking values and two with equal probabilities, every absolute moment size is exactly two: increasing the exponent does not distinguish signs when the absolute value is constant.
Figure 1.
Lyapunov moment inequality reveals how higher moments emphasize large outcomes and when equality holds
. Left: the two original ten-trial models from second moment method have the same mean one, but different absolute moment sizes at exponents above one. The shared model has with . Right: equal masses at and two keep almost surely, giving equality for every pair of positive exponents. These are fully specified mathematical probability models. Details.
For finite , apply the reversed Jensen's inequality to the strictly concave function and the nonnegative random variable :
Taking the positive th root proves the claim. Equality in this finite case holds exactly when is constant almost surely. If the higher moment is infinite, the upper bound is infinite and remains valid. Exponent zero is excluded from the statement; logarithmic or geometric limiting summaries require separately stated conventions, especially when can vanish.
Overlap formula for the variance of a clique count Created 2026-10-06 Updated 2026-10-14
For the number of -cliques in a binomial random graph , with and ,
Two -sets overlapping in vertices share edges. Overlaps of zero or one vertex give independent indicators; includes the diagonal terms. The identity is useful for the second moment method.
The assumptions imply
Eventually , and implies . Thus Chebyshev's inequality gives
No independence between the different is needed; this is a second moment method.
For an indicator , . Covariances vanish for independent pairs. For dependent distinct pairs,
Expanding the variance, with ordered pairs as in the definition of , gives
For sufficiently large , . By Chebyshev inequality,
This is the second moment method: a vanishing relative variance makes a zero count unlikely.
Markov's inequality states that for and , . It follows by taking expectations in .
If has finite mean and variance , apply Markov to to obtain Chebyshev's inequality:
For the first moment method, assume . Nonnegative integer values give , so
For a standard second moment method, suppose eventually, the second moments are finite, and . Equivalently, . The zero event is contained in , so
Hence . The second-moment condition controls the fluctuations relative to the mean; a large mean alone is insufficient.
Let count the four-vertex sets spanning all four of their possible triples. For each such set , write for its indicator. Independence of the four hyperedges gives
If , then , and the first moment method shows that the probability of a four-clique tends to zero.
For the other direction, consider two distinct four-sets. If they meet in at most two vertices, they have no possible triple in common, so their indicators are independent. If they meet in three vertices, they share exactly one triple, so and their covariance is at most . There are ordered pairs of this latter type. The diagonal variances sum to at most , hence
For large , is a constant multiple of , and consequently
If , the first term tends to zero, and so does the second since . The second moment method proves that a four-clique exists with probability tending to one. Therefore a threshold function is
The shared-triple overlap, rather than overlaps in one or two vertices, is the only off-diagonal dependence that affects this computation.
Let count -cliques, and put . Since , the Markov inequality gives . Any larger clique contains an -clique, so it remains to prove with high probability.
We give the required growing-clique overlap bound explicitly. Set and, for ,
The quantity is the probability that a uniformly chosen -set overlaps a fixed -set in exactly vertices. Two clique indicators share exactly edge requirements, so their joint-to-product ratio is . Overlap zero or one gives independence. Hence the overlap formula for the variance of a clique count implies
We must bound this sum with allowed to grow.
Eventually and . Using , these inequalities give
For , a union bound over the selected shared vertices gives . Put . Since and ,
For each fixed , the first bound tends to zero if stays bounded, because its power of is negative. If , the middle bound tends to zero because . Thus each fixed- term tends to zero along arbitrary admissible sequences. The bounding series converges. Splitting at a fixed large index, then taking and the index to infinity, proves that the entire lower-half sum is .
For the upper half write . The exact diagonal comparison is
For , the second bound on gives
The last inequality uses : the exponent of in the bracket is negative, so substituting bounds it above. Uniformly for this range of , . Indeed , and concavity of , checked at and , gives . It follows that
Thus . The second moment method gives . Combining this with the absence of larger cliques proves
The restriction on is used in both overlap ranges; divergence of a clique count in a binomial random graph alone would not suffice for arbitrary growing .
When , the event implies . The Chebyshev inequality therefore gives
This is the second moment method for proving that a nonnegative count is positive.
Assume , as required for this nontrivial subcritical binomial random graph. Put . A breadth-first exploration of a binomial random graph is dominated by a Galton-Watson process whose offspring counts are independent random variables with law . If its total progeny is at least , the first offspring counts sum to at least . Their moment-generating function is bounded by that of a Poisson distribution of mean . The exponential Markov inequality, optimized at , yields
Taking for any fixed , a union bound over all starting vertices gives .
For the matching lower bound, let count tree components of order . The tree-component expectation in the Erdős-Rényi model is exactly
For , the Stirling formula gives
Choose , with . Then . Distinct overlapping vertex sets cannot both be graph components. For disjoint sets, the joint probability differs from the product only because the between-set edges were counted twice as absent. Thus
It follows that . The second moment method gives with high probability. Combining both bounds, and then taking arbitrarily small fixed , proves the sharp subcritical largest-component scale
Finally the Taylor expansion of gives . The endpoint has no edges and is excluded from this logarithmic asymptotic.
The Chebyshev inequality states that for a random variable with finite variance and ,
Write . The ratio in the hypothesis presupposes for all sufficiently large . On the event , the deviation from the mean equals . Thus the Chebyshev inequality with gives
This is the second moment method. It uses only the stipulated relative variance bound; no assumption that triangle indicators are independent is needed.
Let count the copies of the complete graph in the binomial random graph . By linearity of the expected value and independence of distinct edges,
Throughout, is sufficiently large that . We have , and .
First, since ,
The first moment method proves .
For the existence of a -clique, put and . Since ,
This alone is insufficient: we must control the variance via the overlap formula for the variance of a clique count. Let indicate that a given -set spans a clique. If , the two copies share edges, so
For their edge sets are disjoint and the covariance vanishes, even when they share one vertex. Counting ordered pairs of -sets gives the exact formula
This includes the diagonal case .
To bound the overlap factor, regard it as the probability that a uniformly chosen -set intersects a fixed in exactly vertices. A union bound over the possible specified -subsets of yields
Here is a falling factorial, and the last bound holds for . Therefore
For , the concave quadratic is minimized at an endpoint. Its endpoint values are and , both at least . Thus every power of in the last sum is at most , and
because the logarithm of its numerator is . The second moment method, or Chebyshev's inequality directly, gives . Finally, every larger clique contains a -clique, so the absence of excludes all larger sizes. The clique number is exactly with high probability:
Because is a nonnegative integer, its indicator function satisfies . Taking expected values proves the upper bound. The finite second moment also gives a finite expected value, by the Cauchy-Schwarz inequality. Applying that inequality to and gives
The assumed positive second moment permits division, yielding
The lower bound is the basic second moment method; the upper bound also follows from Markov's inequality at threshold one. Integer-valuedness is essential for that upper bound, but not for the lower bound. For example, a constant would violate the upper bound.
For events , the probabilistic inclusion-exclusion principle is
To prove it, fix an outcome lying in exactly events. Its total coefficient on the right is
by the binomial theorem; outcomes in no event contribute zero. Taking expectations of this pointwise indicator identity proves the formula. Truncating after the pair terms gives the Bonferroni inequalities
For the final bound, let and . The intersection assumption gives
The Cauchy-Schwarz inequality applied to yields . Therefore
so the required universal constant may be taken as . This is a second moment method estimate.
Let count copies of the complete graph in . Its expected value is
Write as a sum of indicator random variable. Indicators for two distinct copies are independent when the copies share at most one vertex, since their edge sets are then disjoint. Pairs sharing two vertices have eleven edges in their union, while pairs sharing three have nine. It follows that
Thus . By the second moment method, in probability, so . This is the sparse clique-count concentration estimate.
If , then . Hence the Chebyshev inequality gives
The assumed limit therefore proves
This is the second moment method in its simplest form.
For a nonnegative random variable with positive expected value and finite second moment, write . The Cauchy-Schwarz inequality gives
which proves the bound in second moment method. It is the zero-threshold case of the Paley-Zygmund inequality. Equality occurs when is a fixed positive value on the event and zero elsewhere, almost surely. For with a Bernoulli random variable of parameter , equals the exact positivity probability.
The variance identity turns the lower bound into a statement about variance relative to the squared mean. A small ratio forces positivity to be likely. A positive expected value alone does not do so: keeping while taking with probability and zero otherwise makes the positivity probability as small as any chosen .
Second moment method Created 2026-09-24 Updated 2026-10-14
The second moment method uses a random variable's expected value and second moment to establish that a counted or measured quantity is positive with substantial probability. It is useful when a positive average alone could be caused by extremely large values on very rare outcomes. Controlling the variance rules out too much of that concentration in rare outcomes.
For a nonnegative random variable with and finite second moment, the second-moment bound for positivity gives
Equivalently, . The method also includes the simpler Chebyshev's inequality bound . Thus a sequence of such random variables with has with probability tending to one. These statements require no independence assumption. The variance argument and its use for random counts are developed in Zhao's lecture notes. [ref].
For an original toy count, let count successes in ten independent Bernoulli trials with success probability . The binomial distribution gives
Consequently . The exact probability is . The first moment method and union bound only give the upper bound here. First and second moments therefore answer complementary existence questions.
Figure 1.
The second moment method certifies a positive count, while statistical dependence can change the conclusion despite an unchanged mean
. Left: exact binomial distribution probabilities of at least one success and second-moment lower bounds for ten independent trials as the success probability varies. Right: the same ten trials with either occur independently or share one common Bernoulli outcome. Both counts have mean one, but the perfectly linked count has much larger variance and only probability of being positive. All data are original specified probability models. Details.
For a sum of indicator random variables, the variance of a sum is
Independence makes the covariances vanish, but the formula itself also covers dependent counts. For the same ten success probabilities, let every trial share a single Bernoulli random variable : then , with mean one, variance nine, and . The second-moment lower bound is exactly . Ignoring the positive covariances would produce the false independent-count conclusion. Zhao's discussion of sums of indicators explains why overlapping counted structures require these pairwise terms. [ref].