Survival from capture histories: the Cormack-Jolly-Seber model
The Cormack-Jolly-Seber model fit with marked to Lebreton et al.’s European dipper, the textbook capture-recapture table, and then to every individual-level capture-history table in eco, from elephant seals to cacti. A simulator at the top shows why recapture is what separates survival from detection.
Published
November 20, 2026
An animal that is marked and never seen again either died or was alive and missed. Those are two different coin flips, and the history of a single animal cannot tell them apart. The Cormack-Jolly-Seber model (Cormack 1964; Jolly 1965; Seber 1965) separates them by following many marked animals over many occasions: an animal seen at occasion 5 was alive at occasions 2 to 4 whether or not it was seen there, and those known-alive misses estimate the recapture probability \(p\). Once \(p\) is known, the disappearances that \(p\) cannot explain are deaths, or emigrations, and estimate the survival probability \(\phi\). This page fits the model to one eco table, the European dipper of Lebreton et al. (1992), and then to every capture-history table in the warehouse, with marked(Laake et al. 2013) doing the fitting.
Note
This vignette, including the choice of tables, the analysis and the writing, was produced largely by Claude (Anthropic) from a task specification, with human review. Treat the interpretations accordingly; the code is all on the page and runs from a clean session.
Try it first
Animals are marked at the first occasion. Between occasions each live animal survives with probability \(\phi\); at each occasion each live animal is seen with probability \(p\). Drag the sliders and watch the amber cells: those are animals alive and missed, which a count of sightings reads as dead.
seen alive, not seen, seen later alive, not seen, never seen again dead
True survival per interval (survivals / live animal-intervals)
Naive survival (last sighting taken as death)
Return rate (share of marked animals ever seen again)
Known-alive misses (grey cells): p estimated from them
Animals alive at the last occasion but never seen after marking, or after their last sighting
Each strip is one animal, its cells the K occasions; the first cell is the marking. Hover a strip for its history. The grey cells are the only misses the data can see as misses: the animal was seen later, so it was alive. The share of sightings among the occasions strictly between an animal's marking and its last sighting is a model-free estimate of p.
Three things to notice. Naive survival, which reads every animal’s last sighting as its death, is always below \(\phi\), and the gap closes only as \(p\) approaches 1. The grey cells give an estimate of \(p\) that needs no model at all, because an animal seen later was certainly alive: that is the whole identification argument of CJS in one line. And the amber cells pile up at the end of the study, where an animal has no later occasion to prove it was alive; this is why the last survival and recapture probabilities in a fully time-varying model cannot be separated.
The model
Condition on animal \(i\)’s first capture, at occasion \(f_i\). From then on it carries a latent state \(z_{it} \in \{0, 1\}\), alive or dead, that can only go from 1 to 0,
where \(\Delta_t\) is the time between occasions \(t\) and \(t+1\), so that \(\phi\) is survival per unit of time (per year, below) whatever the spacing of the surveys. Each occasion returns a sighting that is possible only when the animal is alive,
Summing the \(z\)s out gives the likelihood of one history. Up to the last sighting \(l_i\) the animal is known to be alive, so that part is a product of survivals and of \(p\) or \(1-p\); after it, the animal either died or survived and was missed, which is the probability \(\chi_{l_i}\) of never being seen again, defined backwards from the last occasion \(K\):
The known-alive stretch informs \(p\) directly. The tail \(\chi\) is where survival and detection are mixed together, and it is identified only because \(p\) has been pinned by the known-alive stretches of other animals. With \(\phi\) and \(p\) both free at every occasion, the last pair appears only as the product \(\phi_{K-1} p_K\): the CJS version of the occupancy model’s “\(J = 1\)” problem.
TipA psychometric reading
This is a hidden Markov model with an absorbing state, which makes it a close cousin of a latent transition model with one irreversible transition: the occasions are repeated items, \(p\) is the item’s endorsement probability for respondents in the “alive” class, the dead class endorses nothing, and \(\phi\) is the probability of not dropping out. Read that way, the CJS model is the dropout model of a longitudinal study in which dropout is unobserved: a non-response may be a skipped wave or a respondent who is gone for good, and the waves the respondent came back after tell you how often people skip. Conditioning on first capture is conditioning on enrolment.
The data
The table is lebreton_1992_dipper_cjs: 294 European dippers (Cinclus cinclus) marked in eastern France and recaptured each spring from 1981 to 1987, the dataset Lebreton et al. (1992) used to set out the model-selection approach to capture-recapture, and the one that ships with marked, RMark and MARK. Reads are pinned to eco version 10 so the numbers on this page do not move when the warehouse grows.
lebreton_1992_dipper_cjs
European dipper capture-recapture histories, eastern France, 1981-1987 (marked::dipper)
294 units x 1 taxa x 7 periods x 1 occasions; 2,058 rows; y in 0..1
family: CJS capture-recapture
response: detection (unit = individual)
protocol: live_trap; taxa: Birds; FRA
floor: meets; surveys rest on: deposited_matrix
licence: GPL-2.0-or-later (source shows: GPL-2)
cite: Lebreton, J.-D., Burnham, K. P., Clobert, J. & Anderson, D. R. (1992). Modeling survival and testing biological hypotheses using marked animals: a unified approach with case studies. Ecological Monographs 62(1), 67-118. https://doi.org/10.2307/2937171. Data as bundled in marked (Laake, Johnson & Conn 2013).
columns: unit, taxon, y, period, unit_sex
script: https://github.com/ben-domingue/eco/blob/main/data/lebreton_1992_dipper_cjs.R
d <-as.data.table(eco_fetch("lebreton_1992_dipper_cjs"))
eco tables rest on other people's fieldwork: please cite the original deposits (eco_cite(tables)). Silence with options(eco.cite_reminder = FALSE).
One row per bird per year. unit is the bird, period the year’s capture session, y whether it was caught. The table carries a row for every bird in every year from 1981, including years before it was first caught, where y is 0: the standard keeps a row wherever the animal was at risk of being recorded, and an unmarked bird is part of the population being searched. CJS conditions on first capture, so those rows drop out of the likelihood on their own.
Annual survival is about 0.56 and the recapture probability about 0.90, Lebreton et al.’s numbers. A high \(p\) is why the dipper is a good teaching table: few animals are alive and missed, so the naive and model-based answers are close, and the interesting structure is in \(\phi\).
Lebreton’s flood
A flood in the spring of 1983 hit the study streams. Lebreton et al. compared a model in which survival differs in the two intervals around it (1982 to 1983 and 1983 to 1984) against constant and fully time-varying survival, and against a sex effect.
The flood model wins: survival of about 0.61 in ordinary years and 0.47 in the flood years, with no support for a sex difference and nothing gained by letting every year have its own survival. The fully time-varying model pays for parameters that are, in part, not identified (the last \(\phi\) and \(p\) come only as a product).
Does the model fit?
The standard goodness-of-fit battery for CJS (Pradel et al. 2005), implemented in U-CARE and in R2ucare(Gimenez et al. 2018), breaks the deviation from the fully time-dependent model into components with a biological reading. Test 3.SR asks whether newly marked animals are seen again as often as previously marked ones; a failure means transients, animals passing through, or animals marked young with lower first-year survival. Test 2.CT asks whether being caught now changes the chance of being caught next time; a failure means trap dependence. Tests 3.SM and 2.CL are the remaining, less specific components; the four sum to an overall statistic whose ratio to its degrees of freedom is the overdispersion factor \(\hat c\).
X <-as.matrix(M[, -(1:2)])g <-overall_CJS(X, rep(1, nrow(X)))g
chi2 degree_of_freedom p_value
Gof test for CJS model: 14.1 12 0.294
The dipper passes, with \(\hat c\) = 1.18, no sign of transients, and trap dependence just short of the 5% line: the model’s assumptions hold for this table about as well as they ever do. Most of the corpus will not be this tidy.
The same model across the corpus
eco holds 27 more capture-history tables that fit the model as they are or after collapsing secondary occasions: seabirds, geese and a tyrant flycatcher; sea lions, fin whales, elephant seals and bottlenose dolphins; grass snakes, rattlesnakes and terrapins; a frog; three species of stream fish; a damselfly and three populations of a fritillary butterfly; and five species of plant. The companion script cjs_corpus_compute.R fits the same three models to each and runs the U-CARE tests; it caches the results in cjs_data/cjs_corpus.rds because the two Macquarie Island elephant seal tables, with 7,500 and 18,000 animals, take a few minutes.
Turning a table into a history matrix needs three rules, all of which follow from the standard:
Rows before first capture are dropped. CJS conditions on first capture.
A missing row after first capture is not a miss. The standard says a row exists exactly when the animal was at risk of being recorded (E4.4), so a gap is an animal that could not have been seen (a branded sea lion pup in a year with no resighting effort, a bird removed after capture). It enters the history as a 0 with \(p\) fixed at 0 for that animal and occasion, so it says nothing about survival.
Robust-design tables are collapsed to the period. Where a period has several secondary occasions (the brant, the Marion Island seals, the two dolphin studies, the frog), an animal counts as seen in the period if it was seen on any occasion.
The time between periods comes from each table’s __periods: years for annual studies, months for the stream fish and the frog, season dates for the Bunbury dolphins, the authors’ own MARK intervals for the rattlesnakes, and search days for the two within-season insect studies. The Brazilian flycatcher’s session dates were not deposited, so its survival is per session. Every \(\phi\) below is per year unless the table says otherwise.
The models are \(\phi(\cdot)\,p(\cdot)\); \(\phi(\cdot)\,p(t)\), because effort is never constant across years; and \(\phi(\text{tsm})\,p(t)\), which gives the first interval after marking its own survival (time since marking, Pradel et al. (1997)). The last is the standard response to a failed test 3.SR, and the right comparison across species: in a table of animals marked as pups or chicks, the first interval is juvenile survival and the rest is adult survival.
The simulator’s first lesson holds across the corpus. Every table’s naive survival, with the last sighting taken as death, is at or below the model’s \(\hat\phi\), by a median of 0.07 per year (or per day, or per session). The gap is set by \(p\): in the 6 tables with \(\hat p \geq 0.8\) (the dipper, the Marion Island seals, the Scottish dolphin calves and three of the plants) the median gap is 0.01, and in the 12 tables with \(\hat p < 0.4\) it is 0.12. The rattlesnakes are the extreme case: one adult in eight is found at the dens in a given year, so naive survival of 0.73 becomes 0.89 once the missed years are accounted for.
Figure 1: Estimated survival under phi(.) p(.) against naive survival for every table. Colour is the estimated recapture probability; shape marks the interval unit. Hover a point for the table.
The first interval after marking
In 18 of the 28 tables AIC prefers the model that gives the first interval after marking its own survival, and in 25 that first interval has the lower survival. Test 3.SR, which looks for exactly this pattern without fitting anything, rejects in 16. Two different biologies produce it. Where animals are marked young, the first interval is juvenile survival: Steller sea lions branded as pups (0.61, then 0.88), elephant seals tagged as weaned pups on Macquarie Island, and the third of the brant banded as goslings. Where adults are marked, the first interval mixes residents with transients that are passing through and leave for good, and so look dead: the Brazilian flycatcher, mist-netted as adults, has a first-session survival of 0.36 against 0.81 afterwards. A single “first versus later” split is a crude age model; in the elephant seals, “later” still includes two- and three-year-olds, which is part of why their adult survival comes out near 0.8.
f[, label2 :=sprintf("%s\n%s\nfirst %.2f, later %.2f (per %s)\ntest 3.SR p = %.3f\nbest: %s", short, scientificName, phi_first, phi_later, interval_unit, t3sr_p, best)]g <-ggplot(f, aes(phi_later, phi_first, text = label2)) +geom_abline(slope =1, intercept =0, colour ="#c9ccc8") +geom_point(aes(fill = t3sr_reject), shape =21, size =2.6, colour ="#1e8a5a") +scale_fill_manual(values =c(`TRUE`="#1e8a5a", `FALSE`="white"), guide ="none") +coord_equal(xlim =c(0, 1), ylim =c(0, 1)) +labs(x ="Survival after the first interval", y ="Survival in the first interval")plotly::ggplotly(g, tooltip ="text", width =620, height =560) |> plotly::config(displayModeBar =FALSE)
Figure 2: Survival in the first interval after marking against survival afterwards, under phi(tsm) p(t). Filled points are tables where test 3.SR rejects at the 5% level. Below the diagonal, the first interval is worse.
Goodness of fit
The dipper was the exception. The overall U-CARE test rejects at the 5% level in 21 of the 28 tables, and the median \(\hat c\) is 1.9. As with occupancy, part of this is power, and the large tables (the elephant seals, the brant, the booby) reject with \(\hat c\) well above 1. But the plants, with a few hundred to a thousand individuals each, are as bad or worse, and the components say what the departures are, and two recur. Transience (3.SR) was dealt with above. Trap dependence (2.CT) is the other: an animal seen this year is more likely to be seen next year than one that was missed, because it breeds at an observed colony, or dens at a searched den, or simply because some animals are more catchable than others. The standard remedies are a trap-dependence term on \(p\) (Pradel’s “trap-happy” model) or a mixture on \(p\), and inflating standard errors by \(\sqrt{\hat c}\) for what is left.
Figure 3: The overdispersion estimate from the overall U-CARE test against the number of animals, both on log scales. The dashed line is c-hat = 1, where the CJS model fits. Hover for the table.
The plants deserve a word. Mammillaria and Flaveria have recapture probabilities near 1, so a dead plant and an unseen plant are rarely confused, yet their \(\hat c\) values are among the highest in the corpus, and in both test 2.CT rejects: a plant missed in one census is more likely to be missed in the next. Some of that is presumably heterogeneity in \(p\), plants that are small or hidden year after year, which a model with one \(p\) for every plant cannot carry. The orchid Govenia is the clearest failure, with \(\hat\phi\) at the boundary of 1 and \(\hat c\) near 60. A terrestrial orchid can spend whole years below ground, alive and invisible, which breaks the model’s assumption that every live animal (or plant) is catchable. This is why the page leaves out the Hubbard Brook orchid tables, which record dormancy as a state; the multistate model with an unobservable state is the fix.
Figure 4: Annual survival after the first interval under phi(tsm) p(t), with 95% intervals, for every table whose periods are in years. Open points are fits at the boundary. The within-season insect studies (per day) and the flycatcher (per session) are not shown.
The ordering is roughly the slow-fast continuum. The dolphins, the fin whale and the perennial plants sit near or above 0.9 a year; the booby, the sea lions, the terrapin and the rattlesnake between 0.85 and 0.9; the elephant seals (with juveniles in “later”, as above), the brant and the grass snake between 0.75 and 0.85; the dipper, a small passerine, and Darwin’s frog at about 0.55; and the three stream fishes at about 0.3, which is less a statement about fish lifespans than about streams. Every \(\phi\) here is apparent survival: an animal that leaves the study area for good is, to the model, dead, and a fish in a 740 m study reach has many ways to leave it. The fritillaries and the damselfly, not shown, survive 0.74 to 0.86 per day, an expected remaining life of four to seven days once marked.
None of these numbers is new: each table’s own paper fits a richer model and reports better ones. What is new is that one script with three model formulas runs across 28 deposits, from whales to cacti, without a line of per-table code beyond the time intervals, and that the same rules (drop rows before first capture, fix \(p\) at 0 where the table has no row, collapse secondary occasions) are the ones the standard already writes into every table.
Where this goes
Everything above changes by one piece of the state or observation process, and eco carries tables for each.
More states. Let the latent state be a site, a breeding status or a disease class instead of just alive, and CJS becomes the multistate (Arnason-Schwarz) model. The kittiwake, penguin, Dolly Varden and Bunbury female-calf tables are multistate histories (responseTypestate), fit with marked’s "Multistrata" model or with nimbleEcology.
Closed sessions inside open years. The robust-design tables collapsed above keep their secondary occasions in the table; Pollock’s robust design uses them to estimate abundance within each period and temporary emigration between periods.
Space. The spatial capture-recapture tables (_scr) add the trap at which each animal was caught, and estimate density instead of survival.
Reproducibility
Source: site/vignettes/cjs.qmd and cjs_corpus_compute.R in the eco repository. Data were read with eco_set_version(10), so a later release of the warehouse does not change the page.
eco version 10 (Redivis eco v2.2, eco_meta v9.0, released 2026-11-04)
R 4.6.2; eco 0.1.0; marked 1.2.8; R2ucare 1.0.3
References
Cormack, R. M. 1964. “Estimates of Survival from the Sighting of Marked Animals.”Biometrika 51: 429–38.
Gimenez, Olivier, Jean-Dominique Lebreton, Rémi Choquet, and Roger Pradel. 2018. “R2ucare: An R Package to Perform Goodness-of-Fit Tests for Capture-Recapture Models.”Methods in Ecology and Evolution 9: 1749–54.
Jolly, G. M. 1965. “Explicit Estimates from Capture-Recapture Data with Both Death and Immigration-Stochastic Model.”Biometrika 52: 225–47.
Laake, Jeffrey L., Devin S. Johnson, and Paul B. Conn. 2013. “marked: An R Package for Maximum Likelihood and Markov Chain MonteCarlo Analysis of Capture-Recapture Data.”Methods in Ecology and Evolution 4: 885–90.
Lebreton, Jean-Dominique, Kenneth P. Burnham, Jean Clobert, and David R. Anderson. 1992. “Modeling Survival and Testing Biological Hypotheses Using Marked Animals: A Unified Approach with Case Studies.”Ecological Monographs 62: 67–118.
Pradel, Roger, Olivier Gimenez, and Jean-Dominique Lebreton. 2005. “Principles and Interest of GOF Tests for Multistate Capture-Recapture Models.”Animal Biodiversity and Conservation 28: 189–204.
Pradel, Roger, James E. Hines, Jean-Dominique Lebreton, and James D. Nichols. 1997. “Capture-Recapture Survival Models Taking Account of Transients.”Biometrics 53: 60–72.
Seber, G. A. F. 1965. “A Note on the Multiple-Recapture Census.”Biometrika 52: 249–59.