Here's a particular question I'm trying to understand from the lecture notes.
It says:
Assume that $Y$ denotes the number of bacteria per cubic centimeter in a particular liquid and that $Y$ has a Poisson distribution with parameter $x$. Further assume that $x$ varies from location to location and has an exponential distribution with parameter $β = 1$.
-Find $f_{X,Y}(x,y)$, the joint probability function of $X$ and $Y$.
In the lecture slides, it says: $$f_{X,Y}(x,y) = f_{Y\mid X}(y\mid x)f_X(x)$$ Where $f_{Y\mid X}(y\mid x)$ is the PDF for the Poisson distribution, and $f_X(x)$ is the PDF for the exponential with $\beta = 1$.
I'm not sure how $f_{X,Y}(x,y) = f_{Y\mid X}(y\mid x)f_X(x)$ came to be. Is there anything for me to look for in the question that would hint to using this form?
Any help would be appreciated.
Thanks.
The hints in the problem:
You are being asked by the joint PDF of $Y$ and $X$, $f_{Y,X}(y,x)$. From here one thing must be clear: there are two random variables involved in the problem. How could you compute this in general? Two cases are important here:
We are told that the parameter $x$ in the distribution (PDF) of $Y$ is varying and has its very own distribution! That is, the other involved random variable, $X$, is the parameter in the distribution of $Y$, what a relationship!...wait a minute...that means that $Y$ depends on $X$! Moreover, given that $X$ takes some value $x$, $Y$ has Poisson distribution with paramater $x$, that is
$$f_{Y \mid X}(y \mid x) = e^{-x}\frac{x^y}{y!}$$