Providing a detailed and pedagogical account of the rapidly-growing field of computational statistical physics, this book covers both the theoretical foundations of equilibrium and non-equilibrium statistical physics, and also modern, computational applications such as percolation, random walks, magnetic systems, machine learning dynamics, and spreading processes on complex networks. A detailed discussion of molecular dynamics simulations is also included, a topic of great importance in biophysics and physical chemistry. The accessible and self-contained approach adopted by the authors makes this book suitable for teaching courses at graduate level, and numerous worked examples and end of chapter problems allow students to test their progress and understanding.