What is the probability that a simple 1d random walk is between (-k,k), exclusive, in 100 moves?
My initial though was: $1-\sum_{i=k}^{100}P_i$, where $P_i$ stands for the probability that it reaches $k$ in $i$ number of moves.
What is the probability that a simple 1d random walk is between (-k,k), exclusive, in 100 moves?
My initial though was: $1-\sum_{i=k}^{100}P_i$, where $P_i$ stands for the probability that it reaches $k$ in $i$ number of moves.
You can find a solution by considering two aspects:
Several questions and answers on this website already have dealt with this and they might help you to get an idea. See: https://stats.stackexchange.com/search?q=%22reflection+principle%22
Another relating post is https://stats.stackexchange.com/a/492091/164061 and you can also compute the probability by considering a Markov chain and compute the distribution step by step, or you can approximate this with an inverse Gaussian distribution.