User:Ballad2/sandbox

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 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)$$.

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' s $$ \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)$$.

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 deduced 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) $$.

Since $$X(t)$$ has a normal distribution, it is surely $$P(E) > 0$$. 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 $$, so $$P(X(b) > X_b) = P(E,X(b) > X_b) $$

Replacing the above in (2.8) and passing to the limit $$ \Delta z \rightarrow 0$$, event $$ E$$ 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) \leq 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\}, \ A \ \overset{\underset{\mathrm{def}}{}}{=} \ \ \{\min_{a \leq t \leq b}X(t) \leqslant z\}$$; from these definitions it follows:

$$\complement D = B \cup C \Rightarrow \ P(A, \complement D) = P(A, B\cup C) = P(A, B) + P(A, C) \Rightarrow P(A, C) = P(A, \complement D) - P(A, B)$$

(2.12)$$\ \ \ \ P(A, C) = P(A, \complement 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) $$