Skip to content

Instantly share code, notes, and snippets.

#Estimation, mean of Gamma(4.3, 6.2) with Accept-Reject Algorithm
from scipy.stats import gamma
import numpy as np
import matplotlib.pyplot as plt
def f(x):
r = gamma.pdf(x, 4.3, scale=1/6.2)
return r