Source: https://www.mit.edu/~jeffery/gamma_beta.pdf