Record Class SignalEvaluator.QuantileReport
java.lang.Object
java.lang.Record
com.quantfinlib.alpha.SignalEvaluator.QuantileReport
- Enclosing class:
SignalEvaluator
public static record SignalEvaluator.QuantileReport(String factorName, double[] meanReturns, int[] counts, int quantiles, int dates)
extends Record
Mean forward return per score quantile — the picture behind the IC:
meanReturns()[0] is the average forward return of the
lowest-scored names, the last entry of the highest-scored, and
spread() is the top-minus-bottom long/short
return per period. A real factor shows MONOTONE quantile returns;
a factor whose spread lives entirely in one extreme quantile is a
tail bet wearing a factor costume — the IC alone cannot tell the
difference, which is why desks always plot both.-
Constructor Summary
ConstructorsConstructorDescriptionQuantileReport(String factorName, double[] meanReturns, int[] counts, int quantiles, int dates) Creates an instance of aQuantileReportrecord class. -
Method Summary
Modifier and TypeMethodDescriptionint[]counts()Returns the value of thecountsrecord component.intdates()Returns the value of thedatesrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefactorNamerecord component.final inthashCode()Returns a hash code value for this object.double[]Returns the value of themeanReturnsrecord component.intReturns the value of thequantilesrecord component.doublespread()Top-quantile minus bottom-quantile mean forward return.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
QuantileReport
public QuantileReport(String factorName, double[] meanReturns, int[] counts, int quantiles, int dates) Creates an instance of aQuantileReportrecord class.- Parameters:
factorName- the value for thefactorNamerecord componentmeanReturns- the value for themeanReturnsrecord componentcounts- the value for thecountsrecord componentquantiles- the value for thequantilesrecord componentdates- the value for thedatesrecord component
-
-
Method Details
-
spread
public double spread()Top-quantile minus bottom-quantile mean forward return. -
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
factorName
Returns the value of thefactorNamerecord component.- Returns:
- the value of the
factorNamerecord component
-
meanReturns
public double[] meanReturns()Returns the value of themeanReturnsrecord component.- Returns:
- the value of the
meanReturnsrecord component
-
counts
public int[] counts()Returns the value of thecountsrecord component.- Returns:
- the value of the
countsrecord component
-
quantiles
public int quantiles()Returns the value of thequantilesrecord component.- Returns:
- the value of the
quantilesrecord component
-
dates
public int dates()Returns the value of thedatesrecord component.- Returns:
- the value of the
datesrecord component
-