# Can we use expected value to calculate measured value?

**URL:** <https://root-forum.cern.ch/t/can-we-use-expected-value-to-calculate-measured-value/60261>\
**Category:** Newbie\
**Created:** [July 18, 2024, 5:26pm UTC](https://root-forum.cern.ch/t/can-we-use-expected-value-to-calculate-measured-value/60261 "2024-07-18T17:26:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Crisps](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/crisps/32/39101_2.png) [@Crisps](https://root-forum.cern.ch/u/Crisps)\
**Post date:** [July 18, 2024, 5:26pm UTC](https://root-forum.cern.ch/t/can-we-use-expected-value-to-calculate-measured-value/60261/1 "2024-07-18T17:26:10Z")

</div>

I’m not sure if this is a proper question here (if not please point me to somewhere thanks a lot)

I’m trying to fit some drift chamber (not perfect cylinder) data value, where I have measurement t\_m (drift time measurement), and expectation (\rho\_e, \phi\_e, \theta\_e, Z\_e) (4 parameters for a straight line). And I also have a relation that:

t = f(\rho, \phi, \theta, Z)

Now I have 2 options for \chi^2 defination, the first is

\chi^2 = \sum \left(\frac{t\_e - t\_m}{\sigma\_t}\right)^2

which is fine, but the problem is the second one (I believe is being used everywhere)

\chi^2 = \sum \left(\frac{r\_e - r\_m}{\sigma\_r}\right)^2

where the r is drift distance. You can see that in order to get the measurement of drift distance I need more than 1 parameter to calculate it, but the only measurement I have is time, so I need to use t\_m and something like \rho\_e to calculate it, like r\_m = f(\rho\_e, \phi\_e, \theta\_e, t\_m) where the measurement and expectation is mixed. So is the second defination of \chi2 wrong if r-t is not 1-to-1 relation?

---

<div class="post-metadata">

**Author:** ![Danilo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/danilo/32/34528_2.png) [@Danilo](https://root-forum.cern.ch/u/Danilo)\
**Post date:** [July 18, 2024, 7:55pm UTC](https://root-forum.cern.ch/t/can-we-use-expected-value-to-calculate-measured-value/60261/2 "2024-07-18T19:55:38Z")

</div>

Hi,

I confirm that this is an interesting topic, but perhaps not very related to ROOT.

Cheers,  
D

---

<div class="post-metadata">

**Author:** ![Crisps](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/crisps/32/39101_2.png) [@Crisps](https://root-forum.cern.ch/u/Crisps)\
**Post date:** [July 19, 2024, 4:32pm UTC](https://root-forum.cern.ch/t/can-we-use-expected-value-to-calculate-measured-value/60261/3 "2024-07-19T16:32:09Z")

</div>

Thank you, can you please suggest if there is a good place to ask such question?
