Repository navigation
goal-based-allocation 0.2.0
Adds Laplace-transform vanilla option pricing under the regime-switching jump-diffusion, a runnable examples suite, tests, and CI. First tagged release.
Added
vanilla_option_pricermodule: Laplace-transform European vanilla option pricing under the regime-switching jump-diffusion. ExposesRiskNeutralParams,price_vanilla,implied_vol,OptionTypeandRegimefrom the package top level. All strikes are priced jointly by a single Abate-Whitt inversion in maturity, reusing the degree-6 characteristic roots of the wealth-floor machinery.examples/folder with minimal, self-contained illustrations:wealth_process_simulation.py(Figure 1),terminal_wealth_distribution.py(Figure 2),investment_opportunity_set.py(Figure 4), andregime_switch_smile.py(implied-volatility smile with Carr-Madan Fourier and Monte Carlo reference pricers).tests/suite (pytest): option-pricer properties (put-call parity, Black-Scholes limit, monotonicity in strike, scalar/array consistency, input validation), Fourier and Monte Carlo cross-checks, and core-framework smoke tests.- GitHub Actions CI: runs the test suite on Python 3.10, 3.11 and 3.12.
Changed
- Repository reorganised: the core library remains in
goal_based_allocation/; the 2026 paper (LaTeX source, compiled PDF, figures, andgenerate_paper_figures.py) is now self-contained underpaper_code/goal_based_allocation_2026/. generate_paper_figures.pydefaults its output directory to the paper's ownfigures/folder, independent of the working directory.- The
regime_switch_smileexample draws its parameters from the paper's equity regime process instead of a standalone base case. - README updated for the new layout, the option pricer and the examples.
Fixed
- Reconciled the package version, which was out of sync between
__init__.py(0.1.0) andpyproject.toml(0.1.1).
Notes
- Install:
pip install goal-based-allocation==0.2.0 - Full history in CHANGELOG.md.