The exponential function: a non-linear regression that may be useful to biologists – part 1

Introduction

These notes have been prompted by the absence in some widely used text books of a discussion of the usefulness of some non-linear regression models. Quinn & Keogh (2002) dismiss non-linear models in just two pages of an otherwise excellent and thorough text. Welham, Gezan, Clark & Mead (2015) state more, but still seem to miss the interpretive value of a suitably-chosen non-linear model. Mead, Curnow & Hasted (2003) discuss a few more useful models but remain rather light on interpretation. Part of the reason for this is that fitting non-linear models is not a simple calculation, but that is no longer the problem. Genstat makes fitting non-linear models very simple with an easy-to-use menu to fit the most common models.

Simple linear regression revisited

First, a little bit of background revision. Simple linear regression (SLR) is familiar to almost everyone: a straight line fitted through points displayed on an “X-Y” graph. The model is:

𝑦𝑖 = 𝑎 + 𝑏𝑥𝑖 + 𝑒𝑖

𝑦𝑖  is the observation, 𝑥𝑖 is the concomitant measurement, 𝑒𝑖  is a random variable or deviation from the line and 𝑎, 𝑏 are parameters which are fitted so that the sum of the squares of 𝑒𝑖  is minimised  – “least squares fitting”. 𝑦𝑖  =𝑎+𝑏𝑥𝑖 is the equation of the line. Take that expression and fix 𝑥𝑖 and 𝑏  and vary 𝑎. 𝑦𝑖 will describe a linear response to 𝑎. Similarly with 𝑏. So 𝑎 and 𝑏  are linear parameters. Even if you had a quadratic, e.g., 

𝑦𝑖 = 𝑎 + 𝑏𝑥𝑖 + 𝑐𝑥𝑖2

and varied each of the parameters you would still show 𝑦𝑖  having a linear response to the parameters. So, if we have a model where every parameter has a linear relationship with the response, it will be a “linear model”. (Pedantically, “a model linear in the parameters”.)

However, if we have a model like; 

𝑦𝑖  = 𝑎 + 𝑏𝑒𝑐𝑥𝑖

then this model would not be linear with respect to c. It takes only one non-linear parameter to have the model declared “non-linear” regardless of how many other parameters are linear.

Interpreting the exponential model

I consider this to be the most important curvilinear model in biology – second of importance after the SLR, and more important than the quadratic. And why? Because it can be interpreted.

Let’s look at an example. This is from Welham et al (2015, Statistical Methods in Biology. Design and Analysis of Experiments and Regression) example 17.1A. Olsen phosphorus levels and spring barley yield from 20 plots were measured in 1986.

alt text

Note that the response starts at a low value, rises in perhaps a curvilinear fashion to a high and then levels off, or perhaps declines. Welham et al. outline some approaches to analysing these data. They show that transforming either of the axes does not lead to a satisfactory fit with SLR. What if a polynomial were fitted to the original (untransformed) graph? A quadratic also displays an unsatisfactory fit. The cubic fits better, although the significance of the cubic coefficient is greater than 0.05, (and, for that matter, the term for the quadratic!) but the parameters of a cubic are not easy to interpret, for example, what does the fourth coefficient really mean in terms of the relationship between Yield and Olsen P?

𝑌𝑖𝑒𝑙𝑑 = 0.80+0.87  x 𝑂𝑙𝑠𝑒𝑛_𝑃 – 0.071  x (𝑂𝑙𝑠𝑒𝑛 _𝑃)2 + 0.0019  x (𝑂𝑙𝑠𝑒𝑛_𝑃)3

 

alt text

alt text

Let’s now consider the exponential regression. This is the expression for this type of graph, where data points for yield start somewhere close to the origin and rise to a plateau (called an asymptote) for high levels of phosphorus.

𝑦𝑖 = 𝑎 − 𝑏𝑒−𝑐𝑥𝑖

 Now, 𝑒0 = 1; in fact any (non-zero) value “raised to the zero𝑡ℎ power” equals one. So where 𝑥 = 0, 𝑦𝑖 = 𝑎 – 𝑏. As 𝑥 gets larger and larger, 𝑒−𝑐𝑥 gets closer and closer to zero so 𝑦𝑖  gets closer and closer to 𝑎, so we see 𝑎  as being a “ceiling” value. Note that 𝑐  always has a negative sign. If it were positive the expression would rapidly get very large.

