Skip to content
Software source code displayed in shallow focus

Bad tick or real market move? An outlier policy for quantitative research

Investigate unusual observations without deleting the losses a live strategy would actually have faced.

The key idea

An extreme observation can be a data error or a genuine market event. Removing it because it harms a backtest creates a favourable bias. An outlier policy should use source evidence and reproducible rules, preserving both the original record and the reason for any correction.

The data assumption

Separate impossible values from unusual values. Negative volume in a field that cannot support it is a different issue from a large but valid price gap. Cross-source comparison, bid/ask consistency, exchange notices and neighbouring observations can help, but disagreement between vendors does not automatically identify which one is correct.

The effect on the strategy matters. A single tick may trigger an entry or stop even if it barely changes a daily average. A cleaning rule that clips returns before simulation can erase precisely the execution and tail risks the strategy needs to be tested against.

A worked example

Suppose one feed shows a jump from $100 to $120 and back within a second. If corroborating trade and quote records confirm it, replacing the value with $100 would remove a real event. If the provider later issues a documented correction, retaining the erroneous value can also mislead. The decision should follow evidence and the source’s correction process, not whether the trade wins.

Practical review and implementation

Define validation checks for field ranges, sequence, duplicate identifiers, crossed quotes and cross-source discrepancies. Quarantine suspect records rather than silently dropping them. Store the original, corrected value, reason, source and approval timestamp. Run sensitivity analysis on unresolved observations and disclose material dependence. Keep research cleaning rules versioned alongside the strategy code.

Assumptions and limitations

An automated rule cannot classify every extreme event correctly. Secondary feeds may share the same upstream source, and corrected histories can differ from the data available live. Outlier handling reduces data problems; it does not justify treating future tail events as errors by default.

Primary references

Further detail on the underlying concepts and data definitions: