Tutorials › Graph Theory (Undergraduate) › Optimizing p for Asymmetric Ramsey Lower Bounds

The Probabilistic Method · Tutorial 592 of 799

Optimizing p for Asymmetric Ramsey Lower Bounds

Learn how to choose an edge probability that balances the two Ramsey obstructions and turns their expected counts into a rigorous lower bound.

Advanced 11 min read

What You'll Learn

  • Express the two obstruction counts in the Bernoulli random graph model.
  • Prove the first-moment criterion that yields a lower bound for \(R(s,t)\).
  • Choose an edge probability that equalizes the two expected counts.
  • Distinguish minimizing the larger obstruction from minimizing the total expectation.
  • Verify explicit probability choices in asymmetric examples.
  • Identify the common error of using the wrong probability for independent sets.

Two Competing Obstructions

To show that the Ramsey number \(R(s,t)\) is large, it is enough to construct a graph with no clique of size \(s\) and no independent set of size \(t\). A random graph offers two competing ways to fail: its edges can create an \(s\)-clique, while its nonedges can create an independent \(t\)-set. The edge probability \(p\) controls both risks, but in opposite directions. Choosing \(p\) well is therefore central to the asymmetric first-moment argument.

Throughout, graphs are finite and simple. For integers \(s,t\ge 2\), \(R(s,t)\) is the least integer \(N\) such that every graph on \(N\) vertices contains a clique of size \(s\) or an independent set of size \(t\). We use \(G(n,p)\): each of the \(\binom n2\) possible edges is included independently with probability \(p\), where \(0\le p\le1\). We will choose \(n\ge\max(s,t)\), so both types of obstruction can occur.

Definition: An \(s\)-clique is a set of \(s\) vertices with every pair adjacent. An independent \(t\)-set is a set of \(t\) vertices with no pair adjacent. Let \(X\) count the \(s\)-cliques in \(G(n,p)\), and let \(Y\) count its independent \(t\)-sets.

For any fixed set of \(s\) vertices, all \(\binom{s}{2}\) required edges must be present. For any fixed set of \(t\) vertices, all \(\binom{t}{2}\) possible internal edges must be absent. Independence of edge choices therefore gives the exact expectations

$$ \mathbb{E}X=\binom ns p^{\binom s2}, \qquad \mathbb{E}Y=\binom nt(1-p)^{\binom t2}. $$

The asymmetry is visible in both the binomial coefficients and the exponents. Increasing \(p\) raises the expected clique count and lowers the expected independent-set count. A probability that is effective for one obstruction may be poor for the other.

The First-Moment Criterion and the Balancing Choice

Theorem (first-moment Ramsey criterion): If \(n\ge\max(s,t)\), \(0\le p\le1\), and \(\binom ns p^{\binom s2}+\binom nt(1-p)^{\binom t2}<1\), then \(R(s,t)>n\).

Proof. Put \(Z=X+Y\), the total number of obstructions in \(G(n,p)\). Since \(X,Y\) are nonnegative integer-valued, \(Z\ge1\) whenever \(Z\ne0\). Thus \(\mathbb{E}Z\ge\Pr(Z\ge1)\). The stated hypothesis and linearity of expectation give \(\mathbb{E}Z=\mathbb{E}X+\mathbb{E}Y<1\), so \(\Pr(Z\ge1)<1\). Consequently \(\Pr(Z=0)>0\): there is a graph on \(n\) vertices with neither obstruction. By the definition of \(R(s,t)\), this implies \(R(s,t)>n\). \(\square\)

Write \(a=\binom{s}{2}\), \(b=\binom{t}{2}\), \(A=\binom ns\), and \(B=\binom nt\). The two expected counts are \(f(p)=Ap^a\) and \(g(p)=B(1-p)^b\). A natural balancing rule is to choose \(p\) so that \(f(p)=g(p)\).

Proposition: For \(s,t\ge2\) and \(n\ge\max(s,t)\), there is a unique \(p_*\in(0,1)\) satisfying \(\binom ns p_*^{\binom s2}=\binom nt(1-p_*)^{\binom t2}\). This choice minimizes the larger of the two expected counts.

Proof. The function \(f(p)=Ap^a\) is continuous and strictly increasing on \([0,1]\), while \(g(p)=B(1-p)^b\) is continuous and strictly decreasing there. At \(p=0\), \(f(0)=0< B=g(0)\); at \(p=1\), \(g(1)=0<A=f(1)\). The intermediate value theorem gives an intersection, and strict monotonicity makes it unique. Let its common value be \(q\). If \(p<p_*\), then \(g(p)>g(p_*)=q\); if \(p>p_*\), then \(f(p)>f(p_*)=q\). At \(p_*\), the larger of the two terms equals \(q\). Hence no other choice makes their maximum smaller. \(\square\)

The equation defines a specific choice of \(p\); for general \(s,t,n\) it need not have a simple closed form. It can be solved numerically by bisection, since the difference \(f(p)-g(p)\) is strictly increasing and changes sign between 0 and 1. Equalizing the terms minimizes their maximum, not necessarily their sum. For the first-moment criterion, the equalized choice succeeds whenever \(2q<1\). More generally, any convenient \(p\) works if the sum itself is less than 1.

When \(s=t\), the two coefficients and exponents agree, so symmetry gives \(p_*=\tfrac12\). For unequal parameters, the optimal balance usually shifts away from \(\tfrac12\): the appropriate direction and amount depend on both the numbers of candidate vertex sets and the edge requirements within each set.

