Consider the following CDF of a binomial distribution with $p\in(0,1)$ and ${\lfloor k\rfloor}\in [0,n]$ \begin{equation*} F(k;n,p) = \sum_{i=0}^{\lfloor k\rfloor} \binom{n}{i} p^i (1-p)^{n-i} \end{equation*}
How does $F(k;n,p)$ change in the following circumstances
- $p$ increase with $k,n$ fixed
- $n$ increase with $k,p$ fixed
and how to prove these monotonicity conclusions?
Some numerical simulation results: $F(1,3,0.3)=0.784$, $F(1,3,0.1)=0.9720$, $F(1,4,0.1)=0.9477.$
(Edited)
For the dependence on $p$, notice that $$ \frac{\partial \, p^i (1-p)^{n-i}}{\partial p}= \frac{i}{p(1-p)}p^i (1-p)^{n-i} -\frac{n}{1-p} \, p^i (1-p)^{n-i} \tag 1$$
Also, if $X$ is a $(n,p)$ Binomal (hence $E[X]=np$), let $X^{(k)}$ be $X$ truncated to $[0, \lfloor k \rfloor]$
Then $$P(X^{(k)}=i)=\frac{1}{F(k,n,p)} \binom{n}{i} p^i (1-p)^{n-i} \,[0\le i \le\lfloor k \rfloor] \tag 2$$ and
$$ \begin{align}\frac{\partial \, F(k,n,p)}{\partial p} &= \frac{1}{p(1-p) }F(k,n,p) E[X^{(k)}]-\frac{n}{1-p} F(k,n,p) \\ &= \frac{F(k,n,p)}{p(1-p)} ( E[X^{(k)}] - E[X] ) \tag 3 \end{align} $$
But $E[X^{(k)}] < E[X]$ (except for the trivial case $\lfloor k \rfloor = n$). Hence the derivative is negative and $F(k,n,p)$ decreases with $p$.
Corrected: I had the wrong sign in $(3)$ (confirmation bias!). Now it's correct (checked numerically). And, yes, $(2)$ is right, it's the distribution of a truncated Binomial (which of course corresponds to the distribution of $X$ conditioned on $X\le k$).
Added: For the dependence on $n$: letting $X_{n,p}$ be a Binomial $(n,p)$, and with $k$ integer, we have
$$F(n,k,p)= P(X_{n,p}\le k)= \sum_{i=0}^k \binom{n}{i}p^i(1-p)^{n-i} $$
and $$F(n,k-1,p) = F(n,k,p) - \binom{n}{k}p^k(1-p)^{n-k}$$ Hence $$\begin{align} F(n+1,k,p)&= P(X_{n+1,p} \le k)\\ &= P(X_{n+1,p} \le k \mid X_{n,p} < k) P(X_{n,p} < k) + P(X_{n+1,p} \le k \mid X_{n,p} = k) P(X_{n,p} = k) \\ &= 1 \times F(n,k-1,p) + (1-p) \binom{n}{k}p^k(1-p)^{n-k}\\ &= F(n,k,p) - \binom{n}{k}p^k(1-p)^{n-k} + (1-p) \binom{n}{k}p^k(1-p)^{n-k}\\ &= F(n,k,p) - \binom{n}{k}p^{k+1}(1-p)^{n-k} \end{align} $$ Then $F(n+1,k,p)<F(n,k,p)$