TF ErrorAna PropOfErr

From New IAC Wiki
Jump to navigation Jump to search

Taylor Expansion

A quantity which is calculated using quantities with known uncertainties will have an uncertainty based upon the uncertainty of the quantities used in the calculation.

To determine the uncertainty in a quantity which is a function of other quantities, you can consider the dependence of these quantities in terms of a tayler expansion

The Taylor series expansion of a function f(x) about the point a is given as

f(x)=f(a)+f(x)|x=ax1!+f(x)|x=ax22!+...

=n=0f(n)(x)|x=axnn!


For small values of x (x << 1) we can expand the function about 0 such that

1+x=1012(1+x)1/2|x=0x11!+1212(1+x)3/2|x=0x22!

=1+x2x28


The taylor expansion of a function with two variables(x1,x2) about the average of the two variables(¯x1,¯x2) is given by

f(x,y)=f(ˉx,ˉx)+(xˉx)fx|(x=ˉx,y=ˉy)+(yˉy)fy|(x=ˉx,y=ˉx)

or

f(x,y)f(ˉx,ˉy)=(xˉx)fx|(x=ˉx,y=ˉy)+(yˉy)fy|(x=ˉx,y=ˉy)


The average

f(ˉx,ˉy)f(x,y)iN

The term

δf=f(x,y)f(ˉx,ˉy)

represents a small fluctuation (δf) of the function f from its average f(ˉx,ˉy) if we ignore higher order terms in the Taylor expansion ( this means the fluctuations are small)then we can write the variance using the definition as

σ2=[f(x,y)if(ˉx,ˉy)]2N
=[(xiˉx)fx+(yiˉy)fy]2N
=(xiˉx)2(fx)2N+(yiˉy)2(fy)2N+2(xiˉx)(fx)(yiˉy)(fy)N
=σ2x(fx)2+σ2y(fy)2+2σ2x,y(fx)(fy)

where

σ2x,y=(xiˉx)(yiˉy)N Covariance

Instrumental and Statistical Uncertainties

http://www.physics.uoguelph.ca/~reception/2440/StatsErrorsJuly26-06.pdf

Counting Experiment Example

The table below reports 8 measurements of the coincidence rate observed by two scintillators detecting cosmic rays. The scintillator are place a distance (x) away from each other in order to detect cosmic rays falling on the earth's surface. The time and observed coincidence counts are reported in separate columns as well as the angle made by the normal to the detector with the earths surface.

Date Time (hrs) θ Coincidence Counts Mean Coinc/Hr σPoisson=Mean Counts/Hr |σ| from Mean
9/12/07 20.5 30 2233 109 10.4 1
9/14/07 21 30 1582 75 8.7 2
10/3/07 21 30 2282 100 10.4 1
10/4/07 21 30 2029 97 9.8 0.1
10/15/07 21 30 2180 100 10 0.6
10/18/07 21 30 2064 99 9.9 0.1
10/23/07 21 30 2003 95 9.7 0.2
10/26/07 21 30 1943 93 9.6 0.5

The average count rate for a given trial is given in the 5th column by diving column 4 by column 2.

One can expect a Poisson parent distribution because the probability of a cosmic ray interacting with the scintillator is low. The variance of measurement in each trial is related to the counting rate by

σ2=μ= average counting rate

as a result of the assumption that the parent distribution is Poisson. The value of this σ is shown in column 6.

Is the Poisson distribution the parent distribution in this experiment?

To try and answer the above question lets determine the mean and variance of the data:

ˉx=CPMi8=97.44
s=(xiμ)281=10.8


If the parent population is Poisson then we would expect


If you approximate the Poisson distribution by a Gaussian then the probability any one measurement is within 1 σ of the mean is 68% = Probability that a measurement of a Gaussian variant will lie within 1 σ of the mean. For the Poisson distribution with a mean of 97 you would have 66% of the data occur within 1 σ=97.

root [26] ROOT::Math::poisson_cdf(97-sqrt(97),97)
(double)1.67580969302001004e-01
root [30] 1-2*ROOT::Math::poisson_cdf(97-sqrt(97),97)        
(const double)6.64838061395997992e-01

root [28] ROOT::Math::normal_cdf(97-sqrt(97),sqrt(97),97)
(double)1.58655253931457185e-01
root [29] 1-2*ROOT::Math::normal_cdf(97-sqrt(97),sqrt(97),97)
(const double)6.82689492137085630e-01

The 7th column above identifies how many sigma the mean of that trial is from the average ˉx.


