Think Stats: Exploratory Data Analysis in Python, Allen B. Downey, 2014 (Green Tea Press) - Covers computational probability and statistics using Python, with examples involving simulation and data analysis.
Introduction to Probability, Joe Blitzstein and Jessica Hwang, 2019 (Chapman & Hall/CRC) - Provides a thorough academic foundation in probability theory, supporting the theoretical aspects of the section.
NumPy Reference Manual, NumPy Developers, 2025 - Official documentation for the NumPy library, detailing functions for numerical computation and random number generation used in the examples.