22
Statistics

Statistics. Decay Probability Radioactive decay is a statistical process. –Assume N large for continuous function Express problem in terms of probabilities

  • View
    218

  • Download
    1

Embed Size (px)

Citation preview

Page 1: Statistics. Decay Probability Radioactive decay is a statistical process. –Assume N large for continuous function Express problem in terms of probabilities

Statistics

Page 2: Statistics. Decay Probability Radioactive decay is a statistical process. –Assume N large for continuous function Express problem in terms of probabilities

Decay Probability

• Radioactive decay is a statistical process.

– Assume N large for continuous function

• Express problem in terms of probabilities for a single event.

– Probability of decay p

– Probability of survival q

– Time dependent

tep 1

teNN 0

teq

1 qp

Page 3: Statistics. Decay Probability Radioactive decay is a statistical process. –Assume N large for continuous function Express problem in terms of probabilities

Combinatorics

• The probability that n specific occurrences happen is the product of the individual occurrences.

– Other events don’t matter.

– Separate probability for negative events

• Arbitrary choice of events require permutations.

• Exactly n specific events happen at p:

• No events happen except the specific events:

• Select n arbitrary events from a pool of N identical types.

npP

nNqP

)!(!

!

nNn

N

n

N

Page 4: Statistics. Decay Probability Radioactive decay is a statistical process. –Assume N large for continuous function Express problem in terms of probabilities

Bernoulli Process

• Treat events as a discrete trials.

– N separate trials

– Trials independent

– Binary outcome of trial

– Probability same for all trials.

• This defines a Bernoulli process.

Typical Problem• 10 atoms of 42K with a half-life

of 12.4 h is observed for 3 h. What is the probability that exactly 3 atoms decay?

Answer• Probability of 1 decay,

• And 3 arbitrary atoms decay from the 10 and 7 do not:

136.03

10 73

qpP

154.011 /)2ln( Ttt eep

Page 5: Statistics. Decay Probability Radioactive decay is a statistical process. –Assume N large for continuous function Express problem in terms of probabilities

Binomial Distribution

• The general form of the Bernoulli process is the binomial distribution.

– Terms same as binomial expansion

• Probabilities are normalized.

nNnn qp

n

NP

1)(0

NN

nn qpP

mathworld.wolfram.com

Page 6: Statistics. Decay Probability Radioactive decay is a statistical process. –Assume N large for continuous function Express problem in terms of probabilities

Mean and Standard Deviation

• The mean of the binomial distribution:

• Consider an arbitrary x, and differentiate, and set x = 1.

• The standard deviation of the binomial distribution:

N

n

nNnN

nn qp

n

NnnP

00

N

n

nNnnN qxpn

Nqpx

0

)(

N

nn

nN PnxqpxNp0

11)(

N

nnnPNp

0

N

nnPn

0

22

)2( 222nnn PnPPn

nnn PnPPn 222 2 2222 2])1([ pNN

222222 pNNpNppN

NpqpNp )1(

Page 7: Statistics. Decay Probability Radioactive decay is a statistical process. –Assume N large for continuous function Express problem in terms of probabilities

Disintegration Counts

• In counting experiments there is a factor for efficiency .

– Probability that a measurement is recorded

Typical Problem• A sample has 10 atoms of 42K

in an experiment with = 0.32. What is the expected count rate over 3 h?

Answer• Use the mean of the observable

count, convert to rate.

• 10(0.32)(0.154)/3 h = 0.163 h-1.

)1( tep

tepq 11

teNtr tc /)1(/

Page 8: Statistics. Decay Probability Radioactive decay is a statistical process. –Assume N large for continuous function Express problem in terms of probabilities

More Counts

• Consider a source of 42K with an activity of 37 Bq, in a counter with = 0.32 measured in 1 s intervals.

• What is the mean count rate?

• What is the standard deviation of the count rate?

• The mean disintegration rate is just the activity, rd = 37 Bq.

– The count rate is

• Decay constant is = ln2 / T = 0.056 h-1 = 1.55 x 10-5 s-1.

– The probability of decay is

• Number of atoms is N = rd / = 2.4 x 106.

1s8.11 dc rr

1s4.3)1( ppNc

51055.11 tep

Page 9: Statistics. Decay Probability Radioactive decay is a statistical process. –Assume N large for continuous function Express problem in terms of probabilities

Poisson Distribution

• Many processes have a a large pool of possible events, but a rare occurrence for any individual event.

– Large N, small n, small p

• This is the Poisson distribution.

– Probability depends on only one parameter Np

– Normalized when summed from n =0 to .

NNnN pqq )1(

2

!2

)1(1 p

NNNpq nN

NpnN eNp

Npq !2

)(1

2

Npn

nNnn e

n

Npqp

n

NP

!

)(

!)!(!

!

n

N

nNn

N

n

N n

Page 10: Statistics. Decay Probability Radioactive decay is a statistical process. –Assume N large for continuous function Express problem in terms of probabilities

Poisson Properties

• The mean and standard deviation are simply related.

– Mean = Np, standard deviation 2 = ,

• Unlike the binomial distribution the Poisson function has values for n > N.

Page 11: Statistics. Decay Probability Radioactive decay is a statistical process. –Assume N large for continuous function Express problem in terms of probabilities

Poisson Away From Zero

• The Poisson distribution is based on the mean = Np.

– Assumed N >> 1, N >> n.

• Now assume that n >> 1, large and Pn >> 0 only over a narrow range.

• This generates a normal distribution.

• Let x = n – .

• Use Stirling’s formula

]!/)![(!)!(

x

e

x

eP

xx

x

e2!

)])...(1[(2 xP

x

x

)]/1)...(/11[(2

1

xPx

2)])...([(2

1 2/

//1

2x

xx

e

eeP

Page 12: Statistics. Decay Probability Radioactive decay is a statistical process. –Assume N large for continuous function Express problem in terms of probabilities

Normal Distribution

• The full normal distribution separates mean and standard deviation parameters.

• Tables provide the integral of the distribution function.

• Useful benchmarks:

– P(|x - | < 1 = 0.683

– P(|x - | < 2 = 0.954

– P(|x - | < 3 = 0.997

Typical Problem• Repeated counts are made in 1-

min intervals with a long-lived source. The observed mean is 813 counts with = 28.5 counts. What is the probability of observing 800 or fewer counts?

Answer• This is about -0.45.

• Look up P((x-)/ < -0.45)

– P = 0.324

22 2/

2)(

xexf

Page 13: Statistics. Decay Probability Radioactive decay is a statistical process. –Assume N large for continuous function Express problem in terms of probabilities

Cumulative Probability

• Statistical processes can be described for large numbers.

– Can we model one event?

– No two events are equal

• Probability distributions typically reflect incidence in an infinitessimal region.

– Integrate over a range

• Consider an event with a 500 keV incident photon on soft tissue with attenuation = 0.091 cm-1.

• The probability of an interaction in 2 cm is

• P = 1 – 0.834 = 0.166

• How does one simulate this?

xx xc edxexP 1)(

0

x

c dxxPP0 1 )(

Page 14: Statistics. Decay Probability Radioactive decay is a statistical process. –Assume N large for continuous function Express problem in terms of probabilities

Random Numbers

• To simulate a statistical process one needs a random selection from the possible choices.

• Algorithms can generate pseudo-random numbers.

– Uncorrelated over a large range of trials.

– Randomness limited for large sets or fixed starts

• Linear Congruential Generator

• Start with a seed value, X0.

– Select integers a, b.

• For a given Xn,

– Xn+1 = (aXn + b) mod m

• The maximum number of random values is m.

Page 15: Statistics. Decay Probability Radioactive decay is a statistical process. –Assume N large for continuous function Express problem in terms of probabilities

Random Distribution

• A selected random number is usually generated in a large range of integers.

– Uniform over the range

• Normalize values to select a narrow range.

– Usually from 0 to 1

• Convert range to match a distribution.

• To select a number with a normal distribution:

– Take two random numbers R1, R2 from 1 to N.

– Apply algorithm with

– (Box-Mueller algorithm)

NRr ii /

21 ln22cos rrx

Page 16: Statistics. Decay Probability Radioactive decay is a statistical process. –Assume N large for continuous function Express problem in terms of probabilities

Monte Carlo Method

• The Monte Carlo method simulates complicated systems.

• Use random numbers with distribution functions to select a value.

• Test that value to see if it meets certain conditions.

• Simple Monte Carlo for .

– Select a pair of random numbers from 0 to 1.

– Sum the squares and count if it’s less than 1.

– Multiply the fraction that succeed by 4.

Page 17: Statistics. Decay Probability Radioactive decay is a statistical process. –Assume N large for continuous function Express problem in terms of probabilities

Interaction Simulation

Typical Problem• A 100 keV neutron beam is

incident on a mouse (3 cm thick). Calculate the energy deposited at different depths.

Data Table• H =0.777 cm-1

• O =0.100 cm-1

• C =0.0406 cm-1

• N =0.00555 cm-1

• Total =0.92315 cm-1

• Simulate one neutron.

• Find the distance of penetration by inverting the probability.

• Find the nucleus struck.

– Normalize the i to the total possible tot.

• Select the energy of recoil and angle.

• Repeat for new distance.

itot

rx 1ln1

Page 18: Statistics. Decay Probability Radioactive decay is a statistical process. –Assume N large for continuous function Express problem in terms of probabilities

Fitting Tests

• Collected data points will approximate the physical relationship with large statistics.

• Limited statistics require fits of the data to a functional form.

Page 19: Statistics. Decay Probability Radioactive decay is a statistical process. –Assume N large for continuous function Express problem in terms of probabilities

Least Squares

• Assume that the data fits to a straight line.

• Use a mean square error to determine closeness of fit.

• Minimize the mean square error.

baxy

021

jjj xbaxy

Na

Q

2

1

2

1

)(1

baxyN

xyyN

Q

jj

N

jjj Nbxabxay jjj

021

bxy

Nb

Qjj

jjjj xbxayx 2

22

jj

jjjj

xxN

yxyxNa

jj xN

ay

Nb

1

Page 20: Statistics. Decay Probability Radioactive decay is a statistical process. –Assume N large for continuous function Express problem in terms of probabilities

Polynomial Fit

• The procedure for a least squares fit applies to any polynomial.

– n+1 parameters ak

• Minimize error expression Q.

• Requires simultaneous solutions to a set of n+1 equations.

n

k

kjkj xaxy

0

)(

k j

mkjk

k j

mj

kjk

jj

mj xaxxayx

N

j

n

k

kjkj xay

NQ

1

2

0

1

02

1 0

N

j

mj

n

k

kjkj

m

xxayNa

Q

Page 21: Statistics. Decay Probability Radioactive decay is a statistical process. –Assume N large for continuous function Express problem in terms of probabilities

Exponential Fit

• The least squares fit can be applied to other functions.

• For a single exponential a fit can be made on the log.

• For the sum of exponentials consider constants a, b.

– Select initial values

– Taylor’s series to linearize

– Find hk that minimize Q

n

k

xbk

keaxy1

)(

bxay lnln

bxaey

n

kk

kkjkj h

b

ybxybxy

10 );();(

kkk hbb 0

Page 22: Statistics. Decay Probability Radioactive decay is a statistical process. –Assume N large for continuous function Express problem in terms of probabilities

Chi Squared Test

• Fitting is based on a limited statistical sample.

• A chi-squared test measures the data deviation from the fit.

– Normally distributed

– Mean k for k degrees of freedom

• Divide the sample into n classes with probabilities pi and frequencies mi.

• The test is

n

i i

iis Np

Npm

1

2

)0,2

1(

)2

,2

1(

)(

2

22

k

k

P

s

s

x

ta dtetxa 1),(