Class FamaMacBeth.Result
java.lang.Object
com.quantfinlib.alpha.FamaMacBeth.Result
- Enclosing class:
FamaMacBeth
-
Constructor Summary
ConstructorsConstructorDescriptionResult(double[] premia, double[] tStats, double interceptMean, double interceptTStat, int periodsUsed, double[] naiveTStats, int[] hacLags) Creates the value; array and collection arguments are copied. -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthacLags(int i) ElementiofhacLags(Bartlett lag used per factor).int[]A fresh copy ofhacLags.intLength ofhacLags.inthashCode()doubleinterceptMean(mean per-period intercept (should be near 0)).doubleinterceptTStat(its Newey-West t-stat).doublenaiveTStats(int i) ElementiofnaiveTStats(iid t-stats per factor, for comparison).double[]A fresh copy ofnaiveTStats.intLength ofnaiveTStats.intperiodsUsed(cross-sections that had enough assets).doublepremia(int i) Elementiofpremia(mean per-period premium per factor).double[]A fresh copy ofpremia.intLength ofpremia.toString()doubletStats(int i) ElementioftStats(Newey-West t-stat per factor).double[]A fresh copy oftStats.intLength oftStats.
-
Constructor Details
-
Result
public Result(double[] premia, double[] tStats, double interceptMean, double interceptTStat, int periodsUsed, double[] naiveTStats, int[] hacLags) Creates the value; array and collection arguments are copied.- Parameters:
premia- mean per-period premium per factortStats- Newey-West t-stat per factorinterceptMean- mean per-period intercept (should be near 0)interceptTStat- its Newey-West t-statperiodsUsed- cross-sections that had enough assetsnaiveTStats- iid t-stats per factor, for comparisonhacLags- Bartlett lag used per factor
-
-
Method Details
-
premia
public double premia(int i) Elementiofpremia(mean per-period premium per factor). -
premiaLength
public int premiaLength()Length ofpremia. -
premiaCopy
public double[] premiaCopy()A fresh copy ofpremia. -
tStats
public double tStats(int i) ElementioftStats(Newey-West t-stat per factor). -
tStatsLength
public int tStatsLength()Length oftStats. -
tStatsCopy
public double[] tStatsCopy()A fresh copy oftStats. -
interceptMean
public double interceptMean()interceptMean(mean per-period intercept (should be near 0)). -
interceptTStat
public double interceptTStat()interceptTStat(its Newey-West t-stat). -
periodsUsed
public int periodsUsed()periodsUsed(cross-sections that had enough assets). -
naiveTStats
public double naiveTStats(int i) ElementiofnaiveTStats(iid t-stats per factor, for comparison). -
naiveTStatsLength
public int naiveTStatsLength()Length ofnaiveTStats. -
naiveTStatsCopy
public double[] naiveTStatsCopy()A fresh copy ofnaiveTStats. -
hacLags
public int hacLags(int i) ElementiofhacLags(Bartlett lag used per factor). -
hacLagsLength
public int hacLagsLength()Length ofhacLags. -
hacLagsCopy
public int[] hacLagsCopy()A fresh copy ofhacLags. -
equals
-
hashCode
-
toString
-