Add explicit-state truncated distribution - #79
Draft
jonathanberthias wants to merge 8 commits into
Draft
jonathanberthias wants to merge 8 commits into
jonathanberthias wants to merge 8 commits into
Conversation
jonathanberthias
force-pushed
the
migration/truncated-distribution
branch
from
September 26, 2026 14:25
4e8a220 to
bc2b676
Compare
jonathanberthias
force-pushed
the
migration/truncated-distribution
branch
from
September 26, 2026 19:15
bc2b676 to
a197e45
Compare
jonathanberthias
added this pull request to stack #84
September 26, 2026 19:15
jonathanberthias
force-pushed
the
migration/truncated-distribution
branch
from
September 26, 2026 19:28
a197e45 to
2d90175
Compare
jonathanberthias
force-pushed
the
migration/truncated-distribution
branch
from
September 26, 2026 19:36
2d90175 to
58261f2
Compare
jonathanberthias
force-pushed
the
migration/truncated-distribution
branch
from
September 26, 2026 19:48
58261f2 to
bd913da
Compare
jonathanberthias
force-pushed
the
migration/truncated-distribution
branch
2 times, most recently
from
September 27, 2026 11:43
e9fb728 to
9dff362
Compare
jonathanberthias
force-pushed
the
migration/truncated-distribution
branch
2 times, most recently
from
September 27, 2026 12:12
d97f143 to
19b9900
Compare
jonathanberthias
force-pushed
the
migration/truncated-distribution
branch
from
September 27, 2026 13:45
b836093 to
2845768
Compare
jonathanberthias
force-pushed
the
migration/truncated-distribution
branch
2 times, most recently
from
September 27, 2026 20:27
cee98bb to
07d77a3
Compare
for more information, see https://pre-commit.ci
jonathanberthias
force-pushed
the
migration/truncated-distribution
branch
from
October 2, 2026 22:25
0ae59ce to
7452aae
Compare
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.
The explicit-state graph covers individual SciPy laws but has no composed distribution. Truncation needs the wrapped law and bounds to share state, and fitting can encounter invalid bounds during optimization.
This PR adds
TruncatedContinuousDistributionas a graph composition. Its name reflects the univariate continuous CDF and quantile operations it requires. Density, CDF, quantiles, and sampling follow the conditional law, with sample dimensions before parameter batches. Invalid quantiles return NaN, and fitting treats invalid interval proposals as infinite objective values.The legacy public truncation class stays available. Far-upper-tail intervals remain numerically unreliable because normalization subtracts nearly equal CDF values; a survival-function path is follow-up work.