Physics 114: Lecture 11 Error Analysis, Part II

Slides:



Advertisements
Similar presentations
Error Propagation. Uncertainty Uncertainty reflects the knowledge that a measured value is related to the mean. Probable error is the range from the mean.
Advertisements

Point estimation, interval estimation
1 Hypothesis Testing In this section I want to review a few things and then introduce hypothesis testing.
Basic Statistical Concepts Part II Psych 231: Research Methods in Psychology.
Physics 114: Lecture 11 Error Analysis
The standard error of the sample mean and confidence intervals How far is the average sample mean from the population mean? In what interval around mu.
Week 7: Means, SDs & z-scores problem sheet (answers)
Physics 114: Lecture 15 Probability Tests & Linear Fitting Dale E. Gary NJIT Physics Department.
Physics 114: Exam 2 Review Lectures 11-16
Treatment of Uncertainties
Physics 114: Lecture 14 Mean of Means Dale E. Gary NJIT Physics Department.
Physics 114: Lecture 12 Error Analysis, Part II Dale E. Gary NJIT Physics Department.
CHAPTER – 1 UNCERTAINTIES IN MEASUREMENTS. 1.3 PARENT AND SAMPLE DISTRIBUTIONS  If we make a measurement x i in of a quantity x, we expect our observation.
Uncertainty2 Types of Uncertainties Random Uncertainties: result from the randomness of measuring instruments. They can be dealt with by making repeated.
CHAPTER- 3.2 ERROR ANALYSIS. 3.3 SPECIFIC ERROR FORMULAS  The expressions of Equations (3.13) and (3.14) were derived for the general relationship of.
Uncertainties and errors
CHAPTER- 3.1 ERROR ANALYSIS.  Now we shall further consider  how to estimate uncertainties in our measurements,  the sources of the uncertainties,
The accuracy of averages We learned how to make inference from the sample to the population: Counting the percentages. Here we begin to learn how to make.
Variability. The differences between individuals in a population Measured by calculations such as Standard Error, Confidence Interval and Sampling Error.
 By the end of this section, you should be able to: › Find and interpret the percentile of an individual value within a distribution of data. › Estimate.
Variability.
Physics 114: Lecture 16 Least Squares Fit to Arbitrary Functions
Physics 114: Lecture 11-a Error Analysis, Part III
INTRODUCTION TO STATISTICS
Different Types of Data
Physics 114: Lecture 13 Probability Tests & Linear Fitting
Linear Algebra Review.
FW364 Ecological Problem Solving Class 6: Population Growth
TIME SERIES ANALYSIS.
Physics 114: Lecture 14 Linear Fitting
Physics 114: Lecture 12 Mean of Means
Physics 114: Lecture 5 Uncertainties in Measurement
Physics 114: Exam 2 Review Weeks 7-9
Sample Size Determination
Physics 114: Lecture 7 Probability Density Functions
Statistics: The Z score and the normal distribution
ECE 2202 Circuit Analysis II
Distribution of the Sample Means
Introduction to Summary Statistics
Introduction to Summary Statistics
Physics 114: Lecture 6 Measuring Noise in Real Data
8.1 – 8.3 Solving Proportions, Geometric Mean, Scale Factor of Perimeter and Area Since these sections are all very short, we are combining them into one.
Physics 114: Lecture 10 Error Analysis/ Propagation of Errors
Physics 114: Exam 2 Review Material from Weeks 7-11
Introduction to Summary Statistics
Copyright © Cengage Learning. All rights reserved.
Introduction to Summary Statistics
Physics 114: Lecture 14 Linear Fitting
Descriptive and inferential statistics. Confidence interval
Assigning and Propagating Uncertainties
Arithmetic Mean This represents the most probable value of the measured variable. The more readings you take, the more accurate result you will get.
07/12/2018 Starter L.O. To be able to Solve a quadratic by factorising
Graphing with Uncertainties
Physics 114: Lecture 14-a Linear Fitting Using Matlab
John Federici NJIT Physics Department
Counting Statistics and Error Prediction
Error Analysis.
Sampling Distributions
CHAPTER- 3.1 ERROR ANALYSIS.
Quantitative Reasoning
Treatment of Uncertainties
CHAPTER- 3 ERROR ANALYSIS T182,
CHAPTER – 1.2 UNCERTAINTIES IN MEASUREMENTS.
2/5/ Estimating a Population Mean.
Treatment of Uncertainties
Treatment of Uncertainties
Propagation of Error Berlin Chen
Propagation of Error Berlin Chen
Chapter 5: Sampling Distributions
CHAPTER – 1.2 UNCERTAINTIES IN MEASUREMENTS.
Presentation transcript:

