Class IcSignificance
java.lang.Object
com.quantfinlib.microstructure.IcSignificance
Sampling error of an exponentially weighted correlation, used to gate
learned signals on significance rather than on the sign of a noisy IC.
An EWMA with weight α after k observations puts weight
w_j = α(1−α)^j on the j-th most recent one. Its Kish (1965)
effective sample size is (Σw)²/Σw²:
n_eff(k) = (1 − (1−α)^k)² · (2 − α) / (α · (1 − (1−α)^{2k}))
which tends to (2 − α)/α (about 199 at α = 0.01). Under the
null of zero correlation the sample correlation has standard error close
to 1/√n_eff. A true-zero component therefore shows a positive IC
half the time; gating on IC > 0 admits noise, gating on
IC/SE > z (z = 2 by default) admits it about 2.3% of the time.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final doubleDefault one-sided gate, about the 97.7th percentile of N(0,1). -
Method Summary
Modifier and TypeMethodDescriptionstatic doubleeffectiveSamples(double alpha, long samples) Kish effective sample size of an EWMA with weightalphaaftersamples.static doubleshrunkWeight(double ic, double alpha, long samples, double z) The IC shrunk toward zero byzstandard errors:max(0, IC − z·SE).static doublestandardError(double alpha, long samples) Null standard error of the EWMA correlation,1/√n_eff; +∞ before any sample.
-
Field Details
-
DEFAULT_Z
public static final double DEFAULT_ZDefault one-sided gate, about the 97.7th percentile of N(0,1).- See Also:
-
-
Method Details
-
effectiveSamples
public static double effectiveSamples(double alpha, long samples) Kish effective sample size of an EWMA with weightalphaaftersamples. -
standardError
public static double standardError(double alpha, long samples) Null standard error of the EWMA correlation,1/√n_eff; +∞ before any sample. -
shrunkWeight
public static double shrunkWeight(double ic, double alpha, long samples, double z) The IC shrunk toward zero byzstandard errors:max(0, IC − z·SE).
-