@Reference(authors="W. Hoeffding", title="A non-parametric test of independence", booktitle="The Annals of Mathematical Statistics 19", url="http://www.jstor.org/stable/2236021", bibkey="journals/mathstat/Hoeffding48") public class HoeffdingsDDependenceMeasure extends AbstractDependenceMeasure
References:
W. Hoeffding:
A non-parametric test of independence
The Annals of Mathematical Statistics 19:546–57
The resulting value is scaled by 30, so it is in the range [-.5;1]
.
Modifier and Type | Class and Description |
---|---|
static class |
HoeffdingsDDependenceMeasure.Parameterizer
Parameterization class.
|
Modifier and Type | Field and Description |
---|---|
static HoeffdingsDDependenceMeasure |
STATIC
Static instance.
|
private static double[] |
TABPOS |
private static double[] |
TABVAL |
Modifier | Constructor and Description |
---|---|
protected |
HoeffdingsDDependenceMeasure()
Constructor - use
STATIC instance. |
Modifier and Type | Method and Description |
---|---|
protected static <A,B> double[] |
computeBivariateRanks(NumberArrayAdapter<?,A> adapter1,
A data1,
NumberArrayAdapter<?,B> adapter2,
B data2,
int len)
Compute bivariate ranks.
|
<A,B> double |
dependence(NumberArrayAdapter<?,A> adapter1,
A data1,
NumberArrayAdapter<?,B> adapter2,
B data2)
Measure the dependence of two variables.
|
double |
toPValue(double d,
int n)
Convert Hoeffding D value to a p-value.
|
clamp, computeNormalizedRanks, discretize, index, ranks, ranks, size, size, sortedIndex
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
dependence, dependence, dependence
public static final HoeffdingsDDependenceMeasure STATIC
private static final double[] TABVAL
private static final double[] TABPOS
protected HoeffdingsDDependenceMeasure()
STATIC
instance.public <A,B> double dependence(NumberArrayAdapter<?,A> adapter1, A data1, NumberArrayAdapter<?,B> adapter2, B data2)
DependenceMeasure
A
- First array typeB
- Second array typeadapter1
- First data adapterdata1
- First data setadapter2
- Second data adapterdata2
- Second data setprotected static <A,B> double[] computeBivariateRanks(NumberArrayAdapter<?,A> adapter1, A data1, NumberArrayAdapter<?,B> adapter2, B data2, int len)
q[i] is the number of objects such that x[j] < x[i] and y[j] < y[i]
adapter1
- First adapterdata1
- First data setadapter2
- Second adapterdata2
- Second data setlen
- Lengthpublic double toPValue(double d, int n)
d
- D valuen
- Data set sizeCopyright © 2019 ELKI Development Team. License information.