Oct-28-2018, 02:32 PM
Greetings,
I am trying to numerically calculate a double integral over probability distributions (beta distributions), see picture.
I want to approximate the integrals as sums, taking samples according to the distributions.
I know I can sample from the beta function via beta.rvs(a,b), but since my second integration goes only from 0 to theta1, I can only use samples that are < theta1 there.
How can I solve this problem efficiently?
Regards!
I am trying to numerically calculate a double integral over probability distributions (beta distributions), see picture.
I want to approximate the integrals as sums, taking samples according to the distributions.
I know I can sample from the beta function via beta.rvs(a,b), but since my second integration goes only from 0 to theta1, I can only use samples that are < theta1 there.
How can I solve this problem efficiently?
Regards!