Empirical Distribution
GX-TXT DEV112 P011-bis
Build an empirical distribution and read quantiles and frequencies with the settings of the example.
Enable Empirical Distribution and generate the data
In Configuration → Modules → Analysis & Services search for Empirical Distribution (analysis.statistics.distribution) and press Enable module if it is off. In Analysis uses Run / recalculate now to include it in the selective run.
From New Session → Generate Session… choose Statistics, ID statistics, version 1.0.1, in the catalog GX-TXT Public Session Generators. Keep Standalone Session, give it a name and press Generate Session. This Generator prepares statistics.source, a Dataset with 14 rows. For the voltage value_V contains 11 finite and 3 non-finite values. In Dataset → Preview check the source. With Open Dataset → Canonical table read sample, value_V and weight. The distribution module uses only the chosen variable.

Set variable, bin rule and quantiles
In Dataset sources bind statistics.source to primary and type value_V in Numeric variable. Data selection (optional X interval) on None uses all rows. If you choose an X selection compatible with the source, the interval bounds the rows before the computation. NaN / Inf policy is initially omit. On error the presence of non-finite values rejects the run.
- Control
- Explicit bin rule
- Setting and result
countthe default, uses a fixed number of bins and lets them adapt to the data range.widthsets the width in the unit of the measurement.edgesuses explicitly given edges. The rule control determines which of the next three options is needed.
- Control
- Bin count (count mode)
- Setting and result
- Positive integer. Default 10. In the exercise use 6 classes to read the frequencies easily with eleven finite samples.
- Control
- Bin width (width mode)
- Setting and result
- Positive width, initially 1.0. For
value_Vuses4V. Reset resets the width to the initial one.
- Control
- Bin edges, semicolon-separated (edges mode)
- Setting and result
- List of at least two strictly increasing edges. Initially empty. Example
-5;0;5;10;15;25V. The report gives how many finite observations fall outside the edges.
- Control
- Quantile probabilities, semicolon-separated
- Setting and result
- Probabilities from 0 to 1, prefilled with
0;0.25;0.5;0.75;1. In this exercise use0;.1;.5;.9;1. 0 is the minimum, 0.5 the median and 1 the maximum.
- Control
- Output Dataset ID prefix
- Setting and result
- Factory default
statistics.distribution. Choosedistribuzione.count,distribuzione.widthanddistribuzione.edgesto keep three distinguishable results.
- Control
- Create histogram and ECDF graphs
- Setting and result
- On at first. Records histogram and ECDF; turn it off to publish the tables only.

Compare the three outputs
With omit and count, confirm Run / recalculate now. In Run update the plan and check primary: statistics.source. Start Run enabled analyses. Once completed, check in Results the three Datasets .bins, .ecdf and .quantiles and the report. Enable each Dataset to look at Preview, Metadata and the canonical table. The report shows rule, counts and quantiles.
.binsrecords edges and center, counts, and relative and cumulative frequencies. Changing the rule changes the shape of the histogram. Without cuts, the sum of the counts is 11..ecdfcontains the distinct values in order, their frequencies and the cumulative probability. The ECDF is the fraction of finite data less than or equal to x. The value 2 is repeated, so the table has ten support values for eleven observations..quantilescontains probability and estimated quantile. In the lab the median is 2 V and the quantiles at probabilities 0.1 and 0.9 are −1 V and 13 V. If you change the bins with the same rows, ECDF and quantiles stay the same. The metadata description lets you identify the method and the source.


Read and customize histogram and ECDF
In Plots select the desired plot. The histogram groups the observations into classes, while the ECDF steps rise at the observed values. To change the title use the persistent variant with producer plot.dataset. In Presentation → Title and labels… title the plot, save and use Render → Rerender. Check the variant from Graph → Open PNG 1:1. The change keeps the numerical results.

