Probability for difference of x or more between two beta distributions
p2beta_diff(x, a1, b1, a2, b2)
returns the probability of a difference of x or more between two beta distributions. This is a simplification of the original P2beta function simplified for vectorization. Therre is a lot of space here for improved run times.
value
alpha for first
beta for first
alpha for second
beta for second
Randall Henner