You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add triangular(left, mode, right) to calculate a triangular distribution.
Add binomial(n, p) to calculate a binomial distribution.
Add beta(a, b) to calculate a beta distribution.
Add bernoulli(p) to calculate a bernoulli distribution.
Add exponential(scale) to calculate an exponential distribution.
New Bayesian library
Add bayes.update to get a posterior distribution from a prior distribution and an evidence distribution.
Add bayes.average to average distributions (via a mixture).
New utility functions
Add laplace to calculate Laplace's Law of Succession. If s and n are passed, it will calculate (s+1)/(n+2). If s, time_passed, and time_remaining are passed, it will use the time invariant version. Use time_fixed=True for fixed time periods and time_fixed=False (default) otherwise.
Add geomean to calculate the geometric mean.
Add p_to_odds to convert probability to odds. Also odds_to_p to convert odds to probability.
Add geomean_odds to calculate the geometric mean of odds, converted to and from probabilities.
Other
If a distribution is defined with sd but not mean, mean will be inferred to be 0.
sample can now take lclip and rclip directly, in addition to defining lclip and rclip on the distribution itself. If both are defined, the most restrictive of the two bounds will be used.