could someone help me understand how to find the probability $\Pr(F=f_1 | X=x)$ by using the inputs below, where $X$ is a continuous random variable?
Note: I know that probabilities of specific values of continuous random variables (i.e. not intervals) is 0, however I think I heard somewhere that there is a variation of the Bayes theorem by which densities can be used in place of probabilities, and I hope to use this to answer the question that is detailed below.
Question Details:
Let:
- $\mathcal{X} = [a, b]$ be the universal set of samples.
$\mathcal{F} = \{f_1, f_2, \ldots, f_n\}$ be the set of processes that generate samples in $\mathcal{X}$.
$X$ be a random variable that takes values in $\mathcal{X}$.
- $F$ be a random variable that takes values in $\mathcal{F}$.
- For any $1 \le i \le n$, $X_i$ be a random variable that takes values in $\mathcal{X}$ as generated by process $f_i \in \mathcal{F}$.
- $\Pr(X)$ be the PDF of r.v. $X$.
- $\Pr(F)$ be the PMF of r.v. $F$.
- For any $1 \le i \le n$, $\Pr(X_i)$ be the PDF of r.v. $X_i$.
Suppose that you are given these as input:
- Some $x$ where $x \in \mathcal{X}$.
- $\Pr(X)$.
- $\Pr(F)$.
- For any $1 \le i \le n$, $\Pr(X_i)$.
Then the question is: what is $\Pr(F=f_1 | X=x)$?
A first guess on a solution:
Let:
- $PDFX(x)$ be the value of the PDF $\Pr(X)$ at point $x$.
- For any $1 \le i \le n$, $PDFX_i(x)$ be the value of the PDF $\Pr(X_i)$ at point $x$.
\begin{equation} \begin{split} \Pr(F=f_1 | X=x) &= \frac{\Pr(X=x|F=f_1) \Pr(F=f_1)}{\Pr(X=x)}\\\ &= \frac{PDFX_1(x) \Pr(F=f_1)}{PDFX(x)} \end{split} \end{equation}
Any thoughts?