I Linear fitting in physics experiments with errors

AI Thread Summary
In experimental physics, when measuring two linearly related quantities x and y with associated errors dxi and dyi, the standard least squares method may not suffice. Instead, the Maximum Likelihood Estimator can be used to account for these errors in the fitting process. Additionally, the Total Least Squares method is recommended for more accurately determining the linear fit parameters a and b, as well as their uncertainties da and db. These approaches help ensure that the results reflect the true relationship between the variables despite measurement errors. Understanding these methods is crucial for accurate data analysis in experimental physics.
kvothe18
Messages
2
Reaction score
0
Hello!

I have a question that maybe has to do more with Mathematics, but if you do experimental physics you find it quite often.

Let's assume that we want to measure two quantities x and y that we know that they relate to each other linearly. So we have a set of data points xi and yi, i=1,...,n, and we want to make a linear fit. According to the method of least squeares there exist formulas for a, b, where y=a+bx, and their errors da and db. These formulas, if I'm not wrong, are these in the following link: http://prntscr.com/iz15tk ( [ ] means sum)

But in the most common case, for each xi and yi value we have an error dxi and dyi, i =1,...,n respectively. In this case which are the formulas about a, b, da, db? Of course these values shoud be different from the first case. I've searched on the internet but I couldn't find anything in this general case.

Do you have any ideas?
Thank you.
 
Physics news on Phys.org
kvothe18 said:
Hello!

I have a question that maybe has to do more with Mathematics, but if you do experimental physics you find it quite often.

Let's assume that we want to measure two quantities x and y that we know that they relate to each other linearly. So we have a set of data points xi and yi, i=1,...,n, and we want to make a linear fit. According to the method of least squeares there exist formulas for a, b, where y=a+bx, and their errors da and db. These formulas, if I'm not wrong, are these in the following link: http://prntscr.com/iz15tk ( [ ] means sum)

But in the most common case, for each xi and yi value we have an error dxi and dyi, i =1,...,n respectively. In this case which are the formulas about a, b, da, db? Of course these values shoud be different from the first case. I've searched on the internet but I couldn't find anything in this general case.

Do you have any ideas?
Thank you.
What you are looking for is called a Maximum Likelihood Estimator.
 
Usually the error bars of data points are ignored when doing a least squares fit, as the slope and intercept should approach the "correct" value if there's a large enough number of data points and the error is not systematic.
 
So I know that electrons are fundamental, there's no 'material' that makes them up, it's like talking about a colour itself rather than a car or a flower. Now protons and neutrons and quarks and whatever other stuff is there fundamentally, I want someone to kind of teach me these, I have a lot of questions that books might not give the answer in the way I understand. Thanks
Back
Top