NanakiXIII
- 391
- 0
I'm working on an experiment and trying to do some data analysis which seems to me should be fairly trivial, but I can't for the life of me figure it out.
I want to know the value of some property A and to do so I'm measuring data points (x,y), which are related to the value I want by
A = \frac{y}{x}.
So what I could do, is just calculate all my \frac{y_i}{x_i} and find the mean and standard deviation and whatever I want, but I remember once being told that it's a good idea to do the following. I plotted my (x,y) as datapoints, then fitted with y = A x.
I don't remember why this was a good idea (or, why it was a better idea than just averaging), but it makes for nice graphs, anyway. The fitting went fine, but what I'm stuck on is how to calculate the error in A. I've never been very interested in data analysis, and it's all a little hazy. Is what I'm doing possible and useful? How do I calculate an error in my parameter? I'm sure it's something to do with the sum of the squares of the residuals, but there has to be more to it than that, because that doesn't even have the right units.
If anyone could help untangle my messy knowledge on this subject, I'd be very grateful.
Postscript: I'm not using data analysis software. I'm pretty sure Origin would just do this for me, but I'm just using Mathematica to plot and fit. Since this problem is pretty simple, I want to try to do it by hand, rather than having Origin calculate these things for me without knowing what it actually does.
I want to know the value of some property A and to do so I'm measuring data points (x,y), which are related to the value I want by
A = \frac{y}{x}.
So what I could do, is just calculate all my \frac{y_i}{x_i} and find the mean and standard deviation and whatever I want, but I remember once being told that it's a good idea to do the following. I plotted my (x,y) as datapoints, then fitted with y = A x.
I don't remember why this was a good idea (or, why it was a better idea than just averaging), but it makes for nice graphs, anyway. The fitting went fine, but what I'm stuck on is how to calculate the error in A. I've never been very interested in data analysis, and it's all a little hazy. Is what I'm doing possible and useful? How do I calculate an error in my parameter? I'm sure it's something to do with the sum of the squares of the residuals, but there has to be more to it than that, because that doesn't even have the right units.
If anyone could help untangle my messy knowledge on this subject, I'd be very grateful.
Postscript: I'm not using data analysis software. I'm pretty sure Origin would just do this for me, but I'm just using Mathematica to plot and fit. Since this problem is pretty simple, I want to try to do it by hand, rather than having Origin calculate these things for me without knowing what it actually does.