Record Class FamaMacBeth.Result
java.lang.Object
java.lang.Record
com.quantfinlib.alpha.FamaMacBeth.Result
- Record Components:
premia- mean per-period premium per factortStats- time-series t-stat per factorinterceptMean- mean per-period intercept (should be ~0)interceptTStat- its t-stat (significant = unexplained returns)periodsUsed- cross-sections that had enough assets
- Enclosing class:
FamaMacBeth
public static record FamaMacBeth.Result(double[] premia, double[] tStats, double interceptMean, double interceptTStat, int periodsUsed)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionResult(double[] premia, double[] tStats, double interceptMean, double interceptTStat, int periodsUsed) Creates an instance of aResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.doubleReturns the value of theinterceptMeanrecord component.doubleReturns the value of theinterceptTStatrecord component.intReturns the value of theperiodsUsedrecord component.double[]premia()Returns the value of thepremiarecord component.final StringtoString()Returns a string representation of this record class.double[]tStats()Returns the value of thetStatsrecord component.
-
Constructor Details
-
Result
public Result(double[] premia, double[] tStats, double interceptMean, double interceptTStat, int periodsUsed) Creates an instance of aResultrecord class.- Parameters:
premia- the value for thepremiarecord componenttStats- the value for thetStatsrecord componentinterceptMean- the value for theinterceptMeanrecord componentinterceptTStat- the value for theinterceptTStatrecord componentperiodsUsed- the value for theperiodsUsedrecord component
-
-
Method Details
-
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. -
premia
-
tStats
-
interceptMean
public double interceptMean()Returns the value of theinterceptMeanrecord component.- Returns:
- the value of the
interceptMeanrecord component
-
interceptTStat
public double interceptTStat()Returns the value of theinterceptTStatrecord component.- Returns:
- the value of the
interceptTStatrecord component
-
periodsUsed
public int periodsUsed()Returns the value of theperiodsUsedrecord component.- Returns:
- the value of the
periodsUsedrecord component
-