This shows you the differences between two versions of the page.

phy123summer:lab_1 [2010/06/04 07:50] mdawber |
phy123summer:lab_1 [2010/06/06 17:15] (current) mdawber |
||
---|---|---|---|

Line 1: | Line 1: | ||

====== PHY 123 Lab 1 - Error and Uncertainty and the Simple Pendulum ====== | ====== PHY 123 Lab 1 - Error and Uncertainty and the Simple Pendulum ====== | ||

- | I hope that this material works on everyone's machines. If you have a problem, please try the following troubleshooting steps. | ||

- | -Use a decent browser, try either [[http://www.mozilla.com/firefox/|Mozilla Firefox]] or [[http://www.google.com/chrome|Google Chrome]]. | + | **Important: You need to print out and bring to lab the 1 page worksheet you find by clicking [[http://mini.physics.sunysb.edu/~mdawber/phy123summerworksheet1.pdf|here]]** |

- | -Make sure that you have both [[http://www.java.com/en/|Java]] and [[http://get.adobe.com/flashplayer/|Flash]] installed. | + | |

- | -If you still have trouble then try the [[http://www.ic.sunysb.edu/Class/phy122ps/labs/dokuwiki/pdfs/phy123lab1.pdf|.pdf]] version (videos and plotting won't work, but you can read/print the rest). | + | |

+ | If you need the pdf version of this page you can get it [[http://mini.physics.sunysb.edu/~mdawber/phy123summerlab1.pdf|here]] | ||

+ | |||

+ | |||

Line 364: | Line 364: | ||

{{lab1plotfig.png}} | {{lab1plotfig.png}} | ||

- | The data is clearly quite linear when plotted like this, so it gives us an indication that our formula at the least has the right form. (Maybe you would like to try plotting $L$ directly against $T$ and see what looks like). Notice that you can't see the y error bars because they are very small. The program has fitted the data using a least-squares fitting approach. This means that it has calculated for each data point the square of the difference between the data point and the line. It then adds up all these "squares" and uses this number to determine how good the fit is. The computer tries to find the line that gives the smallest sum of squares and calls this the line of best fit. It's drawn this on the graph and called it "y=a*x". It's also given you the value of a and its estimate for the uncertainty in a. The value the program gives for the error in a is often fairly small, it relies mostly on the scatter in a and only uses the errors you enter to weight the points differently in its fit. | + | The data is clearly quite linear when plotted like this, so it gives us an indication that our formula at the least has the right form. Notice that you can't see the y error bars because they are very small. The program has fitted the data using a least-squares fitting approach. This means that it has calculated for each data point the square of the difference between the data point and the line. It then adds up all these "squares" and uses this number to determine how good the fit is. The computer tries to find the line that gives the smallest sum of squares and calls this the line of best fit. It's drawn this on the graph and called it "y=a*x". It's also given you the value of a and its estimate for the uncertainty in a. The value the program gives for the error in a is often fairly small, it relies mostly on the scatter in a and only uses the errors you enter to weight the points differently in its fit. |

Another technique you can use to estimate the error in the slope is to draw "max-min lines". Here we draw in two lines, one that has the maximum slope that seems reasonable, the "max" line, and another with the smallest slope that seems reasonable, the "min" line. Normally we do these exercises on paper, but you can probably do it simply by holding a clear plastic ruler up to the screen to decide where you think the max-min lines should be (please DON'T draw on the screen!!). A line is reasonable if it just passes within //most// of the error bars. You then just take two convenient points on the line, and find the change in y over the change in x to calculate the slope. You can then work out the slope of both lines to give yourself an estimate of the error in the slope. In the example below you can calculate that the "max" line has a slope of about 90/3.6=25 cm/s<sup>2</sup>, and the "min" line has slope of about 90/3.8=23.7 cm/s<sup>2</sup>, therefore if you used this method you would conclude that the value of the slope is 24.4+/-0.7 cm/s<sup>2</sup>, as compared to the computers estimate of 24.41+/-0.16 cm/s<sup>2</sup>. Note that I drew the lines through (0,0) which we can consider as an error free point, i.e. the fits **must** go through this point. | Another technique you can use to estimate the error in the slope is to draw "max-min lines". Here we draw in two lines, one that has the maximum slope that seems reasonable, the "max" line, and another with the smallest slope that seems reasonable, the "min" line. Normally we do these exercises on paper, but you can probably do it simply by holding a clear plastic ruler up to the screen to decide where you think the max-min lines should be (please DON'T draw on the screen!!). A line is reasonable if it just passes within //most// of the error bars. You then just take two convenient points on the line, and find the change in y over the change in x to calculate the slope. You can then work out the slope of both lines to give yourself an estimate of the error in the slope. In the example below you can calculate that the "max" line has a slope of about 90/3.6=25 cm/s<sup>2</sup>, and the "min" line has slope of about 90/3.8=23.7 cm/s<sup>2</sup>, therefore if you used this method you would conclude that the value of the slope is 24.4+/-0.7 cm/s<sup>2</sup>, as compared to the computers estimate of 24.41+/-0.16 cm/s<sup>2</sup>. Note that I drew the lines through (0,0) which we can consider as an error free point, i.e. the fits **must** go through this point. | ||

Line 416: | Line 416: | ||

Was this plot linear? Do you think that based on the difference between the graphs you are able to confirm what the correct equation is that relate the period of oscillation to the length of the string? | Was this plot linear? Do you think that based on the difference between the graphs you are able to confirm what the correct equation is that relate the period of oscillation to the length of the string? | ||

- | ===== Finishing up ===== | + | ==== Finishing up ==== |

Once you have finished your experiment you need to discuss your results with your TA. Don't leave until they say you can as you only get credit for the lab if the TA thinks you did a good enough job on the experiment and have mastered the key points that the experiment covers! | Once you have finished your experiment you need to discuss your results with your TA. Don't leave until they say you can as you only get credit for the lab if the TA thinks you did a good enough job on the experiment and have mastered the key points that the experiment covers! |