Nevermind, I found this post that explains how to do it. Basically, I don’t have to normalize the vector of weights. I simply take the inverse squared of each measurement error.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Nonlinear curve fitting with weights with LsqFit | 10 | 2337 | March 26, 2022 | |
| How to do weighted least squares fit with LsqFit.jl | 2 | 1867 | May 14, 2021 | |
| Python lmfit takes weights into account, but Julia LsqFit package seems not to | 9 | 1500 | November 23, 2022 | |
| How to fit a function to measurements with error? | 12 | 4759 | September 8, 2024 | |
| Question about LsqFit | 1 | 1207 | December 18, 2018 |