Magnitude-Shape (MS) Plot for Functional Outliers
The magnitude-shape plot finds unusual curves among many measured over time. At every time point each curve's distance from the pointwise median is scaled by the median absolute deviation, keeping its sign. The average of this directional outlyingness over time measures how far a curve sits above or below the others (magnitude), and its variation over time measures how differently it is shaped. Curves far from the bulk of these two summaries are flagged by a robust distance.
크기-모양 그림은 시간에 따라 측정한 많은 곡선 가운데 특이한 곡선을 찾습니다. 각 시점에서 곡선이 시점별 중앙값에서 떨어진 정도를 중앙절대편차로 나누되 부호를 살립니다. 이 방향성 이상 정도의 시간 평균은 곡선이 다른 곡선보다 얼마나 위나 아래에 있는지(크기)를, 시간에 따른 변동은 모양이 얼마나 다른지를 나타냅니다. 두 요약값이 무리에서 멀리 떨어진 곡선을 로버스트 거리로 표시합니다.
Which curves are unusual in level or in shape compared with the rest?
수준이나 모양에서 나머지와 다른 곡선은 어느 것입니까?
For each curve you get its mean and variation of directional outlyingness, its robust distance from the bulk and whether it is flagged, plus the number of outlying curves.
When to use Magnitude-Shape (MS) Plot for Functional Outliers
- You have many curves, such as growth profiles, daily load curves or sensor traces.
- Outliers may differ in shape rather than in level.
- You want a simple two-number summary of each curve for screening.
When to use something else
- You want to test whether groups of curves differ in their mean function: use One-Way Functional ANOVA (L2-Norm, F-Type and Globalized Pointwise F Tests)
- Each unit is a single vector of variables rather than a curve: use Robust Multivariate Outlier Detection (MCD)
- You want to align curves before comparing them: use Curve Registration of Functional Data (Shift and Landmark)
Assumptions and requirements
- Curves observed on a common time range and densely enough for interpolation
- Most curves are regular
- Univariate curves (one outcome per time point)
What the analysis reports
- Mean directional outlyingness (MO) per curve
- Variation of directional outlyingness (VO) and FO per curve
- Robust squared distance and outlier flag
- Chi-square cut-off used
How to report it
The magnitude-shape plot flagged [value] of [value] curves as outliers (robust distance above the [value] cut-off).
Related methods
- Functional Principal Component Analysis (FPCA)
- Robust Multivariate Outlier Detection (MCD)
- Curve Registration of Functional Data (Shift and Landmark)
How this method is validated
이 방법의 검증 근거
- Independent computation. 1 reference test compares the results with SciPy, scikit-learn and direct computations (formulas, enumeration or simulation) at a stated tolerance of 1e-8.
독립 계산. SciPy·scikit-learn·직접 계산(식·열거·모의실험) 대조 참조 시험 1건 통과(허용오차 1e-8).
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 Magnitude-Shape (MS) Plot for Functional Outliers on Quorant
- Data you need
- a table (CSV or Excel) with a unit (entity) ID, a time variable and an outcome variable
- Price
- 250 credits for one analysis up to 10,000 rows (complexity level 2); larger or wider data costs more. Optional methodologist review: 1200 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.