# Dependent random choice

In mathematics, dependent random choice is a probabilistic technique that shows how to find a large set of vertices in a dense graph such that every small subset of vertices has many common neighbors. It is a useful tool to embed a graph into another graph with many edges. Thus it has its application in extremal graph theory, additive combinatorics and Ramsey theory.

## Statement of theorem

Let $u,n,r,m,t\in \mathbb {N}$, $\alpha >0$ and suppose: $n\alpha ^{t}-{n \choose r}\left({\frac {m}{n}}\right)^{t}\geq u.$Every graph on $n$ vertices with at least ${\frac {\alpha n^{2}}{2}}$ edges contains a subset $U$ of vertices with $|U|\geq u$ such that for all $S\subset U$ with $|S|=r$, $S$ has at least $m$ common neighbors.

## Proof

The basic idea is to choose the set of vertices randomly. However, instead of choosing each vertex uniformly at random, the procedure randomly chooses a list of $t$ vertices first and then chooses common neighbors as the set of vertices. The hope is that in this way, the chosen set would be more likely to have more common neighbors.
Formally, let $T$ be a list of $t$ vertices chosen uniformly at random from $V(G)$ with replacement (allowing repetition). Let $A$ be the common neighborhood of $T$. The expected value of $|A|$ is${\begin{aligned}\mathbb {E} |A|&=\sum _{v\in V}\mathbb {P} (v\in A)=\sum _{v\in V}\mathbb {P} (T\subseteq N(v))=\sum _{v\in V}\left({\frac {d(v)}{n}}\right)^{t}\\&\geq n\left({\frac {1}{n}}\sum _{v\in V}{\frac {d(v)}{n}}\right)^{t}\quad {\text{(convexity)}}\\&\geq n\alpha ^{t}.\end{aligned}}$For every $r$-element subset $S$ of $V$, $A$ contains $S$ if and only if $T$ is contained in the common neighborhood of $S$, which occurs with probability (#common neighbors of S/n)$^t$.{\textstyle \left({\frac {\#{\text{common neighbors of }}S}{n}}\right)^{t}.} An $S$ is bad if it has less than $m$ common neighbors. Then for each fixed $r$-element subset $S$ of $V$, it is contained in $A$ with probability less than $(m/n)^{t}$. Therefore by linearity of expectation,$\mathbb {E} [\#{\text{bad }}r{\text{-element subset of }}A]<{\binom {n}{r}}\left({\frac {m}{n}}\right)^{t}.$ To eliminate bad subsets, we exclude one element in each bad subset. The number of remaining elements is at least $|A|-(\#{\text{bad }}r{\text{-element subset of }}A)$, whose expected value is at least nα$^t$−(n/r)(m/n)$^t$≥u.{\textstyle n\alpha ^{t}-{\binom {n}{r}}\left({\frac {m}{n}}\right)^{t}\geq u.} Consequently, there exists a $T$ such that there are at least $u$ elements in $A$ remaining after getting rid of all bad $r$-element subsets. The set $U$ of the remaining $u$ elements expresses the desired properties.

## Applications
### Turán numbers of a bipartite graph

Dependent random choice can help find the Turán number. Using appropriate parameters, if $H=A\cup B$ is a bipartite graph in which all vertices in $B$ have degree at most $r$, then the extremal number ${\text{ex}}(n,H)\leq cn^{2-1/r}$ where $c=c(H)$ only depends on $H$.
Formally, with $a=|A|,b=|B|$, let $c$ be a sufficiently large constant such that $(2c)^{r}-(a+b)^{r}\geq a.$ If $\alpha =2cn^{-1/r},m=a+b,t=r,u=a$ then
$n\alpha ^{t}-{\binom {n}{r}}\left({\frac {m}{n}}\right)^{t}=(2c)^{r}-{\binom {n}{r}}\left({\frac {a+b}{n}}\right)^{r}\geq (2c)^{r}-(a+b)^{r}\geq a=u,$and so the assumption of dependent random choice holds. Hence, for each graph $G$ with at least $cn^{2-1/r}$ edges, there exists a vertex subset $U$ of size $a$ satisfying that every $r$-subset of $U$ has at least $a+b$ common neighbors. By embedding $H$ into $G$ by embedding $A$ into $U$ arbitrarily and then embedding the vertices in $B$ one by one, then for each vertex $v$ in $B$, it has at most $r$ neighbors in $A$, which shows that their images in $U$ have at least $a+b$ common neighbors. Thus $v$ can be embedded into one of the common neighbors while avoiding collisions.
This can be generalized to degenerate graphs using a variation of dependent random choice.

### Embedding a 1-subdivision of a complete graph

DRC can be applied directly to show that if $G$ is a graph on $n$ vertices and $\epsilon n^{2}$ edges, then $G$ contains a 1-subdivision of a complete graph with $\epsilon ^{3/2}n^{1/2}$ vertices. This can be shown in a similar way to the above proof of the bound on Turán number of a bipartite graph.
Indeed, if we set $\alpha =2\epsilon ,m=a^{2},t={\frac {\log n}{2\log 1/\epsilon }},u=a$, we have (since $2\epsilon =\alpha \leq 1$)$n\alpha ^{t}-{\binom {n}{r}}\left({\frac {m}{n}}\right)^{t}\geq (2\epsilon )^{t}n-{\binom {n}{2}}\epsilon ^{3t}\geq n^{1/2}\geq a=u,$and so the DRC assumption holds. Since a 1-subdivision of the complete graph on $a$ vertices is a bipartite graph with parts of size $a$ and $b={\binom {a}{2}}$ where every vertex in the second part has degree two, the embedding argument in the proof of the bound on Turán number of a bipartite graph produces the desired result.

## Variation

A stronger version finds two subsets of vertices $U_{1},U_{2}$ in a dense graph $G$ so that every small subset of vertices in $U_{i}$ has a lot of common neighbors in $U_{3-i}$.
Formally, let $u,n,r,m,t,q$ be some positive integers with $q>r$, and let $\alpha >0$ be some real number. Suppose that the following constraints hold: ${\begin{aligned}n\alpha ^{t}-{\binom {n}{q}}\left({\frac {m}{n}}\right)^{t}&\geq u\\{\binom {n}{r}}\left({\frac {m}{u}}\right)^{q-r}&<1.\end{aligned}}$ Then every graph $G$ on $n$ vertices with at least $\alpha n^{2}/2$ edges contains two subsets $U_{1},U_{2}$ of vertices so that any $r$ vertices in $U_{i}$ have at least $m$ common neighbors in $U_{3-i}$.

### Extremal number of a degenerate bipartite graph

Using this stronger statement, one can upper bound the extremal number of $r$-degenerate bipartite graphs: for each $r$-degenerate bipartite graph $H$ with at most $N^{1-1.8/s}$ vertices, the extremal number ${\text{ex}}(N,H)$ is at most $N^{2-1/(s^{3}r)}.$

### Ramsey number of a degenerate bipartite graph

This statement can be also applied to obtain an upper bound of the Ramsey number of a degenerate bipartite graphs. If $r$ is a fixed integer, then for every bipartite $r$-degenerate bipartite graph $G$ on $n$ vertices, the Ramsey number $r(G)$ is of the order $n^{1+o(1)}.$