Stochastic Ricker population map ================================ ``Ricker`` implements a density-dependent population map in log-population coordinates, with a declining growth rate and illustrative default coefficients. Usage ----- .. code-block:: python from tipbox.models import Ricker model = Ricker() result = model.make_trajectory(num_samples=600, noise=1.0, seed=43) population = result.trajectory[:, 0] control = model.make_trajectory(num_samples=600, noise=1.0, seed=43, null_simulation=True) .. figure:: ../_static/figures/b_ricker.png :target: ../_static/figures/b_ricker.png :alt: Population under declining log growth. Dashed lines mark zero log growth, not an observed extinction. Population under declining log growth. Dashed lines mark zero log growth, not an observed extinction. Equations and coordinates ------------------------- With population :math:`N_k=\exp(z_k)>0`, density coefficient :math:`b>0`, and independent standard-normal :math:`\xi_k`, each update is .. math:: z_{k+1} &= z_k+r_k-b\exp(z_k)+\sigma\,\eta\,\xi_k,\\ N_{k+1} &= N_k\exp(r_k-bN_k+\sigma\,\eta\,\xi_k). Here :math:`\eta` is the ``noise`` argument (shared default 0.01) and :math:`\sigma` is the configured log-growth amplitude (default 0.2). ``noise=1`` therefore gives log-growth standard deviation 0.2 per update. There is no :math:`\sqrt{dt}` factor: this is a discrete map. ``result.sigma`` is the per-update log-state scale :math:`\sigma\eta`. The stored state and ``initial_state`` override are **log population**; the observed column is population. Without an override, initialization uses ``log(config.initial_population)``. A zero initial population has no finite log coordinate. No integer rounding, additive observation error, demographic Poisson sampling, extinction threshold, or clipping is applied. Positive populations approach zero continuously; a recorded zero caused by floating-point underflow is not a modeled extinction event. At constant deterministic :math:`r`, the positive equilibrium is :math:`N^*=r/b` for :math:`r>0`. Its map multiplier is :math:`1-r`, so it is locally stable for :math:`0`_. The noise model, forcing protocol, and illustrative coefficients above are explicit TipBox choices.