According to Wikipedia the expected value of a Gamma distribution is k * theta
. However, when I plug that into the CDF for the gamma distribution I don't get 0.5 as expected.
k = 1.5
theta = 2.1
expected_value = k * theta
scipy.stats.gamma.cdf(expected_value, k, scale=theta)
The result of the last line is 0.6083 instead of 0.5 as expected.