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:

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

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

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?