Skip to content

Add explicit-state truncated distribution - #79

Draft
jonathanberthias wants to merge 8 commits into
migration/scipy-wrapper-factoryfrom
migration/truncated-distribution
Draft

jonathanberthias wants to merge 8 commits into
migration/scipy-wrapper-factoryfrom
migration/truncated-distribution

Conversation

@jonathanberthias

@jonathanberthias jonathanberthias commented Sep 26, 2026 •

Copy link
Copy Markdown
Collaborator

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 TruncatedContinuousDistribution as 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.

@jonathanberthias
jonathanberthias force-pushed the migration/truncated-distribution branch from 4e8a220 to bc2b676 Compare September 26, 2026 14:25
@jonathanberthias
jonathanberthias force-pushed the migration/truncated-distribution branch from bc2b676 to a197e45 Compare September 26, 2026 19:15
@jonathanberthias
jonathanberthias added this pull request to stack #84 September 26, 2026 19:15
@jonathanberthias
jonathanberthias force-pushed the migration/truncated-distribution branch from a197e45 to 2d90175 Compare September 26, 2026 19:28
@jonathanberthias
jonathanberthias force-pushed the migration/truncated-distribution branch from 2d90175 to 58261f2 Compare September 26, 2026 19:36
@jonathanberthias
jonathanberthias force-pushed the migration/truncated-distribution branch from 58261f2 to bd913da Compare September 26, 2026 19:48
@jonathanberthias
jonathanberthias force-pushed the migration/truncated-distribution branch 2 times, most recently from e9fb728 to 9dff362 Compare September 27, 2026 11:43
@jonathanberthias
jonathanberthias force-pushed the migration/truncated-distribution branch 2 times, most recently from d97f143 to 19b9900 Compare September 27, 2026 12:12
@jonathanberthias
jonathanberthias force-pushed the migration/truncated-distribution branch from b836093 to 2845768 Compare September 27, 2026 13:45
@jonathanberthias
jonathanberthias force-pushed the migration/truncated-distribution branch 2 times, most recently from cee98bb to 07d77a3 Compare September 27, 2026 20:27
@jonathanberthias
jonathanberthias force-pushed the migration/truncated-distribution branch from 0ae59ce to 7452aae Compare October 2, 2026 22:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant