Matrix Profile (Motifs and Discords)
The matrix profile records, for every subsequence of a series, the z-normalised distance to its nearest non-overlapping match, revealing repeated motifs and anomalous discords.
매트릭스 프로파일은 시계열의 모든 부분구간마다 겹치지 않는 가장 비슷한 구간까지의 z-정규화 거리를 기록해 반복 패턴(모티프)과 이상 구간(디스코드)을 찾는 방법입니다.
Which patterns repeat in my long sensor log, and which stretch looks unlike anything else?
긴 센서 기록에서 어떤 패턴이 반복되고 어느 구간이 유독 다른지 찾을 수 있을까요?
Compute, for each window of length m, the distance to its most similar other window after z-normalisation. The smallest values mark motifs that recur, and the largest mark discords that have no close match anywhere in the series.
When to use Matrix Profile (Motifs and Discords)
- You want to find recurring shapes without labels.
- You want to locate unusual subsequences in a long series.
- You know roughly how long the pattern of interest is.
When to use something else
- Anomalies are single points rather than shapes; use a point outlier detector.
- You want to align two whole series; use dynamic time warping.
Assumptions and requirements
- The subsequence length matches the pattern scale.
- Amplitude and offset differences should be ignored (z-normalisation).
- Series up to 20,000 points.
What the analysis reports
- Matrix profile and nearest-neighbour index
- Top motif pairs with distances
- Top discords with distances
- Profile plot
How to report it
The matrix profile (m = [value]) located the top motif at t = [value] and t = [value] (distance [value]) and the top discord at t = [value] (distance [value] of a possible [value]).
Related methods
How this method is validated
이 방법의 검증 근거
- Independent computation. 1 reference test compares the results with direct computations (formulas, enumeration or simulation).
독립 계산. 직접 계산(식·열거·모의실험) 대조 참조 시험 1건 통과.
Tolerances are relative differences (absolute differences for values near zero). R comparisons and reference tests are re-run before each release of the analysis engine.
허용오차는 상대 차이입니다(0 근처 값은 절대 차이). R 대조와 참조 시험은 분석 엔진을 배포할 때마다 다시 돌립니다.
Run Matrix Profile (Motifs and Discords) on Quorant
- Data you need
- a table (CSV or Excel) with a time variable and an outcome variable
- Price
- 400 credits for one analysis up to 10,000 rows (complexity level 3); larger or wider data costs more. Optional methodologist review: 1800 credits.
- Checking
- Compared with independent computations
- Before you pay
- A free pre-analysis diagnosis checks your data and gives an exact quote; nothing is deducted until you approve it.