I was studying recently barrier options and found two traditional questions.
The first here: Let $S_t$ be a geometric Brownian Motion, i.e. $S_t = S_0 e^{\left(\mu - \frac{\sigma^2}{2} \right)t + \sigma W_t}$ and let $\alpha>0$ and $\tau = \inf \{t>0|S_t≥α\}$. Compute $\mathbb{P}(τ≤t)$, that is the probability that you it the barrier $\alpha$ upward.
The second here: Let $S_t$ be a geometric Brownian Motion, such as in question 1, then what is $\mathbb{E}[S_t]$?
My question is a mix of the two. I want to calculate:
$$\mathbb{E}[S_t | \tau \geq t]$$
Intuitively this is the expected value of the geometric brownian motion at time $t$ for all the paths that don't hit the barrier. I want to find this value, because I believe that the expected payoff for a up-and-out barrier option would be the above minus the strike and floored for a call. It is clear that I can not simply multiple $\mathbb{P}(\tau \leq t)$ and $\mathbb{E}[S_t]$, since many paths that cross the barrier contribute to the expected value. However I have no idea on how to start with this restriction. Any idea on how to start?