Python Forum
draw sample from distribution in interval
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
draw sample from distribution in interval
#1
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?

[Image: 61202905bd3405a6695708e4d4c5bcc2821e0d27...247c8e.jpg]

Regards!
Reply


Messages In This Thread
draw sample from distribution in interval - by SchroedingersLion - Oct-28-2018, 02:32 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  integer +-* interval mcgrim 2 2,861 May-08-2019, 11:53 AM
Last Post: mcgrim
  Polynomial value between a interval RiceGum 3 3,846 Nov-17-2017, 02:59 PM
Last Post: heiner55
  matplotlib legend and x axis interval metalray 5 27,919 Apr-14-2017, 12:07 PM
Last Post: metalray

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020