# Error propagation with root

**URL:** <https://root-forum.cern.ch/t/error-propagation-with-root/40943>\
**Category:** Newbie\
**Created:** [August 11, 2020, 9:24am UTC](https://root-forum.cern.ch/t/error-propagation-with-root/40943 "2020-08-11T09:24:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![RiccardoFarina](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/r/34f0e0/32.png) [@RiccardoFarina](https://root-forum.cern.ch/u/RiccardoFarina)\
**Post date:** [August 11, 2020, 9:24am UTC](https://root-forum.cern.ch/t/error-propagation-with-root/40943/1 "2020-08-11T09:24:51Z")

</div>

Hi,

I’d like to know if is there any ROOT function or class to propagate errors of derived quantities.  
I’m talking about this formula:

![Schermata 2020-08-11 alle 11.21.15](https://root-forum.cern.ch/uploads/default/original/3X/c/3/c36681be024b21481a0869775ef7711b5f3eea37.png)

where F(x,y,z) is a function of x,y,z obtained through direct measurements.

Thanks!

---

<div class="post-metadata">

**Author:** ![Axel](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/axel/32/11084_2.png) [@Axel](https://root-forum.cern.ch/u/Axel)\
**Post date:** [August 13, 2020, 7:23am UTC](https://root-forum.cern.ch/t/error-propagation-with-root/40943/2 "2020-08-13T07:23:18Z")

</div>

Hi Riccardo,

In principle that’s best covered by modeling and symbolic calculus, and that in turn brings us to RooFit. @StephanH is that something that’s possible with RooFit?

Cheers, Axel.

---

<div class="post-metadata">

**Author:** ![StephanH](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/s/c68b51/32.png) [@StephanH](https://root-forum.cern.ch/u/StephanH)\
**Post date:** [August 13, 2020, 8:59am UTC](https://root-forum.cern.ch/t/error-propagation-with-root/40943/3 "2020-08-13T08:59:15Z")

</div>

No, RooFit doesn’t do this as far as I know. It uses numeric derivatives to do fits.

Unless @moneta knows another method, you can write down the formula 10.2 using the [RichardsonDerivator](https://root.cern/doc/master/classROOT_1_1Math_1_1RichardsonDerivator.html). Make one derivator for each partial derivative, and then sum them in squares as usual.
