Repository navigation
·
64 commits
to master
since this release
Fitting
- Began the unified non-mutating fitting API with
FitResult,FitOptions, likelihood-based
AIC/BIC, observed-information covariance and standard errors, and fixed-parameter MLE. Existing
estimators are exposed for normal, log-normal, exponential, gamma, beta, arcsine, beta-prime,
Pareto, Laplace, Lévy, Rayleigh, uniform, degenerate, Poisson, binomial, negative-binomial and
discrete-uniform distributions. The generic constrained optimizer supplies full Weibull and
logistic MLEs, plus MLEs for Student t, Cauchy, Gumbel, Fréchet, inverse-gamma,
inverse-Gaussian and noncentral chi-squared laws. Bernoulli and geometric fits are closed form;
chi-squared, Erlang and Fisher F use bounded integer likelihood searches. - Added named method-of-moments fitting, conjugate Bayesian posterior updates for the existing
normal, log-normal, exponential, Poisson, binomial, negative-binomial, Weibull, Pareto and uniform
models, and AIC/BIC model selection across candidate distributions. - Added continuous goodness-of-fit results for Kolmogorov--Smirnov, Anderson--Darling and
Cramer--von Mises statistics with p-values, plus a discrete chi-squared test that combines sparse
bins and accounts for fitted parameters. - Added seeded parameter-recovery grids over multiple sample sizes and committed fixed datasets with
independently generated SciPy MLE results for nine continuous distributions. Reference-tool
versions are pinned intools/requirements.txt. - Added generalized Pareto and generalized extreme-value distributions, with high-precision mpmath
reference data, generic MLEs, and stable direct survival-function implementations. - Added Hill and Pickands tail-index estimators, plot-ready Hill diagnostics, and
peaks-over-threshold generalized-Pareto fitting. - Added maximum-likelihood fitting for exact, left-, right- and interval-censored observations and
for one- or two-sided truncated samples. These adapters share the constrained optimizer,
information criteria and observed-information covariance used by ordinary MLE. - Censored and truncated likelihood fits use a simplex search from the original initializer,
avoiding gradient-based false convergence on flat transformed-likelihood regions.
API compatibility
- Marked the legacy mutating member
Fit*methods deprecated in favor offit,fit_momentsand
fit_bayes. They remain source-compatible until v3; projects temporarily unable to migrate can
defineRANDLIB_DISABLE_DEPRECATED_FIT_WARNINGSbefore including RandLib. - Removed the unused private
POISSONbinomial generator selector. The exact Bernoulli-sum,
waiting-time and rejection samplers remain; no approximation is introduced.