May I have a reference and/or proof of this identity? I saw it mentioned on mathoverflow and don't see how to show it.
For $p \in (0,1)$ and $0 \leq k < n$,
$$ \sum_{i=0}^k {n \choose i} p^i (1-p)^{n-i} = (1-p)^{n-k} \sum_{i=0}^k {n-k-1+i \choose i} p^i .$$
I've verified this numerically and tried some applying the binomial theorem to $(1-p)^{k-i}$ on the left, but that didn't seem to help, so I thought I'd ask for a reference.
Update: I have found a combinatorial proof and posted it as an answer below.
After multiplication with $(1-p)^{k-n}$ we want to show for $p \in (0,1)$ and $0 \leq k < n$ \begin{align*} \color{blue}{\sum_{i=0}^k\binom{n}{i}p^i(1-p)^{k-i}=\sum_{i=0}^k\binom{n-k-1+i}{i}p^i}\tag{1} \end{align*}
Both sides of (1) are polynomials in $p$ of degree $k$. We show equality by comparing coefficients of equal powers of $p$. We use the coefficient of operator $[p^t]$ to denote the coefficient of $p^t$ of a series.
This was the easy part. Now the left-hand side of (1):
Comment:
In (2) we apply the rule $[p^{k-j}]A(p)=[p^k]p^jA(p)$. We also set the upper limit of the sum to $t$ since other indices do not contribute to the sum.
In (3) we select the coefficient of $p^{t-i}$.
In (4) we use the binomial identity $\binom{-n}{k}=\binom{n+k-1}{k}(-1)^k$.
In (5) we apply the Chu-Vandermonde identity.