Quiz: fitting decays with few photons
Before this unit: Lifetimes, decays and photon counting (previous unit); Day 3: Bit depth and noise.
See also: Day 5: Deconvolution; Day 47: Spectral unmixing.
Short questions to test your understanding. Try each on paper first, then open the answer.
Q1. Why do we convolve the model with the IRF (“reconvolution”) rather than deconvolve the measured histogram and fit the result?
Recall the inverse filter (image formation day, recalled on the deconvolution day).
Deconvolving the noisy histogram divides by the IRF’s transfer function, which is small at high frequencies: the noise explodes (an ill-posed problem). Convolving the noise-free model with the IRF is harmless, and comparing it with the raw counts keeps their simple Poisson statistics.
Q2. A bin expects 0.5 counts. What is the probability that it is empty? Why does the classic χ² with weights 1/y_j struggle with such bins?
Poisson: P(0) = e^{-\mu}. What is 1/y for y = 0?
e^{-0.5} = 61\,\%. A weight of 1/0 is infinite, so empty bins must be patched (weight 1, or dropped); bins with 1 count get the largest weight of all. And a bin that came out low by chance gets a larger weight than one that came out high, so the fit is pulled downwards: the decay looks faster, τ too short.
Q3. With an ideal instrument, how many photons do you need for a lifetime with ±5 % precision? With an instrument whose F-value is 1.2?
\sigma_\tau/\tau = F/\sqrt N.
1/\sqrt N = 0.05 gives N = 400. With F = 1.2: (1.2/0.05)^2 = 576 photons.
Q4. Why are two lifetimes so much harder to fit than one?
Can two different pairs of lifetimes give almost the same curve?
Sums of exponentials are badly conditioned: quite different pairs (with adjusted amplitudes) give curves that differ by less than the noise, so the cost landscape is a long flat valley. The fit needs many more photons (in the demo, thousands instead of about 100 for 10 %), and lifetimes within a factor of about 2 can hardly be separated at all.
Q5. A pixel holds two species with equal numbers of molecules (α = 0.5 each), τ = 0.5 and 3 ns. Which fraction of the photons comes from the long species? What are the amplitude- and intensity-weighted mean lifetimes?
Photons per molecule are proportional to its lifetime.
f = 0.5 \cdot 3/(0.5 \cdot 0.5 + 0.5 \cdot 3) = 0.86. \bar\tau_a = 0.5 \cdot 0.5 + 0.5 \cdot 3 = 1.75 ns; \bar\tau_f = 0.14 \cdot 0.5 + 0.86 \cdot 3 = 2.64 ns.
Q6. Global analysis fits the lifetimes once and then each pixel’s amplitudes. Why does this work with far fewer photons per pixel than fitting every pixel separately?
Which part of the problem is nonlinear and hard, and how many photons go into it?
The nonlinear, badly conditioned part (the lifetimes) is fitted once from the photons of all pixels, millions of them. What remains per pixel is a linear problem with a few unknowns (the amounts of each species): the same as unmixing with time bins as channels, which is well posed even with a few hundred photons.
Q7. The residuals of a one-exponential fit are positive at early times, negative in the middle and positive in the tail. What does that tell you?
Residuals of a good fit look like noise.
A systematic wave means the model is missing something: here a second, longer (and a shorter) component. One exponential cannot follow a curve that is steep at first and flat later. Try two lifetimes; the residuals should then look like noise, and the reduced χ² drop to about 1.
Q8. (math) Arrival times (no IRF, infinite window) 0.4, 1.1, 2.9, 0.7, 3.6, 1.8, 0.2 and 5.3 ns. What is the maximum-likelihood estimate of τ, and the best possible relative standard error?
Set the derivative of \sum_i(-\log\tau - t_i/\tau) to zero; Cramér–Rao gives \tau^2/N.
\hat\tau = the mean = 16/8 = 2.0 ns. The relative standard error is at least 1/\sqrt 8 = 35\,\%: eight photons say little.