Physics 114: Lecture 11 Error Analysis, Part II John Federici NJIT Physics Department

ANNOUCEMENT We will have our midterm on TUESDAY Feb 27th during class time Closed book/ closed notes/ Bring calculator I will supply equation sheet

Physics Cartoons

Method of Propagation of Errors Review…. Start with original relation, in this case: Use the chain rule: Here, dI represents the deviations of individual measurements : We now square both sides to give the square deviations: Finally, average over many measurements:

A Great Simplifier—Relative Error Review…. Notice that we can take: And divide through by I2 = V2/R2: What about this term ? This is the product of random fluctuations in voltage and resistance. When we multiply these random fluctuations and then average them—they should average to zero! Thus, we have the final result: The general formula is Square of relative error in I

Other Examples For homework, you should have calculated some uncertainties for quantities made up of calculations of other quantities with their own measurement uncertainties. Let me point out a few patterns: You see the quadratic nature of the resultant error—the errors behave like the pythagorean theorem. This is a good way to think about errors, and can be a big help in estimating errors. Note the effect of powers, which expand the influence of errors of a quantity. All covariances assumed zero (i.e. u and v not correlated) error in x error in v error in u

MatLAB Examples CODE located in lecture11_example.m Make random arrays u = randn(1,1000); and v = randn(1,1000); then plot v vs. u (i.e. plot(u,v,’.’)). Set ‘axis equal’ to see them on the same scale. The cloud of points form a circular pattern, concentrated in the center. Now multiply v by 2, and plot again with axis equal. The clouds form an oval cloud of points. Add 10 to u and 15 to v and replot with axis equal. Adding constants does not change the errors, only the mean. Now calculate the relative errors for u, v, and x=u.*v. Do they obey the expected relationship? Now calculate the relative errors for x=u./v. They should obey the same relationship. Do they? Look at hist(u,20), hist(v,20), hist(u.*v,20), hist(u./v,20). Now subtract 13 from v and calculate relative errors for x=u./v. What is wrong?

MatLAB Examples CODE located in lecture11_example.m Make random arrays u = randn(1,1000); and v = randn(1,1000); then plot v vs. u (i.e. plot(u,v,’.’)). Set ‘axis equal’ to see them on the same scale. The cloud of points form a circular pattern, concentrated in the center. Now multiply v by 2, and plot again with axis equal. The clouds form an oval cloud of points. Add 10 to u and 15 to v and replot with axis equal. Adding constants does not change the errors, only the mean. Now calculate the relative errors for u, v, and x=u.*v. Do they obey the expected relationship? Now calculate the relative errors for x=u./v. They should obey the same relationship. Do they? Look at hist(u,20), hist(v,20), hist(u.*v,20), hist(u./v,20). Now subtract 13 from v and calculate relative errors for x=u./v. What is wrong? Standard Dev comparable to mean value…. Relative error LARGE, SNR low

Matlab – Adding Error Bars to Plots >> u=10+randn(1,10); >> err_u=std(u)*ones(size(u)); % create vector of error corresponding to each data point >> errorbar(1:10,u,err_u) Side issue: How can the mean value of 10 NOT be within the range of the error bars?

Estimating Error As noted, the way to think about errors is to consider relative uncertainty (or percent error). If we have a 10% error in both u and v, what is the percent error in x for this expression? What if u has a 1% relative error and v has a 10% relative error? What is percent error in x then? So thinking in terms of the Pythagorean Theorem, errors are dominated by the biggest term, unless both have similar errors. What if both u and v have 10% errors, and x = uv4? error in x error in v error in u 40%, in this case

