Statistical uncertainty in calculation and measurement of radiation

52
Statistical uncertainty in calculation and measurement of radiation “Error of mean” and its application Binominal distribution, Poisson distribution and Gauss distribution Least square method

description

Statistical uncertainty in calculation and measurement of radiation. “Error of mean” and its application Binominal distribution, Poisson distribution and Gauss distribution Least square method. 1.1 Variance and standard deviation Repeat measurement or calculate a quantity x by n times . - PowerPoint PPT Presentation

Transcript of Statistical uncertainty in calculation and measurement of radiation

Page 1: Statistical uncertainty in calculation and measurement of radiation

Statistical uncertainty in calculation and measurement of radiation

• “Error of mean” and its application • Binominal distribution, Poisson

distribution and Gauss distribution • Least square method

Page 2: Statistical uncertainty in calculation and measurement of radiation

1.1 Variance and standard deviation

Repeat measurement or calculate a quantity x by n times.Write value of i-th x as xi . The mean is

Variance s2 : A quantity to express fluctuation of each x. Mean of square of difference between individual x and mean ,

Standard deviation s : Square root of variance. Useful to express fluctuation of x because s and x are same dimension.

cm, cGy

( Example of unit)

cm2, cGy2

cm, cGy

Page 3: Statistical uncertainty in calculation and measurement of radiation

Practice of mean and variance• Assume 5 carrots of 6, 7, 8, 9, 10 cm length.• What is a mean of carrot length?

– 8 cm• What is a variance of carrot length?

– 2 • What is a standard deviation of carrot length?

– 1.41 cm

Page 4: Statistical uncertainty in calculation and measurement of radiation

Instinctive explanation of error of sum and error of mean

• Measure 100 cpm by 1 min 100±10– N=100 x 1 min =100, σ=1001/2=10

• 100 cpm by 1 min, repeat 4 times 400±20– N=100 cpm x 1 min x 4 =400, – σ=4001/2 = 20 – This ”20” can also be obtained by 10 x 41/2 .

Error of average of xi (sx_bar) is Error of xi times 1/n1/2.

Error of sum of xi (sy) is Error of xi times n1/2.

• Go back to “per min” by dividing by 4, 100±5– This ”5” can also be obtained by 10/41/2 .

Page 5: Statistical uncertainty in calculation and measurement of radiation

Practice of error of sum and mean• Assume 5 carrots of 6, 7, 8, 9, 10 cm length. • What is a total length of carrot?

– 40 cm• What is a error of total length of carrots?

– 3.16 cm • What is a mean length of carrots?

– 8 cm• What is an error of mean length of carrots?

– 0.63 cm

Page 6: Statistical uncertainty in calculation and measurement of radiation

1.2 Error of sum (y)

Here, variance of y sy2 is written as Δy2

. Standard deviation of y, sy is square root of sy

2 .

The error of n - xi ,sy , is “error of xi “ times n1/2 .

The variance of y is obtained from standard deviation of xi, Δxi

(Propagation of error)

Page 7: Statistical uncertainty in calculation and measurement of radiation

1.3 Error of average of xi, xav

Error of average of n-xi , sx_bar, is error of xi times 1/n1/2.

The variance of xav is obtained from standard deviation of xi, Δxi. (Propagation of error)

Here, variance of xav, sxav2 as Δxav

2. Standard deviation of xav , sxav is square root of sxav

2 .

Page 8: Statistical uncertainty in calculation and measurement of radiation

Central limit theorem

• Assume any distribution of average μ and variance σ2. Sample is taken from that distribution by n times. The distribution of average of the sample xav converges to normal distribution N(μ, σ2/n) when n is large.

Basic statistics by K.Miyagawa (in Japanese)

• Mathematical confirmation of Monte Carlo method

Page 9: Statistical uncertainty in calculation and measurement of radiation
Page 10: Statistical uncertainty in calculation and measurement of radiation
Page 11: Statistical uncertainty in calculation and measurement of radiation

0

0.2

0.4

0.6

0.8

1

0 0.2 0.4 0.6 0.8 1

sqrt(a)sqrt(a(1-a))

Sta

nda

rd d

evia

tion,

s

Hit probability, a

0

20

40

60

80

100

0 0.2 0.4 0.6 0.8 1

sqrt(na)sqrt(na(1-a))

Err

or o

f sum

, y,

sy

Hit probability, a

n=10000

5000+-71

5000+-50

Fig. 3 Standard deviation of x Fig.4 Error of sum, y, sy

Page 12: Statistical uncertainty in calculation and measurement of radiation
Page 13: Statistical uncertainty in calculation and measurement of radiation
Page 14: Statistical uncertainty in calculation and measurement of radiation

Really? →Let’s evaluate s2 numerically.

Page 15: Statistical uncertainty in calculation and measurement of radiation

Numerical evaluation of variance s2

• Excel RAND() function : (0,1) random – Average of 10 random numbers and variance s2

– Repeat 100 set to get average of s2 .

