Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

6. Counting statistics

School of Engineering, Nazarbayev University

Track: core  ·  Prerequisites: Chapters 3 and 5

Reading: Taylor, ch. 3.2 and 11 · Bevington & Robinson, ch. 2.2 · Fornasini, ch. 1.5 and 6.4 · Knoll, Radiation Detection and Measurement, ch. 3

Many measurements are counts: decays registered by a detector, photons on a pixel, cells in a field of view, events in a time window. Counting has a special place in error analysis because the uncertainty is not estimated from repeated readings but follows from the nature of the process itself. A single count NN comes with its own uncertainty, N\sqrt N.

This chapter

  1. explains when the N\sqrt N rule holds, and how to check that it does;

  2. treats background subtraction and the best division of counting time between source and background;

  3. shows where N\sqrt N fails, at small counts, and what to use instead;

  4. corrects for the dead time of a counter.

6.1 The square-root rule

If events occur independently of one another at a constant average rate RR, the number NN counted in a time tt follows the Poisson distribution with mean μ=Rt\mu = Rt and variance μ\mu (Section 5.2). A single count is the best estimate of μ\mu, and its standard uncertainty is

uN=μ≈N.u_N = \sqrt{\mu} \approx \sqrt N .

The relative uncertainty 1/N1/\sqrt N depends only on the number of counts, not on how long it took to collect them: 100 counts give 10 %, 10 000 counts give 1 %. A rate R=N/tR = N/t, with tt known precisely, has uR=N/tu_R = \sqrt N/t.

Checking the assumption. The rule rests on two assumptions: the events are independent and the rate is constant. A source whose intensity fluctuates, a detector whose efficiency drifts, or a process in which events come in clusters all produce counts that scatter more than Poisson; dead time (Section 6.4) makes them scatter less. The test is simple: record many counts in equal intervals and compare their variance with their mean. For Poisson data the index of dispersion

D=(n−1) s2NˉD = \frac{(n-1)\,s^2}{\bar N}

follows approximately a χ2\chi^2 distribution with n−1n-1 degrees of freedom (nn being the number of intervals).

steady source       : mean  51.8, variance   50.6, variance/mean = 0.98, p = 0.511
fluctuating source  : mean  50.8, variance  141.1, variance/mean = 2.78, p = 0.000

For the steady source, variance and mean agree. For the fluctuating one, the variance is nearly three times the mean (a 15 % fluctuation of a mean of 50 adds (0.15×50)2≈56(0.15 \times 50)^2 \approx 56 to the Poisson variance of 50) and the test rejects the Poisson hypothesis decisively. In that case N\sqrt N would understate the uncertainty of a count, and the scatter of repeated counts (Chapter 4) must be used instead.

6.2 Background subtraction

A weak source is measured on top of a background (cosmic rays, natural radioactivity, dark counts). One counts GG events with the source in place for a time tgt_g (“gross”), and BB events without it for a time tbt_b. The net source rate is

Rs=Gtg−Btb,uRs2=Gtg2+Btb2,R_s = \frac{G}{t_g} - \frac{B}{t_b} , \qquad u_{R_s}^2 = \frac{G}{t_g^2} + \frac{B}{t_b^2} ,

by the propagation law for a difference of independent counts. Note that the uncertainties add, although the counts are subtracted: subtracting a background always costs precision.

How to divide the time. With a fixed total time T=tg+tbT = t_g + t_b, how much should be spent on the background? Writing the expected counts as G=RgtgG = R_g t_g and B=RbtbB = R_b t_b, the variance is Rg/tg+Rb/tbR_g/t_g + R_b/t_b. Minimising it subject to tg+tb=Tt_g + t_b = T (set the derivative of Rg/tg+Rb/(T−tg)R_g/t_g + R_b/(T - t_g) to zero) gives

tgtb=RgRb.\frac{t_g}{t_b} = \sqrt{\frac{R_g}{R_b}} .

A strong source needs relatively little background time; for a source barely above background, the time should be split almost equally.

optimum fraction on the gross count: 0.528  (t_g/t_b = sqrt(R_g/R_b) = 1.118)
net-rate uncertainty: optimum 0.0998 /s, equal split 0.1000 /s, 90/10 split 0.1591 /s
simulated: mean net rate 2.0000 /s (true 2.0), standard deviation 0.0997 /s

The optimum is broad (panel (c) of the figure below): here even an equal split is practically as good. A badly unbalanced split is not. Spending only a tenth of the time on the background raises the variance by a factor of 2.5, as much as cutting the total measuring time by that factor.

6.3 Small counts

The N\sqrt N rule is an approximation that fails when NN is small. If no event is counted, N=0±0N = 0 \pm 0 is plainly wrong: a source of mean 2 would give zero counts 13.5 % of the time. More generally the Poisson distribution is skewed for small μ\mu, and N±NN \pm \sqrt N is neither the right width nor the right shape.

Exact intervals. The classical (Garwood) interval for a Poisson mean, given an observed count NN, is the set of means μ\mu for which NN is not in either tail of the distribution. It can be written in terms of the χ2\chi^2 quantiles,

μlow=12χα/22(2N),μup=12χ1−α/22(2N+2),\mu_\text{low} = \tfrac12\chi^2_{\alpha/2}(2N), \qquad \mu_\text{up} = \tfrac12\chi^2_{1-\alpha/2}(2N+2) ,

