Assume that a stock starts with price $1$. Each day, if the stock starts with $q$, then with probability $p$ it increases to $qr$, and with probability $1-p$ it decreases to $q/r$. What is the expected value and variance of the price of stock on $d$th day?
The expected value is by definition $\sum_i i\cdot Pr[X=i]=\sum_{i=0}^d\dbinom{d}{i}p^i(1-p)^{d-i}r^{2i-d}$. Is there any way to simplify this sum? (Similar question for the variance, which is calculated using $E[X^2]-E[X]^2$)
For the expected value I have the formula:
$q\cdot \sum_{i=0}^{d} {d \choose i} (r\cdot p)^i \cdot \left( \frac{1}{r}(1-p)\right)^{d-i}$
$\sum_{i=0}^{d} {d \choose i} (r\cdot p)^i \cdot \left( \frac{1}{r}(1-p)\right)^{d-i}$ can be simplified by using the binomial theorem.
For $r=1.25,d=2,p=0.7$ and $q=100$ the expected value is $124.3225$.