Suppose X is a time series that follows the process:
$X[t]=\rho X[t-1] + \varepsilon[t]$
where $\varepsilon[t] \sim \mathcal{N}(0.0, \sigma)$, $\varepsilon[t]$ is IID and $X[0] \sim \mathcal{N}(0.0, \sigma)$,.
My interest is computing a conditional expectation using mathematical:
Allowing for notational sloppiness, I want to focus on the subset of $X[t]$ that satisfy:
$$ \tilde{X}[t]\ < Q( X[t] < Q(0.1, X[t]) $$ Where $Q(0.1, X[t])$ is the $0.1$ quantile observation of $X[t]$.
Then find the conditional expectation of $\tilde{X}[t]$:
$$\mathbb{E}[\ \tilde{X}[t] \ |\ ( \tilde{X}[t-3] < Q(0.5, \tilde{X}[t-3]))] $$
In words, I want to find the subset of the process that falls below the 0.1 quantile observation. Then find the mean of the subset that satisfies the condition before and also had a realization three periods ago that is lower than the median of all observations from three periods for this particular subset of realizations.