matfor said:
Say if I had a random variable [tex]X[/tex] that followed a Beta distribution [tex]B(a,b)[/tex], and [tex]a[/tex] and [tex]b[/tex] were random variables.
How would I define the distribution of [tex]X[/tex]??
Let [tex]f(x,y)[/tex] be the joint density of [tex]a[/tex] and [tex]b[/tex]. (You can modify the following if one or both of them are discrete.) Then
[tex]F_X(c) = P(X \le c) = E[P(X \le c | (a,b))].[/tex]
This gives
[tex]F_X(c) = \int_0^\infty\int_0^\infty<br />
P(X \le c | (a,b) = (x,y))f(x,y)\,dx\,dy.[/tex]
By hypothesis, the distribution of [tex]X[/tex] given [tex](a,b)[/tex] is Beta. So
[tex]F_X(c) = \int_0^\infty\int_0^\infty<br />
I_c(x,y)f(x,y)\,dx\,dy,[/tex]
where [tex]c\mapsto I_c(x,y)[/tex] is the CDF of a Beta random variable with parameters [tex]x[/tex] and [tex]y[/tex].