# Probability distribution of extreme points of a Wiener stochastic process

In the mathematical theory of probability, the Wiener process, named after Norbert Wiener, is a stochastic process used in modeling various phenomena, including Brownian motion and fluctuations in financial markets. A formula for the conditional probability distribution of the extremum of the Wiener process and a sketch of its proof appears in work of H. J. Kusher (appendix 3, page 106) published in 1964. a detailed constructive proof appears in work of Dario Ballabio in 1978. This result was developed within a research project about Bayesian optimization algorithms.
In some global optimization problems the analytical definition of the objective function is unknown and it is only possible to get values at fixed points. There are objective functions in which the cost of an evaluation is very high, for example when the evaluation is the result of an experiment or a particularly onerous measurement. In these cases, the search of the global extremum (maximum or minimum) can be carried out using a methodology named "Bayesian optimization", which tend to obtain a priori the best possible result with a predetermined number of evaluations. In summary it is assumed that outside the points in which it has already been evaluated, the objective function has a pattern which can be represented by a stochastic process with appropriate characteristics. The stochastic process is taken as a model of the objective function, assuming that the probability distribution of its extrema gives the best indication about extrema of the objective function. In the simplest case of the one-dimensional optimization, given that the objective function has been evaluated in a number of points, there is the problem to choose in which of the intervals thus identified is more appropriate to invest in a further evaluation. If a Wiener stochastic process is chosen as a model for the objective function, it is possible to calculate the probability distribution of the model extreme points inside each interval, conditioned by the known values at the interval boundaries. The comparison of the obtained distributions provides a criterion for selecting the interval in which the process should be iterated. The probability value of having identified the interval in which falls the global extremum point of the objective function can be used as a stopping criterion. Bayesian optimization is not an efficient method for the accurate search of local extrema so, once the search range has been restricted, depending on the characteristics of the problem, a specific local optimization method can be used.

## Proposition

Let $X(t)$ be a Wiener stochastic process on an interval $[a,b]$ with initial value $X(a)=X_{a}.$
By definition of Wiener process, increments have a normal distribution:
    ${\text{for }}a\leq t_{1}<t_{2}\leq b,\qquad X(t_{2})-X(t_{1})\sim N(0,\sigma ^{2}(t_{2}-t_{1})).$
Let
    $F(z)=\Pr(\min _{a\leq t\leq b}X(t)\leq z\mid X(b)=X_{b})$
be the cumulative probability distribution function of the minimum value of the $X(t)$ function on interval $[a,b]$ conditioned by the value $X(b)=X_{b}.$
It is shown that:
    $F(z)={\begin{cases}1&{\text{for }}z\geq \min\{X_{a},X_{b}\},\\\exp \left(-2{\dfrac {(z-X_{b})(z-X_{a})}{\sigma ^{2}(b-a)}}\right)&{\text{for }}z<\min(X_{a},X_{b}).\end{cases}}$

## Constructive proof

