10 Jan 2014

MALTHUSIAN OR OPTIMIST? A 100% SCIENTIFICALLY VALID POLL


Are we headed for a Malthusian catastrophe, or a utopia of plenty?

Polling several of my colleagues from various backgrounds such as climate change, ecological management, sustainable development and environmental modelling; and a corresponding poll of some contacts in physics, finance and programming, I posed variations on the following question:

Will advanced human society be contained by environmental barriers, such as climate change and habitat destruction, causing it to stagnate or shrink? Or will economic growth continue, and with it new ideas and technology that enable society to overcome them?

Reasonable cases can be made both ways; you don't have to be a green anarchist to note that past societies collapsed often wholly or in part due to environmental factors; nor a techno-utopian to see that population and world GDP have been growing for the past 1M years and per capita GDP for the past 1k years (Delong 1998). Putting aside very long-term considerations such as energetic limits to economic growth (Brown et al. 2011), I asked respondants to consider a 50 - 200 year timeframe.

(I endeavoured to give my own views after hearing respondants', but for completeness' sake I lean towards the side of plenty, although only for certain classes and cities, I fear. There is a real chance of extermination for everyone else.)



The environmental scientists often had strong middle-opinions compared to the physicists. Common responses were "Some areas will develop, whilst others at a much slower pace due to environmental problems" and, among the utopians, "Many people will die and/or suffer, but environmental constraints aren't tough enough to cause the most developed countries to significantly relapse". Environmental malthusians had a wide range of views, although none went so far as to predict human extinction.

Physicists and financiers were more sanguine, talking about artificial intelligence and smart electronic grids, although the only mention of peak oil/resource extraction was by the malthusian. Programmers were the most utopian, with financiers and physicists more mixed.

4 Jan 2014

HOLIDAY BREAK FROM REGULAR BLOGGING

WARNING: THIS GRIPING POST IS SCROOGE-LIKE AND HAS NOTHING WHATSOEVER TO DO WITH ENVIRONMENTAL SCIENCE, MODELLING, OR GROUNDWATER.






I have a different view on Christmas to most. I loathe deadweight costs, so I want to get people exactly what they want. I'll thus spend hours questioning family, weighing up the utility of nuts vs. dates, modelling others' gift-giving, negotiating no-present agreements and bemoaning gift cards. So, you can imagine how happy I was to come across an economic paper estimating the waste caused by gift-giving at Christmas.

Non-cash gifts from close family and friends destroy about 10 per cent of their value, whilst those from extended family and more distant contacts lose a third. This comes from the giver being in a worse position relative to the recipient when estimating the recipient's wants/needs, an assumption that holds in nearly all situations.

15 Dec 2013

DROUGHT AND WATER SUPPLY IN SOUTHERN ENGLAND


Following on from previous posts with a water management bent, let's look at the situation in England.



The popular image of England is drenched and sodden. As the saying goes, if you're on top of the Dover cliffs and can't see France it's going to rain; if you can, it's already raining.

However, this constant, uniform perception of rain over the UK is misleading. Parts of the UK, especially London and the south east (my home area), regularly experience drought. The most recent was in February 2012, leading the Environment Secretary to announce drought control measures. The Environment Agency maintains a drought management guide outlining publicity campaigns, hosepipe bans, restrictions on agricultural spray irrigation and further measures.

Droughts can be induced by low levels of rain, and/or by low levels of groundwater, itself caused by irregular or low precipitation. A drought in 2003 was driven by low rainfall (Marsh, The UK drought of 2003, Dec 2006). From 1961 to 1995, rainfall has increased in the winter but decreased in the summer (Osborn et al., Observed trends in the daily intensity of UK precipitation, Mar 2000). This has a large bearing on the UK's groundwater levels, since most groundwater recharge occurs during the winter when evaporation is lower. In summer, by contrast, higher temperatures lead to depleting groundwater levels. This suggests that groundwater may become more important to the UK's water supply.

Chalk reservoirs are found in East Anglia and Southern England. A 2011 model of the effects of climate change on UK groundwater in the reservoirs predicted no significant change, but with lots of sources of uncertainty (Jackson et al., Modelling the effects of climate change and its uncertainty on UK Chalk groundwater resources from an ensemble of global climate model projections, Mar 2011). Christopher Jackson was also the primary author of a recent review of ten studies, each looking at future climate change impacts on groundwater, which demonstrated the large uncertainties in groundwater level predictions. There were also "significant differences in current projections" between each study (Jackson et al., Changes in groundwater levels in the UK over the 21st century, 2013).

It would seem that there is good reason to investigate the extent to which groundwater should become a larger source of water for southern England.

8 Dec 2013

MODELLING APPROACHES – STELLA & HYDROLOGICAL MODELS



