# The option W in Fit()?

**URL:** <https://root-forum.cern.ch/t/the-option-w-in-fit/58063>\
**Category:** Newbie\
**Created:** [February 5, 2024, 11:32am UTC](https://root-forum.cern.ch/t/the-option-w-in-fit/58063 "2024-02-05T11:32:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![utkarsh-2000](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/u/e47774/32.png) [@utkarsh-2000](https://root-forum.cern.ch/u/utkarsh-2000)\
**Post date:** [February 5, 2024, 11:32am UTC](https://root-forum.cern.ch/t/the-option-w-in-fit/58063/1 "2024-02-05T11:32:29Z")

</div>

```auto
"W" [Set](https://root.cern.ch/root/html528/TGraph.html#TGraph:Set) all weights to 1; ignore error bars

```

Hi,

Sorry for a naive query, but can someone please help explain option W while using the Fit() method? I understand it sets weights to 1, but I am not sure as to what do the ‘weights’ refer here.

Thanks a lot

---

<div class="post-metadata">

**Author:** ![dastudillo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/dastudillo/32/17280_2.png) [@dastudillo](https://root-forum.cern.ch/u/dastudillo)\
**Post date:** [February 5, 2024, 11:49am UTC](https://root-forum.cern.ch/t/the-option-w-in-fit/58063/2 "2024-02-05T11:49:00Z")

</div>

Keep reading that section, scrolling down a bit you’ll read about fitting TGraphErrors. More recent documentation has a bit more explanations:  
[https://root.cern/doc/master/classTGraph.html#aa978c8ee0162e661eae795f6f3a35589](https://root.cern/doc/master/classTGraph.html#aa978c8ee0162e661eae795f6f3a35589)
