Description Details Normal-Inverse-Wishart model References See Also
Bayesian approach to evaluate whether two sets of multivariate observations come from the same source.
The observations are assumed to be generated by a hierarchical Normal-Inverted Wishart distribution. The hyperparameters can be fitted using additional background data, covering samples from multiple sources.
The package implements a Gibbs sampler to sample from the posteriors, and the computation of the marginal likelihood follows Chib (1995). The Bayes factor can also be computed as a ratio of two marginal likelihoods.
Described in \insertCiteBozza2008Probabilisticbayessource.
Observation level:
X_{ij} ~ N_p(theta_i, W_i)
(i = source, j = items from source)
Group level:
theta_i ~ N_p(μ, B)
W_i ~ IW_p(n_w, U)
Hyperparameters:
B, U, n_w, μ
Posterior samples of theta, W^{(-1)} can be generated with a Gibbs sampler.
Other core functions:
get_minimum_nw_IW()
,
make_priors_and_init()
,
marginalLikelihood_internal()
,
marginalLikelihood()
,
mcmc_postproc()
,
samesource_C()
,
two.level.multivariate.calculate.UC()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.