2 The universal-hashing independence estimate
Let \(A \subseteq \{ 0,1\} ^n\), \(B \subseteq \{ 0,1\} ^m\), \(h:\{ 0,1\} ^n \to \{ 0,1\} ^m\), and \(\varepsilon {\gt}0\). Write \(\mu (A)=|A|/2^n\) and \(\mu (B)=|B|/2^m\). The function \(h\) is \((\varepsilon ,A,B)\)-independent if
Let \(\mathcal{H}\) be universal, \(A \subseteq \{ 0,1\} ^n\), and \(B \subseteq \{ 0,1\} ^m\). For \(M(x,h)=1\) if \(h(x)\in B\) and \(M(x,h)=0\) otherwise, define \(f(h)=\mathbb {E}_{x \leftarrow A}M(x,h)\) and \(p=\mu (B)\). Then \(\mathbb {E}_{h \leftarrow \mathcal{H}}f(h)=p\), and \(h\) is \((\varepsilon ,A,B)\)-independent exactly when \(\left|p-f(h)\right|\le \varepsilon /\mu (A)\).
For each fixed \(x\), universality implies that \(h(x)\) is uniform on \(\{ 0,1\} ^m\), because the one-point marginal of a two-universal family is uniform. Hence \(\mathbb {E}_h M(x,h)=p\) for every \(x\), and averaging over \(x \in A\) gives \(\mathbb {E}_h f(h)=p\). Also
Substituting this identity into Definition 6 and dividing by \(\mu (A)\) gives the stated equivalence.
With the notation of Lemma 7,
Expanding the variance and using \(\mathbb {E}_h f(h)=p\),
If \(x_1 \ne x_2\), universality gives independent uniform values \(h(x_1)\) and \(h(x_2)\), so the inner expectation is \(p^2\). If \(x_1=x_2\), then \(M(x_1,h)M(x_2,h)=M(x_1,h)\) and the inner expectation is \(p\). The equal case has probability \(1/|A|\) under the uniform choice from \(A \times A\). Therefore
With the notation of Lemma 8, for every \(\delta {\gt}0\),
Chebyshev’s inequality applied to the random variable \(f(h)\) gives \(\operatorname {Pr}[\left|f-\mathbb {E}f\right|\ge \delta ]\le \operatorname {Var}(f)/\delta ^2\). Since \(\mathbb {E}f=p\) and Lemma 8 evaluates \(\operatorname {Var}(f)\), the displayed bound follows.
Let \(A \subseteq \{ 0,1\} ^n\), \(B \subseteq \{ 0,1\} ^m\), let \(\mathcal{H}\) be a universal family of functions \(\{ 0,1\} ^n \to \{ 0,1\} ^m\), and let \(\varepsilon {\gt}0\). Then
By Lemma 7, failure of \((\varepsilon ,A,B)\)-independence is the event \(\left|p-f(h)\right|{\gt}\varepsilon /\mu (A)\). Apply Lemma 9 with \(\delta =\varepsilon /\mu (A)\). Since \(|A|=2^n\mu (A)\), the right hand side becomes