Skip to content

Gaussian-Gaussian conjugate prior - #43

Merged
affeldt-aist merged 4 commits into
affeldt-aist:normal_20260426from
gbdrt:gaussian_conjugate_20260605
Aug 3, 2026
Merged

Gaussian-Gaussian conjugate prior#43
affeldt-aist merged 4 commits into
affeldt-aist:normal_20260426from
gbdrt:gaussian_conjugate_20260605

Conversation

@gbdrt

@gbdrt gbdrt commented Jun 11, 2026

Copy link
Copy Markdown

Developed with the assistance of Claude Opus 4.8 and Fable 5 (1M context).

Motivation for this change

Adds the Gaussian–Gaussian conjugate prior: the posterior of theta given X = x is a Gaussian, normal_prob (mean_post ..) (stddev_post ..) (Lemma normal_prob_conjugate).

Things done/to do
  • added corresponding entries in CHANGELOG_UNRELEASED.md
    (do not edit former entries, only append new ones, be careful:
    merge and rebase have a tendency to mess up CHANGELOG_UNRELEASED.md)
  • added corresponding documentation in the headers
Automatic note to reviewers

Read this Checklist and put a milestone if possible.

@affeldt-aist
affeldt-aist force-pushed the gaussian_conjugate_20260605 branch from bf44e87 to 9bf8da8 Compare June 28, 2026 17:05
by rewrite mulr_gt0// exprn_even_gt0.
Qed.

Definition mean_post (mu0 : R) sigma0 x sigma : R :=

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be called stdmean_post? (On the model of stddev_post)

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here stddev is just short for "standard deviation" (sqrt of the variance).

@affeldt-aist

Copy link
Copy Markdown
Owner

Do you have a reference? I would like to double-check my producing a LaTeX formula for the documentation.

gbdrt and others added 4 commits June 29, 2026 03:01
Developed with the assistance of Claude Opus 4.8 and Fable 5 (1M context).

Co-authored-by: Reynald Affeldt <reynald.affeldt@aist.go.jp>
@affeldt-aist
affeldt-aist force-pushed the gaussian_conjugate_20260605 branch from bab3b5e to 7f8cbb0 Compare June 28, 2026 18:02
@gbdrt

gbdrt commented Jun 29, 2026

Copy link
Copy Markdown
Author

Thanks for the review!
This is the formula of the first row of this table: https://en.wikipedia.org/wiki/Conjugate_prior#When_the_likelihood_function_is_a_discrete_distribution

@gbdrt

gbdrt commented Aug 3, 2026

Copy link
Copy Markdown
Author

I double checked the latex doc, and it looks good to me. It's a specialization of the table formula with only one observation x (n = 1, and the sum over x_i is replaced by a single x).

@affeldt-aist
affeldt-aist merged commit 6d5712e into affeldt-aist:normal_20260426 Aug 3, 2026
14 of 18 checks passed
affeldt-aist added a commit that referenced this pull request Aug 3, 2026
* add Gaussian-Gaussian conjugate prior

Developed with the assistance of Claude Opus 4.8 and Fable 5 (1M context).

---------

Co-authored-by: Reynald Affeldt <reynald.affeldt@aist.go.jp>
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.

2 participants