Descriptive Statistics

GX-TXT DEV112 P011-bis

Compute descriptive statistics on a dataset and compare the results by changing the computation options.

Enable and select Descriptive Statistics

Open Configuration → Modules → Analysis & Services. Search for Descriptive Statistics or analysis.statistics.descriptive. Check that Health shows Available. Press Enable module if the state is OFF. When the module is available, open Analysis. The checkbox Run / recalculate now in the module tab determines whether the current run includes it. With the checkbox off you can review the configuration without queuing the computation.

The module is installed and available, but disabled. Enable module makes it selectable in Analysis.
The module is installed and available, but disabled. Enable module makes it selectable in Analysis.

Create the lab Session

  1. Press New Session → Generate Session…. In the catalog GX-TXT Public Session Generators select Descriptive Statistics Student Lab, ID descriptive_statistics_student_lab, version 1.0.0.
  2. Keep Standalone Session, type guida-statistiche-descrittive and press Generate Session. Confirm the success message. The lab Generator has no scientific parameters to fill in.
  3. In the resulting Session look for student.descriptive.source. The Generator also prepares the module configuration and the selection sel_001. If a setting is missing, reproduce the configuration of the following steps.
Choice of the public Generator and name of the new Session.
Choice of the public Generator and name of the new Session.

Check the source and choose the observations

In Dataset enable student.descriptive.source. The sub-tab Preview shows type and identity of the table. Use Open Dataset → Canonical table to read the rows. The field sample is the lab index. voltage_V and voltage_mV represent the same voltage in different units. current_A represents a distinct quantity. The Dataset includes intentional non-finite values.

In Dataset sources choose the source with the role primary. In the table Variables select the fields under Numeric variable. Use + Add to add a row and Remove to remove the one next to the command. Keep at least one variable. Choose Data selection (optional X interval) and set the selection sel_001 to include sample from 3 to 12. None uses the whole source. The interval applies to the coordinate associated with the selection, even when the summarized variables are others.

Canonical table of the Dataset prepared by the Generator, with V, mV, A and special cases.
Canonical table of the Dataset prepared by the Generator, with V, mV, A and special cases.

Set statistics and plots

Control
NaN / Inf policy
Choice and effect
omit the default, excludes non-finite values from each series while keeping their count. error rejects the computation if a selected series contains non-finite values.
Control
Additional percentiles
Choice and effect
Enter percentiles from 0 to 100 separated by commas or semicolons. The lab starts from 5;10;90;95. Quartiles and median are already included. The position is estimated by type-7 linear interpolation.
Control
Summary Dataset ID
Choice and effect
The factory value is statistics.descriptive.summary. The Generator sets student.descriptive.summary. Choose a distinct name to compare several runs.
Control
Create automatic distribution plots
Choice and effect
On by default. Creates a histogram and a box plot per group of compatible units. Turn it off to get the statistics without the new representations.
Control
Histogram bins
Choice and effect
auto determines the bins from the Dataset. Use an integer from 2 to 512 to fix their number. With few samples, compare the result across several choices.
Control
Histogram normalization
Choice and effect
count the default, uses absolute frequencies. probability divides by the finite observations, so the bars of each series add up to 1. density also divides by the bin width, so the total area is 1 per series.
Control
Box/whisker IQR multiplier
Choice and effect
Initially 1.5. The theoretical thresholds are Q1 − multiplier × IQR and Q3 + multiplier × IQR. The whiskers end at the observed extremes inside the thresholds. Reset resets the multiplier to 1.5.
Control
Show box/whisker outliers
Choice and effect
On by default. The points beyond the whiskers appear as markers. Clearing the checkbox keeps the whisker interval and the Dataset statistics.
Generated configuration with four variables, the 3–12 selection and automatic plots.
Generated configuration with four variables, the 3–12 selection and automatic plots.

Run and read the result

  1. Leave voltage_V, voltage_mV, current_A and constant_V. Keep sel_001, omit, auto, count and the plots on.
  2. Select Run / recalculate now. In Run update the plan and check the role primary and the Dataset. Press Run enabled analyses. The run goes from reading/computing to publishing and plot generation. Wait for Selective analysis completed.
  3. In Results refresh and look for student.descriptive.summary and the report. Open the result. In Dataset → Metadata check analysis.statistical_results. In Technical Details / Provenance check storage type, columns and SHA. student.descriptive.summary.sample contains the samples prepared for the automatic plots.

For voltage_V the summary gives 10 observations, 9 finite and one excluded. The mean is 2.22222 V, the median 2.2 V and the IQR 0.8 V. voltage_mV returns the equivalent mean of 2222.22 mV. The constant voltage has a standard deviation of 0. With very small samples, check the field Mathematically defined, for example for the sample variance when the second value is missing. The summary distinguishes the overall count from the valid count.

The sample variance divides by n−1, the population variance by n, with n equal to the valid count. The standard deviation is the square root of the variance. The standard error of the mean uses the sample deviation divided by √n. The value describes a sampling precision under the assumption of independent observations. RMS measures the root mean square relative to zero. Q1 and Q3 bound the central 50% and IQR is Q3 − Q1.

Persistent summary in the Canonical table with one row per variable and statistic, units and counts.
Persistent summary in the Canonical table with one row per variable and statistic, units and counts.
The result shows the statistical metadata and the provenance on the Dataset page.
The result shows the statistical metadata and the provenance on the Dataset page.

Open and customize the plot variants

In Plots find the histograms and the box plots. V and mV are compatible and share the display in V. The current has a separate group in A. The module’s result images can be viewed. To change the presentation select the corresponding persistent variant with producer plot.dataset, for example the first histogram Plot p0001. Open Graph → Open PNG 1:1 to read it at the original scale.

In the variant plot.dataset uses Presentation → Title and labels…. Set Distribuzione delle tensioni, X axis Tensione (V) and left Y axis Conteggio; save, then update with Render → Rerender. The text changes the presentation. The bar normalization is changed in Analysis and requires a new run. If This image has no editable graph providerappears, select the persistent variant and check the producer.

Histogram of the persistent variant before changing titles and labels.
Histogram of the persistent variant before changing titles and labels.
Presentation form with titles and axes filled in.
Presentation form with titles and axes filled in.
Histogram reopened after saving and regeneration.
Histogram reopened after saving and regeneration.

Repeat to isolate the changes

Remove the other rows of Variables and keep voltage_V. Choose None, percentiles 20,80, five bins, probability, whisker multiplier 2, and turn off the outlier markers. Run as stat.descrittiva.probabilita. Repeat with density as stat.descrittiva.densita. With the same observations the two statistics tables are equivalent; the scale of the histogram changes. Use new IDs to avoid mixing up the results.

Finally try error on voltage_V and review the details in Run. The trace contains non-finite cells and the new requested Dataset stays absent. Restore omit. With the automatic plots off you can regenerate the summary without creating new variants.