bayesplain.core.beta_binomial.log_bayes_factor_point_null¶
-
bayesplain.core.beta_binomial.log_bayes_factor_point_null(successes, n, p0=
0.5, a=1.0, b=1.0)[source]¶ Log Bayes factor comparing an unknown rate against a fixed value.
Compares
H1: the rate is unknown with aBeta(a, b)prior, againstH0: the rate is exactlyp0. Both marginal likelihoods are closed form, so this is an exact ratio rather than an estimate.- Parameters:¶
- Returns:¶
log(BF10). Positive values favour an unknown rate; negative values favourp0.- Return type:¶
- Raises:¶
ValueError – If
p0is not strictly inside (0, 1), or if it is a boundary value that the data contradict outright.