Change Point Detector

Bayesian Online Change-Point Detection (BOCPD) on a ticker's daily log returns. Detects points in time where the return-generating distribution changed (regime shift in mean, vol, or both), reports the confidence at each detected boundary, and emits per-segment statistics (annualized return, annualized vol) so the reader can see what changed. Uses Adams and MacKay (2007) BOCPD with a Normal-Gamma prior on (mu, tau) and a Student-t predictive so hyperparameters update in closed form. Requires Stocks Basic. Runs on the free tier.

rgourley 0af971b 5 files · 10.8 KB Updated

File contents

rgourley/quant-garage/tree/main/skills/change-point-detector commit 0af971b1cb

Frequently asked questions

npx skillmds@latest add rgourley/change-point-detector