It is necessary to calculate the expression:
N[Integrate[PDF[BetaDistribution[alpha1, beta1], x] CDF[BetaDistribution[alpha2, beta2], x], {x, 0, 1}]] The expression solves the problem of comparing two advertisements by Bayesian statistics and probabilistic inference. This formula is written in Mathematica terms.N[expr] - numerically calculate the expression expr.Integrate[f, {x, xmin, xmax}] is the integral of the function f over x in the interval from xmin to xmax.PDF[dist, x] is the probability density function for the dist distribution at x.CDF[dist,x] is the distribution function of the random variable for the dist distribution at the point x.BetaDistribution[alpha, beta] - a continuous beta distribution with parameters alpha , beta .
In its usual form, it looks like this: 
Found a library that computes PDF and CDF : https://github.com/jstat/jstat . But with the integral problem.
