For any positive integer n and positive real number θ, the Gamma distribution Γ(n,θ) has density fΓ defined on (0,∞) by
fΓ(x)=(n−1)!θnxn−1e−θx.
For any positive integers a and b, the Beta distribution B(a,b) has density fB defined on (0,1) by
fB(x)=(a−1)!(b−1)!(a+b−1)!xa−1(1−x)b−1
Let X and Y be independent random variables with respective distributions Γ(n,θ) and Γ(m,θ). Show that the random variables X/(X+Y) and X+Y are independent and give their distributions.