INDIANA UNIVERSITY DEPARTMENT OF PHYSICS P309: INTERMEDIATE PHYSICS LABORATORY Introductory Laboratory 0: Buffon's Needle Introduction: In geometry, the circumference of a circle divided by its diameter is a fundamental constant, denoted by the symbol ππ. Curiously, this number has no simple form. Expressed as a decimal, the digits of ππ, ππ = 3.141592653589793238462643383279502884197169399375105820974944. .. continue forever without settling into a regular pattern. This mysterious contrast between the simple geometric explanation of the value of ππ, and the complexity of the numerical value has inspired books, movies, and even cults. Because no simple mathematical form exists for π, we must rely on methods which are able to to calculate ππ iteratively where the approximation to its value becomes better and better with each iteration. The first such estimate was made by Archimedes roughly 200 years BC by calculating the circumference of polygons which fit just inside and just outside of a circle. Currently, the world's best estimate of ππ contains 1.24 trillion decimal places. In this introductory lab we will explore an experimental method to calculate ππ introduced by the French naturalist Georges Buffon in 1733. Method: Buffon's method for estimating the value of ππ relies on the following observation. Suppose you mark a surface with parallel lines separated by a distance ππ. Now imagine throwing a straight object (a needle, or a toothpick) of length ππ randomly onto that surface. It can be shown that in the case where ππ < ππ, the probability 2ππ that the needle lands such that it crosses a line is ππ = ππππ. We can compute the probability ππ experimentally by repeatedly throwing a needle on to the grid. If we throw the needle ππ times and record ππ hits and ππ misses (ππ = ππ + ππ), we can approximate ππ as ππ = ππ/ππ. We can 2ππ then approximate ππ as ππ = ππππ or ππ = 2ππππ ππππ . The more throws of the needle we make the better our approximation to ππ becomes. Last Updated: Prof. James A. Glazier, 8/31/15—Send corrections to jaglazier@gmail.com INDIANA UNIVERSITY DEPARTMENT OF PHYSICS P309: INTERMEDIATE PHYSICS LABORATORY Questions: [1] Can you derive the expression for the probability ππ? [Hint: draw a graph with the distance the needle lands from a line on one axis and the angle the needle lands with on the other axis. Which points on this graph produce a hit?] Let’s do this calculation explicitly (please look at the answer only after you have tried doing the derivation yourself): Consider a toothpick which lands between two lines. The center of the toothpick must be a distance π¦π¦ ≤ ππ 2 ππππππππππππππ πΏπΏπΏπΏπΏπΏπΏπΏ π¦π¦ π¦π¦ ππ from the nearer of the two lines. ππ ππππππππ ππππππππππππππ πΏπΏπΏπΏπΏπΏπΏπΏ ππ 2 π₯π₯ Call the angle of the toothpick with respect to the horizontal axis ππ. ππ − 2 ≤ ππ < ππ. Projecting in the horizontal direction, the length of the toothpick from its center towards the nearer vertical line is π₯π₯ = ππ 2 ππ cos(ππ). If 2 cos(ππ) = π₯π₯ ≥ π¦π¦, the toothpick crosses the line, otherwise it doesn’t. Consider the simple extreme cases: ππ If ππ = 0, π₯π₯ = 2 so the toothpick crosses the nearest line ππ if π¦π¦ ≤ 2. πππππππππππ π π‘π‘ πΏπΏπΏπΏπΏπΏπΏπΏ π¦π¦ ππ = ππ ππ 2 ππππππππππππππ πΏπΏπΏπΏπΏπΏπΏπΏ ππ = 0 ππππππππ ππππππππππππππ πΏπΏπΏπΏπΏπΏπΏπΏ ππ 2 π₯π₯ = 0 π¦π¦ π₯π₯ = ππ 2 ππ ππππππππ ππππππππππππππ πΏπΏπΏπΏπΏπΏπΏπΏ ππ 2 ππ If ππ = 2 , π₯π₯ = 0 so the toothpick only crosses the nearest line if π¦π¦ = 0 In between, the toothpick crosses the line if ππ 2 cos(ππ) ≥ π¦π¦. Last Updated: Prof. James A. Glazier, 8/31/15—Send corrections to jaglazier@gmail.com INDIANA UNIVERSITY DEPARTMENT OF PHYSICS P309: INTERMEDIATE PHYSICS LABORATORY Let’s plot the phase space for the problem (whether the toothpick crosses the line as a function of π¦π¦ and ππ. ππ ππ All four quadrants are the same (0 ≤ ππ ≤ ππ vs −ππ ≤ ππ ≤ 0 and 0 ≤ π¦π¦ ≤ 2 and − 2 ≤ π¦π¦ ≤ 0) so let’s just consider the quadrant where both ππ and π¦π¦ are positive. In this quadrant, if ππ 2 cos(ππ) ≥ π¦π¦ then the toothpick crosses the line. We can draw this result as shown. To the left of the curved blue line, the toothpick crosses the nearest line. To the right it does not cross. Then the probability that the toothpick crosses the nearest line is just the area of the region to the left of the blue line divided by the total area of the rectangle bounded by the dashed and dotted red lines: The area of the rectangle is: ππ ππ ππππ π΄π΄π π π π π π π π π π π π π π π π π π = × = . 2 2 4 . The area to the left of the blue line is: π΄π΄ππππππππππππππππ ππ ππ 2 ππ ππ = 2 ππ = 0 ππ ππππππππβππππππππ ππππππππππππππ ππππππππ π¦π¦ = 0 2ππ 2ππ ⇒ ππ = , ππππ ππππ ππ π¦π¦ = 2 ππ ππ ππ 2 = οΏ½ cos(ππ) ππππ = οΏ½ cos(ππ) ππππ 2 0 0 2 Which was what we wanted to show. ππ π¦π¦ = 2 (eq. 1) 2 ππ ππ ππ ππ = (− sin(ππ)) οΏ½ = οΏ½sin οΏ½ οΏ½ − sin(0)οΏ½ = . 2 2 2 2 0 So the probability of crossing is: ππ π΄π΄ππππππππππππππππ 4ππ 2ππ 2 ππ = = = = . π΄π΄π π π π π π π π π π π π π π π π π π ππππ 2ππππ ππππ 4 . If we rearrange we can calculate ππ from ππ: ππ = ππππππππβππππππππ ππππππππ ππππππ ππππππππππ ππππππππ (eq. 2) (eq. 3) (eq. 4) Last Updated: Prof. James A. Glazier, 8/31/15—Send corrections to jaglazier@gmail.com π¦π¦ INDIANA UNIVERSITY DEPARTMENT OF PHYSICS P309: INTERMEDIATE PHYSICS LABORATORY [2] If the distance ππ and ππ are measured with a precision ππππ and ππππ , and the probability ππ is known with uncertainty ππππ , what is the uncertainty ππππ in the result to ππ? Remember our basic relationship for error propagation: ππππ(π₯π₯1 ,π₯π₯2 ,π₯π₯3 ,… ) = οΏ½οΏ½ 2 1 2 2 ππππ ππππ οΏ½ πππ₯π₯21 + οΏ½ οΏ½ ππ 2 + β― οΏ½ . πππ₯π₯1 π₯π₯Μ 1 ,π₯π₯Μ π π ,… πππ₯π₯2 π₯π₯Μ 1 ,π₯π₯Μ π π ,… π₯π₯2 (eq. 5) In this case, the function ππ(ππ. ππ, ππ) = ππ(ππ, ππ, ππ) = so ππππ 2ππ 1 ππ = οΏ½− 2 οΏ½ = − , ππππ ππ ππ ππ Plug in to eq. 5: ππππ(ππ.ππ,ππ) 2ππ , ππππ ππππ 2 ππ = = , ππππ ππππ ππ ππππ 2ππ 1 ππ = οΏ½− 2 οΏ½ = − ππππ ππ ππ ππ 1 2 ππ 2 ππ 2 ππ 2 = οΏ½οΏ½− οΏ½ ππππ2 + οΏ½ οΏ½ ππππ2 + οΏ½− οΏ½ ππππ2 οΏ½ , ππ ππΜ ,ππ,Μ πποΏ½ ππ ππΜ ,ππ,Μ πποΏ½ ππ ππΜ ,ππ,Μ πποΏ½ (eq. 6) (eq. 7) (eq. 8) We can simplify this equation by looking at the relative error rather than the absolute error. Divide through by πποΏ½ and eliminate extra – signs: 1 2 ππππ(ππ.ππ,ππ) 12 12 12 = οΏ½οΏ½ οΏ½ ππππ2 + οΏ½ οΏ½ ππππ2 + οΏ½ οΏ½ ππππ2 οΏ½ , πποΏ½ ππΜ ππ Μ ππΜ Put ππ…2 inside |… |2ππΜ ,ππ,Μ πποΏ½ : (eq. 9) 1 ππππ 2 ππππ(ππ.ππ,ππ) ππππ 2 ππππ 2 2 = οΏ½οΏ½ οΏ½ + οΏ½ οΏ½ + οΏ½ οΏ½ οΏ½ . πποΏ½ ππΜ ππ Μ ππΜ (eq. 10) This equation for propagation of relative error is a true as long as the individual errors are uncorrelated with each other (for the more complicated cases, see https://en.wikipedia.org/wiki/Propagation_of_uncertainty). It is also the reason that working with relative error is easier than working with absolute error. [3] Inferred vs. Relative Error: From your measurements, you can now calculate both the measured relative error and the theoretical or inferred relative error for ππ: 1 Given your measured values of {ππ1 , ππ2 , … ππππ } calculate ππΜ = ππ ∑ππ ππ=1 ππππ , and ππππ = οΏ½ 1 ππ−1 2 Μ Μ ∑ππ ππ=1(ππππ − ππΜ ) , similarly calculate ππ , ππππ and ππ , ππππ for your measured values of {ππ1 , ππ2 , … ππππ } Last Updated: Prof. James A. Glazier, 8/31/15—Send corrections to jaglazier@gmail.com INDIANA UNIVERSITY DEPARTMENT OF PHYSICS P309: INTERMEDIATE PHYSICS LABORATORY and οΏ½ππ1 , ππ2 , … ππππ οΏ½. First look at ππππ ππππ ππ , ππ and ππππ ππ : Is one of these much larger than the others? If so it is the dominant source of error (and you can essentially neglect the others). In your lab write of give these individual values, discuss their relative significance and why they have the relationship they do. You should make and present this analysis in every experiment you do in this course! Now calculate the theoretical or inferred relative error using eq. 10: 1 ππππ 2 ππππ ππππ 2 ππππ 2 2 = οΏ½οΏ½ οΏ½ + οΏ½ οΏ½ + οΏ½ οΏ½ οΏ½ . πποΏ½ ππΜ ππ Μ ππΜ What is this value? (eq. 10) Separately, you will calculate the measured error as follows: 2ππ Μ From {ππ1 , ππ2 , … ππππ }, ππ Μ and ππΜ , calculate {ππ1 , ππ2 , … ππππ }, using eq. 6 οΏ½ππππ = ππ πποΏ½οΏ½. Your estimated value of πποΏ½ = ππ 1 οΏ½ ππππ . ππ ππ=1 . The measured relative error is now: ππ ππππ′ 1 1 = οΏ½ οΏ½ (ππππ − πποΏ½)2 . πποΏ½ πποΏ½ πποΏ½(ππ − 1) ππ=1 ππ (eq. 11) (eq. 12) You expect that the inferred and measured relative errors should be about the same (they need not be exactly equal). Compare the two values and their difference. Is this difference significant? Why or why not? If one relative error is much bigger than the other, you should think carefully about why and explain this discrepancy in your report. [4] Which uncertainties in your experiment would you label as systematic? Which as statistical? [Hint—look up the concept of counting error in Wikipedia or your statistics notes and textbook. Also consider measurement errors like the accuracy and precision of your ruler, or the possibility of interaction between your toothpicks (what would the effect of clumping toothpicks be on your result]? [5] If you make ππ throws of a single toothpick {ππ1 , ππ2 , … , ππππ } resulting in ππ hits and ππ misses, what is the uncertainty in ππ? Consider each throw to be a measurement of the value of ππ which results in either a hit (ππππ = 1) or a miss (ππππ = 0) and apply the formulas for estimating the error on the mean of a distribution from repeated measurements (see statistics handouts from first class) to show that: Last Updated: Prof. James A. Glazier, 8/31/15—Send corrections to jaglazier@gmail.com INDIANA UNIVERSITY DEPARTMENT OF PHYSICS P309: INTERMEDIATE PHYSICS LABORATORY ππππ2 = ππ(1 − ππ) . ππ − 1 (eq. 13) As above, I’ll present this derivation (please look at the answer only after you have tried it yourself): ππ 1 (eq. 14) ππΜ = οΏ½ ππππ , ππ ππ=1 and ππ 1 ππππ2ππ = οΏ½ (ππππ − ππΜ )2 . (eq. 15) ππ − 1 ππ=1 Now, expand the square on the right-hand side of equation 15: ππππ2ππ = ππ 1 οΏ½ ππππ2 − 2ππππ ππΜ + ππΜ 2 . ππ − 1 ππ=1 Since ππππ ππ{0,1}, ππππ2 = ππππ , so: ππ 1 οΏ½ ππππ − 2ππππ ππΜ + ππΜ 2 . ππππ2ππ = ππ − 1 ππ=1 (eq. 16) (eq. 17) Expand −2ππππ ππΜ = −ππππ ππΜ − ππππ ππΜ : ππ 1 ππππ2ππ = οΏ½ ππππ − ππππ ππΜ − ππππ ππΜ + ππΜ 2 . (eq. 18) ππ − 1 ππ=1 Factor out −ππππ in the first two terms: ππ 1 ππππ2ππ = οΏ½ ππππ (1 − ππΜ ) − ππππ ππΜ + ππΜ 2 . (eq. 19) ππ − 1 ππ=1 ππΜ is a constant, so pull 1 − ππΜ , ππΜ and ππΜ 2 out of the summation: ππ ππ ππ 1 ππππ2ππ = οΏ½(1 − ππΜ ) οΏ½ ππππ − ππΜ οΏ½ ππππ + ππΜ 2 οΏ½ 1οΏ½ . (eq. 20) ππ − 1 ππ=1 ππ=1 ππ=1 ππ ∑ππ ππ=1 ππππ = ππππΜ and ∑ππ=1 1 = ππ, so: 1 {(1 − ππΜ )ππππΜ − ππΜ ππππΜ + ππΜ 2 ππ}. ππππ2ππ = (eq. 21) ππ − 1 But ππΜ ππππΜ = ππΜ 2 ππ, so the second and third terms cancel, and: 1 {(1 − ππΜ )ππππΜ } . ππππ2ππ = (eq. 22) ππ − 1 1 Remember that the uncertainty of the mean squared ππππΜ is ππ times the uncertainty of the individual measurements squared ππππ2ππ , so: ππππΜ 2 = ππππ2ππ 1 ππππΜ (1 − ππΜ ) ππΜ (1 − ππΜ ) = = . ππ ππ − 1 ππ − 1 ππ (eq. 23) Last Updated: Prof. James A. Glazier, 8/31/15—Send corrections to jaglazier@gmail.com INDIANA UNIVERSITY DEPARTMENT OF PHYSICS P309: INTERMEDIATE PHYSICS LABORATORY [6] If we assume that ππ and ππ are perfectly well known (i.e., ππππ = 0, ππππ = 0), how many throws ππ (N) do you need to measure ππ with 1% uncertainty (i.e. for πποΏ½ππ = 0.01)? Call the uncertainty πΏπΏ ≡ ππππ οΏ½ ππ As above, I’ll present this derivation (please look at the answer only after you have tried it yourself): From equation 10, ππππ 2 ππππ2 ππππ 2 ππππ 2 πΏπΏ 2 = 2 = οΏ½ οΏ½ + οΏ½ οΏ½ + οΏ½ οΏ½ . πποΏ½ ππΜ ππ Μ ππΜ (eq. 24) Since we assume ππππ = 0, ππππ = 0: ππππ 2 πΏπΏ 2 = οΏ½ οΏ½ . ππΜ From equation 23, ππππΜ 2 = πΏπΏ 2 = Solve for πΏπΏ: ππ = ππΜ (1−ππΜ ) ππ−1 , so: ππΜ (1 − ππΜ ) 1 − ππΜ = . 2 ππΜ (ππ − 1) ππΜ (ππ − 1) ππ − 1 = So: (eq. 25) (eq. 26) 1 − ππΜ , πΏπΏ 2 ππΜ (eq. 27) 1 1 − ππΜ + 1. πΏπΏ 2 ππΜ (eq. 28) [7] If we assume that l and d are both measured to be 4.0 ± 0.1cm, how many throws (what value of ππ) does it take to make the uncertainty resulting from your measurement of ππ equal to the uncertainty from the measurements of ππ and ππ? [Hint, see point 2 above and eq. 28]. At this point we refer to the measurement as systematics-limited since the statistical error is no longer the largest contribution to the relative error. Repeating the measurement further makes little sense until the systematic errors can be reduced via improved methods and instruments. [8] In the experiment, you can choose to make the distance ππ which separates the lines either nearly equal to ππ or much larger than ππ. What are the advantages and disadvantages of each? Which choice of ππ ππ gives you the smallest relative error for a given number of repetitions (ππ)? [Hint, what value of ππ gives the smallest possible value for ππ 1−ππΜ ππΜ in equation 28? Why is this the optimum?What ratio of ππ gives this value of ππ (use equation 3)?] Last Updated: Prof. James A. Glazier, 8/31/15—Send corrections to jaglazier@gmail.com INDIANA UNIVERSITY DEPARTMENT OF PHYSICS P309: INTERMEDIATE PHYSICS LABORATORY Procedure: Count out 20 toothpicks and measure their length. Compute the average length ππ of the toothpicks in your sample and estimate the uncertainty in this length. Next draw a set of parallel lines on a piece of paper at a distance d apart. Be sure to choose a distance ππ such that ππ > ππ. A good choice is to pick a value for d that will give you a large hit probability, do pick d as close to l as you can while ensuring that ππ < ππ. Estimate your uncertainty in d. Devise a way to throw your toothpicks such that they land with random positions and orientations on the paper. Toss any toothpicks that do not land on the paper again. After all 20 sticks have been thrown, record the number of hits. Let's call this set of 20 toothpicks a trial. Repeat this process as many times as you can. Finish at least ππ = 50 trials. Analysis: ππ [1] Using the estimate ππ = ππ, compute your estimate of ππ after each trial (include all preceding trials in the calculation). Plot the value of ππ as a function of the trial number. Do you see the trend you expect? [2] Make a histogram which shows the number of times a trial yielded, 1, 2, 3, . . . , 20 hits on a line. Calculate the mean and standard deviation of this distribution. For a “counting experiment” like this one, the standard deviation of the distribution is roughly equal to the square­root of the mean. How does this expectation compare with your measurements? Calculate the uncertainty in the mean of this distribution. Based on this calculation what do you ππππ estimate for ππΜ and for the error in ππΜ (remember that ππππΜ = )? What value of ππ does this value √ππ of ππΜ yield? What is the uncertainty in ππ, ππππ from this measurement? [3] Use the results derived in Question 4 to estimate ππ and its uncertainty. How does this compare to the result in part [2] above? What result do you get for ππ using this method? [4] Exchange your data with as many lab groups as you can. Using all of the data available to you, what is your estimate for ππ? What is the uncertainty in your experimental calculation? Which contributions to the uncertainties matter most? The limited statistics? The measurement of ππ? ππ? Last Updated: Prof. James A. Glazier, 8/31/15—Send corrections to jaglazier@gmail.com