Description Usage Arguments See Also Examples
Prior
objects can be conditioned on lower or upper boundaries,
intervals, or single values to restrict their support.
Various shorthand notations are supported (see examples).
1 2 3 4 5 6 7 8 9 |
prior |
|
low |
[optional] lower boundary to condition on |
high |
[optional] upper boundary to condition on |
Prior
, updating
for Bayesian updating
1 2 3 4 5 6 7 8 9 10 11 12 | badr::load_julia_package()
load_julia_package()
condition(Beta(2, 3), low = 0.2)
condition(Beta(2, 3), high = 0.9)
condition(Beta(2, 3), low = 0.2, high = 0.9)
Beta(5, 7) %|% c(0.2, 0.7) # shorthand for conditioning on interval
Beta(5, 7) %|% 0.5 # condition on single point
Beta(5, 7) <= 0.5 # = condition(Beta(5, 7), high = 0.5)
0.2 <= Beta(5, 7) # = condition(Beta(5, 7), low = 0.2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.