Skip to main content

TL;DR

Double Counting: Count the same set two different ways to derive an identity or bound. This concept is essential for quantitative trading interviews and is frequently tested at top firms.

By Valenke Exam Prep Team·Last updated 2026-06-01
Combinatorics

Double Counting

Count the same set two different ways to derive an identity or bound.

Double counting (also called counting in two ways) is a proof technique where you count the elements of a set SS using two different methods, then equate the results. Concrete example — Handshaking Lemma: In any graph, the sum of all vertex degrees equals twice the number of edges. Why? Count the set of (vertex, edge) pairs where the vertex is an endpoint of the edge. Method 1: For each vertex vv, it contributes deg(v)\deg(v) pairs, giving vdeg(v)\sum_v \deg(v). Method 2: Each edge contributes exactly 2 pairs (one per endpoint), giving 2E2|E|. Therefore: vdeg(v)=2E\sum_{v} \deg(v) = 2|E| Concrete example — Vandermonde's Identity: Count the ways to choose rr people from a group of mm men and nn women. Directly: (m+nr)\binom{m+n}{r}. By cases (choose kk men and rkr-k women): (m+nr)=k=0r(mk)(nrk)\binom{m+n}{r} = \sum_{k=0}^{r} \binom{m}{k}\binom{n}{r-k} The power of double counting: It transforms a combinatorial identity from something you need to "verify algebraically" into something you can *see*. Instead of manipulating factorials, you define a set and count it two ways. When to use: Proving combinatorial identities, deriving bounds in extremal combinatorics, and any time you see a sum that equals a simpler expression. If two quantities "should" be equal, try to find a set they both count.

Ready to practice for the Valenke Finance Exam?

Adaptive practice powered by Item Response Theory targets your weak areas. Start with 3 free sessions.

Start free practice →