Sampling Gamma random variates through the ratio-of-uniforms method
Category: python
#monte carlo #numpy #random sampling #ratio-of-uniforms #scipy #python
One year ago I had the chance to take a class on Monte Carlo simulation with prof. Ion Văduva, and my assignment for the class was to implement exactly what it says in the title of the blog post. I am going to walk you through the idea behind this …