Probabilistic modeling and inference experiments implemented in Python and NumPy. The project builds Bayesian networks and compares exact inference with three approximate sampling methods.
- Bayesian-network construction with conditional probability tables
- Inference by enumeration
- Variable elimination
- Rejection sampling
- Likelihood weighting
- Gibbs sampling
- Accuracy and convergence comparisons between exact and approximate methods
The notebook covers a nuclear-power-plant alarm model and a multi-team match prediction network.
pip install -r requirements.txt
jupyter lab bayesian_networks.ipynb
Mehrdad Sheikh Abbasi