Matlab's binoinv equivalent in Python -
is there python equivalent of binoinv matlab function? new data analysis , don't have experience in domain. helpful if can me out.
you have functionality in scipy.stats.binom:
matlab:
>> x = binoinv([.3 .7 .9], 100, .25) ans = 23 27 31python:
>>> scipy.stats import binom >>> x = binom.ppf([.3, .7, .9], 100, .25) >>> print(x) [ 23. 27. 31.]
Comments
Post a Comment