Priors
At the root of the Bayesian method are prior distributions. In ExtensibleMCMCPlots.jl these are represented by structs inheriting from
ExtensibleMCMC.Prior
— TypeSupertype for all prior distributions
Each concrete type must implement a method
Distributions.logpdf
— Methodlogpdf(::Prior, θ)
Evaluate the log-probability density function at θ
for a given prior.
Concrete types
The following two priors are important particularly for running quick tests:
ExtensibleMCMC.ImproperPrior
— TypeFlat prior
ExtensibleMCMC.ImproperPosPrior
— TypeFlat prior for positive coordinates
Additionally, you may leverage a full range of distributions defined in Distributions.jl by using
ExtensibleMCMC.StandardPrior
— Typestruct StandardPrior{T} <: Prior
dist::T
end
A standard prior π(θ).
ExtensibleMCMC.ProductPrior
— Typestruct ProductPrior{T,K} <: Prior
dists::T
idx::K
end
Generic prior distribution over parameter vector θ written in a facorized form. For instance if the prior may be written as
then dists
would correspond to a list containing π_1
and π_2
and idx
would be a list containing 1:k
and (k+1):n
.
ProductPrior(dists, dims)
Base consructor specifying a list of prior dsitributions dists
and a corresponding number of dimensions to which each prior distribution refers to.
These last two are not properly tested, so there might be some hiccups.