Outlier Detection
GX-TXT DEV112 P011-bis
Find outliers in a dataset and check the flagged rows and the thresholds applied.
Enable Outlier Flags and generate the trace
Go to Configuration → Modules → Analysis & Services, search for Outlier Flags (analysis.statistics.outliers) and select Enable module if it is off. The checkbox Run / recalculate now in the Analysis tab selects the run.

In New Session → Generate Session… choose the public Generator Statistics, ID statistics, version 1.0.1. Generate a standalone Session with a new name. The Dataset statistics.source contains eleven finite voltages and three non-finite ones. Look at the source in Dataset → Preview and open Canonical table to check the column value_V.

Choose the flagging rule
In Dataset sources uses primary: statistics.source. In Numeric variable enter value_V. Data selection (optional X interval) on None uses all rows. A valid selection bounds the set also used to estimate the thresholds. Keep distinct result names if you change the interval.
- Control
- Flagging rule
- Use
iqrthe default, compares the values with Q1 − k × IQR and Q3 + k × IQR.maduses the median and a robust scale equal to about 1.4826 times the median of the absolute deviations from the median. The flag is set for values outside the thresholds.
- Control
- Fence or robust-score threshold
- Use
- The initial value
1.5is used withiqr. For the examplemadset3.5. The multiplier is dimensionless and a larger value widens the thresholds. Reset restores the initial threshold.
- Control
- NaN / Inf policy
- Use
omitexcludes non-finite values from the estimate and keeps the traceability of the selected rows.errorrejects the computation with those inputs.
- Control
- Output Dataset ID
- Use
- Factory default
statistics.outliers.flags. Chooseoutlier.iqrandoutlier.madto inspect the two results.

Check thresholds, original index and flags
Tick Run / recalculate now. In Run update the plan, check the input and press Run enabled analyses. In Results open the produced Dataset. The page Dataset offers Preview, Metadata and Technical Details / Provenance. In Open Dataset → Canonical table look at the one-based source index, the value, the rule, the signed score, the thresholds and is_outlier.
The IQR rule with 1.5 gives the thresholds −8.5 V and 15.5 V, starting from Q1=0.5 V and Q3=6.5 V. With MAD and threshold 3.5, the median is 2 V, the scale 4.44781 V and the thresholds about −13.5673 and 17.5673 V. Both identify 21 V in the Dataset. The flag indicates a deviation according to the chosen criterion. The original row is kept, and this label alone does not establish that the measurement is wrong. The module publishes a table and a report, without generating plots of its own.
To try error keep the same variable and set a new ID. The run stops on the non-finite values and in Results the new ID stays absent. To get the flags on the finite measurements go back to omit.
