Skip to content

goal-based-allocation 0.2.0

Choose a tag to compare

@ArturSepp ArturSepp released this 17 Jul 13:03
· 96 commits to main since this release

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_pricer module: Laplace-transform European vanilla option pricing under the regime-switching jump-diffusion. Exposes RiskNeutralParams, price_vanilla, implied_vol, OptionType and Regime from 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), and regime_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, and generate_paper_figures.py) is now self-contained under paper_code/goal_based_allocation_2026/.
  • generate_paper_figures.py defaults its output directory to the paper's own figures/ folder, independent of the working directory.
  • The regime_switch_smile example 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) and pyproject.toml (0.1.1).

Notes

  • Install: pip install goal-based-allocation==0.2.0
  • Full history in CHANGELOG.md.