220 likes | 403 Views
Propagating Uncertainty & The Chi-square Test. Physics 270 – Experimental Physics. Propagation of Errors. Let say we are given a functional relationship between several measured variables Q ( x , y, … ) What is the uncertainty in Q if the uncertainties in x and y are known?
E N D
Propagating Uncertainty& The Chi-square Test Physics 270 – Experimental Physics
Propagation of Errors Let say we are given a functional relationship between several measured variables Q(x, y, …) What is the uncertainty in Q if the uncertainties in x and y are known? Example: Power in an electric circuit is P = I2R Let I = 1.0 ± 0.1 A R =10.0 ± 1.0 . Determine the power and its uncertainty, assuming I and R are uncorrelated.
We can use the variance in Q(x,y) as a function of the variances in x and y to find the fractional uncertainties associated with each variable in the function. If x and y are uncorrelated, then this is zero. The derivation of this equation is in the lab manual.
Multiplication • z = xy Power in an electric circuit is P = I2R. Let I = 1.0 ± 0.1 A and R = 10.0 ± 0.5 . Determine the power and its variance using propagation of errors, assuming I and R are uncorrelated. P = I2R = 10.0 ± 2.0 W
Addition • Z = x + y • Example: I = I1 + I2 • I1 = 4.0 ± 0.1 A I2 = 6.0 ± 0.2 A A A
Exact Numbers • C = 2πR Then, ΔC = 2π ΔR For example,if R = 3.1 ± 0.2 cm, then C = 2π(3.0 cm) = 19.478 cm = 19.5 cm ΔC = 2π (0.2 cm) = 1.257 cm C = 19.5 ± 1.3 cm
Unphysical situations can arise if we use the propagation of errors results blindly! Example: Suppose we measure the volume of a cylinder: V = 2πRL. Let R = exactly 1.0 cm, and L = 1.0 ± 0.5 cm. Using propagation of errors: σV = 2πRσL = π/2 cm3 V = π ± π/2 cm3 If the error on V (σV) is to be interpreted in the Gaussian sense ☞ finite probability (≈ 3%) that the volume (V) is < 0 since V is only 2σ away from than 0! ☞ Clearly this is unphysical! ☞ Care must be taken in interpreting the meaning of σV.
Upper Bound / Lower Bound • quick estimation of uncertainty for a function q = 38.0° ± 0.6°
Chi-Square Test for Goodness of Fit • method for determining whether experimental findings validate a theoretical prediction • Observed values are those that the researcher obtains empirically through direct observation. The theoretical or expected values are developed on the basis of an established theory or a working “hypothesis.”
Chi-Square Test • For example, we might expect that if we flip a coin 200 times, that we would tally 100 heads and 100 tails. • In checking this statistical expectation, we might find only 92 heads and 108 tails. Should we reject this coin as being fair? Should we just attribute the difference between expected and observed frequencies to random fluctuation?
Chi-Square Test Consider a second example: let’s suppose that we have an unbiased, six-sided die. We roll this die 300 times and tally the number of times each side appears:Ideally, we might expect every side to appear 50 times. What should we conclude from these results? Is the die biased?
Null Hypothesis The null hypothesis is a statement that is assumed true. The use of the chi-squared distribution is hypothesis testing follows this process: (1) a null hypothesis H0 is stated, (2) a test statistic is calculated, the observed value of the test statistic is compared to a critical value, and (3) a decision is made whether or not to reject the null hypothesis.
Null Hypothesis The null hypothesis rejected only when the data has a degree of statistical confidence that the null hypothesis is false, when the level of confidence exceeds a pre-determined level, usually 95 %, that causes a rejection of the null hypothesis. If experimental observations indicate that the null hypothesis should be rejected, it means either that the hypothesis is indeed false or the measured data gave an improbable result indicating that the hypothesis is false, when it is really true.
Chi-squared Calculations Table I: The Coin Toss Example Table II: The 6-sided Die Example
Degrees of Freedom • The chi-square distribution is tabulated and available in most texts on statistics. To use the table, one must know how many degrees of freedom df are associated with the number of categories in the sample data. • This is because there is a family of chi-square distribution, each a function of the number of degrees of freedom. • The number of degrees of freedom is typically equal to k1. • Coin Example: df = 1 • Die Example: df = 5
Levels of Confidence • A chi-square table lists the chi-squared distribution in terms of df and in terms of the level of confidence, = 1 p.
Levels of Confidence The standard practice in the world of statistics is to use a p = 95 % level of confidence in the hypothesis decision making. Thus, if the value of chi-squared that is calculated indicates a value of 1-p that is less than or equal to 0.05, then the null hypothesis should be rejected. In the coin-flip example, you can toss a coin and get 14 heads out of twenty flips and find chi-squared = 0.0577. This would indicate that such an observation can happen by chance and the coin can be considered a fair coin. Such a finding would be described by statisticians as “not statistically significant at the 5 % level.”
Levels of Confidence If one found 15 heads out of 20 tosses, then chi-squared would be somewhat less than 0.05 and the coin would be considered biased. This would be described as “statistically significant at the 5 % level.” The significance level of the test is not determined by the p value. It is pre-determined by the experimenter. You can choose a 90 % level, a 95 % level, a 99 % level, etc.
Estimation • If I asked you to tell me the average income of all of the employees of State Farm Insurance Company, I am asking for the value of the parameter , the mean income for the entire population of State Farm employees. • Since the number of employees is very large and spread around the United States, you would be forced to take a sample of that population. You would have to try and collect data from many job levels and from people from around the country. You would probably send out a survey and get substantial return of the forms to provide an acceptable sample. Then, you could report an average salary for your sample, which we’ll call . If I then ask, what is the average salary for employees of State Farm, you would tell me the value you got from your sample . You would be making a point estimate.
Margin of Error • A public opinion poll may report that the results have a margin of error of ± 3%, which means that readers can be 95% confident (not 68% confident) that the reported results are accurate within 3 percentage points. • In physics, the same average result would be reported with an uncertainty of ± 1.5% to indicate the 68% confidence interval.