Skip to contents

When fish are scarce, a catch or survey sample can record zero for an age even if fish of that age are present. Positive-only families, including lognormal (the default), Gamma, and generalized gamma, use only positive observations in the likelihood. Delta and Tweedie families also use sampled zeros.

Observation models that include sampled zeros

Let \(Y_i\) be a recorded catch or survey index for an age and year, and let \(\widetilde{Y}_i\) be its prediction from the population model. The catch prediction comes from the Baranov catch equation. The survey prediction is abundance at sampling time scaled by catchability.

Delta observations

Delta models describe whether a sample records any fish and how much it records when fish are observed (Stefánsson 1996). In tinyAM, both parts use the same predicted catch or survey index, \(\widetilde{Y}_i\). This prediction is the arithmetic mean across zeros and positives.

Each fleet or survey \(j\) has a soft detection scale \(\widetilde{Y}_{50,j}\), the predicted catch or index at which half of observations are expected to be zero. The prediction and the scale use the observation’s units. Let \(r_i=\widetilde{Y}_i/\widetilde{Y}_{50,j}\) be the prediction relative to that scale.

The logit link makes \(r_i\) the odds of recording a positive. The Poisson link gives the chance of at least one event under a Poisson model with encounter rate \(\lambda_i=\log(2)\,r_i\) (Thorson 2018).

\[ p_{+,i}=\Pr(Y_i>0)= \begin{cases} \dfrac{r_i}{1+r_i}, & \text{logit link},\\[4pt] 1-e^{-\lambda_i}, & \text{Poisson link}. \end{cases} \]

The Poisson-link case is equivalent to a complementary log-log (cloglog) link. The probability of zero is \(p_{0,i}=\Pr(Y_i=0)=1-p_{+,i}\). At twice the soft detection scale, it is one-third with the logit link and one-quarter with the Poisson link. See also the sdmTMB model description for delta models with two predictors.

The horizontal scale compares predictions relative to the same soft detection scale. At large predictions, Poisson-link delta gives a lower probability of zero.

For either delta option, the positive component has arithmetic mean

\[ m_{+,i}=\frac{\widetilde{Y}_i}{p_{+,i}}, \qquad p_{+,i}\,m_{+,i}=\widetilde{Y}_i. \]

Only the positives contribute to the overall mean. If the predicted catch is 10 and one quarter of samples are positive, the positives must average 40 so that \(0.25\times40=10\). The positive distribution can be lognormal, Gamma, or generalized gamma. For example, delta lognormal uses

\[ \log Y_i\mid Y_i>0 \sim N\!\left(\log m_{+,i}-\frac{\sigma_i^2}{2},\ \sigma_i^2\right). \]

Here \(\sigma_i\) controls the spread on the log scale. Subtracting \(\sigma_i^2/2\) makes \(m_{+,i}\) the arithmetic mean of the positives. The default ordinary lognormal family uses the assessment prediction as its conditional median.

A sampled zero contributes its log probability. A positive contributes the log probability of a positive plus its log density. Writing \(g_{+,i}\) for the positive density on the log-observation scale gives

\[ \ell_i= \begin{cases} \log p_{0,i}, & Y_i=0,\\[4pt] \log p_{+,i}+\log g_{+,i}(\log Y_i), & Y_i>0. \end{cases} \]

The overall assessment prediction uses a log link. q_link independently controls how the survey formula maps to catchability.

Tweedie observations

Tweedie models zeros and positive observations through a single distribution. With power \(1<p_j<2\), it describes a sum of a Poisson-distributed number of positive Gamma amounts. The sum is zero when there are no amounts to add (Foster and Bravington 2013).

The variance and probability of zero depend on the predicted arithmetic mean \(\widetilde{Y}_i\), dispersion \(\phi_i\), and the series’ power \(p_j\).

\[ \operatorname{Var}(Y_i)=\phi_i\widetilde{Y}_i^{\,p_j}, \qquad \Pr(Y_i=0)= \exp\!\left[-\frac{\widetilde{Y}_i^{\,2-p_j}}{\phi_i(2-p_j)}\right]. \]

The model estimates power separately for each series unless power is supplied. The same dispersion and power govern the probability of zero and the spread of the positives.

A sampled zero contributes \(\log\Pr(Y_i=0)\). A positive contributes \(\log f_{\mathrm{Tw}}(Y_i)+\log Y_i\), where \(f_{\mathrm{Tw}}\) is the Tweedie density for positive values on the original observation scale. It already includes the probability of recording a positive. The \(\log Y_i\) term converts the density to the log-observation scale used in the likelihood. See the observation family reference for dispersion conventions, restrictions, and the alternative positive families.

Apply the families to Northern cod

Northern cod has 230 recorded catch zeros and 268 Fall 2J3KL survey zeros at ages 2–20+ in 1983–2025. Four fits use the same NCAM-inspired population model and differ in their catch and survey observation families.

ncam <- fit_tam(cod_obs, years = 1983:2025, ages = 2:20,
  N_settings = list(process = "off", init = "exp"),
  R_settings = list(process = "rw"),
  F_settings = list(process = "ar1", mu_form = ~ 1, mean_ages = 5:14),
  M_settings = list(process = "ar1", mu_supplied = ~ I(0.3),
    age_breaks = c(2, 5, 8, 21), mean_ages = 5:14),
  catch_settings = list(sd_form = ~ 1),
  index_settings = list(sd_form = ~ 1, q_form = ~ mono(q_block)),
  silent = TRUE
)

ncam_delta <- update(ncam,
  catch_settings = list(family = delta_lognormal(type = "logit-link")),
  index_settings = list(family = delta_lognormal(type = "logit-link")),
  silent = TRUE
)