– Change number of random n=9 ~ n=1 and repeat.

Page 16: Statistical uncertainty in calculation and measurement of radiation

Result of s2 from excel calculation

Certainly, s2 depends on n !

0

0.02

0.04

0.06

0.08

0.1

0.12

0.14

0 2 4 6 8 10

s2

Val

ue

of v

aria

nce

nk00928

Page 17: Statistical uncertainty in calculation and measurement of radiation

• Average of square of difference of each value and expected value of average μ(=0.5).

• Numerical calculation by Excel– Calculate variance of 10 random numbers s2 . – Repeat 100 sets to get average of s2. – Change n=9 ~ n=1 and repeat.

A variance independent of sample number n, s2

s2

Page 18: Statistical uncertainty in calculation and measurement of radiation

0

0.02

0.04

0.06

0.08

0.1

0.12

0.14

0 2 4 6 8 10

s2

2V

alue

of v

aria

nce

nk00928

Result of s2 by Excel calculation

s2 is independent of n !

We can not use s2 as m is unknown in general. → We are in trouble !!

Page 19: Statistical uncertainty in calculation and measurement of radiation

For now, what is an expected value of s2 ?

0

0.02

0.04

0.06

0.08

0.1

0.12

0.14

0 2 4 6 8 10

s2

2

1/12(n-1)/n * (1/12)

Val

ue o

f var

ian

ce

nk00928

Then, how about s2 ?

E(s2)=E(s2) x (n-1)/n

Page 20: Statistical uncertainty in calculation and measurement of radiation

Variance which is independent of sample number n (2)

Fig.1 Comparison of variance

0

0.02

0.04

0.06

0.08

0.1

0.12

0.14

0 2 4 6 8 10

s22(n-1)/n * (1/12)1/12s2*n/(n-1)

Val

ue o

f var

ian

ce

nk00928

We change 1/n to 1/(n-1) in the equation s2 to get variance which is independent of sample number n.

This is called as sampling variance or unbiased variance in some textbook.

Page 21: Statistical uncertainty in calculation and measurement of radiation

Proof of unbiased varianceWe rewrite formula of variance in which expected value of average, μ, is included.

Rewrite this as a relation of expectation value. ( 3rd term in right-hand-side is 0 )

Variance against μ Variance against xav Variance OF xav = +

Page 22: Statistical uncertainty in calculation and measurement of radiation

Variance which is independent of sample number (*)

Variance of average

Equivalent of estimate error of N±N1/2(*)

Summary of Chapter 1 “Error of average”

Definition of variance

*Derived from error of average

Page 23: Statistical uncertainty in calculation and measurement of radiation

• Variable in central limit theorem is rewritten.– The distribution of converges to standard normal

distribution N(0,1) when n is large. – If σ is known, the interval of μ can be estimated by

z.– If σ is unknown, its estimated value is used,

t distribution

Page 24: Statistical uncertainty in calculation and measurement of radiation

Shape of t distribution

From Miyagawa, “Elementary statitics”

Normal distribution(=t distribution withd.f.=∞)

t distribution withdegree of freedom=5

t distribution withdegree of freedom=20

t distribution withdegree of freedom=2

Page 25: Statistical uncertainty in calculation and measurement of radiation

The nature of t distribution1. The shape of t distribution is symmetric in left and right with 0 as its centroid. Thus, its mean is 0.2. The shape of t distribution resembles to that of standard normal distribution. But t distribution has lower at its top and wider in the side. (t distribution converges to normal distribution as n→∞) - The reason of fluctuation in Z is only x bar. On the other hand, fluctuation of sigma hat also contributes to fluctuation of t.3. The shape of t distribution depends on n only and does not depend on any unknown parameter of population. → Numerical table of t distribution was published.

Page 26: Statistical uncertainty in calculation and measurement of radiation

Student’s t distribution (from wikipedia)Coffee Break

13Jun1876-16Oct1937

• Gosset attended Winchester College before reading chemistry and mathematics at New College, Oxford. Upon graduating in 1899, he joined the brewery of Arthur Guinness & Son in Dublin, Ireland.

• As an employee of Guinness, a progressive agro-chemical business, Gosset applied his statistical knowledge — both in the brewery and on the farm — to the selection of the best yielding varieties of barley. Gosset acquired that knowledge by study, by trial and error, and by spending two terms in 1906 – 07 in the biometrical laboratory of Karl Pearson. Gosset and Pearson had a good relationship. Pearson helped Gosset with the mathematics of his papers, including the 1908 papers, but had little appreciation of their importance. The papers addressed the brewer's concern with small samples; biometricians like Pearson, on the other hand, typically had hundreds of observations and saw no urgency in developing small-sample methods.

