Suppose I have a discrete variable $S_t$ and a continuous variable $X_t$. Further, suppose I wish to evaluate $P(S_t=s_t)$. Would the below derivations be correct?
\begin{align} P(S_t=s_t)&=\int P(S_t=s_t,X_t)dX_t\\ &=\int P(S_t=s_t\mid X_t)P(X_t)dX_t \end{align} Now suppose I have a realisation $x_t$ for $X_t$, such that I can evaluate $P(S_t=s_t\mid X_t=x_t)=c$, with $c\in[0,1]$. Can I then express the above as
\begin{align} P(S_t=s_t)&\overset{?}{=}\int \underbrace{P(S_t=s_t\mid X_t=x_t)}_{c}P(X_t)dX_t\\ &\overset{?}{=}c\int P(X_t)dX_t \end{align} ? I am pretty confident the above is incorrect. However, I am hoping someone sees what I am trying to accomplish and help out with an alternative. Thanks in advance.