Error Analysis Help: Line of Best Fit with Error Bars

$id
Messages
46
Reaction score
0

Homework Statement



I am trying to work out if there is an elegant way to do a line of best fit(straight) through a set of points (3) while taking into consideration their error bars? Clearly I'm looking for a piece of software that can do this. Obviously excel, etc can do a standard straight line + equation and add errors later on but the fit will be different if errors are considered in the place on each point individually.

The reason I'm doing this is because I want to know the error in the gradient, taking account of the fact that each point has an error ( every point has different errors)




The Attempt at a Solution



The box method noted here will sort of work but it is quite tedious

http://wwwchem.uwimona.edu.jm:1104/lab_manuals/c10appendix7.html

But I'm looking for alternative ways of doing this. I only have 3 points of data as well.

Regards,
sid
 
Physics news on Phys.org
You only have three points of data?!??!

There's your first problem.

In the past I have used an error box method, but not the same as the one on the linked website.

You have x error bars and y error bars - these can be made into error boxes around each data point.

The line of maximum gradient then goes from the bottom right hand corner of your smallest x value to the top left corner of your highest x value.

The line of minimum gradient goes from the top left of the smallest x error box to the bottom right of the highest x error box.

Make sure that these lines go through ALL error boxes - if they don't, you have to make some adjustments.

The points just mentioned and gradients are pretty easy to spit out of excel.

Good luck.
 
I can't take any more points

While i understand the box method, I was interested in a some sort of program being able to do the hard work for me lol

sid
 
Hi, I had an exam and I completely messed up a problem. Especially one part which was necessary for the rest of the problem. Basically, I have a wormhole metric: $$(ds)^2 = -(dt)^2 + (dr)^2 + (r^2 + b^2)( (d\theta)^2 + sin^2 \theta (d\phi)^2 )$$ Where ##b=1## with an orbit only in the equatorial plane. We also know from the question that the orbit must satisfy this relationship: $$\varepsilon = \frac{1}{2} (\frac{dr}{d\tau})^2 + V_{eff}(r)$$ Ultimately, I was tasked to find the initial...
The value of H equals ## 10^{3}## in natural units, According to : https://en.wikipedia.org/wiki/Natural_units, ## t \sim 10^{-21} sec = 10^{21} Hz ##, and since ## \text{GeV} \sim 10^{24} \text{Hz } ##, ## GeV \sim 10^{24} \times 10^{-21} = 10^3 ## in natural units. So is this conversion correct? Also in the above formula, can I convert H to that natural units , since it’s a constant, while keeping k in Hz ?
Back
Top