BAM Engine#

Agent-based macroeconomic simulation in Python

A Python implementation of the BAM (Bottom-Up Adaptive Macroeconomics) model by Delli Gatti et al. (2011). Simulate households, firms, and banks interacting across labor, credit, and goods markets; macroeconomic dynamics emerge from individual agent decisions.

For researchers, students, and practitioners in computational economics.

pip install bamengine
Getting Started

Install the package, run your first simulation, and explore the results in under five minutes.

Getting Started
User Guide

Learn how the BAM model’s agents, markets, and simulation pipeline work, and how to configure and extend them.

User Guide
API Reference

Complete reference for all components, events, operations, and configuration options.

API
Examples

Runnable examples covering basic usage, advanced customization, and model extensions.

Examples
Extensions

Extend the base model with R&D / Growth+, buffer-stock consumption, and taxation.

Model Extensions
Validation

Reproduce the book’s scenarios and verify model behavior with robustness and sensitivity analysis.

Validation
Calibration

Find optimal parameters through screening, grid search, and stability testing.

Calibration