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
Numerics.Distributions.LnNormal is a natural-lognormal family whose public constructor and GetParameters use the natural-space mean and standard deviation, $(m,s)$, not the mean and standard deviation of $\ln X$. Both are in observation units and must be positive for a meaningful lognormal model. This differs intentionally from LogNormal, whose public parameters are log-space moments.
The constructor converts $(m,s)$ to internal Normal parameters
The public Mu and Sigma properties expose these internal log-space values, while GetParameters, ParametersToString, Mean, and StandardDeviation expose or return natural-space moments. Code that mixes these surfaces can silently change parameterization.
The physical-parameter cache preserves the exact serialized natural-space mean and standard deviation through clone and round-trip operations. Persisted coordinates and logarithmic bases are unchanged.
All positive moments exist, with $E[X^r]=\exp(r\mu_{\ln}+r^2\sigma_{\ln}^2/2)$. Median and mode are $e^{\mu_{\ln}}$ and $e^{\mu_{\ln}-\sigma_{\ln}^2}$. The upper tail is unbounded and heavier than an exponential tail but lighter than a power law.
RMC.BestFit uses natural-space $(m,s)$ as model coefficients and passes them through the constructor conversion before evaluating exact, censored, uncertain, interval, and threshold likelihood components. Quantile priors are evaluated from (LN.3). Sample-dependent starts and working bounds come from the Numerics constraint routine. The direct-moment conversion guards only nonpositive standard deviation explicitly; nonpositive or near-zero mean can lead to non-finite internal values and must be rejected during data/model validation.
When parameters vary with covariates, the trends predict natural-space mean and standard deviation, not $(\mu_{\ln},\sigma_{\ln})$. This distinction changes both interpretation and the nonlinear response to covariates.
Here 1,500 and 500 are the arithmetic mean and standard deviation in discharge units. Passing log-space values would define a different and usually nonsensical model.
Validation and Limitations
Required evidence includes round-trip recovery of $(m,s)$ after conversion, density normalization, CDF/quantile inversion, theoretical natural-space moments, and comparison with a natural-lognormal reference. The compiled fixture guards current constructor semantics. Positive support can be appropriate for discharge, but lognormal tail extrapolation remains a substantive assumption and may underrepresent heavy flood-generating mechanisms.
The distribution verification matrix identifies the current independent formula and fitted-objective comparisons, retained Bayesian/MLE recovery designs, and their distinct acceptance rules. The compiled example guards API compatibility; it does not run an estimator or establish scientific accuracy by itself.
References
[1] E. L. Crow and K. Shimizu, eds., Lognormal Distributions: Theory and Applications. Marcel Dekker, 1988.