Join the newly launched
Discord community for real-time discussions, peer support, and direct interaction with the Meridian team!
meridian.model.prior_distribution.lognormal_dist_from_range
Stay organized with collections
Save and categorize content based on your preferences.
Define a LogNormal distribution from a specified range.
meridian.model.prior_distribution.lognormal_dist_from_range(
low: (float | Sequence[float]),
high: (float | Sequence[float]),
mass_percent: (float | Sequence[float]) = 0.95
) -> backend.tfd.LogNormal
This function parameterizes lognormal distributions by the bounds of a range,
so that the specified probability mass falls within the bounds defined by
low
and high
. The probability mass is symmetric about the median. For
example, to define a lognormal distribution with a 95% probability mass of
(1, 10), use:
lognormal = lognormal_dist_from_range(1.0, 10.0, mass_percent=0.95)
Args |
low
|
Float or array-like denoting the lower bound of the range. Values must
be non-negative.
|
high
|
Float or array-like denoting the upper bound of range. Values must be
non-negative.
|
mass_percent
|
Float or array-like denoting the probability mass. Values must
be between 0 and 1 (exclusive). Default: 0.95.
|
Returns |
A backend.tfd.LogNormal object with the input percentage mass falling
within the given range.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-10-09 UTC.
[null,null,["Last updated 2025-10-09 UTC."],[],[]]