The Stanford Geostatistical Modeling Software (SGeMS) is an open-source computer package for solving problems involving spatially related variables. It provides geostatistics practitioners with a user-friendly interface, an interactive 3-D visualization, and a wide selection of algorithms. This practical book provides a step-by-step guide to using SGeMS algorithms. It explains the underlying theory, demonstrates their implementation, discusses their potential limitations, and helps the user make an informed decision about the choice of one algorithm over another. Users can complete complex tasks using the embedded scripting language, and new algorithms can be developed and integrated through the SGeMS plug-in mechanism. SGeMS was the first software to provide algorithms for multiple-point statistics, and the book presents a discussion of the corresponding theory and applications. Incorporating the full SGeMS software (now available from www.cambridge.org/9781107403246), this book is a useful user-guide for Earth Science graduates and researchers, as well as practitioners of environmental mining and petroleum engineering.