- #1
Malamala
- 313
- 27
Hello! If I have some data points, with error bars on both x and y, and I would like to fit them with a function f(x). How can I write the chi-squared in this case? For errors only on y, I would have ##\chi^2 = \sum_i(\frac{f(x)-y}{\sigma_y})^2##, but I am not sure how to include ##\sigma_x##. Thank you!