... or more appropriately, with the tail twisted off. It is an extension to this other question.
I get it that the expected value of a binomial distribution equals $np$.
How would I get the expected value minus the extreme outcome? (e.g. expected number of tails in a sequence of coin tosses with at least one head) Or as pointed by @RobertIsrael, conditional outcome of X < n.
In below ,
$ {E}(X \mid X < n) = np \left(\sum_{r=0}^{n-1} \dbinom{n-1}{r} p^r (1-p)^{n-1-r} \right) - \text{[...something...]}\\ $
does something = ${n}{p^n}$ or just ${p^n}$. The reason for my confusion is that the former appears to be correct conceptually. However, the results of a simulation are agreeing with the latter.