ACM Home Page
Please provide us with feedback. Feedback
Automated testing of stochastic systems: a statistically grounded approach
Full text PdfPdf (216 KB)
Source International Symposium on Software Testing and Analysis archive
Proceedings of the 2006 international symposium on Software testing and analysis table of contents
Portland, Maine, USA
SESSION: Session 6: test automation table of contents
Pages: 215 - 224  
Year of Publication: 2006
ISBN:1-59593-263-1
Authors
Hana Ševčíková  University of Washington, Seattle, WA
Alan Borning  University of Washington, Seattle, WA
David Socha  University of Washington, Seattle, WA
Wolf-Gideon Bleek  University of Hamburg, Hamburg, Germany
Sponsors
SIGSOFT: ACM Special Interest Group on Software Engineering
ACM: Association for Computing Machinery
Publisher
ACM  New York, NY, USA
Bibliometrics
Downloads (6 Weeks): 9,   Downloads (12 Months): 65,   Citation Count: 1
Additional Information:

abstract   references   cited by   index terms   collaborative colleagues  

Tools and Actions: Review this Article  
Save this Article to a Binder    Display Formats: BibTex  EndNote ACM Ref   
DOI Bookmark: Use this link to bookmark this Article: http://doi.acm.org/10.1145/1146238.1146263
What is a DOI?

ABSTRACT

Automated tests can play a key role in ensuring system quality in software development. However, significant problems arise in automating tests of stochastic algorithms. Normally, developers write tests that simply check whether the actual result is equal to the expected result (perhaps within some tolerance). But for stochastic algorithms, restricting ourselves in this way severely limits the kinds of tests we can write: either to trivial tests, or to fragile and hard-tounderstand tests that rely on a particular seed for a random number generator. A richer and more powerful set of tests is possible if we accommodate tests of statistical properties of the results of running an algorithm many times. The work described in this paper has been done in the context of a real-world application, a large-scale simulation of urban development designed to inform major decisions about land use and transportation. We describe our earlier experience with using automated testing for this system, in which we took a conventional approach, and the resulting difficulties. We then present a statistically based approach for testing stochastic algorithms based on hypothesis testing. Three different ways of constructing such tests are given, which cover the most commonly used distributions. We evaluate these tests in terms of frequency of failing when they should and when they should not, and conclude with guidelines and practical suggestions for implementing such unit tests for other stochastic applications.


REFERENCES

Note: OCR errors may be found in this Reference List extracted from the full text article. ACM has opted to expose the complete List rather than only correct and linked references.

 
1
 
2
 
3
 
4
K. Beck and E. Gamma. Test infected: Programmers love writing tests. http://junit.sourceforge.net/doc/testinfected/testing.htm. last visited 19-jan-2006.
 
5
M. Ben-Akiva and S. R. Lerman. Discrete Choice Analysis: Theory and Application to Travel Demand. The MIT Press, Cambridge, Massachusetts, 1987.
 
6
 
7
M. Fowler and M. Foemmel. Continuous integration. Technical report, ThoughtWorks, http://martinfowler.com/articles/continuousIntegration.html, 2006. last visited 22-jan-2006.
 
8
 
9
10
 
11
D. Lee and M. Yannakakis. Principles and methods of testing finite state machines-a survey. Proceedings of the IEEE, 84(8):1090--1123, August 1996.
 
12
 
13
A. Mood, F. A. Graybill, and D. C. Boes. Introduction to the Theory of Statistics. McGraw-Hill, third edition, 1974.
14
15
 
16
M. Noth, A. Borning, and P. Waddell. An extensible, modular architecture for simulating urban development, transportation, and environmental impacts. Computers, Environment and Urban Systems, 27(2):181--203, Mar. 2003.
 
17
H. Ševčíková, A. Raftery, and P. Waddell. Assessing uncertainty in urban simulations using Bayesian melding. Submitted for publication - draft available from http://www.urbansim.org/papers/BMinUrbansim.pdf, 2006.
 
18
 
19
 
20
K. E. Train. Discrete Choice Methods with Simulation. Cambridge University Press, 2003.
 
21
P. Waddell. UrbanSim: Modeling urban development for land use, transportation, and environmental planning. Journal of the American Planning Association, 68(3):297--314, Summer 2002.
 
22
P. Waddell, A. Borning, M. Noth, N. Freier, M. Becke, and G. Ulfarsson. Microsimulation of urban development and location choices: Design and implementation of UrbanSim. Networks and Spatial Economics, 3(1):43--67, 2003.
 
23
P. Waddell, H. Ševčíková, D. Socha, E. Miller, and K. Nagel. Opus: An open platform for urban simulation. Presented at the Computers in Urban Planning and Urban Management Conference, London, June 2005. Available from www.urbansim.org/papers.
24


Collaborative Colleagues:
Hana Ševčíková: colleagues
Alan Borning: colleagues
David Socha: colleagues
Wolf-Gideon Bleek: colleagues