$\sum_{x=0}^{500}\frac{x-2}{x!(500-x)!}(0.4)^x(0.6)^{500-x}$
How do I tackle this question?
$\sum_{x=0}^{500}\frac{x-2}{x!(500-x)!}(0.4)^x(0.6)^{500-x}$
How do I tackle this question?
Let
$$A=\sum_{x=0}^{500}\frac{x}{x!(500-x)!}(0.4)^x(0.6)^{500-x};\qquad B=\sum_{x=0}^{500}\frac{1}{x!(500-x)!}(0.4)^x(0.6)^{500-x}$$
So the sum $S=A-2B$.
At this stage, it is evident that we have two series that each strongly resemble a binomial series for positive integer exponents, for which the standard form we will aim for is:
$$\boxed{(a+b)^n=\sum_{k=0}^{n}{\frac{n!}{k!(n-k)!}a^kb^{n-k}}}$$
So through some algebraic manipulation
$$\begin{align} A&=0+\sum_{x=1}^{500}\frac{x}{x!(500-x)!}(0.4)^x(0.6)^{500-x} \\[2ex] &=\sum_{x=1}^{500}\frac{1}{(x-1)!\left(499-(x-1)\right)!}(0.4)(0.4)^{x-1}(0.6)^{499-(x-1)} \\[2ex] &=\sum_{q=0}^{499}\frac{1}{q!(499-q)!}(0.4)(0.4)^q(0.6)^{499-q}&(q=x-1) \\[2ex] &=\frac{0.4}{499!}\sum_{q=0}^{499}\frac{499!}{q!(499-q)!}(0.4)^q(0.6)^{499-q} \\[2ex] &=\frac{0.4}{499!}(0.4+0.6)^{499} \\[2ex] &=\frac{0.4}{499!} \end{align}$$
Similarly $$\begin{align} B&=\sum_{x=0}^{500}\frac{1}{x!(500-x)!}(0.4)^x(0.6)^{500-x} \\[2ex] &=\frac{1}{500!}\sum_{x=0}^{500}\frac{500!}{x!(500-x)!}(0.4)^x(0.6)^{500-x} \\[2ex] &=\frac{1}{500!}(0.4+0.6)^{500} \\[2ex] &=\frac{1}{500!} \end{align}$$
Therefore
$$S=\frac{0.4}{499!}-\frac{2}{500!}=\frac{200-2}{500!}=\frac{198}{500!}$$
$$S=\frac{1}{500!}\sum_{x=0}^{500}(x-2)\frac{500!}{x!(500-x)!}(0.4)^x(0.6)^{500-x}=\frac{1}{500!}\sum_{x=0}^{500}(x-2)\binom{500}{x}(0.4)^x(0.6)^{500-x}$$
which we recognise the expected value of $(X-2)$ for a variable $X$ which has a binomial distribution $X \sim \mathrm{Binom}(n,p)$ with $n=500,p=0.4$. So
$$S=\frac{1}{500!}\mathsf{E}[X-2]=\frac{1}{500!}(\mathsf{E}[X]-2)=\frac{np-2}{500!}=\frac{(500)(0.4)-2}{500!}=\frac{198}{500!}$$
where we used the fact that the expected value of a binomially distributed variable is the mean $np$.