Skip to content

fix(cal): bounded-observable logit_normal validator + n_biological_is_floor prompt - #76

Merged
jeliason merged 1 commit into
mainfrom
fix/cal-bounded-logit-normal-validator
Jul 23, 2026
Merged

fix(cal): bounded-observable logit_normal validator + n_biological_is_floor prompt#76
jeliason merged 1 commit into
mainfrom
fix/cal-bounded-logit-normal-validator

Conversation

@jeliason

Copy link
Copy Markdown
Member

Extends the 0.8.1 statistical-model hardening to the CalibrationTarget side, which reuses the same ObservedDistribution.

  • Validator: CalibrationTargetEstimates now rejects a percent/fraction/proportion/probability observable whose moments-form observed_distribution uses shape: normal/lognormal — parity with the submodel validate_bounded_observable_uses_logit_normal. The cal prompt already instructed logit_normal for bounded observables; nothing enforced it.
  • Prompt: surfaces n_biological_is_floor (already usable on cal via the shared ObservedDistribution) in the population-spread section for "n≥" sources.

R1 (SEM-scale double-encode) has no cal analog to add — the cal side already has validate_observed_distribution_consistency. V-A (un-clipped normal crossing zero) applies only to sampling distribution_codes; our cal targets are declarative, so it's deferred.

…ical_is_floor

Parity with the SubmodelTarget bounded-observable validator: CalibrationTarget
reuses the shared ObservedDistribution, and the cal prompt already instructs
shape=logit_normal for [0,1] observables, but nothing enforced it. Add the same
check on CalibrationTargetEstimates (bounded units + moments shape normal/lognormal
-> require logit_normal). Also surface n_biological_is_floor (already available via
the shared ObservedDistribution) in the cal authoring prompt for 'n>=' sources.
@jeliason
jeliason merged commit 4a65226 into main Jul 23, 2026
10 of 11 checks passed
@jeliason
jeliason deleted the fix/cal-bounded-logit-normal-validator branch July 23, 2026 22:34
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