You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- $I_{t-d}$ is the number of incident (new) infections on day $t-d$ (i.e., $d$ days before day $t$)
43
+
- $I(t-s)$ is the number of incident (new) infections on day $t-s$ (i.e., $s$ days before day $t$)
44
44
- $\alpha$ is the rate of ascertained counts per infection (e.g., infection-to-hospital admission rate). This can model a mix of biological effects (e.g. some percentage of infections lead to hospital admissions, but not all) and reporting effects (e.g. some percentage of admissions that occur are reported, but not all).
45
-
- $p_d$ is the delay distribution from infection to observation, conditional on an infection leading to an observation
46
-
- $D$ is the maximum delay
45
+
- $\pi(s)$ is the delay distribution from infection to observation, conditional on an infection leading to an observation
47
46
48
47
Discrete observations are generated by sampling from a noise distribution—e.g. Poisson or negative binomial—to model reporting variability.
49
48
Poisson assumes variance equals the mean; negative binomial accommodates the overdispersion common in surveillance data.
@@ -53,11 +52,11 @@ Poisson assumes variance equals the mean; negative binomial accommodates the ove
53
52
## Hospital admissions example
54
53
55
54
For hospital admissions data, we construct a `Counts` observation process.
56
-
The delay is the key mechanism: infections from $d$ days ago ($I_{t-d}$) contribute to today's hospital admissions ($\lambda_t$) weighted by the probability ($p_d$) that an infection leads to hospitalization after exactly $d$ days. The convolution sums these contributions across all past days.
55
+
The delay is the key mechanism: infections from $s$ days ago ($I(t-s)$) contribute to today's expected hospital admissions ($\mu(t)$) weighted by the probability ($\pi(s)$) that an infection leads to hospitalization after exactly $s$ days. The convolution sums these contributions across all past days.
57
56
58
57
The process generates hospital admissions by sampling from a negative binomial distribution:
The concentration parameter $\phi$ (sometimes called $k$ or the dispersion parameter) controls overdispersion: as $\phi \to \infty$, the distribution approaches Poisson; smaller values allow greater overdispersion.
where $\mu(t)$ is the predicted measurement value on day $t$, computed from infections via a domain-specific transformation, and the noise model adds stochastic variation around predictions.
51
51
52
-
1.**`_predicted_obs(infections)`**: Transforms infections into predicted measurement values (you implement this)
53
-
2.**Noise model**: Adds stochastic variation around predictions (provided by PyRenew)
52
+
Subclasses implement `_predicted_obs()` to compute $\mu(t)$ from infections. PyRenew provides the noise model.
54
53
55
54
The `Measurements` base class provides:
56
55
@@ -159,7 +158,7 @@ class MyMeasurement(Measurements):
159
158
## Measurement Example: Wastewater
160
159
161
160
To illustrate the framework, we specify a wastewater viral concentration observation process,
162
-
based on the [PyRenew-HEW](https://github.com/cdcgov/pyrenew-hew) family of models.
161
+
based on the [PyRenew-HEW](https://github.com/cdcgov/pyrenew-multisignal) family of models.
163
162
164
163
**The wastewater signal**
165
164
@@ -172,18 +171,18 @@ The predicted concentration depends on:
0 commit comments