Model fitting and inference for infectious disease dynamics
Every likelihood in this course so far has assumed
\[y_t \sim \text{Poisson}(\lambda_t)\]
where \(\lambda_t\) is what the model predicts at time \(t\).
That is a modelling choice, not a law. It encodes a specific claim about how observation works, and it has consequences.
Real surveillance data rarely obliges. Weekend effects, reporting delays, outbreak investigations and clustered transmission all break these assumptions.
When the data are more variable than Poisson allows, the fix is an observation model with a free variance:
\[y_t \sim \text{NegativeBinomial}(\lambda_t, \phi)\]
The cost is one extra parameter. The benefit is that the model stops treating every unusual week as strong evidence against the trajectory.
An observation model that is too tight makes the posterior too confident, and makes outliers dominate the fit.
A single week with 35 cases where the model expects 5 is near-impossible under Poisson, so the likelihood collapses and the sampler is dragged towards parameters that accommodate the outlier.
Under a negative binomial the same week is merely unusual.
Look at the negative log-likelihood of one observation as a function of how far it sits from the prediction.
That is a distance function: it scores how far the data are from the model, and different observation models are different distance functions.
Once you see the likelihood as a distance, an obvious question follows: what if we chose the distance directly?
ABC approximates the likelihood using a set of summary statistics \(S\).
A summary statistic is
The idea of sufficient summary statistics: to be exact, we would need summary statistics that give the same result as the likelihood.
\[p(\text{data} \mid \theta) \approx p\big(d(S_\text{data},\, S_{\text{sim}(\theta)}) < \epsilon\big)\]

The simplest version, and the one you will write:
Repeat until you have enough. The kept parameters approximate the posterior.
No likelihood anywhere. Just a simulator, a distance, and a threshold.
Too tight and you reject almost everything. The acceptance rate collapses and you wait forever for a handful of samples.
Too loose and you accept almost everything, including parameters that fit badly. In the limit you are sampling the prior.
There is no free lunch here: \(\epsilon\) trades accuracy against compute, and you cannot tell from inside the algorithm whether you have chosen well.
Rejection ABC wastes its effort: every draw comes from the prior, however hopeless.
ABC-SMC walks the threshold down in stages instead.
Each generation starts from parameters already known to be reasonable, so far fewer simulations are wasted. Reaching a tight threshold becomes feasible.
The catch: particles need weighting to stay unbiased, which is the same propagate-weight-resample structure as the particle filter.
No. There is only a choice, and the choice is part of the model.
Either way, be explicit about the choice and check whether your conclusions survive a different one.
In the practical you will
Observation models and ABC