Class AlphaValidation.WalkForwardResult
java.lang.Object
com.quantfinlib.alpha.AlphaValidation.WalkForwardResult
- Enclosing class:
AlphaValidation
All folds plus the aggregate in-sample vs out-of-sample comparison.
-
Constructor Summary
ConstructorsConstructorDescriptionWalkForwardResult(List<AlphaValidation.Fold> folds, double meanInSampleIc, double meanOutOfSampleIc, double[] outOfSampleIcSeries, double outOfSampleTStat, double meanSelectionBias) Creates the value; array and collection arguments are copied. -
Method Summary
Modifier and TypeMethodDescriptiondoubleIn-sample IC net of the expected best-of-N luck.doubleOOS/IS efficiency, NaN when the in-sample IC is not positive.booleanfolds()folds.inthashCode()doublemeanInSampleIc(observation-weighted mean training IC of the winners).doublemeanOutOfSampleIc.doublemeanSelectionBias(observation-weighted mean of the folds' selection bias).doubleoutOfSampleIcSeries(int i) ElementiofoutOfSampleIcSeries(every test-window IC of the chosen candidates, in order).double[]A fresh copy ofoutOfSampleIcSeries.intLength ofoutOfSampleIcSeries.doubleoutOfSampleTStat(Newey-West t-stat of that series (automatic lag)).toString()
-
Constructor Details
-
WalkForwardResult
public WalkForwardResult(List<AlphaValidation.Fold> folds, double meanInSampleIc, double meanOutOfSampleIc, double[] outOfSampleIcSeries, double outOfSampleTStat, double meanSelectionBias) Creates the value; array and collection arguments are copied.- Parameters:
meanInSampleIc- observation-weighted mean training IC of the winnersmeanOutOfSampleIc- observation-weighted mean test IC (equal to the mean ofoutOfSampleIcSeries)outOfSampleIcSeries- every test-window IC of the chosen candidates, in orderoutOfSampleTStat- Newey-West t-stat of that series (automatic lag)meanSelectionBias- observation-weighted mean of the folds' selection bias
-
-
Method Details
-
folds
folds. -
meanInSampleIc
public double meanInSampleIc()meanInSampleIc(observation-weighted mean training IC of the winners). -
meanOutOfSampleIc
public double meanOutOfSampleIc()meanOutOfSampleIc. -
outOfSampleIcSeries
public double outOfSampleIcSeries(int i) ElementiofoutOfSampleIcSeries(every test-window IC of the chosen candidates, in order). -
outOfSampleIcSeriesLength
public int outOfSampleIcSeriesLength()Length ofoutOfSampleIcSeries. -
outOfSampleIcSeriesCopy
public double[] outOfSampleIcSeriesCopy()A fresh copy ofoutOfSampleIcSeries. -
outOfSampleTStat
public double outOfSampleTStat()outOfSampleTStat(Newey-West t-stat of that series (automatic lag)). -
meanSelectionBias
public double meanSelectionBias()meanSelectionBias(observation-weighted mean of the folds' selection bias). -
efficiency
public double efficiency()OOS/IS efficiency, NaN when the in-sample IC is not positive. Below about 0.5 the selection is mostly fitting noise. -
deflatedInSampleIc
public double deflatedInSampleIc()In-sample IC net of the expected best-of-N luck. -
equals
-
hashCode
-
toString
-