Docs / Data Analysis / Outliers

Outlier Detection

Modellus automatically identifies data points that deviate significantly from the regression curve, helping you spot measurement errors or interesting phenomena.

Overview

When you perform a regression on table data, Modellus evaluates each data point against the fitted curve. Points that fall significantly far from the curve are flagged as outliers. These are visually marked in Chart shapes to help you interpret your data.

How Outlier Detection Works

Screenshot: Chart with normal points and outlier points visually distinguished

The detection process:

  1. A regression is computed on the selected data (linear or quadratic)
  2. For each data point, the residual (distance from the curve) is calculated
  3. Points with residuals exceeding a statistical threshold are flagged
  4. The isOutlierIteration method marks these iterations
  5. Charts render outlier points with a distinct visual style

Visual Appearance in Charts

Screenshot: Close-up of chart showing the difference between normal and outlier point styles
Point TypeAppearanceMeaning
NormalFilled circle, series colorData point consistent with the regression model
OutlierDifferent marker style (hollow or contrasting color)Data point far from the fitted curve

Interpreting Outliers

An outlier point may indicate:

Don't automatically discard outliers. Investigate why they're different — they may reveal something important about the phenomenon you're studying.

Working with Outliers

Excluding outliers from regression

If you determine that certain points are measurement errors, you can exclude them by selecting a narrower range of cells in the Table before applying regression. Only the selected cells participate in the curve fitting.

Comparing regressions

Try both linear and quadratic regression on the same data. If the linear model produces many outliers but the quadratic model doesn't, the relationship may be non-linear — consider upgrading your theoretical model.

Technical Details

The outlier detection is performed per-iteration by the calculation engine's isOutlierIteration method. The Chart shape queries this for each Y-series data point during rendering, applying the outlier visual style to flagged iterations.

Outlier detection is only active when a regression term exists for the plotted data series. Without regression, all points are rendered normally.