Given discrete and continuous random variables, $X$ and $Y$, respectively, the following conditional probability can be computed:
\begin{equation} P(Y \leq y_1 | X =x) = \int_{-\infty}^{y_1} f_{Y|X}(y|x)dy \end{equation}
But say you wanted to compute $P(X=x| Y \leq y_1)$, where you're now conditioning over a range, how would you compute it using the above approach? Typically, I would compute it using Bayes rule, but I wanted to try to derive an expression analogous to the above for $P(X=x| Y \leq y_1)$ (one that involves integrating perhaps the pdf of $Y$ or a conditional pmf of $X$), but I can't think of how this can be done nor have I seen it in any examples (all the examples use Bayes rule). How would one do this?
To approach this problem, we start with
\begin{align} P\left\lbrace X = x | Y \leq y\right\rbrace &= \int_{-\infty}^{\infty} P\left\lbrace X = x | Y \leq y \,\cap Y = v \right\rbrace P\left\lbrace Y = v | Y \leq y \right\rbrace dv \end{align}
Notice that it is clear that $P\left\lbrace Y = v | Y \leq y \right\rbrace = 0$ if $v > y$. Thus, when $-\infty < v \leq y$, we also know that $P\left\lbrace X = x | Y \leq y \,\cap Y = v \right\rbrace = P\left\lbrace X = x | Y = v \right\rbrace $. This implies that we must instead have that
\begin{align} P\left\lbrace X = x | Y \leq y\right\rbrace &= \int_{-\infty}^{\infty} P\left\lbrace X = x | Y \leq y \,\cap Y = v \right\rbrace P\left\lbrace Y = v | Y \leq y \right\rbrace dv \\ &= \int_{-\infty}^{y} P\left\lbrace X = x | Y = v \right\rbrace P\left\lbrace Y = v | Y \leq y \right\rbrace dv \\ &= \int_{-\infty}^{y} P\left\lbrace X = x | Y = v \right\rbrace f_{Y|Y\leq y}(v) dv \end{align}
It is with this final result that one can make progress in further working out any specific result given knowledge of $P\left\lbrace X = x | Y = v \right\rbrace$ and $f_{Y|Y\leq y}(v)$.