Let $X$ be a random variable that follows the Binomial Distribution $\text{BIN}(n,p)$, where $n$ is a positive integer while $p\in(0,1)$. Its mean is $np$, and standard deviation is $\sqrt{np(1-p)}$. Chebyshev's inequality yields that $$\Pr\left(|X-np| > \sqrt{np(1-p)}\right) \le 1,$$ which is trivial. Hoeffding’s inequality seems not helpful to improve the bound if applied in a direct way.
Questions:
When $p=1/2$, is it possible to prove for all $n\ge 1$ that $$\Pr\left(|X-np| > \sqrt{np(1-p)}\right) \le \frac{1}{2}?$$
What can we say for a general $p\in(0,1)$?
Remarks:
I found a positive answer to Question 1 (presented below; essentially the same as @Mau314's comment). However, it is not completely satisfactory because we have to verify the inequality for small n (at most 25) numerically. I am still looking forward to an answer that is completely analytical.
I am teaching basic probability theory and these questions occur to me when I think about the Central Limit Theorem. When $n\rightarrow \infty$, asymptotically we have $$\Pr\left(|X-np| > \sqrt{np(1-p)}\right) \sim \Pr(|Y| > 1) < \frac{1}{2},$$ where $Y$ is a random variable that follows the Standard Normal Distribution. Hence I raise the questions by curiousity.
Note that my main interest is the non-asymptotic behaviour of the probability because the asymptotic case is characterized by the CLT.
One may attack the problem by directly estimate the cumulative distribution function of Binomial Distributions. To this end, bounds for Binomial Coefficients are likely necessary. Results of such kind can be found in, e.g., [Das], [Stanica], [Spencer, Chapter 5], and Wikipedia. Note that non-asymptotic estimations are needed.
Thanks.
Sorry I don't have time to write it in more detail right now.
– Mau314 Feb 14 '19 at 14:19