Case $z\geq \min(X_{a},X_{b})$ is an immediate consequence of the minimum definition, in the following it will always be assumed $z<\min(X_{a},X_{b})$ and also corner case $\min _{a\leq t\leq b}X(t)=\min(X_{a},X_{b})$ will be excluded.
Let' s assume $X(t)$ defined in a finite number of points $t_{k}\in [a,b],\ \ 0\leq k\leq n,\ \ t_{0}=a$.
Let $T_{n}\ \ {\overset {\underset {\mathrm {def} }}{=}}\ \ \{t_{k},\ \ 0\leq k\leq n,\}$ by varying the integer $n$ be a sequence of sets $\{T_{n}\}$ such that $T_{n}\subset T_{n+1}$ and $\bigcup _{n=0}^{+\infty }T_{n}$ be a dense set in $[a,b]$,
hence every neighbourhood of each point in $[a,b]$ contains an element of one of the sets $T_{n}$.
Let $\Delta z$ be a real positive number such that $z+\Delta z<\min(X_{a},X_{b}).$
Let the event $E$ be defined as: $E\ \ {\overset {\underset {\mathrm {def} }}{=}}\ \ (\min _{a\leq t\leq b}X(t)<z+\Delta z)$ $\Longleftrightarrow$ $(\exists \,t\in [a,b]:X(t)<z+\Delta z)$ .
Having excluded corner case $\min _{a\leq t\leq b}X(t)=\min(X_{a},X_{b})$, it is surely $P(E)>0$.
Let $E_{n},\ \ n=0,1,2,\ldots$ be the events defined as: $E_{n}\ \ {\overset {\underset {\mathrm {def} }}{=}}\ \ (\exists \,t_{k}\in T_{n}:z<X(t_{k})<z+\Delta z)$ and let $\nu$ be the first k among the $t_{k}\in T_{n}$ which define $E_{n}$ .
Since $T_{n}\subset T_{n+1}$ it is evidently $E_{n}\subset E_{n+1}$. Now equation (2.1) will be proved.
(2.1) $\ \ \ \ E=\bigcup _{n=0}^{+\infty }E_{n}$
By the $E_{n}$ events definition,$\forall \,n\ \ E_{n}\Rightarrow E$, hence $\bigcup _{n=0}^{+\infty }E_{n}\subset E$ . It will now be verified the relation $E\subset \bigcup _{n=0}^{+\infty }E_{n}$ hence (2.1) will be proved.
The definition of $E$, the continuity of $X(t)$ and the hypothesis $z<X_{a}=X(a)$ imply, by the intermediate value theorem, $(\exists \,{\bar {t}}\in [a,b]:z<X({\bar {t}})<z+\Delta z)$.
By the continuity of $X(t)$ and the hypothesis that $\bigcup _{n=0}^{+\infty }T_{n}$ is dense in $[a,b]$ it is deducted that $\exists \,{\bar {n}}$ such that for $t_{\nu }\in T_{\bar {n}}$ it must be $z<X(t_{\nu })<z+\Delta z$ ,
hence $E\subset E_{\bar {n}}\subset \bigcup _{n=0}^{+\infty }E_{n}$ which implies (2.1).
(2.2) $\ \ \ \ P(E)=\lim _{n\rightarrow +\infty }P(E_{n})$
(2.2) is deducted from (2.1), considering that $E_{n}\Rightarrow E_{n+1}$ implies that the sequence of probabilities $P(E_{n})$ is monotone non decreasing and hence it converges to its supremum. The definition of events $E_{n}$ implies $\forall n\ \ P(E_{n})>0\Rightarrow P(E_{n})=P(E_{\nu })$ and (2.2) implies $P(E)=P(E_{\nu })$.
In the following it will always be assumed $n\geq \nu$, so $t_{\nu }$ is well defined.
(2.3) $\ \ \ \ P(X(b)\leqslant -X_{b}+2z)\leqslant P(X(b)-X(t_{\nu })<-X_{b}+z)$
In fact, by definition of $E_{n}$ it is $z<X(t_{\nu })$, so $(X(b)\leqslant -X_{b}+2z)\Rightarrow (X(b)-X(t_{\nu })<-X_{b}+z)$.
In a similar way, since by definition of $E_{n}$ it is $z<X(t_{\nu })$, (2.4) is valid:
(2.4) $\ \ \ \ P(X(b)-X(t_{\nu })>X_{b}-z)\leqslant P(X(b)>X_{b})$
(2.5)$\ \ \ \ P(X(b)-X(t_{\nu })<-X_{b}+z)=P(X(b)-X(t_{\nu })>X_{b}-z)$
The above is explained by the fact that the random variable $(X(b)-X(t_{\nu }))\thicksim N(\varnothing ;\ \ \sigma ^{2}(b-t_{\nu }))$ has a symmetric probability density compared to its mean which is zero.
By applying in sequence relationships (2.3), (2.5) and (2.4) we get (2.6) :
(2.6) $\ \ \ \ P(X(b)\leqslant -X_{b}+2z)\leqslant P(X(b)>X_{b})$
With the same procedure used to obtain (2.3), (2.4) and (2.5) taking advantage this time by the relationship $X(t_{\nu })<z+\Delta z$ we get (2.7):
(2.7) $\ \ \ \ P(X(b)>X_{b})\leqslant P(X(b)-X(t_{\nu })>X_{b}-z-\Delta z)\ \$$=\ \ P(X(b)-X(t_{\nu })<-X_{b}+z+\Delta z)\leqslant P(X(b)<-X_{b}+2z+2\Delta z)$
By applying in sequence (2.6) and (2.7) we get:
(2.8) $P(X(b)\leqslant -X_{b}+2z)\leqslant P(X(b)>X_{b})$ $\leqslant P(X(b)<-X_{b}+2z+2\Delta z)$
From $X_{b}>z+\Delta z>z$, considering the continuity of $X(t)$ and the intermediate value theorem we get $X(b)>X_{b}>z+\Delta z>z\Rightarrow E_{n}$ ,
which implies $P(X(b)>X_{b})=P(E_{n},X(b)>X_{b})$.
Replacing the above in (2.8) and passing to the limits: $\lim _{n\rightarrow +\ \infty }\ \ E_{n}(\Delta z)\rightarrow E(\Delta z)$ and for $\Delta z\rightarrow 0$, event $E(\Delta z)$ converges to $\min _{a\leq t\leq b}X(t)\leqslant z$
(2.9) $\ \ \ \ P(X(b)\leqslant -X_{b}+2z)=$$P(\min _{a\leq t\leq b}X(t)\leqslant z,\ \ X(b)>X_{b})$
$\forall \,dX_{b}>0$, by substituting $(X_{b})$ with $(X_{b}-dX_{b})$ in (2.9) we get the equivalent relationship:
(2.10)$\ \ \ \ P(X(b)\leqslant -X_{b}+2z+dX_{b})=$$P(\min _{a\leq t\leq b}X(t)\leqslant z,\ \ X(b)>X_{b}-dX_{b})$
Applying the Bayes' theorem to the joint event $(\min _{a\leq t\leq b}X(t)\leqslant z,\ \ X_{b}-dX_{b}<X(b)\leqslant X_{b})$
(2.11) $\ \ \ \ P(\min _{a\leq t\leq b}X(t)\leqslant z\mid X_{b}-dX_{b}<X(b)\leqslant X_{b})=$$P(\min _{a\leq t\leq b}X(t)\leqslant z,\ \ X_{b}-dX_{b}<X(b)\leqslant X_{b})$ $/\ \ P(X_{b}-dX_{b}<X(b)\leqslant X_{b})$
Let: $B\ {\overset {\underset {\mathrm {def} }}{=}}\ \{X(b)>X_{b}\},\ C\ {\overset {\underset {\mathrm {def} }}{=}}\ \{X_{b}-dX_{b}<X(b)\leq X_{b}\},\ D\ {\overset {\underset {\mathrm {def} }}{=}}\ \{X(b)>X_{b}-dX_{b}\},\ A\ {\overset {\underset {\mathrm {def} }}{=}}\ \ \{\min _{a\leq t\leq b}X(t)\leqslant z\}$From the above definitions it follows:
$D=B\cup C\Rightarrow \ P(A,D)=P(A,B\cup C)=P(A,B)+P(A,C)\Rightarrow P(A,C)=P(A,D)-P(A,B)$
(2.12)$\ \ \ \ P(A,C)=P(A,D)-P(A,B)$
Substituting (2.12) into (2.11), we get the equivalent:
(2.13)$P(\min _{a\leq t\leq b}X(t)\leqslant z\mid X_{b}-dX_{b}<X(b)\leqslant X_{b})=(P(\min _{a\leqslant t\leqslant b}X(t)\leq z,\ \ X(b)>X_{b}-dX_{b})-P(\min _{a\leqslant t\leqslant b}X(t)\leq z,\ \ X(b)>X_{b}))\ \ /\ \ P(X_{b}-dX_{b}<X(b)\leqslant X_{b})$
Substituting (2.9) and (2.10) into (2.13):
(2.14)$\ \ \ \ P(\min _{a\leq t\leq b}X(t)\leqslant z\mid X_{b}-dX_{b}<X(b)\leqslant X_{b})=$$(P(X(b)\leqslant -X_{b}+2z+dX_{b})-P(X(b)\leqslant -X_{b}+2z)$$/\ \ P(X_{b}-dX_{b}<X(b)\leqslant X_{b})$
It can be observed that in the second member of (2.14) appears the probability distribution of the random variable $X(b)$, normal with mean $X_{a}$ e variance $\sigma ^{2}(b-a)$.
The realizations $X_{b}$ and $-X_{b}+2z$ of the random variable $X(b)$ match respectively the probability densities:
(2.15) $\ \ \ \ P(X_{b})\,dX_{b}={\frac {1}{\sigma {\sqrt {2\pi (b-a)}}}}\exp {\biggl-{\frac {1}{2}}{\frac {(X_{b}-X_{a})^{2}}{\sigma ^{2}(b-a)}}{\biggr )}\,dX_{b}$
(2.16) $\ \ \ \ P(-X_{b}+2z)\,dX_{b}={\frac {1}{\sigma {\sqrt {2\pi (b-a)}}}}\exp {\biggl-{\frac {1}{2}}{\frac {(-X_{b}+2z-X_{a})^{2}}{\sigma ^{2}(b-a)}}{\biggr )}\,dX_{b}$
Substituting (2.15) e (2.16) into (2.14) and taking the limit for $dX_{b}\rightarrow 0$ the thesis is proved:
$F(z)=P(\min _{a\leq t\leq b}X(t)\leq z\ \ |\ \ X(b)=X_{b})=$
$={\frac {1}{\sigma {\sqrt {2\pi (b-a)}}}}\exp {\biggl-{\frac {1}{2}}{\frac {(-X_{b}+2z-X_{a})^{2}}{\sigma ^{2}(b-a)}}{\biggr )}\,dX_{b}$$\ \ \diagup \ \ {\frac {1}{\sigma {\sqrt {2\pi (b-a)}}}}\exp {\biggl-{\frac {1}{2}}{\frac {(X_{b}-X_{a})^{2}}{\sigma ^{2}(b-a)}}{\biggr )}\,dX_{b}=$
$=\exp {\biggl-{\frac {1}{2}}{\frac {(-X_{b}+2z-X_{a})^{2}-(X_{b}-X_{a})^{2}}{\sigma ^{2}(b-a)}}{\biggr )}=$$\ \ \exp {\biggl-2\ \ {\frac {(z-X_{b})(z-X_{a})}{\sigma ^{2}(b-a)}}{\biggr )}$