Class SignalEvaluator.QuantileReport
java.lang.Object
com.quantfinlib.alpha.SignalEvaluator.QuantileReport
- Enclosing class:
SignalEvaluator
Mean forward return per score quantile:
meanReturns()[0] is the
lowest-scored names' average forward return, the last entry the
highest-scored. A real factor shows monotone quantile returns; a factor
whose spread lives in one extreme quantile is a tail bet.-
Constructor Summary
ConstructorsConstructorDescriptionQuantileReport(String factorName, double[] meanReturns, int[] counts, int quantiles, int dates, double[] spreadSeries, double spreadTStat) Creates the value; array and collection arguments are copied. -
Method Summary
Modifier and TypeMethodDescriptionintcounts(int i) Elementiofcounts.int[]A fresh copy ofcounts.intLength ofcounts.intdates()dates.booleanfactorName.inthashCode()doublemeanReturns(int i) ElementiofmeanReturns.double[]A fresh copy ofmeanReturns.intLength ofmeanReturns.intquantiles.doublespread()Top-quantile minus bottom-quantile mean forward return.doublespreadSeries(int i) ElementiofspreadSeries(per-date top-minus-bottom return).double[]A fresh copy ofspreadSeries.intLength ofspreadSeries.doublespreadTStat(Newey-West t-stat of the mean spread (automatic lag; the date grid does not overlap)).toString()
-
Constructor Details
-
QuantileReport
public QuantileReport(String factorName, double[] meanReturns, int[] counts, int quantiles, int dates, double[] spreadSeries, double spreadTStat) Creates the value; array and collection arguments are copied.- Parameters:
spreadSeries- per-date top-minus-bottom returnspreadTStat- Newey-West t-stat of the mean spread (automatic lag; the date grid does not overlap)
-
-
Method Details
-
factorName
factorName. -
meanReturns
public double meanReturns(int i) ElementiofmeanReturns. -
meanReturnsLength
public int meanReturnsLength()Length ofmeanReturns. -
meanReturnsCopy
public double[] meanReturnsCopy()A fresh copy ofmeanReturns. -
counts
public int counts(int i) Elementiofcounts. -
countsLength
public int countsLength()Length ofcounts. -
countsCopy
public int[] countsCopy()A fresh copy ofcounts. -
quantiles
public int quantiles()quantiles. -
dates
public int dates()dates. -
spreadSeries
public double spreadSeries(int i) ElementiofspreadSeries(per-date top-minus-bottom return). -
spreadSeriesLength
public int spreadSeriesLength()Length ofspreadSeries. -
spreadSeriesCopy
public double[] spreadSeriesCopy()A fresh copy ofspreadSeries. -
spreadTStat
public double spreadTStat()spreadTStat(Newey-West t-stat of the mean spread (automatic lag; the date grid does not overlap)). -
spread
public double spread()Top-quantile minus bottom-quantile mean forward return. -
equals
-
hashCode
-
toString
-