• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

wegamekinglc / Derivatives-Algorithms-Lib / 36300816446

27 Sep 2026 06:40AM UTC coverage: 92.332% (+0.1%) from 92.187%
36300816446

push

github

web-flow
feat: add multi-state LSM for multi-asset MC pricing (#449)

* Add multistate LSM for multi-asset Monte Carlo pricing

Allow exercise products to select named equity outputs and scalar script states so hybrid and correlated-equity continuation policies can depend on the full payoff state. Fit bounded standardized cross-term bases with rank-aware QR and optional held-out degree selection, then reuse the frozen policy in hard and AAD replay. Preserve scalar defaults and older product archives while exposing the selection across C++, Python, and Excel.

* Preserve scalar regressor identity in LSM diagnostics

Explicit single-equity state selection should retain the existing regressor_index join key in diagnostics. Multi-state and script-variable selections continue to report their names in regression_features.

* Simplify multistate QR and preserve fallback diagnostics

Split the QR and feature-resolution steps into small focused helpers so the new fit remains straightforward to audit. Report zero rank when no paths enter regression, retain the constant-fit fallback reason, and cover multifactored Brownian bridge pricing.

* test: initialize Excel runtime for hybrid tests on Windows

The Windows XLL and test executable have separate statically linked DAL state. Initialize both before parsing named equity indices and set the XLL evaluation date for the multi-state Bermudan coverage.

* test: demonstrate value of two-state Bermudan regression

Compare frozen two-equity Bermudan payoffs against an independent exchange-option reference. The paired one-state policy shows the price lost when a relevant script variable is omitted; surface that comparison in the C++ and Python examples and LSM guide.

422 of 427 new or added lines in 13 files covered. (98.83%)

1 existing line in 1 file now uncovered.

17591 of 19052 relevant lines covered (92.33%)

3306034.32 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

98.71
/dal-cpp/dal/script/preparation.cpp


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc