David L Miller (@millerdl)
University of Bergen – 12 September 2017
(a talk)
Why do birds
Suddenly appear
Every time you are near?
Most likely
It is simply
perception bias.
Aaaaah ah ah ah ah ah ah aah
Perception bias
\[ \mathbb{P} \left[ \text{animal detected } \vert \text{ animal at distance } y\right] = g(y;\boldsymbol{\theta}) \]
\[ \hat{p} = \frac{1}{w} \int_0^w g(y; \boldsymbol{\hat{\theta}}) \text{d}y \]
Figure from Marques et al (2007)
\[ \hat{N} = \frac{\text{study area}}{\text{survey area}}\sum_{i=1}^n \frac{s_i}{\hat{p}_i} \]
(where \( s_i \) are group/cluster sizes)
Hedley and Buckland (2004)
Miller et al. (2013)
Taking the previous example…
\[ \mathbb{E}\left(n_j\right) = \color{red}{A_j}\color{blue}{\hat{p}_j} \color{green}{\exp}\left[\color{grey}{ \beta_0 + \sum_k s_k(z_{kj})} \right] \]
\( n_j\sim \) some count distribution
\[ \int_\mathbb{R} \left( \frac{\partial^2 s(x)}{\partial x^2}\right)^2 \text{d}x\\ \]
Biologists rarely work on the unit square (or even \( \mathbb{R}^2 \)).
\[ \int \int_{\mathbb{R}^2} \lvert \boldsymbol{\tau} \rvert \left\{ \left ( \mathfrak{F} \frac{\partial f}{\partial x} \left(\boldsymbol{\tau} \right) \right )^2 + \left (\mathfrak{F} \frac{\partial f}{\partial y}\left(\boldsymbol{\tau} \right) \right )^2 \right\} \text{d}\boldsymbol{\tau}. \]
library(dsm)
dsm_env_tw <- dsm(count~s(Depth) + s(NPP) + s(SST),
ddf.obj=df_hr,
segment.data=segs, observation.data=obs,
family=tw())
dsm is based on mgcv by Simon Wood
“Everything is related to everything else, but near things are more related than distant things”
Tobler (1970)
\[ \mathbf{S}_j = \mathbf{U}_j\mathbf{\Lambda}_j\mathbf{U}_j^{T} \]
\( \mathbf{\Lambda}_j \) contains 0s due to basis nullspace
Form: \[ \mathbf{S}_j^{*} = \mathbf{U}_j^{*}\mathbf{U}_j^{*T} \]
Fit a GAM with two penalties:
\[ \lambda_j \mathbf{\beta}^T \mathbf{S}_j \mathbf{\beta} + \lambda_j^{*} \mathbf{\beta}^T \mathbf{S}_j^{*} \mathbf{\beta} \]
(In practice, add select = TRUE)
\( \Rightarrow \) fit GAMs using general MCMC software (jags, greta etc)
\[ n_j = A_j p_j \exp \left\{ \color{red}{\left[\frac{ \partial \log p_j(\boldsymbol{\theta})}{\partial\boldsymbol{\theta}} \Big\vert_{\boldsymbol{\theta} = \hat{\boldsymbol{\theta}}}\right] \boldsymbol{\gamma}} + \beta_0 + \sum_k f_k(z_{jk}) \right\} \]
Picture from University of St Andrews Library Special Collections
Slides w/ references available at converged.yt