BF is roughly exp(-n KL(P0, P-hat)) divided by the prior mass of a KL ball of radius eps_n: the parametric model wins on prior concentration when it actually holds, and loses to the nonparametric one otherwise. The multinomial version is exact – H0 is the uniform on four cells, H1 the full Dirichlet(1,1,1,1) simplex – so no approximation clouds the comparison.
Value
List with estimate (log Bayes factor for the
nonparametric model), nonparametric_wins, method.
Details
Formula: log m_0 = sum_j c_j log(1/4); log m_1 = lgamma(4) - lgamma(4 + n) + sum_j lgamma(1 + c_j).
