Skip to contents

Equations 6.21 to 6.25 of Bilder & Loughin (2025): Bayes rule, the Beta posterior, the Bayes estimate decomposition, and grid-normalized regression posteriors.

Usage

morie_bayes_binomial(
  p_a_given_b = NA,
  p_b = NA,
  p_a_given_notb = NA,
  pi = NA,
  w = NA,
  n = NA,
  a = NA,
  b = NA,
  logliks = NULL,
  log_priors = NULL
)

Arguments

p_a_given_b, p_b, p_a_given_notb

Bayes-rule pieces.

pi, w, n, a, b

Beta posterior pieces.

logliks, log_priors

Grid posterior pieces.

Value

List with posterior_prob, posterior_density, bayes_estimate, grid_weights (as supplied).

Examples

morie_bayes_binomial()
#> list()