Depth-Depth (DD) Plot
The DD plot compares two multivariate samples by plotting every pooled observation at its depth with respect to the first sample against its depth with respect to the second. Identical distributions put the points near the diagonal; location, scale or shape differences give characteristic departures. The method adds the Liu-Singh quality index Q, which is one half under equal distributions, with its normal test and a permutation p-value.
DD 그림은 두 다변량 표본을 비교하기 위해 합친 모든 관측값을 첫 표본에 대한 깊이와 둘째 표본에 대한 깊이의 좌표에 찍습니다. 두 분포가 같으면 점들이 대각선 가까이 놓이고, 위치나 퍼짐, 모양이 다르면 특징적인 모양으로 벗어납니다. 분포가 같을 때 2분의 1이 되는 리우-싱 품질 지수 Q와 그 정규 근사 검정, 순열 p값을 함께 냅니다.
Do two multivariate samples come from the same distribution, and if not, is the difference mainly in location or in spread?
두 다변량 표본이 같은 분포에서 왔는지, 다르다면 위치 차이인지 퍼짐 차이인지 알고 싶습니다.
You get Q(F, G) and Q(G, F) with z statistics and p-values, a permutation p-value, the average and largest distance of points from the diagonal, and the observations that depart most.
When to use Depth-Depth (DD) Plot
- You compare two groups on several variables and want a graphical, distribution-free check.
- You suspect the groups differ in spread or shape, not only in means.
- You want a quality-index test of whether one sample is more dispersed than the other.
When to use something else
- You only need a test of equal mean vectors: use Hotelling's T-squared Test
- You want a general two-sample test with good power against any difference: use Energy Distance Test of Equal Distributions (Two- and k-Sample)
- You want to classify new observations: use Depth-Based (DD) Classification
Assumptions and requirements
- Independent samples
- Each sample large enough to estimate its depth function
- Halfspace depth is limited to two features
What the analysis reports
- Liu-Singh quality indices with z and p
- Permutation p-value
- Mean and maximum distance from the diagonal
- Observations departing most from the diagonal
How to report it
The DD plot gave Q(F, G) = [value] (z = [value], p = [value]); the mean distance from the diagonal was [value].
Related methods
- Depth-Based (DD) Classification
- Energy Distance Test of Equal Distributions (Two- and k-Sample)
- Hotelling's T-squared Test
How this method is validated
이 방법의 검증 근거
- Independent computation. 1 reference test compares the results with direct computations (formulas, enumeration or simulation) at a stated tolerance of 1e-10.
독립 계산. 직접 계산(식·열거·모의실험) 대조 참조 시험 1건 통과(허용오차 1e-10).
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 Depth-Depth (DD) Plot on Quorant
- Data you need
- a table (CSV or Excel) with predictor (feature) columns and a grouping 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.