Repository navigation
Include daily-compounded spreads in forecast overnight coupons - #3059
Open
Kiril1Shevtsov wants to merge 1 commit into
Open
Kiril1Shevtsov wants to merge 1 commit into
Kiril1Shevtsov wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A compounded overnight coupon with a nonzero daily-compounded spread can forecast its future part using a bare discount-factor ratio, omitting the spread inside each daily factor. Keep every overnight period for this case and use the existing daily-product path. Zero spread and additive-after spread retain their current shortcuts.
Add a deterministic regression with expected products derived from separate business-day enumeration, explicit historical inputs and overnight deposit discount factors. It covers future, mixed and historical observations; positive and negative spreads; lockout; full and telescopic schedule requests; observation shift for full accrual; and unshifted partial intervals.
Validation against
cf74c9f657150750dfbf00ed6fd4c0768bc5ce36:git diff --checkandtools/check_test_messages.pypass.Native validation used Linux x86_64, GCC 14, Boost 1.87 and C++17, shared/default configuration, unity builds,
-O1 -g0 -DNDEBUGand warnings as errors. The changed production and stock-test units were rebuilt and linked with hash-verified unchanged baseline objects.The exact daily-product fallback has O(N) construction, storage and forecasting cost. The broader control matrix retains 16 separate compressed-lockout anchor failures, addressed independently in #3058. This PR does not include that fix or the separate today-fixing corrections. Daily-spread gearing remains one, as required by the existing contract.