So I have a series:
$f(x_{n+1})=x_n \pm t$
and
$f(x_0)=W$
What I'd like to calculate is the probability in terms of $t$ and $W$ (assuming they're any constant $W>t$) that any $f(x_q)=0$ for all $q$ from $[0,n]$ assuming that $t$ is either randomly added or subtracted with $50/50$ probability in each iteration.
Specifically, I'd like to know not just the equation, but how you get to it.
I feel like it should be
$P=\frac{t}{2^nW}$
but it's more just an intuition in that I know the probability should go down if $\frac{W}{t}$ goes up because you'd need more trades, but it falls apart in the example where $W=100$ and $t=1$ and $P\neq 0$ for $n=1$
Thanks in advance for any pointers.
You can transform it by dividing by $t$, so $f(x_{n+1})=f(x)\pm 1$ and $f(x_0)=\frac Wt=w$ Clearly if $w$ is not an integer, you will never have $f(x)=0$ Even more, if $w$ is odd, you must take an odd number of steps, while if $w$ is even, you must take an even number of steps. If you want $f(x_n)=0$, you must have $w$ more negative steps than positive ones, so must have $\frac 12(w+n)$ negative ones and $\frac 12(n-w)$ positive ones. Now look up the binomial distribution to find the chance you get $\frac 12(w+n)$ heads out of $n$ coin tosses.