Description Usage Arguments Value Examples

Given two distributions with density functions *φ_1, φ_2*,
this calculates:

*
\int_0^1 \int_0^{l_1}φ_1(l_1) φ_2(l_2) d l_2 d l_1,
*

the probability that the value of the first distribution is greater.

1 | ```
compare_dists(dist1, dist2)
``` |

`dist1` |
Density of distribution 1, as a one-argument function. |

`dist2` |
Density of distribution 2. |

A probability scalar.

1 2 3 | ```
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)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.