[SciPy-User] calculate new values in csv using numpy

Johannes Radinger johradinger at googlemail.com
Tue Jul 19 11:12:30 EDT 2011


So I found out which lines are causing the problems but I don't know
yet why:

It seems that my optimize function can solve with very small values of
s1.

the optimize function i am using to solve is again:

def func(x,s1,s2,m,A,p):
    return (p) * stats.norm.cdf(x, loc=m, scale=s1) + (1-p) *
stats.norm.cdf(x, loc=m, scale=s2) - A
 x1=optimize.zeros.newton(func, 1., args=(s1,s2,m,A,p))

where m=0, A=0.6827 and following value-triples(s1,s2,p) causing
problems:
['0.453567', '56.449087', '0.945475']
['0.109604', '32.540055', '0.574013']
['0.152876', '7.009490', '0.646816']

but why is here the tolerance reached? what can I do to improve that
because the results I get aren't correct.

/Johannes



More information about the SciPy-User mailing list