Estimating PDF of ratio of random variables

71 Views Asked by At

I have a step in my project in which I have two random variables $U$ and $V$ with their distributions, and I need to calculate the quantity $\frac{U}{U+V}$. Unfortunately, this ratio does not have an analitically tractable distribution.

My question is: is it possible to compute the PDF of the ratio by taking samples from the numerator, taking samples from the denominator, computing the ratio and then using the histogram of the ratios as the estimate for the PDF?

Thank you very much!

1

There are 1 best solutions below

1
On BEST ANSWER

Graphical comment: Using R.

u = runif(10^6); v = runif(10^6)
x = u/(u+v)
hist(x, prob=T, br=50)

enter image description here

You can derive the PDF of $X = \frac{u}{U+V}$ by using a bivariate transformation.