Worked Examples

Worked Example: Balancing a Triangle Against an Independent 8-Set

Take \(n=8\), \(s=3\), and \(t=8\). Use the explicit choice \(p=\tfrac15\). Here \(\binom83=56\), \(\binom82=3\), and \(\binom88=1\), so

$$ \mathbb{E}X=56\left(\frac15\right)^3=\frac{56}{125}=0.448, \qquad \mathbb{E}Y=\left(\frac45\right)^{28}. $$

For a strict upper bound on the second term, \(0<\tfrac45<1\) and \(28>10\), so \((\tfrac45)^{28}<(\tfrac45)^{10}\). Direct computation gives \((\tfrac45)^{10}=\frac{1,048,576}{9,765,625}<0.108\). Thus \(\mathbb{E}X+\mathbb{E}Y<0.448+0.108=0.556<1\), and the criterion gives \(R(3,8)>8\).

Check: the independent-set term has coefficient \(\binom88=1\), since there is exactly one possible 8-vertex set. The clique term has coefficient \(\binom83=56\), as used above; its expectation is \(56/125\). Both counts refer to the same graph on eight vertices.

Worked Example: A Larger Clique and a Full-Order Independent Set

Let \(n=7\), \(s=4\), \(t=7\), and again choose \(p=\tfrac15\). There are \(\binom74=35\) candidate 4-sets, each requiring \(\binom42=6\) edges, and one candidate 7-set, requiring all \(\binom72=21\) internal edges to be absent. Therefore

$$ \mathbb{E}X=35\left(\frac15\right)^6=\frac{35}{15,625}=0.00224, \qquad \mathbb{E}Y=\left(\frac45\right)^{21}. $$

Since \(21>10\) and \(\tfrac45<1\), \((\tfrac45)^{21}<(\tfrac45)^{10}<0.108\). Hence \(\mathbb{E}X+\mathbb{E}Y<0.00224+0.108=0.11024<1\), proving \(R(4,7)>7\).

Check: the 4-clique probability is \(p^6=(1/5)^6\), not \(p^4\), because a 4-set has six possible edges. The independent-set probability uses the same six-edge principle with \(t=7\), giving \((1-p)^{21}\).

Worked Example: A Different Rational Choice

Consider \(n=9\), \(s=3\), and \(t=9\), with \(p=\tfrac16\). We have \(\binom93=84\), \(\binom32=3\), and \(\binom92=36\). The expectations are

$$ \mathbb{E}X=84\left(\frac16\right)^3=\frac{84}{216}=\frac7{18}, \qquad \mathbb{E}Y=\left(\frac56\right)^{36}. $$

Because \(0<\tfrac56<1\) and \(36>6\), \((\tfrac56)^{36}<(\tfrac56)^6=\frac{15,625}{46,656}<\tfrac12\); the last inequality follows from \(31,250<46,656\). Thus \(\mathbb{E}X+\mathbb{E}Y<\frac7{18}+\frac12=\frac{16}{18}=\frac89<1\), and \(R(3,9)>9\).

Check: there is exactly one candidate 9-set, and its probability of being independent is \((5/6)^{36}\). The 84 candidate triangles contribute \(84(1/6)^3=7/18\), as required by the clique expectation formula.

How to Use the Balance in Practice

For fixed \(n,s,t\), a systematic choice is to compare \(f(0)=0\) with \(g(0)=B\), and \(f(1)=A\) with \(g(1)=0\), then locate the unique crossing \(p_*\). Evaluate the common expectation \(q\). If \(2q<1\), the first-moment criterion applies immediately. If not, the criterion has not proved the desired lower bound; it does not show that no suitable graph exists. One can test another \(n\), use a different probability, or seek a stronger method.

For hand calculations, an exact root is not always necessary. A rational trial value for \(p\) may make one expectation easy to compute and the other easy to bound. The examples used powers such as \((4/5)^{28}\) and bounded them by smaller powers. Since the base lies strictly between 0 and 1, raising it to a larger exponent makes the value strictly smaller. Such a bound is useful only when the resulting sum still lies strictly below 1.

A common mistake is to assign probability \(p\) to the absence of an edge. In \(G(n,p)\), an edge is present with probability \(p\), so an edge is absent with probability \(1-p\). For example, in the first worked example the independent 8-set probability is \((4/5)^{28}\), not \((1/5)^{28}\). The latter would correspond to a different random graph model. Always count the required present edges for a clique and the required absent edges for an independent set separately.

The method matters because it turns a parameter choice into a proof rather than a guess. The two expected counts express the competing structural risks, and a successful choice makes the expected total number of obstructions less than one. The inequality is strict for a reason: it forces positive probability that the integer-valued obstruction count is zero.

Check Your Understanding

For each question, keep track of the number of candidate vertex sets and the probability required for each one.

  1. For \(G(10,p)\), write the expected number of 4-cliques and independent 6-sets.
  2. Explain why the equalizing probability minimizes the maximum of the two expected counts, but need not minimize their sum.
  3. For \(n=8,s=3,t=8\), what probability is assigned to a specified 8-set being independent?
  4. If a chosen \(p\) gives \(\mathbb{E}X+\mathbb{E}Y=1\), does the stated first-moment criterion apply? Explain the role of strictness.
  5. Why does \(\mathbb{E}(X+Y)<1\) imply that some graph has no obstruction?