Let $T$ be the exit time of from the interval $[-b,a]$ of a standard Brownian Motion $X_t$, then how would we go about calculating the following two expectations:
- $E[T^2]$ (and)
- $E[\int_0^T X_tds]$?
(Ideas which haven't been tied in:)
I want to use the optional stopping theorem but what martingale would I use? Also for the second I know (by Ito's formula) I can write: \begin{equation} \int_0^T X_tds = 6\int_0^T X_t^3 dX_t - 6\int_0^T X_t^2 ds \end{equation} but how can I put that to use? I'm thinking since $X_t -X_0$ is a normal random variable, I could put that to use in calculating the second term on the RHS of the above but I'm not certain how...
First of all, recall that it follows from Wald's identities that
$$\mathbb{P}(X_{T}=-b) = \frac{a}{a+b} \qquad \mathbb{P}(X_{T} = a) = \frac{b}{a+b} \qquad \mathbb{E}(T)=ab, \tag{1}$$
see e.g. this answer for a proof or Corollary 5.11 in Brownian Motion - An Introduction to Stochastic Processes (by René Schilling and Lothar Partzsch).
Part I: Calculate $\mathbb{E}(\int_0^T X_s \, ds)$:
It follows from Itô's formula that $$\int_0^t X_s \, ds = - \int_0^t X_s^2 \, dX_s + \frac{X_t^3}{3}.$$ Since the first term on the right-hand side is a martingale, the optional stopping theorem (applied to the bounded stopping time $T \wedge k$) yields
$$\mathbb{E} \left( \int_0^{T \wedge k} X_s \, ds \right) = \frac{1}{3} \mathbb{E}(X_{T \wedge k}^3).$$
As $|X_{s \wedge T}| \leq \max\{a,b\}$ for all $s \geq 0$, it now follows from the dominated convergence theorem that
$$\mathbb{E} \left( \int_0^T X_s \, ds \right) = \frac{1}{3} \mathbb{E}(X_T^3).$$
Finally, using $$X_T = a 1_{\{X_T=a\}} -b 1_{\{X_T=-b\}},$$ we obtain $$\mathbb{E} \left( \int_0^T X_s \, ds \right) = \frac{(-b)^3}{3} \mathbb{P}(X_T=-b) + \frac{a^3}{3} \mathbb{P}(X_T=a).$$
Plugging in the results from $(1)$, we are done.
Part II: Calculate $\mathbb{E}(T^2)$: