bayessource-package.Rd
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 (Bozza et al. 2008) .
Observation level:
$$X_{ij} \sim N_p(\theta_i, W_i)$$ (i = source, j = items from source)
Group level:
$$\theta_i \sim N_p(\mu, B)$$
$$W_i \sim IW_p(\nu_w, U)$$
Hyperparameters:
$$B, U, \nu_w, \mu$$
Posterior samples of \(\theta\), \(W^{(-1)}\) can be generated with a Gibbs sampler.
Bozza S, Taroni F, Marquis R, Schmittbuhl M (2008). “Probabilistic Evaluation of Handwriting Evidence: Likelihood Ratio for Authorship.” Journal of the Royal Statistical Society: Series C (Applied Statistics), 57(3), 329-341. ISSN 1467-9876, doi: 10.1111/j.1467-9876.2007.00616.x .
Other core functions:
get_minimum_nw_IW()
,
make_priors_and_init()
,
marginalLikelihood_internal()
,
marginalLikelihood()
,
mcmc_postproc()
,
samesource_C()
,
two.level.multivariate.calculate.UC()