Is there a closed form for the sum \begin{align} \sum_{k=0}^r (-1)^k \left(\begin{matrix} n-q \\ r - k \end{matrix}\right)\left(\begin{matrix} q \\ k \end{matrix}\right)? \end{align}
Some intuition behind it:
Suppose you have $n$ buckets, and $q$ of them are filled with water. Suppose also that you have a claw machine that always picks out $r$ buckets. Then \begin{align} \left(\begin{matrix} n-q \\ r - k \end{matrix}\right)\left(\begin{matrix} q \\ k \end{matrix}\right) \end{align} is the number of ways to pick out $k$ buckets of water.
I think that combinatorially, it must be true that \begin{align} \sum_{k=0}^r\left(\begin{matrix} n-q \\ r - k \end{matrix}\right)\left(\begin{matrix} q \\ k \end{matrix}\right) = \left(\begin{matrix} n \\ r \end{matrix}\right) \end{align} But I can't work out the case for the alternating sum.