Sorry for the really simple question. I am reading a book about psychophysiology and I got lost at one point. I will take out all the unrelevant information and just go straight to the point. The book present this probabilities:
1) f(r,t|E)=Pr(r=r, T=t| E); where E, from now on, is defined as a vector of variables.
2) g(x|E)=Pr(X=x|E);
3) h(r,t|x)=Pr(r=r, T=t| x);
and finally it shows that "by the law of total probability applied to the conditional probability"
4) $$f(r,t|E)=\int g(x|E)*h(r,t|x) dx.$$
How can I derive 4 from 1-2-3?
In the text it is said that (r,t) has no direct connection with E exepct as it is mediated by the parameter X. I suspect that this means that (r,t) and E are independent, but (r,t) and X are not. I also guess that X and E dependent. Is that correct?