Given a beta binomial function with known N, alpha and beta, finds the alpha and beta for a beta binomial with a different N that gives the same mean and variance

find_bb_2(n1, a1, b1, n2)

Arguments

n1

the number of trials in the first distribution

a1

alpha in the first distribution

b1

beta in the first distribution

n2

the number of trials in the second distribution

Value

alpha and beta for the second distribution

See also

Other beta_binomial_functions: bb_mean(), dbb(), find_prior_alpha_beta(), hist_rbb(), pbb(), qbb(), rbb()