Professional Documents
Culture Documents
Conceptual Foundations:
De te rm in is tic Fu n c tio n s
1. What is a deterministic (mathematical) function. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
2. Examples of deterministic functions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
2.1 Example 1 Brown creeper abundance along forest succession gradient. . . . . . . . . . . . 4
2.2 Example 2 Brown creeper presence/absence along basal area gradient. . . . . . . . . . . . 6
2.3 Example 3 Striped bass stock-recruitment.. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
3. Phenomenological versus mechanistic functions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
4. Bestiary of deterministic functions.. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
5. Choosing the right deterministic function?. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
Deterministic Functions
Deterministic Functions
One way to distinguish the deterministic model from the stochastic model is as follows:
Deterministic model in a deterministic model, given the input data and parameter values, the
model determines exactly the output, such that we always get the same result. If the
deterministic model perfectly described the environmental system under consideration and there
was no uncertainty or source of error, then given the value of the independent variable (x) and
the model parameters, we would be able to predict the value of the dependent variable (y)
exactly (i.e., with no uncertainty).
Stochastic model in a stochastic model, given the input data and parameter values, the model
gives variable output, such that we always get a different result due to randomness. If there is
some uncertainty in our model parameters, then we would expect for a given value of the
independent variable (x) to generate a different value of the dependent variable (y) each time,
since the model is imperfect. The stochastic model is simply the error in our ability to predict the
outcome (dependent variable) for a particular input. All statistical models have a stochastic
component.
Deterministic Functions
The first thing that you should notice about the plot is that brown creeper abundance appears to
increase linearly with increasing percentage of the landscape comprised of late-successional
forest. Thus, it would be logical to propose a simple linear model to represent the deterministic
component of a statistical model for this data. Note that this is a phenomenological description
of the relationship, as we derived it by observing the patterns in the data rather than
hypothesizing it a priori (i.e., before looking at the data).
The second thing that you should notice is that the relationship is not perfectly linear; i.e., there
is considerable variability about the trend. This represents the stochastic component of the model.
For now, we will ignore the stochastic component and focus solely on describing the
deterministic component.
Deterministic Functions
The linear function. A simple linear function has the following form:
where a is the y-intercept and b is the slope. Note, we can fit this model using a variety of methods
(the usual method is Ordinary Least Squares, which finds the parameters that minimize the sum of
the squared deviations from the fitted line), but for now, we will ignore the fitting procedure and
focus solely on whether the linear model does a good job of describing the pattern.
Does the fitted linear model (solid line in the figure) do a good job in describing the relationship
between brown creeper abundance and the extent of late-successional forest?
Deterministic Functions
The first and most important thing that you should notice about the plot is that the response
variable is binary; either 1 or 0, indicating the presence or absence, respectively, of brown
creepers at the plot. Thus, the deterministic model must honor the 0-1 bounds of the response
variable. In addition, you should notice that it appears that the proportion of presences increases
as the total basal area increases.
Given the binary response, it would be logical to use a simple logistic model to represent the
deterministic component of the statistical model for this data. The logistic model has a
characteristic sigmoid shape and is very commonly used for binary presence/absence data. Note,
it is less clear in this particular case whether the logistic model is a phenomenological or
mechanistic description of the relationship, since the parameters dont necessarily have a
biological basis for their meaning.
Deterministic Functions
The logistic function. A simple 2-parameter logistic function has the following form:
where a is the location parameter that shifts the curve left or right, and b is the scale parameter
that controls the steepness of the curve. In this case, y represents the probability of presence.
Again, we can fit this model using a variety of methods (the usual method is known as Iteratively
Reweighted Least Squares), but for now, we will ignore the fitting procedure and focus solely on
whether the logistic model does a good job of describing the pattern. Does it?
Deterministic Functions
The first thing that you should notice about the plot is that recruitment initially increases with
increasing stock levels, but then appears to either level off or peak and decline when the stock
gets relatively large. This might be expected with density-dependent population growth if per
capita fecundity decreases exponentially with density. Thus, there is potentially a mechanistic
explanation to the pattern observed and we might propose a model that represents this
mechanism.
The second thing that you should notice is that there is considerable variability about the mean
stock-recruitment relationship, and this variability increases considerably as the stock level
increases (i.e., variance increases with the mean). This represents the stochastic component of the
model. For now, we will ignore the stochastic component and focus solely on describing the
deterministic component.
Deterministic Functions
The Ricker function. The Ricker function is one of several functions that has been used to define
this sort of relationship, and has the following form:
where it starts off growing linearly with slope a and has its maximum at x=1/b. The Ricker function
derives from assuming that per capita fecundity decreases exponentially with density. While it has a
mechanistic interpretation in this case, the Ricker function is also widely used as a phenomenological
model for environmental variables that start at zero, increase to a peak, and decrease gradually back
to zero.
Deterministic Functions
10
As is often the case with environmental data, the Ricker function is not the only plausible
mechanistic model for this data set. The Beverton-Holt function is also commonly used to describe
stock-recruitment patterns and derives from assuming that over the course of the season the
mortality rate of young-of-the-year is a linear function of their density (Quinn and Deriso 1999).
Importantly, while the Ricker and Beverton-Holt functions (and others) are logical mechanistic
models for describing this stock-recruitment relationship, its is important to realize that there are
several other functions that could be used to describe the pattern phenomenologically; i.e., without
an explicit mechanistic explanation, and in some cases may fit the data better than the mechanistic
function. We explore this issue further in the next section.
Deterministic Functions
11
Deterministic Functions
12
Given the experimental design, we would almost certainly have an a priori model of the functional
response relationship expected. The standard model for saturating functional responses is the
Holling type II (also known as Beverton-Holt and Michaelis-Menten) response,
where P = predation rate (number eaten per predator per unit of time), N = initial starting larval
density, = baseline attack rate, and h = handling time. The Holling type II function assumes that
the per capita predation rate of larvae decreases hyperbolically with density (= / (1+hN)). In this
case, the initial slope is and the asymptote is 1/h. Ecologically, this makes sense because at low
densities the predators will consume prey at a rate proportional to the attack rate (P(N).N) while
at high densities the predation rate is entirely limited by handling time (P(N).1/h). It makes sense
that the high-density predation rate is the inverse of the handling time: if a predator needs half an
hour to handle (capture, swallow, digest, etc.) a prey, and needs essentially no time to locate a new
one (since the prey density is very high), then the predation rate is 1/(0.5 hour)=2/hour.
Deterministic Functions
13
While the Holling type II model certainly makes sense, it is not the only plausible mechanistic model
to describe the functional response relationship. Holling type III, Ricker and Monomolecular (also
known as von Bertalanffy and skellem) are also suitable candidates, each with its own mechanistic
interpretation. As you can see from the figure, all of the models do a pretty good job of fitting the
data. Indeed, the AIC criterion indicates that the Holling II, Ricker and Monomolecular models are
all just about as good as each other. Based on the data, there would be little reason for choosing one
over the other.
While these mechanistic models all make sense because they have an explicit environmental
interpretation, it is important to recognize that there may be times (perhaps more often than not)
when we dont have a plausible mechanistic model for the data a priori. In such cases, we can fit any
suitable deterministic function that describes the relationship well. In the example here, the
quadratic polynomial function fits the data extremely well, better than any of the mechanistic models
in fact, and there are undoubtedly many other functions that could equally describe the pattern well.
The difficulty lies in the fact that while we may be able to describe the pattern well, there is no
underlying environmental theory tied to the model. Thus, we can describe the phenomenon well,
but not the underlying mechanism. Despite these limitations, you will likely have many occasions
where you will need to fit data on a phenomenological basis.
Deterministic Functions
14
Deterministic Functions
15
2. Piecewise polynomial functions.You can make polynomials (and other functions) more flexible
by using them as components of piecewise functions. In this case, different functions apply over
different ranges of the predictor (x) variable. Examples include the simple threshold function,
hockey stick function, and more generalized piecewise function shown here. Like polynomials,
piecewise polynomials are also easy to understand since they involve piecing together two or more
polynomials. Piecewise polynomials are extremely flexible for fitting threshold-like patterns and/or
phenomenologically as a simple way to stop functions from dropping below zero or increasing
indefinitely when such behavior would be unrealistic. Using a piecewise function means that the rate
of change (derivative) changes suddenly at some point. Such a discontinuous change may make
sense, for example, if the last prey refuge in a reef is filled, but transitions in environmental systems
usually happen more smoothly.
Deterministic Functions
16
Deterministic Functions
17
Deterministic Functions
18
There are modifications to these functions, including the power Ricker, truncated Ricker and
modified logistic, to render them more flexible in accommodating a wider range of patterns.
However, these modified functions are typically phenomenological models designed to fit the data
better than the original model, but lacking in an explicit mechanistic interpretation. The familiar
normal (or Guassian) function (and associated half-normal function) is perhaps the most common
phenomenological model in environmental applications.
Deterministic Functions
19
5. Power laws. The polynomials involved in the rational functions above were simple linear or
quadratic functions. Environmental modelers sometimes introduce an arbitrary (fractional) power as
a parameter instead of using only integer values; using power laws in this way is often
phenomenological way to vary the shape of a curve, although these functions may also have
mechanistic derivations. Examples include the generalized version of the von Bertalanffy growth
curve, a generalized version of the Beverton-Holt (Michaelis-Menten; Holling type II) function
known in fisheries as the Shepherd function, and the closely related Hassell function. Power
functions are extremely flexible, especially since the power parameter is usually added to an existing
model that already allows for changes in location, scale and curvature. The exponent is sometimes
derived from intrinsic geometric or allometric properties of the system and thus does not always
have to be estimated.
Deterministic Functions
20
Deterministic Functions
21
In the modeling process, the choice of a deterministic model is critical because it is usually the way
we represent the environmental process of interest. Estimating the parameters of the deterministic
model is more often than not the focus of the statistical inference. This is particularly so if the model
is mechanistic and the parameters have an explicit environmental interpretation. Thus, choosing a
model carefully is of paramount concern. Ideally the model choice is made a priori, before you have
looked at the data, but there will be many times where an initial examination of the data will provide
important insights on the adequacy of a particular model and suggest a different model or perhaps
competing models. Time spent carefully considering the right model for the question, given the data,
is time well worth spending, as any inferences made are going to be contingent on the model, as are
any insights gained from the study.