Bagplot (Bivariate Depth-Based Boxplot)
The bagplot is the two-variable version of the boxplot. It ranks points by Tukey halfspace depth, takes the deepest point (Tukey median) as the centre, draws a bag that holds about half of the points, inflates the bag three times to form a fence, and flags points outside the fence as outliers. Depths and depth regions are computed exactly.
백플롯은 상자그림을 두 변수로 넓힌 그림입니다. 점마다 튜키 반공간 깊이를 구해 가장 깊은 점(튜키 중앙점)을 중심으로 삼고, 점의 약 절반을 담는 가방을 그린 뒤 이를 세 배로 부풀린 울타리 밖의 점을 이상점으로 표시합니다. 깊이와 깊이 영역은 근사 없이 정확하게 계산합니다.
Where is the centre of my two-variable data, how spread out is the bulk, and which points are bivariate outliers?
두 변수 자료의 중심은 어디이고 대부분의 점이 얼마나 퍼져 있으며 어떤 점이 이변량 이상점입니까?
The method returns the Tukey median, the depth of every point, the bag and fence (with the depth level and interpolation used), the number of points in the bag, the area of the bag and loop, and a list of outlying points.
When to use Bagplot (Bivariate Depth-Based Boxplot)
- You want a robust, shape-following summary of two numeric variables without assuming normality.
- You need to flag bivariate outliers that look ordinary on each variable separately.
- You want to compare spread and skewness of two-variable clouds visually and numerically.
When to use something else
- You have one variable: use Adjusted Boxplot Outlier Detection (Medcouple)
- You have three or more variables: use Robust Multivariate Outlier Detection (MCD)
- You want a depth ordering in any dimension: use Convex Hull Peeling Depth
Assumptions and requirements
- Two continuous variables with few exact ties
- At least 10 points; for more than 400 points the bag and fence are built from a seeded subsample of 400 points
- Outlier flags are descriptive, not a formal test
What the analysis reports
- Tukey median and its depth
- Halfspace depth of each point
- Bag depth level, interpolation factor and points inside the bag
- Fence factor, outliers and loop area
How to report it
The bagplot placed the Tukey median at ([value], [value]); the bag held [value] points and [value] points lay outside the fence.
Related methods
- Adjusted Boxplot Outlier Detection (Medcouple)
- Robust Multivariate Outlier Detection (MCD)
- Convex Hull Peeling Depth
How this method is validated
이 방법의 검증 근거
- Independent computation. 2 reference tests compare the results with direct computations (formulas, enumeration or simulation).
독립 계산. 직접 계산(식·열거·모의실험) 대조 참조 시험 2건 통과.
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 Bagplot (Bivariate Depth-Based Boxplot) on Quorant
- Data you need
- a table (CSV or Excel) with predictor (feature) columns
- 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.