FW 891
Click here to view presentation online
18 September 2023
see Cahill et al. 2018; Cahill et al. 2022
A nonlinear model is a model in which the predicted values are nonlinear functions of the parameters, not necessarily of the predictor variables
This is a linear model because y is a linear function of a, b, and c even though it is a nonlinear function of x:
\[ y = a + bx + cx^2 \]
Bolker et al. 2013
We could linearize the previous equation by taking logarithms \[ log(y) = log(a) + b \cdot log(x) \]
We could solve the nonlinear equation on the previous slide using something like nls()
or via the linear model above using lm()
in R
However:
see examples in Ricker 1954; Beverton and Holt 1957; Brännström and Sumpter 2005
where W is weight at time t, H and m are mass-specific anabolic (tissue building) and catabolic (breaking down tissue) terms
Beverton and Holt 1957
Solving that differential equation, and transforming from weight to length yields the von Bertalanffy growth model:
\[ \hat{l}_{i}=l_{\infty}\left\{1-\mathrm{e}^{\left[-(K)\left(a_{i}-t_{0}\right)\right]}\right\} \]
Figure credit: Jim Bence
Figure credit: Jim Bence
\[ l_{\infty}=\frac{H}{m} \cdot \alpha^{-\frac{1}{3}} \]
where \(\alpha\) is the shape parameter from a weight-length relationship, and
\[ K=\frac{m}{3} \]
so it allows us to explicitly model the ecological processes we are interested in if we are clever!
see Bolker et al. 2013
“Our general approach to finding problems in statistical modeling software is to get various crude models or models with no predictors to work and then gradually build up to the model we want to fit. If you set up a complicated model and you cannot get it to run (or it does and its results do not make sense) then either build it up from scratch or strip it down until you can get it to work and make sense”
Bolker et al. 2013
Bolker et al. 2013
Bolker et al. 2013
Hilborn and Mangel 1997; Gelman et al. 2022
Bolker et al. 2013
von Bertalanffy model to estimate fish growth (fake data where I know truth but you do not; easy)
Type-II predator-prey model for wolves and moose (real data from Isle Royale; intermediate)
Schaefer surplus-production model to estimate maximum sustainable yield (real data from south Atlantic Albacore Tuna; hard)
Will a 21 inch minimum length limit work?
The model: \[ \begin{array}{l} L_{i}=L_{\infty}\left(1-e^{-K\left(a_{i}-t_{0}\right)}\right)+\varepsilon_{i} \\ \varepsilon_{i} \stackrel{i i d}{\sim} N\left(0, \sigma^{2}\right) \end{array} \]
Fit this model using Stan
Evaluate your model
Wydeven et al. 2009
\[ C=\alpha N \]
where \(\alpha\) is a proportionality set by the rate at which predators encounter prey
Holling 1959a, b
\[ C=\frac{\alpha N}{1+\alpha h N} \]
Holling 1959b
What is the handling time for a wolf kill on Isle Royale?
The model: \[ \begin{array}{l} C_{i}=\frac{\alpha N_{i}}{1+\alpha h N_{i}}+\varepsilon_{i} \\ \varepsilon_{i} \stackrel{i i d}{\sim} N\left(0, \sigma^{2}\right) \end{array} \]
where i represents an observed moose density \(N_{i}\) and a corresponding obsrvation of kills per wolf per month \(C_{i}\)
In groups of < 3, fit the model and evaluate MCMC algorithm and fit
How hard do you want the problem to be?
Beverton and Holt 1957
\[ \begin{aligned} B_{0} & = K \\ B_{t+1} & =B_{t}+r B_{t}\left(1-\frac{B_{t}}{K}\right)-C_{t} \end{aligned} \]
Beverton and Holt 1957; Hilborn and Mangel 1997
To relate the model to data we rely on the fact that \[ \hat{I}_{t}=\frac{C_{t}}{E_{t}}=q B_{t} \]
\(\hat{I}_{t}\) is the predicted value of the index of relative abundance in year t
\(E_{t}\) is the harvesting effort in year t
q is catchability coefficient, defined as the amount of biomass/catch taken with one unit of effort
Catch per unit effort (CPUE = \(\frac{C_{t}}{E_{t}}\)) can then be related to a survey index or fishery catches via a lognormal likelihood function:
\[ log(CPUE_{t}) \stackrel{i i d}{\sim} N\left(log(q) + log(B_{t}), \tau^{2}\right) \]
Maximum sustainable yield (MSY) is the largest yield (or catch) that can be taken from a species’ stock over an indefinite period (theoretically)
Easy to determine MSY with this model: \[ MSY = r \cdot K/4 \]
And can also kick out the corresponding harvesting effort that would achieve MSY: \[ EMSY = r / (2 \cdot q) \]
Because we are Bayesian we can kick these management quantities out as derived variables
Beverton and Holt 1957; Hilborn and Mangel 1997
Beverton and Holt. 1957. On the dynamics of exploited fish populations. Chapman and Hall.
Bolker, B. 2009. Learning hierarchical models: advice for the rest of us. Ecological Applications, 19, 588–592.
Bolker et al. 2013. Strategies for fitting nonlinear ecological models in R, AD Model Builder, and BUGS. Methods in Ecology and Evolution. doi: 10.1111/2041-210X.12044
Brännström and Sumpter. 2005. The role of competition and clustering in population dynamics. Proceedings of the Royal Society B. doi: https://doi.org/10.1098/rspb.2005.3185
Cahill et al. 2018. Multiple challenges confront a high effort inland recreational fishery in decline. Canadian Journal of Fisheries and Aquatic Sciences.
Cahill et al. 2022. Unveiling the recovery dynamics of walleye after the invisible collapse. Canadian Journal of Fisheries and Aquatic Sciences.
Gelman and Hill 2006. Data Analysis Using Regression and Multilevel/Hierarchical Models.
Gelman et al. 2020. Regression and other stories. Cambridge University Press.
Hilborn and Mangel 1997. The Ecological Detective.
Holling, C. S. 1959a. The components of predation as revealed by a study of small mammal predation of the European pine sawfly. Canadian Entomology 91:293–320
Holling, C. S. 1959b. Some characteristics of simple types of predation and parasitism. Canadian Entomology 91:385–398.
Link and Barber 2010. Bayesian inference with ecological applications. Academic Press.
Millar and Meyer 2000. Nonlinear state space modeling of fisheries biomass dynamics by using Metropolis-Hastings within-Gibbs sampling. Appl. Statist. 49:327-342.
Monnahan et al. 2017. Faster estimation of Bayesian models in ecology using Hamiltonian Monte Carlo. Methods in Ecology and Evolution.
Wydeven et al. 2009. Recovery of Gray Wolves in the Great Lakes Region of the United States. Springer.