Appendix K — Expected counts

It can be useful to predict various count statistics from a fitted model or from hypothetical parameter values or from a design that has been altered without changing parameter values. Here we repeat and extend formulae from Efford & Boulanger (2019). See secrdesign and secrdesign-Enrm.pdf for an implementation.

For convenience we formulate the detection process in terms of hazard \lambda(d_k(\mathbf x)) rather than probability g(d_k(\mathbf x)), but the two are interchangeable1. The overall detection rate on occasion s of an AC at location \mathbf x is \begin{equation} \Lambda_s(\mathbf x) = \sum_K \lambda(d_k(\mathbf x)), \end{equation} and aggregating over occasions gives \Lambda(\mathbf x) = \sum_s \Lambda_s(\mathbf x).

If all potential detections are recorded then \Lambda_s(\mathbf x) is the expected total number of detections on one occasion for an animal centred at \mathbf x. Only Poisson proximity detectors are assumed to act like this. Other detector types collect binary data (e.g. binary proximity detectors record only whether an individual appeared at least once or not at all at a detector on a certain occasion). Nevertheless, \Lambda_s(\mathbf x) is useful for predicting the outcome for binary detector types as shown later. Single-catch traps are a special case for which there are not closed-form expressions for \mathrm{E} (n) and \mathrm{E} (r).

K.1 Number of individuals n

The expected number of individuals detected at least once is E(n) = \int [1 - \exp\{-\Lambda(\mathbf x) \} ] \times D(\mathbf x) \; d \mathbf x. This is the same for all detector types in which individuals are detected independently of each other (‘multi’, ‘binary proximity’ or ‘Poisson proximity’). Integration is over all locations in the plane from which an individual might be detected. The region of integration is represented in practice by a discretized ‘habitat mask’, and integration is performed by summing over cells.

K.2 Number of detections C

The total number of detections C depends on the detector type, as follows.

K.2.1 Detector type ‘Poisson proximity’

This is the simplest case – E(C) = \int \Lambda(\mathbf x) \times D(\mathbf x) \; d\mathbf x.

K.2.2 Detector type ‘multi-catch trap’

Data from ‘multi’ detectors are binary at the level of each animal \times occasion, with Bernoulli probability p_s = 1 - \exp\{- \Lambda_s(\mathbf x)\}. This leads to the overall number of detections – E(C) = \int \sum_s p_s(\mathbf x) \times D(\mathbf x) \; d \mathbf x.

K.2.3 Detector type ‘binary proximity’

Data from binary proximity detectors are binary at the level of each animal \times detector \times occasion, with Bernoulli probability p_{ks}(\mathbf x) = 1 - \exp\{- \lambda(d_k(\mathbf x))\}. This leads to the overall number of detections – E(C) = \int \sum_s \sum_k p_{ks}(\mathbf x) \times D(\mathbf x) \; d\mathbf x.

K.3 Number of recaptures r

For all detector types the expected number of recaptures is simply E(r) = E(C) - E(n).

K.4 Number of movements m

A movement is a recapture (redetection) at a site other than the previous one. Movements are a subset of recaptures. We calculate the expected number of movements by considering each recapture event in turn and calculating the conditional probability that it is at the same site as before. This is a sum of squared detector-wise conditional probabilities.

Conditional on detection somewhere, the probability of detection in detector k is q_k(\mathbf x) = \lambda(d_k(\mathbf x)) / \sum_k \lambda(d_k(\mathbf x)). For clarity in the following detector-specific expressions we use a(\mathbf x) = 1 - \exp\{-\Lambda(\mathbf x)\}) and b(\mathbf x) = 1-\sum_k q_k(\mathbf x)^2.

K.4.1 Detector type ‘Poisson proximity’

E(m) = \int \{ \Lambda(\mathbf x) - a(\mathbf x)\} \times b(\mathbf x) \times D(\mathbf x) \; d\mathbf x.

K.4.2 Detector type ‘multi-catch trap’

E(m) = \int \{\sum_s p_s(\mathbf x) - a(\mathbf x)\} \times b(\mathbf x) \times D(\mathbf x) \; d\mathbf x.

K.4.3 Detector type ‘binary proximity’

E(m) = \int \{ \sum_s \sum_k p_{ks}(\mathbf x) - a(\mathbf x) \} \times b(\mathbf x) \times D(\mathbf x) \; d\mathbf x.

K.4.4 Caveat

If an animal may be detected more than once on one occasion (as with ‘proximity’ and ‘count’ detector types) and time of detection is not recorded within each occasion (the norm in secr) then the temporal sequence of detections is not fully observed. The number of observed (apparent) movements is then less than or equal to the true number. Results from the moves function in secr are also not to be trusted: they effectively assume any repeat detections at the same site precede other redetections rather than being interspersed in time. Precise formulae are not available for the expected number of observed movements among proximity and count detectors. There should be little discrepancy between observed and true numbers when detections are sparse. The predicted number of movements is close to the apparent number in simulations (see later section; this deserves further investigation).

K.5 Individuals detected at two or more detectors n_2

This count is related to the optimization criterion Q_{p_m} of Dupont et al. (2021). The value is simply the total count \mathrm{E}(n) minus the number detected at only one detector \mathrm{E}(n_1). For independent detectors (proximity detectors of any sort) the calculation follows from Dupont et al. (2021): setting p_0(\mathbf x) = \exp (-S\Lambda(\mathbf x)) and p_k(\mathbf x) = \exp\{-S \lambda[d_k(\mathbf x)]\},

E(n_1) = \int p_0(\mathbf x) \sum_k \frac{p_k(\mathbf x)}{1 - p_k(\mathbf x)} \times D(\mathbf x) \; d \mathbf x. Then \mathrm{E}(n_2) = \mathrm{E}(n) - \mathrm{E}(n_1).

The calculation of \mathrm{E}(n_1) is more messy for non-independent detectors, specifically multi-catch traps. Using p_{ks}(\mathbf x) = [1 - \exp(-\Lambda(\mathbf x))] \; \lambda(d_k(\mathbf x)) / \Lambda(\mathbf x) for the probability an individual at \mathbf x is caught at k on a particular occasion, and p^*_{ks}(\mathbf x) = [1 - \exp(-\Lambda(\mathbf x))] \; (1 - \lambda(d_k(\mathbf x)) / \Lambda(\mathbf x)) for the probability it is caught elsewhere:

E(n_1) = \int \sum_k \left( 1 - [1-p_{ks}(\mathbf x)]^S \right) \; [1-p^*_{ks}(\mathbf x)]^{S-1} \times D(\mathbf x) \; d \mathbf x.

K.6 Single-catch traps

All the preceding calculations assume independence among animals. If traps can catch only one animal at a time then animals effectively compete for access (the first arrival is most likely to be caught). This depresses the realised hazard of detection \lambda(d_k(\mathbf x); \theta); the effect increases with density. No closed-form expressions exist for this case. The computed \mathrm{E}(n), \mathrm{E}(r) and \mathrm{E}(m) for multi-catch traps (detector ‘multi’) will exceed the true values for the single-catch traps (detector ‘single’) given the same detection parameters. That final caveat is significant because a pilot value of \hat \lambda_0 from fitting a multi-catch model to single-catch data will be an underestimate (Efford et al., 2009).


  1. \lambda(d_k(\mathbf x)) = -\log[1 - g(d_k(\mathbf x))].↩︎