Posterior updating of two proportions
Computes posterior distribution of two proportions with a discrete prior
two_p_update(prior, s1f1, s2f2)
prior
: prior probability matrix where the rows and columns are labeled with the values of the proportionss1f1
: number of successes and number of failures from first samples2f2
: number of successes and number of failures from second sampleposterior probability matrix
Jim Albert
prior <- testing_prior() s1f1 <- c(3, 10) s2f2 <- c(8, 20) two_p_update(prior, s1f1, s2f2)