Nonlinear curve fitting with weights with LsqFit

It is much more clear to write:

σy = [109., 102., 96., 89., 71.]   # standard deviations of y
w = 1 ./ σy.^2                     # weights for LsqFit
1 Like