I have an $n$ step random walk which starts at zero $X\_0 = 0 = S\_0$ where the steps $X\_i$ are independent uniform random variates in $[-1,1]$, but the walk is conditioned on the hypothesis that it stays in the right half-line $[0,\infty)$ (that is, $S\_k = X\_0 + X\_1 + \dots + X\_k \geq 0$ for $k \in 0, \dots, n$). 


I'm interested in the maximum of the walk, or the random variable $M\_n = \max\_{0 \leq i \leq n} S\_i$. 


1. What is the distribution of $M\_n$ (as a function of $n$)?
2. Can one derive (upper or lower) bounds on the probability $P[M\_n < a]$ that the walk is actually contained in the interval $[0,a]$ instead of $[0,\infty)$? Both types of bounds would be interesting, for different reasons, in a polymer physics question.


I've looked at the classical references (eg. Feller, or Spitzer, Chapter 4), but Spitzer at least seems to deal only with the integer valued case. However, it seems that I'm either missing it, or I can't quite find the right reference. 


Are these standard results with a standard reference? It's clearly related to [A random walk with uniformly distributed steps](https://mathoverflow.net/questions/94226), which deals with the overall volume of the space of walks with uniform random variates as steps conditioned to stay positive, but not the maximum.



Distribution of maximum of random walk conditioned to stay positive
1) I believe it is possible to obtain $P(M\_n<a\ | \tau>n)$, where $\tau:=\inf\{n\ge 1: S\_n\le 0\}$ in more or less explicit way only for the case of the simple random walk. These computations can be found in Billingsley, Convergence of Probability measures, Chapter 2.11. For large $n$ these computations become universal as you can apply FCLT, see below.


2) Generally, one can use Brownian motion approximations as was suggested by fedja. Mathematic justification is given in the references below. Before going into this I will say a few words about conditioning of random walks to stay positive. 


There are two ways to condition random walk to be positive. First way is to condition on $\{\tau>n\}$, where $\tau:=\inf\{n\ge 1: S\_n\le 0\}$. Second way, is to ''condition'' on $\{\tau=\infty\}$. Here you cannot use direct conditioning as $\mathbf P(\tau=\infty)=0$ (for the zero-mean finite variance random walk). So, the way to proceed is to use Doob's $h$ transform. As a result one obtains a Markov chain (Lamperti Markov chain, in fact) which is a discrete-time analogue of Bessel process. 


Now I can move on to approximations as $n\to\infty$. 


a) When $a$ is of order $\sqrt n$, you need to use corresponding Functional Central Limit Theorem (FCLT). You need functional central limit theorem as the maximum depends on the whole trajectory of the random walk. 
The way to use functional limit theorems is described in the above Billinsley's book, you can see an example for unconditioned random walk in Chapter 2.11. 


For the first type of conditioning FCLT is proved in Iglehart, 1974, Functional Central Limit Theorems for Random Walks Conditioned to Stay Positive (doi:10.1214/aop/1176996607), see also Bolthausen, 1976, On a Functional Central Limit Theorem for Random Walks Conditioned to Stay Positive. Conditioning of the second type was considered in Bertoin and Doney (1994), On Conditioning a Random Walk to Stay Nonnegative (doi:10.1214/aop/1176988497). FCLT for the second type of conditioning can be found in Caravenna, Chaumont (2008), Invariance principles for random walks conditioned to stay positive (doi:10.1214/07-AIHP119). Finally, in higher dimensions you can use FCLT from <http://arxiv.org/abs/1110.1254>. 


b) When $a$ is much larger then $\sqrt n,$ then $\mathbf P(M\_n<a\ |\ \tau>n)\to 1$. 


c) When $a<<\sqrt n$ you are dealing with small deviations probability. 
If you write $\mathbf P(M\_n<a | \tau>n)=\mathbf P(M\_n<a , \tau>n)/\mathbf P(\tau>n)$, then approximation for $\mathbf P(\tau>n)\sim Cn^{-1/2}, n\to\infty$, and 
$$
\mathbf P(\tau>n, M\_n<a)=\mathbf P(\mbox{random walk $S\_k$ stays in (0,n) for all } 0<k\le n)
$$
Now, if $a\sim An^{1/2-\delta}$ for $\delta\in(0,1/2)$ you can split this trajectory in $n/a^2$ parts of length $a^2$ and use independence to obtain estimate 
 $$
\mathbf P(\tau>n, M\_n<a)\le \left(\mathbf P(\mbox{random walk $S\_k$ stays in (0,2a) for all } 0<k\le a^2)\right)^{n/a^2}
$$
Now, the probability inside the parenthesis is on the right scale and you can apply the FCLT to get 
$$
\mathbf P(\mbox{random walk $S\_k$ stays in (0,2a) for all } 0<k\le a^2)\to C(A)\in(0,1).
$$
This results in the following upper bound
$$
\mathbf P(\tau>n, M\_n<a) \le C(A)^{n/a^2}\approx C(A)^{n^{2\delta}}.
$$
As $C(A)$ is in $(0,1)$ this probability is quite small. . 


