How to prove that $$\sum_{k=0}^m(-1)^k\binom{m}{k}\binom{n-k}{r}=\binom{n-m}{r-m} \qquad (n\ge r\ge m\ge 0)$$ by using inclusion-exclusion principle?
With inclusion–exclusion principle, it's not hard to prove that $$ \sum_{k=0}^m(-1)^k\binom{m}{k}\binom{n+m-k-1}{n}=\binom{n-1}{m-1} $$ by counting multiset combinations, however this trick does not work in the new problem.
Any ideas for the solution?
Hint: Say you want to choose $r$ elements out of $n$ elements, where the last $m$ elements are marked. In how many ways can you choose all the marked elements among the $r$ chosen ones?
Consider then the problem in which you do not pick say the $i-$th marked number. Call $A_i=\text{ ways to not pick the marked element }i$. Notice that there are $|A_i|=\binom{n-1}{r}$.
$$\text{What is then }\left |\text{All ways }\setminus \bigcup _{i=1}^mA_i\right |\text{??}$$