I would like to translate the following Matlab code in Python:
tau=40 %scale parameter
a=3 %shape parameter
t = gaminv(0.90,a,tau);
The code returns t = 212.8928. I've tried:
import scipy.stats.distributions as dist
tau=40
a=3
t = dist.invgamma.cdf(90, a, scale = tau)
but the python code doesn't return the same t value. Am I doing something wrong?