for a confidence level 1−α1 - \alpha, and is implemented in ep.poisson_interval. For N=0N = 0 the 90 % one-sided upper limit is μ<2.30\mu < 2.30, the number behind statements such as “no events observed; the rate is below 2.3 per counting period at 90 % confidence”.

N =   0:  sqrt rule [  0.00,   0.00]   exact 68.3 % [  0.00,   1.84]
N =   1:  sqrt rule [  0.00,   2.00]   exact 68.3 % [  0.17,   3.30]
N =   3:  sqrt rule [  1.27,   4.73]   exact 68.3 % [  1.37,   5.92]
N =  10:  sqrt rule [  6.84,  13.16]   exact 68.3 % [  6.89,  14.27]
N = 100:  sqrt rule [ 90.00, 110.00]   exact 68.3 % [ 90.02, 111.03]
N = 0: 90 % one-sided upper limit = 2.303

coverage of N +/- sqrt(N): 0.16 to 0.73 for mu < 3, 0.63 to 0.72 for mu > 20
coverage of the exact interval: never below 0.685

Below a mean of a few counts the interval N±NN \pm \sqrt N can miss the true mean far more often than the nominal 32 %; for large counts its coverage fluctuates around 68 %. The exact interval never covers less than the nominal level, at the price of being somewhat conservative (panel (b)). The discreteness of counts makes exact coverage impossible at every μ\mu, and statisticians have proposed several refinements, notably the unified intervals of Feldman and Cousins (1998), which also handle a known background properly.

Small counts cause trouble beyond intervals. Using Ni\sqrt{N_i} as the uncertainty of each bin of a histogram in a least-squares fit biases the result, because low fluctuations get small error bars and high weight. Chapter 15 shows how a likelihood fit avoids this.

6.4 Dead time

After registering an event, a counter is blind for a short dead time τ\tau. In the simplest (non-paralysable) model, events arriving during that time are lost without extending it. If the true rate is nn and the recorded rate mm, the counter is dead for a fraction mτm\tau of the time, so m=n(1−mτ)m = n(1 - m\tau) and

n=m1−mτ.n = \frac{m}{1 - m\tau} .

The correction is negligible when mτ≪1m\tau \ll 1 and large when mτm\tau approaches 1. Its uncertainty has two parts: the counting uncertainty of mm, amplified by dn/dm=1/(1−mτ)2\mathrm dn/\mathrm dm = 1/(1 - m\tau)^2, and the uncertainty of τ\tau itself, a systematic contribution common to all measurements made with the same counter.

true     1000/s: recorded       989/s (expected loss  0.2%), corrected 991 ± 10 /s  [counting 10, dead time 0]
true    30000/s: recorded     28421/s (expected loss  5.7%), corrected 30130 ± 190 /s  [counting 60, dead time 182]
true   150000/s: recorded    115391/s (expected loss 23.1%), corrected (1.500 ± 0.045) × 10^5 /s  [counting 182, dead time 4501]

At low rates the correction and its uncertainty are negligible. At the highest rate, where almost a quarter of the events are lost, the 10 % uncertainty of the dead time contributes far more than counting statistics. Dead time also changes the statistics themselves: a counter with dead time records events that are more regularly spaced than Poisson events, so the variance of the counts is less than their mean.

variance/mean of counts per 1 ms: without dead time 1.006, recorded 0.590  (expected (1 - m tau)^2 = 0.591)
<Figure size 1012x792 with 4 Axes>

(a) Counts in 40 equal intervals from a steady and from a fluctuating source; the band is the Poisson expectation. (b) Coverage of the N\sqrt N interval and of the exact interval as a function of the true mean. (c) Uncertainty of a net rate against the share of a fixed time spent on the gross count. (d) Fraction of events lost for a dead time of 2.0 ± 0.2 µs.

Summary

  • For independent events at a constant rate, a count NN has uncertainty N\sqrt N; check the assumption with the variance-to-mean ratio.

  • In background subtraction, uncertainties add; divide a fixed time in the ratio tg/tb=Rg/Rbt_g/t_b = \sqrt{R_g/R_b}.

  • For small counts use exact Poisson intervals, not N±NN \pm \sqrt N; a count of zero means an upper limit (2.3 at 90 %).

  • Correct for dead time, and include its uncertainty, which is systematic and dominates at high rates.

References

  • G. F. Knoll, Radiation Detection and Measurement, 4th ed. (Wiley, 2010), ch. 3.

  • F. Garwood, “Fiducial limits for the Poisson distribution”, Biometrika 28, 437 (1936).

  • G. J. Feldman and R. D. Cousins, “Unified approach to the classical statistical analysis of small signals”, Phys. Rev. D 57, 3873 (1998).

Exercises

  1. A Geiger counter records 412 counts in 5 minutes with a sample and 125 counts in 5 minutes without it. Find the net rate and its uncertainty. How should the next 10 minutes be divided to improve it most?

  2. Show that minimising Rg/tg+Rb/tbR_g/t_g + R_b/t_b at fixed tg+tbt_g + t_b gives tg/tb=Rg/Rbt_g/t_b = \sqrt{R_g/R_b}.

  3. How many counts are needed for a 1 % measurement of a rate? How long does that take at 3 counts per second?

  4. Compute the coverage of N±N+1N \pm \sqrt{N+1} as a function of μ\mu and compare it with panel (b). Is it a useful improvement?

  5. For a paralysable counter (every event, recorded or not, restarts the dead time), m=ne−nτm = n e^{-n\tau}. Show that the recorded rate has a maximum and explain why a high measured rate can then correspond to two true rates.