powered by
Given two distributions with density functions \(\phi_1, \phi_2\), this calculates:
$$ \int_0^1 \int_0^{l_1}\phi_1(l_1) \phi_2(l_2) d l_2 d l_1, $$ the probability that the value of the first distribution is greater.
compare_dists(dist1, dist2)
Density of distribution 1, as a one-argument function.
Density of distribution 2.
A probability scalar.
# NOT RUN { d1 <- update_prior(30, 50, P = 0.5, prior = stats::dunif) d2 <- update_prior(25, 40, P = 0.5, prior = stats::dunif) compare_dists(d1, d2) # }
Run the code above in your browser using DataLab