I need to pass the inverse of a cdf as an argument to function. I cannot understand why this does not work:
def InvNormal(q,a,b):
return norm.ppf(q,a,b)
F_invs = functools.partial(InvNormal,0,1)
Doing
print(InvNormal(0.3,0,1))
print(F_invs(0.3))
I get
-0.5244005127080409
-inf
Any help is appreciated! Bernardo
I tried it with different random variables.