Question: Suppose X is a random variable with distribution X ~ $Bin(n, p)$ with $n≥2$ and $Y = max(2, X)$. Find E(Y).
My approach was to say that since $Bin(n, p)$ would be a fraction, then the max value would always be 2, so the expected value would just be $2^n$, however, I am not sure whether this is correct. Does anyone have any advice?
This is a perfect problem for using conditional expectation rules. Note $$ E[Y | X] = E[Y | X > 2] P(X > 2) + E[Y | X \le 2] P(X\le 2) = 2 P(X \le 2) + E[X | X > 2] P(X > 2) $$ Then to calculate the second term note that $$ E[X | X > 2]P(X > 2) = \sum_{x=3}^n x \binom{n}{x} p^x (1-p)^{n-x} = np - np(1-p)^{n-2}(1-p + (n-1) p). $$ Can you finish from here? (Note, I don't think there would be a nice closed form here, but I could be wrong).