| New Reply |
linear regression, error in both variables |
Share Thread | Thread Tools |
| Apr10-11, 11:41 PM | #1 |
|
|
linear regression, error in both variables
Hi y'all, wondering if you could help me with this. I have a data set with a linear relationship between the independent and dependent variables. Both the depended and independent variables have error due to measurement and this error is not constant.
For example, {x1, x2, x3, x4, x5} {y1, y2, y3, y4, y5} {dx1, dx2, dx3, dx4, dx5} {dy1, dy2, dy3, dy4, dy5} where one data point would be (x1±dx1, y±dy1), and so on. Assuming the relationship is of the form, y = ax + b, I need both the best value for a, and its uncertainty, (a ± da). I've been scouring the internet for more information on total least squares methods, and generalized method of moments, etc. but I can't find something that works for the case where the error in x and y is just some arbitrary value, like in my case. helpful hints? |
| Apr11-11, 11:06 AM | #2 |
|
Recognitions:
|
We want the line y = ax + b that minimizes the expected error between data points and the line, when we average these errors over the whole line between X = (some minimum value of interest) and X = (some maximum value of interest), giving all those parts of the line equal weight in this averaging. The error between a data point (x_i,y_i) and the line will be measured by the perpendicular distance (x_i, y_i) and the the line. What exactly do you know about this? For example, if we have a data point (10.0, 50.2), do you have a lot data with similar values, so that we can estimate the variance in X and Y around the value (10.0,50.2)? Or do you only have data with widely separated X and Y values and are basing your assertion that the variances in the errors change with X and Y because of the overall scattered appearance of the data? |
| Apr11-11, 12:22 PM | #3 |
|
Recognitions:
|
Sounds like you have a combination of 'weighted' and 'total / orthogonal' least squares. Following link to MIT lecture on weighted least squares might be helpful:
http://academicearth.org/lectures/we...-least-squares |
| Jun2-11, 06:50 PM | #4 |
|
|
linear regression, error in both variables
I was hoping to find help on the same topic! Any ideas?
thanks in advance |
| Jun3-11, 12:42 AM | #5 |
|
Recognitions:
|
Look at the Wikipedia article on Total Least Squares http://en.wikipedia.org/wiki/Total_least_squares. I've only scanned the article myself, but it looks like what you want. It has an example written in Octave, which is a free Matlab work-alike.
|
| New Reply |
| Thread Tools | |
Similar Threads for: linear regression, error in both variables
|
||||
| Thread | Forum | Replies | ||
| Regression SS in multiple linear regression | Set Theory, Logic, Probability, Statistics | 2 | ||
| linear regression with asymmetric error bars | Set Theory, Logic, Probability, Statistics | 11 | ||
| Standard error for marginal effect in regression? | Set Theory, Logic, Probability, Statistics | 1 | ||
| non-normal measurement error in linear regression | Set Theory, Logic, Probability, Statistics | 2 | ||
| Error calc. for linear regression | General Physics | 0 | ||