For simplicity, assume a joint pdf of 2 variables $f(x,y)$.
Say we have two events $A$ and $B$. How would one calculate:
$$\Pr[A \mid B]$$
if we have continuous pdfs in question?
I would have thought that one way to do it is as follows:
$$ \Pr[A \mid B] = \frac{\Pr[A \cap B]}{\Pr[B]} = \frac{ \int_{(x,y) \text{ s.t. } A \cap B} f(x,y) \, dA }{\int_{(x,y) \text{ s.t. } B} f(x,y) \, dA}$$
however, I thought of a different way of doing it too and was not sure if they were equivalent (and if they were, how to prove their equivalence).
First find the conditional pdf $f(x,y \mid B)$ and then
$$ \Pr[A \mid B] = \int_{(x,y) \text{ s.t. }A \cap B} f(x,y \mid B) = \int_{(x,y) \text{ s.t. }A} f(x,y \mid B)$$
Intuitively, they seemed nearly the same, though not sure how to make this argument precise.
I was thinking that if $f(x,y \mid B)$ were an actual probability instead of just a pdf, then it seems that its clear that just $ \Pr[A \mid B] = \sum_{(x,y) \text{ s.t. } A \cap B} p[x,y \mid B]$ however, even though it seems "analogous", was not convinced that was a sufficient argument to "prove" their equivalence. Is there a better explanation for their equivalence or not?
On a very related note, is way to calculate $f(x,y | B)$ by:
$$ f(x,y | B) = \frac{ f(x,y) }{\int_{(x,y) \ s.t. \ B} f(x,y) dA}$$
which would establish the equality I wanted (though I came up with that just by analogy, not by rigorousness or mathematics) ... If that is correct, why is that the answer?