There are a couple of points we should cover before we go further.

Exploring the exponential model nuances

(1) Sometimes you’ll see the expression as 𝑦𝑖 = 𝑎 − 𝑏 x 𝑟𝑥. To see that this is algebraically the same, we take the 𝑙𝑜𝑔𝑒(𝑟𝑥) = 𝑥𝑙𝑜𝑔𝑒(𝑟). Then we take the exponential of that, so:


𝑟 −𝑐𝑥 = 𝑒 −𝑥𝑙𝑜𝑔𝑒(𝑟)

So we see that 𝑐=𝑙𝑜𝑔𝑒(𝑟). Note that because 𝑐  has a negative sign, 𝑟 lies between 0 and 1, i.e., 0<𝑟<1. We have the SE of 𝑟 but we would like the SE of 𝑐. An advanced methods text book may have a section on “statistical differentials”, but here let’s just show the calculation: 𝑆𝐸(𝑐) = 𝑆𝐸(𝑟)/𝑟.

(2) If 𝑎−𝑏 is very close to zero we could fit a model that goes through the origin:

𝑦𝑖 = 𝑎 (1–𝑒−𝑐𝑥)

 Now let’s see what happens here (using Genstat FITCURVE):

alt text

We see that this routine uses 𝑟  rather than 𝑒−𝑐. Also A is very close to –B. So we’ll force the curve to go through the origin.

alt text

The fit is very acceptable; 𝑅2 is 84%, which is slightly better than the cubic earlier (81%). The SEs for the parameter estimates are relatively very small whereas those for the polynomial are relatively large. But very importantly, we have a much simpler model with just two parameters – with meaning: B is now the asymptote and R is the proportion by how much the “drop” from the asymptote is reduced for each unit increase in Olsen P. Perhaps dealing with 𝑒  is easier.

𝑐 = 𝑙𝑜𝑔𝑒(𝑅) = −0.3588, and for completeness

𝑆𝐸(𝑐) = 0.0277/0.6985 = 0.0397

Embracing the slope concept

Right, now the slope of the graph at any point is the “differential”, We won’t worry about the calculus, just the result: Slope = 𝑐(𝑎−𝑦), that is the rate of change at any point is a constant times how much is left between 𝑦 and the maximum, 𝑎. It is important that this is well understood. Anywhere along the curve, take the difference between where you are, 𝑦; calculate how much is left to go, 𝑎–𝑦, and multiply that by 𝑐 and that’s your slope; the change in yield for each unit change in Olsen P at that point.

We could run an experiment with different soils, or perhaps with soils with different histories and the real interest would be in how 𝑐 differs between treatments. It could well be that does differ; and it would still be interesting if it didn’t.

Just for completeness, we’ll fit the model using 𝑒−𝑐 instead of 𝑟. The output is slightly different. (FITNONLINEAR)

alt text

alt text

Ironically, in section 17.3 of the same text book, non-linear models are mentioned rather perfunctorily. For the exponential model the authors state, “Interpretation of individual parameters is not straightforward….” I disagree.

Click here to read part 2

Picture of Dr. Richard Sedcole
Dr. Richard Sedcole
Dr. Richard Sedcole graduated B. Agr. Sc. from Massey University with the intention of returning to the family farm but got distracted by a summer-time technical position at Grasslands Division, of what was then D.S.I.R. (R.I.P.). Recruited as a plant breeder, he completed a M. Agr. Sc. in that subject and subsequently went to Iowa State University at the invitation of Prof. Oscar Kempthorne to complete a joint Ph.D. in statistics and plant breeding. Back in New Zealand he transferred to Applied Mathematics Division, and later accepted an appointment at Lincoln University (then Lincoln College) to lecture in statistics and biometrics. Upon retirement he ran a private practice, but now spends his time on a lifestyle block of hazelnuts, and playing a copy of a 1684 virginal.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

Related articles

How much of the variation in your field trial comes from the treatments, and how much comes from...
What should you do when count data are more variable than your model expects? Vanessa Cave and David...
Precision breeding can deliver scientifically impressive traits, but practical value depends on more than technical success. Owen McIntosh...