STELLA is a modelling platform with a wide range of applications. In A formal approach to hydrological model conceptualization (1993), Jin Lee applies the use of STELLA to hydrological models. By dividing the process of modelling into 1) conceptualization and 2) programming and testing, Lee describes how hydrological model conceptualization can be integrated into STELLA.
Representing a model as a diagram of states and rates, or equivalently as stores and flows, Lee gives an example of such a diagram as reproduced below.


States are represented as rectangles; rates as opposing triangle pairs; and dependencies as arrows. For example, the amount of daily evaporation (upper right) depends on the evaporation rate, which is itself a function of climatic variables, soil conductivity and the amount of soil moisture. Representing a model conceptualization in such a way communicates which real-world phenomena are incorporated, which are idealized, and which are neglected. For example, the daily evaporation depends on the weather, which is neglected. Which phenomena are incorporated often depends on the desired complexity of the model, as well as the researcher’s background knowledge on the relative importance of different factors. Both of these were discussed in the Occam’s Razor post centred around Domingos (1999), and the post on model validity centred around Oreskes et al. (1994).

Lee points out how such a representation links easily to a mathematical formulation for each of the states and rates. Indeed, STELLA allows equations to be defined for each state and rate, incorporating all the relevant dependencies. For example, the equation for daily evaporation would take the evaporation rate as an input.

In Singh et al. (2010), the authors use a water balance model to assess the impact of climate change on the level of Loktak Lake in Northeast India. Water supply is important in the region, given the large population and dwindling groundwater reserves (Tiwari et al. (2009), also source of image with caption below). 



Dividing climate change projections into two groups, defined as A) 2 deg. C global warming from 7 different global climate models (GCMs) and B) 1 to 6 deg. C global warming from the HadCM3 GCM, the authors find that nearly all of the projections from group A, and all from group B, predict increasing lake levels. The authors point out that water management of the lake has already taken place, with two sub-catchments being isolated to reduce lake level rise. The results indicate that more work is needed, or communities and wetlands around the lake may be flooded.

The authors summarise their modelling approach in 3 stages: a calibrated model of the hydrological system dependent on climate data, which is then perturbed by altering the original climate data along the lines of the GCM projection, and then comparing the output with a baseline model defined by projecting current climatic conditions.

Finally, a stochastic hydrological model developed by Dincer et al. (1987) uses a conception similar to Lee’s, by representing a swamp as a series of stores along a line of flow. Each store, or cell, has an outflow dependent on the amount of water in the store. The water balance of each cell in turn depends on the sum of inflows minus outflows. By perturbing the inflow, the changes in swamp capacity and outflow can be measured, and the model was applied to changes to the Okavango swamp in Botswana. 

An interesting aspect of the model is its calibration procedure. The authors note that the long term independent variables (precipitation, inflow and evapotranspiration) are not stationary but probabilistic, meaning that different periods cannot be compared with each other. This leads to a systematic error whereby changes in flow distribution inside the swamp may be missed. The model is more reliably calibrated, however, over the discharge, water level and area variables. The authors conclude on the power of such network models, and the importance of groundwater to the Okavango Swamp.

1 Dec 2013

BELATED BLOG INTRODUCTION


Who cares about models?

Michael Mann does. "Any conclusion about [global warming] causality required the use of climate models to estimate the relative contributions of the various factors, including human increases in greenhouse gas concentrations..." In the same interview about his book The Hockey Stick and the Climate Wars, he mentions models 8 times.

Deniers care too. The Heartland Institute's NIPCC website devotes whole sections discussing the limitations and misapplications of climate models (no link provided; I'm not advertising them).

Since so much depends on, and is misunderstood about, models in environmental science, from global and regional climate change; to hydrology, coastal management and energy infrastructure, this blog takes a critical look at the underpinnings of modelling and its applications to environmental phenomena.

My "research reading" posts look in-depth at some landmark, and some current, papers on the general process of modelling. This includes topics such as model calibration and model simplification. Within each post I also look at some papers applying relevant methods in an environmental science context.

My "modelling approaches" posts take the knowledge from the "research reading" papers and apply them to an environmental model; for example, a groundwater recharge model. I also mention other papers with supporting material or comparative approaches.

I'm hoping to synthesize these topics as the blog progresses. For example, I'm currently reading up on some models created in STELLA and comparing the different approaches taken, bearing in mind the critiques from the "research reading" papers.

Finally, anything without those headers is usually offbeat, humorously intended, provocative or Minecraft worshipping.

HUH? MULTIPLE COMPARISONS?


25 Nov 2013

RESEARCH READING - OCCAM'S RAZOR

 
The Role of Occam’s Razor in Knowledge Discovery

Pedro Domingos, Data Mining and Knowledge Discovery 3, 409–425 (1999)



There are two interpretations of Occam's razor according to Domingos. They are that models should be:

1) Comprehensible
2) Accurate

In this paper, Domingos draws on a range of research to argue that applying Occam's razor on a choice of models can result in selecting a comprehensible model, but not necessarily an accurate one.

