Given a filtered probability space $(\Omega, \mathscr F, \{\mathscr F_n\}, \mathbb P)$, let $X = (X_n)_{n \in \mathbb N}$ and $Y = (Y_n)_{n \in \mathbb N}$ be $(\{\mathscr F_n\}, \mathbb P)-$martingales and $T$ be a $\{\mathscr F_n\}$-stopping time s.t. $X_T = Y_T$
Prove $Z_n = X_n1_{n \le T} + Y_n1_{n-1\ge T}$ is a $(\{\mathscr F_n\}, \mathbb P)-$martingale.
What I tried:
- Integrable:
$X_n, Y_n, 1_{n \le T}, 1_{n-1\ge T}$ are integrable
- Adapted to $\{\mathscr F_n\}$:
$X_n, Y_n, 1_{n \le T}, 1_{n-1\ge T}$ are adapted because $X$ and $Y$ are martingales and $T$ is a stopping time
- $$E[Z_n | \mathscr F_{m}] = Z_{m}$$
Not sure I can do that directly, but I guess can make use of:
$$E[Z_n | \mathscr F_{m}] = E[E[Z_n|\mathscr F_{n-1}] | \mathscr F_{m}] = E[Z_{n-1} | \mathscr F_{m}] = ... = E[Z_m | \mathscr F_{m}] = Z_m$$
by showing that $Z_{n-1} = E[Z_n|\mathscr F_{n-1}]$:
$$E[Z_n | \mathscr F_{n-1}] = E[X_n1_{n \le T} + Y_n1_{n-1\ge T} | \mathscr F_{n-1}]$$
$$= E[X_n1_{n \le T} | \mathscr F_{n-1}] + E[Y_n1_{n-1\ge T} | \mathscr F_{n-1}]$$
$$= 1_{n \le T} E[X_n | \mathscr F_{n-1}] + 1_{n-1\ge T}E[Y_n | \mathscr F_{n-1}]$$
$$= 1_{n \le T} X_{n-1} + 1_{n-1\ge T}Y_{n-1}$$
$\because Y_{n-1}1_{T=n-1} = Y_{T}1_{T=n-1} = X_{T}1_{T=n-1} = X_{n-1}1_{T=n-1}$, we have
$$= 1_{(n-1) \le T} X_{n-1} + 1_{n-2\ge T}Y_{n-1}$$
Is that right?