Pattern recognition in time series: test patterns instead of believing them

People and algorithms reliably find patterns in data, even where there are none. Here you learn the typical fallacies and a routine for assessing claims about patterns.

What is a pattern in market data?

A pattern is a regularity that repeats in a time series: a recurring shape, a relationship between two series or a typical reaction to an event. A pattern only becomes interesting if it also holds outside the data in which it was found.

Indicators such as moving averages condense a series into a smoother line. They make movements visible but create no new information: every indicator is a calculation applied to the same data.

Five fallacies you should know

Noise
Prices move even without new information. Short windows often consist mostly of noise, in which the eye still finds shapes.
Overfitting
A model that traces the past almost perfectly has often learned that past’s randomness. Faced with new data, its hit rate collapses.
Selection bias and data snooping
Test enough rules on the same data and show only the best one, and you are bound to find something. The discarded attempts are part of the result.
Data leakage (look-ahead bias)
A rule uses information that was not yet known when the decision was made, such as later revised data or a closing price that is only fixed in the evening.
Spurious correlation
Two series move together because both follow a trend or depend on a third variable. That does not establish cause and effect.

Correlation is not causation

A hypothetical example: ice cream sales and the number of sunburns both rise in summer. Both depend on the weather; neither causes the other. In market data the third variable is often harder to see, for example a general upward trend that makes two entirely unrelated series rise at the same time.

One way to check is to compare changes rather than levels. A relationship that rests only on a shared trend often disappears when you do.

A routine for checking any claim about a pattern

  1. Is the rule fixed before the data is examined?
  2. Does the pattern hold in a period that was not used for the search?
  3. Is the result better than for a random series with similar volatility?
  4. How many variants were tried, and are all of them documented?
  5. Is there a plausible explanation that was formulated independently of the data?
  6. Which counter-example would refute the claim?

You can try the comparison with chance straight away: in the Pattern Lab you generate random series in which apparent trends look just as convincing as in real data.

Site map

Select a page to open it. Hover over a page or move the keyboard focus to it to see its connections.

All pages by area

Start

  • Home Overview and starting point

Learning topics

Lab and methodology

Knowledge library

Articles

About and service

Legal

Suggested next step: Pattern Lab