我想用 Python 翻译以下 Matlab 代码:
tau=40 %scale parameter
a=3 %shape parameter
t = gaminv(0.90,a,tau);
代码返回 t = 212.8928。我试过了:
import scipy.stats.distributions as dist
tau=40
a=3
t = dist.invgamma.cdf(90, a, scale = tau)
但 python 代码不返回相同的 t 值。难道我做错了什么?