Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

This appendix provides a quick reference for the most commonly used functions and concepts from the core Python libraries leveraged throughout this book. It is not exhaustive but covers the essentials for probability simulation, calculation, and visualization.

1. Python Standard Libraries

math

2. NumPy (import numpy as np)

Array Creation

Random Sampling (np.random)

Array Operations & Math

Indexing and Slicing

3. SciPy (import scipy)

Special Functions (scipy.special)

Integration (scipy.integrate)

Statistics (scipy.stats)

Provides distribution objects (e.g., norm, binom, poisson) with common methods:

Common Distributions (parameters might vary slightly from textbook definitions, check documentation):

4. Matplotlib (import matplotlib.pyplot as plt)

Basic Plotting

Customization & Display

5. Seaborn (import seaborn as sns)

Built on Matplotlib, providing higher-level interface for statistical graphics.

Common Statistical Plots

Aesthetics

6. Pandas (import pandas as pd)

Primarily used for data loading, manipulation, and preliminary analysis.

Core Data Structures

Data Loading/Saving

Selection & Inspection

Common Operations & Statistics