# Distribution reference

One page per distribution, from `nagasim/core/distributions.py`'s `DISTRIBUTION_REGISTRY`: its parameters, the mean and variance of seeded draws, a chart of the draws and an example. "Arrival" and "Delay" mark whether the distribution is offered for a CREATE inter-arrival time or for a delay-bearing block (`get_available_distributions`).

| Distribution | Category | Arrival | Delay | When to use it |
|---|---|---|---|---|
| [Bernoulli](bernoulli.md) | special |  |  | A single yes/no outcome with a given probability, such as accept or reject, pass or fail, or rework or not. |
| [Beta](beta.md) | continuous | yes | yes | A value between a minimum and a maximum with a flexible shape, such as a fraction, a proportion or a bounded time. |
| [Binomial](binomial.md) | special |  |  | Count of successes (for example defective parts) in a fixed number of independent trials. |
| [BoundedNormal](bounded-normal.md) | special |  | yes | Bell-shaped variation around an average, cut off at a minimum and a maximum so a time cannot go negative or beyond a physical limit. |
| [Cauchy](cauchy.md) | special |  |  | Very heavy-tailed values with frequent extreme outliers in both directions; rarely right for times, and it often returns negative values. |
| [ChiSquare](chi-square.md) | special |  |  | Statistical diagnostics and sums of squared normal variations; rarely used for simulation times. |
| [Constant](constant.md) | continuous | yes | yes | A fixed duration that never varies, for a deterministic service time, transit time or interval. |
| [CustomExpression](custom-expression.md) | continuous | yes | yes | Any model expression, for example '2 + EXPO(3)', when no single distribution fits. |
| [DiscreteUniform](discrete-uniform.md) | special |  | yes | A whole number between a minimum and a maximum, each equally likely, such as a random lot size from 1 to 6. |
| [EmpiricalContinuous](empirical-continuous.md) | continuous | yes | yes | Measured data as a histogram: a bin is picked by its weight, then a value is drawn evenly within it (a continuous draw, not a resample of points). |
| [EmpiricalDiscrete](empirical-discrete.md) | discrete | yes | yes | Whole-number values with their own measured probabilities, such as order sizes or the number of items per job. |
| [Erlang](erlang.md) | continuous | yes | yes | Time to finish k exponential steps in a row, giving a service time less variable than exponential but still random. |
| [Exponential](exponential.md) | continuous | yes | yes | Time between random independent arrivals, or time to a random breakdown, when past events do not change the next one. |
| [FixedSchedule](fixed-schedule.md) | continuous | yes |  | Exact listed times, for arrivals or events that follow a fixed timetable such as a roster or a delivery plan; an optional jitter shifts each arrival at random and keeps their order. |
| [Gamma](gamma.md) | continuous | yes | yes | Right-skewed service or processing times that cannot go below zero, from very regular to very variable. |
| [Geometric](geometric.md) | special |  |  | Number of attempts until the first success, such as tries before a part passes inspection. |
| [Hypergeometric](hypergeometric.md) | special |  |  | Successes in a sample drawn without replacement from a finite lot, such as defectives found when inspecting a sample. |
| [InverseGaussian](inverse-gaussian.md) | continuous | yes | yes | Right-skewed positive times such as a reaction or decision delay, or the time for a drifting quantity to reach a level. |
| [JohnsonSB](johnson-sb.md) | special |  |  | A skewed value that stays between a minimum and a maximum, such as a yield or fill percentage. |
| [JohnsonSU](johnson-su.md) | special |  |  | A flexible fit for skewed, heavy-tailed data when no simple distribution matches; it can return negative values. |
| [LogLogistic](log-logistic.md) | continuous | yes | yes | Right-skewed durations with a heavier tail than lognormal, such as repair or lifetime data that cannot go below zero. |
| [Lognormal](lognormal.md) | continuous | yes | yes | Right-skewed times that cannot go below zero, such as manual handling, picking or repair durations with an occasional long one. |
| [NegativeBinomial](negative-binomial.md) | special |  |  | Number of failures before a set number of successes, each try with the same chance of success, such as rejected parts before r good ones. |
| [Normal](normal.md) | special |  |  | Symmetric variation around an average, such as a cycle time that is rarely far from the mean; it can go negative unless the mean is much larger than the spread. |
| [PearsonTypeV](pearson-type-v.md) | continuous |  | yes | Right-skewed positive delays or times to failure with a long tail, an alternative to lognormal. |
| [PearsonTypeVI](pearson-type-vi.md) | continuous |  | yes | A ratio of two gamma variables, such as cost per service, that is always positive; it can model times when the parameters suit. |
| [Poisson](poisson.md) | discrete | yes | yes | Counts per period, such as the number of arrivals or events in a fixed time window. |
| [Rayleigh](rayleigh.md) | continuous | yes | yes | A positive magnitude such as movement noise or a positioning error, with a single scale parameter. |
| [Triangular](triangular.md) | continuous | yes | yes | Min, most likely and max are known, usually from expert estimates when there is no data. |
| [Uniform](uniform.md) | continuous | yes | yes | Any value between a minimum and a maximum is equally likely; use it when only the min and max are known. |
| [Weibull](weibull.md) | continuous | yes | yes | Equipment lifetimes and time to failure, where the breakdown rate can rise with age (wear-out) or fall (early failures). |
