I got a Brownian motion $B(t)$ that starts in $0$ and want to calculate the expectated value of the supremum on the interval $[0,1]$ of the absolute value of it, i.e.
$$E \left (\sup \limits_{t \in [0,1]} |B(t) | \right ).$$
I found some information on this question in this thread.
Here user3371583 posted in the comment chain that the expected value in the case of the interval $[0,1]$ should be $\sqrt{\frac{\pi}{8}}$ and he explained how he got to this result in the same post, but I cant seem to get it done.
What I got so far is this:
\begin{align*} E \left (\sup \limits_{t \in [0,1]} |B(t) | \right ) &= \int_0^\infty P(\sup \limits_{t \in [0,1]} |B(t) | \geq y ) dy \\ &= \int_0^\infty \sum_{k=-\infty}^\infty (-1)^k \text{sign}((2k+1) y) \text{Erfc} \left ( \frac{\vert (2k+1) y \vert }{\sqrt{2}} \right ) dy. \end{align*}
Here Erfc is the error function: $$\text{Erfc}(x) = \frac{2}{\sqrt{\pi}} \int_0^x e^{-t^2} \ dt.$$
Now the post mentions splitting the series up into a series over negative $k$ and one over positive (nonnegative I guess) $k$, so that I get \begin{align*} = &\int_0^\infty \sum_{k=-\infty}^{-1} (-1)^k \text{sign}((2k+1) y) \text{Erfc} \left ( \frac{\vert (2k+1) y \vert }{\sqrt{2}} \right ) dy\\ + &\int_0^\infty \sum_{k=0}^\infty (-1)^k \text{sign}((2k+1) y) \text{Erfc} \left ( \frac{\vert (2k+1) y \vert }{\sqrt{2}} \right ) dy \end{align*}
and now the next step seems to be using a change of variable to see that both terms are actually equal, but I cannot verify this. The first term is
\begin{align*} &\int_0^\infty \sum_{k=1}^{\infty} (-1)^{-k} \text{sign}((2(-k)+1) y) \text{Erfc} \left ( \frac{\vert ((2(-k)+1) y \vert }{\sqrt{2}} \right ) dy \\ = &\int_0^\infty \sum_{k=1}^{\infty} (-1)^{k} \text{sign}((2k+1) y) (-1)\text{Erfc} \left ( \frac{\vert ((2(-k)+1) y \vert }{\sqrt{2}} \right ) dy \end{align*}
and this is where I'm stuck already. I know that the Errorfunction is an odd function, but I cant seem to bring it into a form where I can combine both sums into one.
Also, I don't understand how to use integration by parts to evaluate both of the integrals after combining the series.
Can anyone help me out with this? Thanks!