Error Analysis Help: Line of Best Fit with Error Bars

AI Thread Summary
To create a line of best fit that accounts for error bars on three data points, it's essential to use a method that incorporates the individual errors rather than applying them post-fit. The box method can be tedious but offers a way to visualize error ranges by creating error boxes around each point. The maximum and minimum gradient lines should intersect all error boxes, ensuring a comprehensive fit. While Excel can calculate gradients, users are seeking software solutions that automate this process. Finding a suitable program can significantly simplify the analysis of error-influenced data.
$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
 
Thread 'Help with Time-Independent Perturbation Theory "Good" States Proof'
(Disclaimer: this is not a HW question. I am self-studying, and this felt like the type of question I've seen in this forum. If there is somewhere better for me to share this doubt, please let me know and I'll transfer it right away.) I am currently reviewing Chapter 7 of Introduction to QM by Griffiths. I have been stuck for an hour or so trying to understand the last paragraph of this proof (pls check the attached file). It claims that we can express Ψ_{γ}(0) as a linear combination of...
Back
Top