EconPapers    
Economics at your fingertips  
 

The Ghost in the Model (and Other Effects of Floating Point Arithmetic)

J. Gareth Polhill (), Luis Izquierdo and Nicholas M. Gotts ()
Additional contact information
J. Gareth Polhill: https://www.hutton.ac.uk/people/gary-polhill/
Nicholas M. Gotts: http://nickgotts.weebly.com

Journal of Artificial Societies and Social Simulation, 2004, vol. 8, issue 1, 5

Abstract: This paper will explore the effects of errors in floating point arithmetic in two published agent-based models: the first a model of land use change (Polhill et al. 2001; Gotts et al. 2003), the second a model of the stock market (LeBaron et al. 1999). The first example demonstrates how branching statements with floating point operands of comparison operators create a high degree of nonlinearity, leading in this case to the creation of 'ghost' agents -- visible to some parts of the program but not to others. A potential solution to this problem is proposed. The second example shows how mathematical descriptions of models in the literature are insufficient to enable exact replication of work since mathematically equivalent implementations in terms of real number arithmetic are not equivalent in terms of floating point arithmetic.

Keywords: Agent Based Modelling; Floating Point Arithmetic; Interval Arithmetic; Replication (search for similar items in EconPapers)
Date: 2004-01-31
References: Add references at CitEc
Citations: View citations in EconPapers (9)

Downloads: (external link)
http://jasss.soc.surrey.ac.uk/8/1/5.html (text/html)

Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.

Export reference: BibTeX RIS (EndNote, ProCite, RefMan) HTML/Text

Persistent link: https://EconPapers.repec.org/RePEc:jas:jasssj:2004-27-2

Access Statistics for this article

More articles in Journal of Artificial Societies and Social Simulation from Journal of Artificial Societies and Social Simulation
Bibliographic data for series maintained by Francesco Renzini ().

 
Page updated 2025-03-19
Handle: RePEc:jas:jasssj:2004-27-2