1

I have

x=["lists of numbers"]
events=["lists of numbers"]

I want to minimize a function having 'a' and 'b' as parameters

def f(a,b):
    for i in range(0,71):
        s=0.0
        sum1=((events[i]-x[i]**(a+b*np.log(x[i]))**2)/np.sqrt(events[i]))
        s=s+sum1

I want to get the values a and b

How can I minimize f?

Beezet
  • 31
  • 3

0 Answers0