Sampling an integer-shape gamma distribution
ID: sampling-an-integer-shape-gamma-distribution
If is a positive integer and are independent uniform variables, thenhas the gamma distribution with shape and rate , because each summand is exponential with rate .
New to topics? Read the docs here!