Least square fit for data with uncertainty

71 Views Asked by At

I have a set of data $\{x_i,y_i\}$ that came from my measurement, so each of them has some uncertainty. I wonder is there a method to fit them using a model (like Gaussian), while taking care of those uncertainties? In my previous experience on the least-squares fit, I only used the data and didn't take uncertainties in measurement into account. Thanks:)