Reducing Error Knowing how errors propagate is very important in reducing sources of error. Let’s say you do an experiment that results in a measurement whose errors are a factor of 2 too high. You have a budget that allows you do reduce the errors in one quantity by a factor of 2. Where do you put your resources? If the relationship is then if the relative errors are equal you are doomed to failure, because you can only reduce the total by 1.4 (square root of 2). But if the relative error in u is much smaller than that in v, you put your resources into reducing the error in v. Likewise, if the relationship is then you put your resources into reducing the error in v, unless the relative error in v is already 4 times smaller than in u.

Physics Cartoons

Experimental Design – Error Analysis In this section of material, we will demonstrate how to use error analysis in the design of experiments. Please note that the DETAILS of the experiment are not as important for this class as to the METHODOLOGY of determining which errors are DOMINATING the noise. Lets start with a simple example from an exam

Experimental Design – Error Analysis Problem 4. You are given the following measurements, a=[105 125 93 98 110]; which represent counts of an event (say cosmic rays) recorded from a detector. The counts are taken in 1 second intervals. Find: a) The mean of the sample of five measurements. Write down the equation you used. b) The standard deviation of the sample of five measurements. Write down the equation you used. c) Now, assume that you are told that there is a systematic noise in the detector which adds a background count of 11 counts/s to your data. By correcting your measurement for the systematic error, what is the CORRECTED mean number of cosmic rays detected in a 1 second interval? d) Using the results of (b) and (c), what is the Signal-to-noise (SNR) ratio for the data? e) Assuming that the experiment obeys Poisson statistics, estimate how long the time interval for detection should be so that the SNR=100 [after correction for the systematic noise].

Experimental Design – Error Analysis Problem 4. You are given the following measurements, a=[105 125 93 98 110]; which represent counts of an event (say cosmic rays) recorded from a detector. The counts are taken in 1 second intervals. Find: a) The mean of the sample of five measurements. Write down the equation you used. b) The standard deviation of the sample of five measurements. Write down the equation you used.

Experimental Design – Error Analysis Problem 4. You are given the following measurements, a=[105 125 93 98 110]; which represent counts of an event (say cosmic rays) recorded from a detector. The counts are taken in 1 second intervals. Find: a) The mean of the sample of five measurements. 106.2 b) The standard deviation of the sample of five measurements. 12.36 c) Now, assume that you are told that there is a systematic noise in the detector which adds a background count of 11 counts/s to your data. By correcting your measurement for the systematic error, what is the CORRECTED mean number of cosmic rays detected in a 1 second interval? d) Using the results of (b) and (c), what is the Signal-to-noise (SNR) ratio for the data?

Experimental Design – Error Analysis OK, now we have a signal-to-noise ratio for the measurement. How do we use our knowledge of statistics to IMPROVE the measurement? e) Assuming that the experiment obeys Poisson statistics, estimate how long the time interval for detection should be so that the SNR=100 [after correction for the systematic noise]. For Poisson statistics, we know that So we want to INCREASE our measurement time interval so that the MEAN of our counts is 104. But we KNOW that there are roughly 95.2 counts per second. SO the time interval required to count 104 counts is

Can not I just take more data? The previous example suggests that the way to improve the SNR ratio is to INCREASE the time interval over which one counts the cosmic rays. Rather than taking 5 measurements each 105 seconds in duration, can I take instead 5×105=525 measurements of 1 second intervals? If you are INCREASING the number of measurements (but keeping the time interval the same), you are changing from a sample population of 5 samples to a sample population of 525 samples, but you HAVE NOT CHANGED the PARENT population which depends on the MEAN of the measurement. Since you have not changed the mean, you have not changed the standard deviation, nor the SNR ratio!

In Class Project – Start on HW#5, Problem 3. Solve for the refractive index n gives Use the chain rule on Equation above to determine the formula for the cumulative error in the calculated value of n2 . HINT: for the equation below, what are the formulas for the partial derivatives?