I would like to calculate this sum
using numpy.sum - how can I do that?
Phi is a function that takes one parameter, y and x are vectors of length i