# Bayesian portfolio planner

The short-horizon planner fits independent Gaussian daily portfolio log returns. Priors: daily mean Normal(0, 0.001 squared); log volatility Normal(log(0.01), 1), truncated to volatility between 0.00001 and 0.2. Four Gibbs/Metropolis chains each retain 2,000 draws after 1,000 warmup iterations. Posterior predictive futures integrate parameter uncertainty and future Gaussian shocks. This is not an HDP-HMM, nonparametric model, HMC or NUTS.

Classical split-Rhat and ESS checks reduce sampling concerns; they do not prove financial validity. Displayed outcome ranges are posterior predictive intervals conditional on the data, priors, model, portfolio rebalancing and chosen assumptions. Probability credible ranges describe parameter uncertainty within the model. Optional future volatility scaling and shocks are imposed assumptions, not evidence of improved precision or probabilities of geopolitical events.

An independent numerical-quadrature check agrees with the MCMC reference within specified tolerances (`experiments/check_bayesian_reference.py`). The exploratory 23-period 2024–2025 comparison does not show Bayesian improvement over historical resampling. See the bundled research report `bayesian_planner_benchmark.md`. Fitted historical prices are revised data; retirement probabilities require separate validation.