• Another researcher at Guinness had previously published a paper containing trade secrets of the Guinness brewery. To prevent further disclosure of confidential information, Guinness prohibited its employees from publishing any papers regardless of the contained information. However, after pleading with the brewery and explaining that his mathematical and philosophical conclusions were of no possible practical use to competing brewers, he was allowed to publish them, but under a pseudonym ("Student"), to avoid difficulties with the rest of the staff. [1] Thus his most noteworthy achievement is now called Student's, rather than Gosset's, t-distribution.

Page 27: Statistical uncertainty in calculation and measurement of radiation

Sample Average Standard Error

(Void) (Void) (Void) Uncertainty

How words can be omitted for “Standard error of sample mean”

・ Elementary Statistics : Standard error of mean・ Measurement and detection of radiation (Tsoulfanidis): Standard error of mean value・ Radiation detection & measurement (Knoll) : No description・ Nuclear Radiation Detection (Price) : No description・ Homepage of statistics bureau : Standard error・ Wikipedia : Standard error・ Kaleidagraph : Standard error

Appendix B.1 Writing of “Error of average”

Page 28: Statistical uncertainty in calculation and measurement of radiation

Search result of words similar to “Error of average”

Page 29: Statistical uncertainty in calculation and measurement of radiation

Section 2Binomial, Poisson, and Gaussian

distribution

• Outline of distribution• Sum, Mean, and Variance• Relation of distributions

Page 30: Statistical uncertainty in calculation and measurement of radiation

Generation of Binomial distribution by experiment

• Prepare ten samples which have 2 states with same probability. For example, prepare 10 coins and put mark (i.e. removable seal) on one side.

• Take several of these and align on the table to count number of samples with mark (call it as p. Also call number of sample without mark as q) – For n=1, p is either 1 or 0. – For n=2, the number of combination is 4 i.e. pp, pq, qp, qq . The

combination for p=2,1,0 is 1,2,1. – For n=3, the number of combination is 8, i.e. ppp, ppq, pqp, pqq, qpp,

qpq, qqp, qqq . The combination for p=3,2,1,0 is 1,3,3,1 respectively.– Investigate this up to n=8 (or n=10 if possible).

Page 31: Statistical uncertainty in calculation and measurement of radiation

Generation of Binomial distribution by experiment (2)

• Throw samples on the table 10 times and count number of sample with mark. – Start from n=1 and continue up to n=10. – Compare the distribution with that obtained in the previous page.

• Align experiment is a kind of round-robin. On the other hand throwing is sampling.

• Any combination in align method should appear in sampling with same probability. Then, both distribution should agree within a statistical fluctuation.

Page 32: Statistical uncertainty in calculation and measurement of radiation

Calculate Eq.(17) for p=0.5, n=1 to 10. Compare it withbinomial distribution by experiment.

Page 33: Statistical uncertainty in calculation and measurement of radiation
Page 34: Statistical uncertainty in calculation and measurement of radiation
Page 35: Statistical uncertainty in calculation and measurement of radiation
Page 36: Statistical uncertainty in calculation and measurement of radiation

Variance of x   V(x)

Page 37: Statistical uncertainty in calculation and measurement of radiation
Page 38: Statistical uncertainty in calculation and measurement of radiation
Page 39: Statistical uncertainty in calculation and measurement of radiation

0

0.05

0.1

0.15

0.2

0.25

0.3

0 2 4 6 8 10

n=10, p=0.4n=20, p=0.2n=40, p=0.1Poisson, =4

f

x

Fig. 8 Comparison of binomial and Poisson distribution

Binomial distribution converges to Poisson distributionas hit probability decreases

Page 40: Statistical uncertainty in calculation and measurement of radiation
Page 41: Statistical uncertainty in calculation and measurement of radiation
Page 42: Statistical uncertainty in calculation and measurement of radiation
Page 43: Statistical uncertainty in calculation and measurement of radiation

Fig.9 Approximation of binomial and Poisson distribution by Gaussian distribution

0

0.02

0.04

0.06

0.08

0.1

0.12

0.14

0.16

0 5 10 15 20 25 30 35 40

Binomial,n=40,p=0.5Poisson =20

Gauss,=20 =10^0.5Gauss,=20 =20^0.5

f

x

Page 44: Statistical uncertainty in calculation and measurement of radiation
Page 45: Statistical uncertainty in calculation and measurement of radiation

0

1

2

3

4

5

6

7

8

0 1 2 3 4 5 6 7 8

y

x

(x1,y

1)

(x3,y

3)

d1

d2

d3

(x2,y

2)

y'=a+b(x-x_av)

Concept of Least Square Method :Determine a and b to minimize d1

2+d22+d3

2 (Fig.10)

Section 3 Least Square Method

Page 46: Statistical uncertainty in calculation and measurement of radiation
Page 47: Statistical uncertainty in calculation and measurement of radiation
Page 48: Statistical uncertainty in calculation and measurement of radiation
Page 49: Statistical uncertainty in calculation and measurement of radiation
Page 50: Statistical uncertainty in calculation and measurement of radiation
Page 51: Statistical uncertainty in calculation and measurement of radiation
Page 52: Statistical uncertainty in calculation and measurement of radiation