# Companion Models: *An Index Fund Is Not a Financial Plan*

Reproducible Python models behind the tables and figures in *An Index Fund Is
Not a Financial Plan: The Decisions Indexing Still Leaves You* (First edition,
2027, by Engineer Investor, Mount Si Labs LLC).

All seven models run standalone on standard Python 3.10+ and NumPy with fixed
random seeds and zero proprietary dependencies.

## Quick start

```bash
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt

# Verify every mathematical property across all 7 models
pytest -q

# Regenerate any individual model's markdown tables into ./out/
python3 housing_2027.py
python3 hold_hurdle.py
python3 tips_ldi.py
python3 concentration.py
python3 ss_pv.py
python3 funded_ratio_rerun.py
python3 couple.py
```

## Model inventory

| Script | Book chapter | What it computes |
|:---|:---|:---|
| `housing_2027.py` | Chapter 3 | Seven affordability ceilings, simultaneous reserve math, and monthly rent-versus-buy break-even appreciation |
| `hold_hurdle.py` | Chapter 4 | Break-even annual alpha for holding an aged low-basis employer stock position (sale, step-up, and paycheck exposure) |
| `tips_ldi.py` | Chapters 6 & 27 | Bootstrapped November 27, 2026 Treasury real spot curve, 20-year real bill PV, 30-year monthly TIPS ladder ($19.74 / 5.07%), and LDI hedge ratios |
| `concentration.py` | Chapter 15 | Monte Carlo (200,000 paths) break-even alpha for a concentrated buy-and-hold stock portfolio under CRRA risk aversion |
| `ss_pv.py` | Chapter 26 | Social Security claiming present values (ages 62, 67, 70) across SSA period vs. cohort mortality, after-tax TIPS yields, and 2032 haircut |
| `funded_ratio_rerun.py` | Chapter 27 | Standalone 10,000-path global 60/40 funded-ratio income-floor sweep with explicit 6x6 correlation matrix |
| `couple.py` | Chapter 29 | Deterministic monthly and 2,000-path stochastic comparison of Pure FIRE vs. Synthesis (experiences earmark + post-decade dynamic surplus release) |

## Educational notice

These scripts accompany the book for educational verification and customization.
They are not investment, tax, or legal advice.
