Ball Covariance Test of Independence
Ball covariance measures dependence between two variables (one or both may be multivariate) by comparing, for every pair of observations, the share of points that fall inside the ball around one observation in X and in Y jointly with the product of the separate shares. It is zero in the population exactly when the variables are independent, uses only the ordering of distances and needs no moment assumptions.
볼 공분산은 각 관측 쌍마다 한 관측을 중심으로 한 공 안에 X와 Y에서 함께 들어오는 점의 비율을 각각의 비율의 곱과 비교해 두 변수(다변량 가능) 사이의 의존성을 잽니다. 모집단에서 0이면 독립과 같고, 거리의 순서만 쓰므로 적률 가정이 필요 없습니다.
Are these two variables (or sets of variables) independent, including non-linear or non-monotone forms of dependence?
두 변수(또는 변수 묶음)가 비선형 관계까지 포함해 서로 독립인가요?
The method reports the squared ball covariance, the squared ball correlation (scaled to lie between 0 and 1) and a permutation p-value for the null hypothesis of independence.
When to use Ball Covariance Test of Independence
- The relation may be non-linear or non-monotone, such as a U shape.
- The data have heavy tails or outliers that distort moment-based measures.
- One side of the relation is a set of several variables.
When to use something else
- You only need a linear or monotone association: use Spearman Rank Correlation
- The sample has more than a few hundred rows: use Distance Correlation
Assumptions and requirements
- Independent pairs of observations
- Euclidean distance is meaningful for the variables (standardise variables on different scales)
What the analysis reports
- Squared ball covariance BCov^2
- Squared ball correlation BCor^2
- Permutation p-value
How to report it
A ball covariance test found dependence between dose and response, BCov^2 = [value], squared ball correlation = [value], p = [value] ([B] permutations).
Related methods
- Distance Correlation
- Rank-Based Dependence Tests (Chatterjee xi, Hoeffding's D)
- Bergsma-Dassios Sign Covariance (tau*) Test of Independence
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-12.
독립 계산. 직접 계산(식·열거·모의실험) 대조 참조 시험 1건 통과(허용오차 1e-12).
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 Ball Covariance Test of Independence on Quorant
- Data you need
- a table (CSV or Excel) with an outcome variable and predictor (feature) columns
- Price
- 600 credits for one analysis up to 10,000 rows (complexity level 4); larger or wider data costs more. Optional methodologist review: 2400 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.