How to calculate uncertainty of gradient of straight line?

Click For Summary
SUMMARY

The discussion focuses on calculating the uncertainty of Planck's constant (h) using data from an undergraduate experiment involving X-ray scattering off NaCl crystals and Bragg's law. The participant rearranged the equation eV=h(c/(2dsin(θ))) to derive h and applied error propagation to find Δh. The consensus is that averaging the uncertainties from 16 different X-ray energy measurements is a valid approach, but utilizing linear least squares fitting will yield a more accurate estimate of h. The importance of correctly identifying the relationship between energy and angle is emphasized, as they are inversely proportional.

PREREQUISITES
  • Understanding of Bragg's law and its application in X-ray diffraction.
  • Familiarity with error propagation techniques in experimental physics.
  • Knowledge of linear least squares fitting for data analysis.
  • Proficiency in using Excel for plotting and statistical analysis.
NEXT STEPS
  • Learn about advanced error propagation methods in experimental physics.
  • Study linear least squares fitting techniques and their applications in data analysis.
  • Explore the relationship between energy and angle in X-ray scattering experiments.
  • Investigate the implications of uncertainty in measurements on scientific conclusions.
USEFUL FOR

Students and researchers in experimental physics, particularly those involved in X-ray diffraction studies and uncertainty analysis in measurements.

henry wang
Messages
30
Reaction score
0
Mod note: Moved from a technical forum section, so missing the homework template.
I am analysing the data from my undergrad experiment, which the aim is to find the Plank's constant by scattering x-ray off NaCl crystal and using Braggs law.
The straight-line equation is as follows: eV=h\frac{c}{2dsin(\theta)}. I am only considering the uncertainty in theta since it is the dominant uncertainty in my experiment.
To find the uncertainty in the Planks constant, h, I rearranged the above equation to h=\frac{2eVdsin(\theta)}{c} and used the error propagation equation and found \Delta h=\frac{2eVdcos(\theta)\Delta \theta}{c}. I have 16 data points of different x-ray energies, so I found dh of all 16 data points and took its average. Is this a good approach?
PS: Should I move this thread to the Homework and Coursework section?
 
Last edited by a moderator:
Physics news on Phys.org
So I presume these 16 measurements were 16 different x ray energies and you measure theta for each one, or were these 16 repeated measurements and you just have random scatter in theta?
 
Cutter Ketch said:
So I presume these 16 measurements were 16 different x ray energies and you measure theta for each one, or were these 16 repeated measurements and you just have random scatter in theta?
Sorry, I should've specified, I have taken 16 measurements of different x-ray energies.
 
If they are just 16 repeated measurements with random variation in theta, then yes, your error propagation is correct.
 
Ah, that's different. To see why picture three measurements on a straight line behavior and you want to know the slope. Say all three points had the same error bar. Now picture the range of slopes you could put through the error bars of points one and two. Now picture the range of slopes you could put through the error bars of points 1 and 3. The end points put a much harder constraint on the possible slopes than adjacent points. If you look at what slopes points 1 and 3 allow you see that point two adds very little extra constraint. So how the points are spread out affects the constraint on the slope.

At the extreme, assume a whole bunch of points are close together on the x-axis and one single measurement is far to the right. The error in that single measurement has a much greater impact on the uncertainty of the slope than the other points do.
 
So should I plot y=hx and find h_min and h_max by fitting line using the uncertainty in x and y?
The problem is, however, if y=eV and x=c/(2dsin(theta)), the associated uncertainty in x will be HUGE.
 
Last edited:
No, the energy is the thing you have confidence in and the angle is the thing you measured and think you have uncertainty in. Plot energy as x and angle (or better yet sine(angle)) as y. Regarding uncertainty, the error bars shouldn't be large compared to the size of the values, right?

Unfortunately this isn't a straight line, so I'm not sure they wanted you to go in this direction. I think I am misleading you.
 
BTW I thought I would reiterate. The title of the post is incorrect. The thing you varied is Energy. The thing you measured is angle. They are not directly proportional. They are inversely proportional. h is not proportional to the slope of a straight line. Unless you want the complicated version, I think a simplified way of looking at it is in order. You probably took each measurement as an independent measurement of h without regard to the energy and averaged the values. In that case I think what you did to propagate the error is a reasonable approach.

Your measurements actually can produce a much better estimate of h by least squares, and while the error in the least squares estimate is much smaller, calculating it is much harder to follow.
 
Cutter Ketch said:
BTW I thought I would reiterate. The title of the post is incorrect. The thing you varied is Energy. The thing you measured is angle. They are not directly proportional. They are inversely proportional. h is not proportional to the slope of a straight line. Unless you want the complicated version, I think a simplified way of looking at it is in order. You probably took each measurement as an independent measurement of h without regard to the energy and averaged the values. In that case I think what you did to propagate the error is a reasonable approach.

Your measurements actually can produce a much better estimate of h by least squares, and while the error in the least squares estimate is much smaller, calculating it is much harder to follow.
I plotted eV=hc/lambda using excel, where it gave me a straightline. (lambda is 2dsin(theta), y is eV and x is c/lambda) It does linear least squares for me, and gave me h=6.745*10^-34. I think I will take your advice to plot max and min gradient lines permitted by my uncertainties and find out h_max and h_min.
Thank you very much!
 
Last edited:

Similar threads

  • · Replies 8 ·
Replies
8
Views
2K
Replies
8
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 1 ·
Replies
1
Views
7K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
3
Views
2K
  • · Replies 6 ·
Replies
6
Views
5K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 5 ·
Replies
5
Views
2K