# Python lmfit takes weights into account, but Julia LsqFit package seems not to

**URL:** <https://discourse.julialang.org/t/python-lmfit-takes-weights-into-account-but-julia-lsqfit-package-seems-not-to/90679>\
**Category:** General Usage\
**Tags:** fit, curve-fitting, lsqfit\
**Created:** [November 23, 2022, 3:20am UTC](https://discourse.julialang.org/t/python-lmfit-takes-weights-into-account-but-julia-lsqfit-package-seems-not-to/90679 "2022-11-23T03:20:16Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![rafael.guerra](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rafael.guerra/32/216610_2.png) [@rafael.guerra](https://discourse.julialang.org/u/rafael.guerra)\
**Post date:** [November 23, 2022, 3:12pm UTC](https://discourse.julialang.org/t/python-lmfit-takes-weights-into-account-but-julia-lsqfit-package-seems-not-to/90679/5 "2022-11-23T15:12:22Z")

</div>

Just in case, the weights provided to `LsqFit.jl` should be inverse variances. See this [other thread](https://discourse.julialang.org/t/nonlinear-curve-fitting-with-weights-with-lsqfit/78478/11).

---

_[View the full topic](https://discourse.julialang.org/t/python-lmfit-takes-weights-into-account-but-julia-lsqfit-package-seems-not-to/90679)._
