Standard libraries/Bayes function library

Revision as of 20:07, 9 January 2026 by Lchrisman (talk | contribs) (Created page with "category:Function libraries == Bayes function library == Shows how posterior can be computed for zero or more observations when a full joint probability is available. =...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


Bayes function library

Shows how posterior can be computed for zero or more observations when a full joint probability is available.

Using the Library

To use these functions in your model, you must add the Bayes function.ana library to your model. To add, select File → Add Library... and find the Bayes function.ana file.

After selecting, you should select linked. Once added, the library appears on your definition menu and the functions may be used.

Functions in library

Function Posterior( P,I,x )

Identifier
Posterior
Title
Posterior (P,I,x)
Parameter declaration
(P;I:IndexType;x)
Description
Given a joint prior distribution, P, and the observation that I=x, returns a joint posterior distribution. This can be cascaded, e.g., when updating by several observations.


Function Posterior_with_none( P,I,x )

Identifier
Posterior_with_none
Title
Posterior_With_None (P,I,x)
Parameter declaration
(P;I:IndexType;x:atomic)
Description
Given a joint prior distribution, returns the posterior when I=x, with the added features that if x='none', the index I is marginalized out as if I was not observed.

See also

Comments
Loading comments...