ncam_poisson <- update(ncam,
  catch_settings = list(family = delta_lognormal(type = "poisson-link")),
  index_settings = list(family = delta_lognormal(type = "poisson-link")),
  silent = TRUE
)

ncam_tweedie <- update(ncam,
  catch_settings = list(family = tweedie()),
  index_settings = list(family = tweedie()),
  start_par = ncam,
  silent = TRUE
)

The ordinary lognormal likelihood excludes the recorded zeros. Delta and Tweedie likelihoods use them. Missing observations contribute to none of the likelihoods. The ordinary lognormal prediction is a median, while the other three predictions are arithmetic means across zeros and positives. The Tweedie fit uses the lognormal fit to initialize shared parameters.

Detection and distribution parameters

Model Parameter Estimate Lower 95% Upper 95% Units
Logit-link delta y50_catch 0.62 0.51 0.75 thousand fish
Logit-link delta y50_index 25.34 21.52 29.84 thousand fish
Poisson-link delta y50_catch 0.70 0.61 0.81 thousand fish
Poisson-link delta y50_index 26.86 23.54 30.64 thousand fish
Tweedie tweedie_power_catch 1.48 1.45 1.51 unitless
Tweedie tweedie_power_index 1.49 1.47 1.52 unitless

Which observations are likely to be zero?

The numbers in each cell are observed thousands of fish. Colour gives the probability of zero calculated from the selected model. Grey cells mark missing observations. Hover shows the recorded value, fitted mean, and probability. Small positives stay distinct from zero. In the labels, k means one thousand of the displayed units.

Number of zeros

For each year, dots count the recorded zeros and lines sum each model’s fitted probabilities of zero across the same sampled ages. For example, three ages with probabilities of 0.2, 0.5, and 0.8 contribute 1.5 expected zeros. Both counts use sampled observations with a fitted probability and exclude structural zeros. Years without eligible observations leave a gap.

Compare the assessments

Only six catches and two survey observations are positive at age 20+. The terminal abundance estimates therefore draw heavily on the fitted population dynamics. Shading marks the low-stock years from 1992 to 2010.

These differences describe sensitivity to the observation family. Inspect numerical checks and residual diagnostics alongside the trajectories in the Northern cod dashboard.

Forecast held-out observations

For each target year from 2006 to 2025, hindcasts fit through the previous year and forecast one year with terminal F held constant. The same 20 folds are attempted for every family.

hind <- fit_hindcast(ncam, ncam_delta, ncam_poisson, ncam_tweedie,
  folds = 20, proj_settings = list(F_mult = 1))
#> Models differ in which zero occurrence cases can be scored. Compare Brier
#> scores only for matching cases.

All four models are scored on the same held-out positive survey observations. Scores compare predicted medians with observations on the log scale, so a twofold overprediction and a twofold underprediction count equally. Log-RMSE gives large misses more weight. MASE compares mean absolute log error with a simple forecast that carries forward the last available positive observation. Lower scores are better, and a MASE below one shows that the model beats that benchmark (Carvalho et al. 2021).

Model Cases Log-RMSE MASE
Lognormal 227 0.73 0.92
Logit-link delta 227 0.69 0.88
Poisson-link delta 227 0.67 0.87
Tweedie 227 0.76 0.92

The true stock history is unknown, so these scores compare one-year forecasts of observed survey indices. On the matched positive records, Poisson-link delta had the lowest log-RMSE and MASE.

Brier scores were also calculated to compare forecasts of whether a held-out catch or survey observation would be zero. The score averages the squared difference between the forecast probability of zero and the outcome, coded as one for a zero and zero for a positive. Lower is better, and a score of zero indicates perfect forecasts on those records. The three models are scored on the same held-out observations.

Model Observations Cases Brier
Logit-link delta catch 380 0.056
Poisson-link delta catch 380 0.054
Tweedie catch 380 0.065
Logit-link delta index 342 0.064
Poisson-link delta index 342 0.062
Tweedie index 342 0.062

Poisson-link delta had the lowest Brier score for catch. It matched Tweedie for the survey index at the precision shown. The Brier scores assess forecasts for individual observations. For agreement in annual totals, see the number of zeros plots.

Compare information criteria

Marginal AIC averages the likelihood over the model’s random effects. Conditional AIC (cAIC) evaluates how well each model would predict repeat observations from the same underlying stock history. Both account for model complexity, and lower values are better.

marginal <- AIC(ncam_delta, ncam_poisson, ncam_tweedie)
conditional <- cAIC(ncam_delta, ncam_poisson, ncam_tweedie)
Model AIC cAIC
Logit-link delta 2538.8 1994.6
Poisson-link delta 2515.0 1969.5
Tweedie 2708.1 2155.4

The lognormal model is excluded because it treats sampled zeros as missing and therefore uses different observations. All three fits have parameters at their bounds, so the criteria are approximate. Poisson-link delta has the lowest AIC and cAIC.

References

Carvalho, F., Winker, H., Courtney, D., et al. 2021. A cookbook for using model diagnostics in integrated stock assessments. Fisheries Research, 240, 105959. doi:10.1016/j.fishres.2021.105959.

Foster, S. D., and Bravington, M. V. 2013. A Poisson–Gamma model for analysis of ecological non-negative continuous data. Environmental and Ecological Statistics, 20, 533–552. doi:10.1007/s10651-012-0233-0.

Stefánsson, G. 1996. Analysis of groundfish survey abundance data: combining the GLM and delta approaches. ICES Journal of Marine Science, 53(3), 577–588. doi:10.1006/jmsc.1996.0079.

Thorson, J. T. 2018. Three problems with the conventional delta-model for biomass sampling data, and a computationally efficient alternative. Canadian Journal of Fisheries and Aquatic Sciences, 75(9), 1369–1382. doi:10.1139/cjfas-2017-0266.