Distribution index · Parameterization crosswalk
The four-parameter Kappa family is a flexible location-scale-shape family that contains several distributions used in frequency analysis. RMC.Numerics constructor order is Hondo.
Let
Both inner bases must be real and nonnegative. This imposes distributional support beyond the constructor's finiteness checks.
The CDF branches implemented by Numerics are
Thus
For
The zero-primary-shape branch evaluates (K4.4) directly and is the algebraic inverse of the corresponding CDF branch.
The source reports the lower endpoint as
For
For
Numerics checks moment existence before integration. It integrates the standardized quantile over probability space, centers before higher powers, and applies location and scale afterward. Nonexistent or numerically unresolved moments return NaN. Mode evaluation includes support boundaries and limiting branches; it is not restricted to the central 99.8% of the distribution. Tail-dominated moments still require interpretation in light of their existence conditions and finite numerical precision.
Where UnivariateDistribution. The posterior multiplies that likelihood by configured priors. Initial values are obtained by an L-moment routine with a GEV fallback; optimizer bounds are then used for default uniform priors. Four flexible parameters create substantial confounding and multiple-optimum risk, especially in short records.
private static (double Density, double Cdf, double Quantile) EvaluateKappaFour()
{
var distribution = new global::Numerics.Distributions.KappaFour(
1500.0, 400.0, 0.10, 0.20);
return Evaluate(distribution, value: 2200.0, nonExceedanceProbability: 0.99);
}The example uses nonzero shapes to illustrate the general branch. It demonstrates API shape, not suitability for a particular dataset.
Analytical tests verify the zero-$\kappa$ density as the derivative of the CDF, CDF/quantile inversion, support, normalization, and two-sided continuity at the limiting branch. A finite-shape regression spans all four sign combinations of
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.
[1] J. R. M. Hosking, “The four-parameter kappa distribution,” IBM Journal of Research and Development, vol. 38, no. 3, pp. 251–258, 1994.
[2] J. R. M. Hosking and J. R. Wallis, Regional Frequency Analysis: An Approach Based on L-Moments. Cambridge University Press, 1997.