Observing that simplicity has "no satisfactory computable definition", Domingos states that a heuristic definition of Occam's razor (for example, reducing the number of parameters) leads to two formulations:


1st Razor: From two models with equal predictive error, choose the simpler one for simplicities' sake.

2nd Razor: From two models with equal calibration error, choose the simpler one for lower predictive error.


The 1st is generally true, whilst the 2nd is generally theoretically and empirically false.

Starting with some theoretical arguments for the 2nd razor, Domingos looks at the case for the Bayesian information criterion (amongst others). The BIC assumes that model parameters are distributed normally across candidate models. This gives the logarithmic probability of a certain model structure as equal to the likelihood of the structure given some calibration procedure, reduced by a complexity term dependent on the number of parameters. The weaknesses of this approach range from the long chain of assumptions required to use the BIC to the calculated probability being that of the structure, not the model. An example of a quadratic candidate is presented. As it has more model space than a linear model, the linear structure has a higher probability since the larger number of inaccurate quadratic candidates dilute the quadratic structure probability, even for cases where a quadratic structure is the more accurate.

Another theoretical argument for the 2nd razor comes from the idea of the minimum description length (MDL). The argument states that the best model uses the smallest number of bits to code for it and the data, given the model. Domingos argues that the belief that a trade-off between error and complexity results from Bayes' theorem is circular reasoning. This is because it is equivalent to stating that models with higher priors have shorter codes, but also that shorter coded models have higher priors. Sometimes, a complex model with the highest prior can be coded with shorter code compared to a simpler, lower prior model. In other words, after giving each model a prior, the models can be recoded such that those with the highest priors have the shortest code. A short code length does not imply better predictions or a more comprehensible model.

Moving on to theoretical arguments against the 2nd razor, the "No free lunch" mathematical theorem is briefly mentioned. It results from the underdeterminancy in model selection (arising from the fact that model fitting is an open system, with several candidate models always able to match calibration data - see the Oreskes post). The generalization of a model is discussed as resulting from it's Vapnik–Chervonenkis dimension, not the number of parameters. It is possible to have a model with an infinite VC dimension yet just one parameter.

Overfitting is often erroneously thought to be due to complex models. However, it is actually due to multiple comparisons. The probability of a model fitting the calibration data purely through chance rises if more candidates are selected from. Models with many parameters tightly constrained may thus be less susceptible to overfitting than broader, simpler models.

A final set of problems discussed by Domingos involve projections of systematic and random error. Heuristics that minimise complexity often assume rising complexity produces a faster increase in systematic than random error. This is demonstrably not the case for some systems.

Turning his attention to empirical tests of the 2nd razor, Domingos notes that corrections for multiple testing often produce better models than those based on MDL. Further, although the accuracy gain of complex versus simple models may be small it is not necessarily negligible. After providing examples of complex decision-tree models, with the right constraints, with more accuracy than simple ones, some physics examples are presented. For example, both the Copernican and Ptolemaic orbital theories had the same predictive error, so preferring the former was selection using the 1st, not the 2nd, razor (something which was of special interest to me given my background! A theme alluded to was the idea of simplicity resulting from the use of the model, not the final result. A Kuhnian paradigm shift could occur if an unwieldy model with too many patches was replaced by a leaner one. Perhaps the 1st razor is more central to scientific understanding than otherwise recognised?).





Geocentric model. Ptolemaic systems introduced epicycles to solar system bodies, reconciling it with observations. Image from redorbit.



Outright tests of simplicity versus accuracy in e.g. decision-tree modelling generally show that complex models are more accurate than the simple. Complex MDL systems with redundancy, or multi-model ensembles, are more accurate. Domingos states, from this evidence, that the 2nd razor is "typically false". The issue of errors in computation is unmentioned. Domingos does mention cognitive research having implications for comprehension.

Returning to the 1st razor, it is noted that since simplicity is not the same as comprehensibility, it can be rephrased in terms of domain-dependent comprehensibility.

The 2nd razor is then finally discussed as being trivially true after model coding, but of no help in calibration or selection. It is better to prevent overfitting by using domain knowledge, with the added bonus of increased comprehensibility to those with such knowledge. Domingos mentions ecosystem modelling using LAGRAMGE, a 'declerative bias' equation discovery program. The authors of the relevant paper found a model for phytoplankton growth in Lake Glumsoe with appropriate terms and accurate predictions. Pre-existing knowledge of algal growth was used in its construction. See Todorovski and Dzeroski, Declarative bias in equation discovery. Proceedings of the Fourteenth International Conference on Machine Learning, Nashville, TN: Morgan Kaufmann, pp. 376–384 (1997).

Complex ensemble models can be made comprehensible by choosing representative models, with lower, but better, accuracy than similarly structured single models. Explaining a model's results after calculation is also often more comprehensible than coding a fully comprehensible model.

In conclusion, it is recommended to use domain knowledge and the 1st razor when modelling, and to treat model accuracy separately from comprehensibility.


*My musings in italics