Skip to content

Stabilize bounded joint order statistics - #35

Open
BJMCox wants to merge 2 commits into
mainfrom
stable-bounded-order-gaps
Open

BJMCox wants to merge 2 commits into
mainfrom
stable-bounded-order-gaps

Conversation

@BJMCox

@BJMCox BJMCox commented Nov 17, 2026 •

Copy link
Copy Markdown
Member

Use centered stick breaking over the support gaps of bounded joint order statistics. The exponential gap chart can round ordinary inputs to the upper endpoint or to tied values. The new chart preserves ordering on the failing Beta input and maps zero coordinates to evenly spaced points.

The new chart changes unconstrained coordinates on finite intervals. Migrate stored positions by decoding them with the previous Plaice version and encoding the constrained points with the new version. Extreme inputs can still round to the boundary.

The stock chart rounds the second point to one for Beta(2, 2) at [0, 4]. The regression checks roundtrip recovery in Float32 and Float64. A long zero vector checks strict ordering, and Uniform(1, 5) checks both Jacobians. All 69,180 public order checks pass on Julia 1.13. Native AD and compiled Reactant checks also pass.

At 128 Float64 Beta points, the new chart improves both directions with two allocations. Paired checks against the first PR revision give identical values and Jacobians, with comparable timings.

Use centered stick breaking to avoid the endpoint rounding caused by exponentiated logit gaps. Preserve legacy charts outside usable finite intervals and document migration for saved coordinates.
@github-actions

Copy link
Copy Markdown

Docs preview for PR #35

Let the scalar interval bijector select the direction of one ordered wrapper. Use small exact fixtures for endpoint recovery and the support-width Jacobian.

This branch has not been deployed

No deployments
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