Skip to content

docs: add normal-normal conjugate example#10

Merged
kholdrex merged 1 commit into
masterfrom
docs/normal-normal-conjugate-example
Jun 2, 2026
Merged

docs: add normal-normal conjugate example#10
kholdrex merged 1 commit into
masterfrom
docs/normal-normal-conjugate-example

Conversation

@kholdrex

@kholdrex kholdrex commented Jun 1, 2026

Copy link
Copy Markdown
Member

Summary

Adds a Normal-Normal conjugate update to the executable conjugate model examples. The new example shows a known-observation-variance posterior mean update alongside the existing Beta-Binomial and Gamma-Poisson examples.

Changes

  • Adds a Normal-Normal posterior helper with validation for empty, non-positive, and non-finite inputs.
  • Prints the Normal-Normal posterior mean, standard deviation, and density check in conjugate_models.
  • Adds regression coverage for the closed-form posterior and invalid input handling.

Test Plan

  • Rust formatting check passed.
  • Full Rust test suite passed with all features.
  • Clippy passed with warnings denied across all targets and features.
  • Example compilation, rustdoc with warnings denied, and benchmark compilation passed.

@kholdrex kholdrex merged commit 59c0371 into master Jun 2, 2026
7 checks passed
@kholdrex kholdrex deleted the docs/normal-normal-conjugate-example branch June 2, 2026 00:11
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