Validation and verification techniques — do-a-thon

Hi Frauke. A useful discussion to start.

I take it the notion of validation is ensuring that a particular numerical model — comprising code and data — represents the system under consideration sufficiently well to allow the research or policy questions being traversed to be legitimately addressed (the notion of verification seems synonymous to me, perhaps someone can clarify the distinction).

In the energy system domain, numerical models are normally expressed as scenarios and evaluated by difference against a selected baseline case — often but not always some estimate of business as usual. This approach is used because it is generally not possible to foretell with confidence how necessarily model exogenous factors might develop over time — for instance, technology development and cost reduction or future natural resource stocks and prices. Technically, a scenario can be treated as an instance of a model framework, with most projects (with the exception of spreadsheet models) having adopted this architecture. Each individual scenario is normally accompanied by a supporting narrative or storyline. Despite claims to the contrary, scenarios are not value-free and in no sense can ever be considered correct.

Let’s start by suggesting what validation is not. It is not ensuring that your model reproduces historical data and dynamics with sufficient accuracy. Given that most energy system models are very thin caricatures of reality, seeking to match past system states and the current trajectory can easily stray into what statisticians call overfitting. For which Christian and Griffiths (2017:ch 7) provide a good review (and for agent-based modelers, the rest of the book is well worth reading).

I make this comment because a recent energy model review process (and I am avoiding names) asked if one’s model had been confirmed against historical data. In my view, the degree of tuning implied by this question can be problematic. That is not to say that comparisons against historical data should not be undertaken, indeed they may prove quite revealing. It is that calibrating a highly simplified model against historical data is unlikely to improve model fidelity — indeed, the opposite may well occur.

Instead, it is doubtless better if the model possesses what might be termed intrinsic legitimacy (for want of a better phrase), meaning both the system elements and the architecture of the model are, in their own rights, representative and defensible approximations of reality — even if the model does not reproduce current events particularly well. Intrinsic legitimacy thus requires good specifications and an informed debate about how the various model elements — as proxies for actual components — might best be represented numerically, at what level of detail and resolution, and how so parameterized to create scenarios. Model elements can extend to decision-takers under a hybrid agent-based modeling (ABM) paradigm.

There are a good number of system metrics that can be calculated from both the input and output data to check for model integrity. These metrics are often intensities and can usually be assessed instinctively for plausibility — examples include aggregate conversion efficiencies and weighted-average production costs.

I am especially interested in the role of network effects (discussed by Outhred and Kaye 1996 and also described here) in energy systems, their significance, and how best to capture these in models. I have long believed that an analog of Nyquist–Shannon sampling (which sets a lower limit on the frequency of discrete sampling for a predefined fidelity) applies such that energy system models should adequately reproduce the influence of abrupt constraints in the system — with one example being the upper bound capacities of engineering assets. One way of exploring the nature of network effects would be to rerun a model with some appropriate level of noise in the input data — while noting that this exercise is distinct and different from the usual motivation for performing sensitivity analysis, more often applied to smooth rather than lumpy systems (these are descriptive rather than technical terms) in order to investigate characterization uncertainties.

In the background is also the idea that the model code was implemented as intended — in other words, free from bugs. Known as code correctness, this requirement stresses the need for software engineering practices: a stated formal model, simplified test cases, automated unit testing (for object-oriented languages), evaluation of output metrics, runtime integrity tests and assertions, fuzz testing, execution logging, commit reviews, code reviews more generally, and the use of coding conventions (Pfenninger et al 2017:§3.2 covers some of these measures in detail). (The wikipedia page also indicates that software engineering is not without critics, although creativity and software engineering should nonetheless be able to coexist.)

In a similar vein, data accuracy is material. The same information is normally used to both view the system and to create a set of scenarios. In which case, the provenance of the information is crucial, as is an open debate about its semantics and accuracy. Ideally, an explicit domain ontology should also be available and agreed.

There is no substitute for having model frameworks and scenario sets continually used, assessed, fixed, and extended by a wide variety of developers, users, and analysts. One reason why the open source development paradigm is so important for energy policy models is that open development can excel here in ways that closed development cannot remotely match.

Finally, a caution about the over-interpretation of model results (and perhaps it is findings that are the target of verification?). Although Bruckner (2016) deals with integrated assessment models, his comments about the limits to evaluation are equally valid for energy system models. And because both types of model are often predicated on rational choice and least cost in some restricted sense, the resulting system trajectories offer neither predictions nor requirements.

Some thoughts! With best wishes, Robbie.

References

Bruckner, Thomas (January 2016). “Decarbonizing the global energy system: an updated summary of the IPCC report on mitigating climate change”. Energy Technology. 4 (1): 19–30. ISSN 2194-4296. doi:10.1002/ente.201500387. Paywalled (email me).

Christian, Brian and Tom Griffiths (6 April 2017). “Chapter 7: Overfitting”. In Algorithms to live by: the computer science of human decisions. London, United Kingdom: William Collins. pp 149–168. ISBN 978-0-00-754799-9.

Outhred, Hugh R and R John Kaye (1996). Electricity transmission pricing and technology. In Michael A Einhorn and Riaz Siddiqi. Electricity transmission pricing and technology. Boston, Massachusetts, USA: Kluwer. ISBN 978-94-010-7304-2. doi:10.1007/978-94-009-1804-7.

Pfenninger, Stefan, Lion Hirth, Ingmar Schlecht, Eva Schmid, Frauke Wiese, Tom Brown, Chris Davis, Matthew Gidden, Heidi Heinrichs, Clara Heuberger, Simon Hilpert, Uwe Krien, Carsten Matke, Arjuna Nebel, Robbie Morrison, Berit Müller, Guido Pleßmann, Matthias Reeg, Jörn C Richstein, Abhishek Shivakumar, Iain Staffell, Tim Tröndle, and Clemens Wingenbach (2017). “Opening the black box of energy modelling: strategies and lessons learned”. Energy Strategy Reviews. 19: 63–71. ISSN 2211-467X. doi:10.1016/j.esr.2017.12.002.

10 Likes