=0.688=5

Looks like we have 7/8 events within 1σ = 87.5%

Error Propagation

f=ˉx=xiN
fxi=1N
δf=fx1σx1+fx1σx1+fxnσxn
(δf)2=(fx1σx1+fx1σx1+fxnσxn)2
=(fx1σx1)2+(fx2σx2)2+(fxnσxn)2+2(2fx1x2)σx1σx2+
2fxixj=xj1N=0 no Covariances
(δf)2=(fx1σx1)2+(fx2σx2)2+(fxnσxn)2
=(1Nσx1)2+(1Nσx2)2+(1Nσxn)2

If

σi=σ

Then

(δf)2=(1Nσ)2+(1Nσ)2+(1Nσ)2
=σ2N

Taylor Expansion

A quantity which is calculated using quantities with known uncertainties will have an uncertainty based upon the uncertainty of the quantities used in the calculation.

To determine the uncertainty in a quantity which is a function of other quantities, you can consider the dependence of these quantities in terms of a tayler expansion

Consider a calculation of a Table's Area

A=L×W

The mean that the Area (A) is a function of the Length (L) and the Width (W) of the table.

A=f(L,W)


The Taylor series expansion of a function f(x) about the point a is given as

f(x)=f(a)+f(x)|x=ax1!+f(x)|x=ax22!+...

=n=0f(n)(x)|x=axnn!


For small values of x (x << 1) we can expand the function about 0 such that

1+x=1012(1+x)1/2|x=0x11!+1212(1+x)3/2|x=0x22!

=1+x2x28


The talylor expansion of a function with two variables(x1,x2) about the average of the two variables(¯x1,¯x2) is given by

f(x1,x2)=f(ˉx1,ˉx2)+(x1ˉx1)fx1|(x1=ˉx1,x2=ˉx2)+(x2ˉx2)fx2|(x1=ˉx1,x2=ˉx2)

or

f(x1,x2)f(ˉx1,ˉx2)=(x1ˉx1)fx1|(x1=ˉx1,x2=ˉx2)+(x2ˉx2)fx2|(x1=ˉx1,x2=ˉx2)

The term

f(x1,x2)f(ˉx1,ˉx2)

represents a small fluctuation of the function from its average f(ˉx1,ˉx2) if we ignore higher order terms in the Taylor expansion ( this means the fluctuations are small).

Based on the Definition of Variance

σ2=i=Ni=1(xiˉx)2N


We can write the variance of the area

σ2A=i=Ni=1(AiˉA)2N
=i=Ni=1[(LˉL)AL|ˉLˉW+(WˉW)AW|ˉLˉWW]2N


=i=Ni=1[(LˉL)AL|ˉLˉW]2N+i=Ni=1[(WˉW)AW|ˉLˉW]2N
+2i=Ni=1[(LˉL)(WˉW)AL|ˉLˉWAW|ˉLˉW]2N
=σ2L(AL)2+σ2W(AW)2+2σ2LWALAW

where σ2LW=i=Ni=1[(LˉL)(WˉW)]2N is defined as the Covariance between L and W.

Weighted Mean and variance

If each observable (xi) is accompanied by an estimate of the uncertainty in that observable (δxi) then weighted mean is defined as

ˉx=i=ni=1xiδxii=ni=11δxi

The variance of the distribution is defined as

ˉx=i=ni=11δxi



Date Time (hrs) θ Coincidence Counts Coinc/Hour N
9/6/07 18 45 1065 59.2
9/7/07 14.66 45 881 60.1
9/9/07 43 60 1558 36.23
9/12/07 20.5 330 2233 108.93
9/13/07 21 315 2261 107.67
9/14/07 21 330 1582 75.33
9/18/07 21 300 1108 52.8
9/19/07 21 300 1210 57.62
9/20/07 21 300 1111 52.69
9/21/07 21 300 1012 57.62
9/26/07 21 315 1669 79.48
9/27/07 21 315 1756 83.29
9/29/07 24.5 315 2334 95.27
10/3/07 21 330 2282 108.67
10/4/07 21 330 2029 96.62
10/10/07 21 315 1947 92.71
10/15/07 69 330 2180 31.59
10/18/07 21 330 2064 98.52
10/23/07 21 330 2003 95.38
10/26/07 21 330 1943 92.52
11/2/07 21 330 2784
11/5/07 69 330 10251 148.57
11/16/07 21 30 3581 170.52

[1] Forest_Error_Analysis_for_the_Physical_Sciences