Distribution (Ctrl+D)¶

When to use it¶
Univariate summaries for a single continuous column: histogram, sample quantiles (p5/p25/p50/p75/p95), and summary moments (n, mean, sample standard deviation, min, max). Suitable for Continuous modeling type. Nominal/Ordinal columns are not expected; they are shown with their badge in the picker so you can see what the dialog thinks.
CLI parity¶
Press Distribution (Ctrl+D), assign Y, Response (single, required). Optional Weight and Freq zones are shown but do not change the univariate visual path.
leap distribution data.csv --column yield_pct
GUI workflow¶
- Press
Distribution (Ctrl+D)— the Launch Dialog opens with the Distribution platform active. - Left picker: search box filters columns (substring on name or modeling type). Columns show vector-painted badges (teal = continuous, amber = ordinal, violet = nominal).
- Right roles:
Y, Response *(required, single),Weight,Freq(optional). Click a zone to activate it, then click a column to assign. Click a filled zone chip's×to remove it. - Fix the red validation message (
Required: Y, Response) until Run enables.Recallrestores the last successful assignment,Clearempties the zones,Cancelcloses the dialog. - Run records the assignments and opens the floating report window (cascaded position).
Floating report window¶
Sections, all collapsible with v/> chevrons:
- Histogram — 12-bin (max 12, min with visible count) bar chart of visible values; unselected bars in background color, selection highlighted in accent.
- Quantiles — p5 / p25 / p50 / p75 / p95 (
format!("{value:.4}")). - Summary Moments — n, Mean, StdDev (sample, ddof = 1), Min, Max (
.4precision).
Header bar menu ... exposes: Toggle CI/PI, Save Residuals, Save Script to Table, Export SVG, Export JSON.
Hidden rows are omitted from every section. Rows selected via brushes are drawn in the accent color (histogram bars).
Mathematical formulation¶
Sample quantiles are computed with the Type 7 estimator (linear interpolation; pos = (n-1) * p):
Sample moments (visible/eligible rows only):
The CLI additionally fits normal / lognormal / exponential / Weibull by maximum likelihood (reported with log-likelihood, AIC, BIC, n_params, convergence), runs the Anderson-Darling normality test, and reports the same empirical quantiles. Anderson-Darling statistic:
where \(F\) is the fitted normal CDF. p-values come from the standard \(A^2\) distribution approximation.
Note: Shapiro-Wilk is not implemented in this build; Anderson-Darling is the normality test available in the Distribution report and the CLI.
CLI parity — exact flags¶
Distribution (Ctrl+D) — Launch Dialog → Run.
leap distribution <file> --column <col>
JSON output: fitted distributions (dist, ranks, n, per-family params with estimates, param_se, param_ci, log_likelihood, n_params, n_obs, aic, bic, converged, solver, iterations), Anderson-Darling result (statistic, adjusted statistic, p_value), and empirical quantiles (p5/p25/p50/p75/p95, n).