Class CalendarAnomalies.DayOfWeekProfile
java.lang.Object
com.quantfinlib.alpha.CalendarAnomalies.DayOfWeekProfile
- Enclosing class:
CalendarAnomalies
Per-day-of-week profile, indexed Monday = 0 … Sunday = 6. Days with
fewer than two observations report NaN t-stats and are not tested.
-
Constructor Summary
ConstructorsConstructorDescriptionDayOfWeekProfile(double[] meanReturn, double[] tStat, int[] count, double[] naiveTStat, boolean[] holmSignificant, int hacLag) Creates the value; array and collection arguments are copied. -
Method Summary
Modifier and TypeMethodDescriptionintcount(int i) Elementiofcount.int[]A fresh copy ofcount.intLength ofcount.booleaninthacLag()hacLag.inthashCode()booleanholmSignificant(int i) ElementiofholmSignificant(day survives Holm's correction across the tested days).boolean[]A fresh copy ofholmSignificant.intLength ofholmSignificant.doublemeanReturn(int i) ElementiofmeanReturn.double[]A fresh copy ofmeanReturn.intLength ofmeanReturn.doublenaiveTStat(int i) ElementiofnaiveTStat(iid t-stat (mean over sample-sd/√n)).double[]A fresh copy ofnaiveTStat.intLength ofnaiveTStat.toString()doubletStat(int i) ElementioftStat(Newey-West t-stat of each day's mean).double[]A fresh copy oftStat.intLength oftStat.
-
Constructor Details
-
DayOfWeekProfile
public DayOfWeekProfile(double[] meanReturn, double[] tStat, int[] count, double[] naiveTStat, boolean[] holmSignificant, int hacLag) Creates the value; array and collection arguments are copied.- Parameters:
tStat- Newey-West t-stat of each day's meannaiveTStat- iid t-stat (mean over sample-sd/√n)holmSignificant- day survives Holm's correction across the tested days
-
-
Method Details
-
meanReturn
public double meanReturn(int i) ElementiofmeanReturn. -
meanReturnLength
public int meanReturnLength()Length ofmeanReturn. -
meanReturnCopy
public double[] meanReturnCopy()A fresh copy ofmeanReturn. -
tStat
public double tStat(int i) ElementioftStat(Newey-West t-stat of each day's mean). -
tStatLength
public int tStatLength()Length oftStat. -
tStatCopy
public double[] tStatCopy()A fresh copy oftStat. -
count
public int count(int i) Elementiofcount. -
countLength
public int countLength()Length ofcount. -
countCopy
public int[] countCopy()A fresh copy ofcount. -
naiveTStat
public double naiveTStat(int i) ElementiofnaiveTStat(iid t-stat (mean over sample-sd/√n)). -
naiveTStatLength
public int naiveTStatLength()Length ofnaiveTStat. -
naiveTStatCopy
public double[] naiveTStatCopy()A fresh copy ofnaiveTStat. -
holmSignificant
public boolean holmSignificant(int i) ElementiofholmSignificant(day survives Holm's correction across the tested days). -
holmSignificantLength
public int holmSignificantLength()Length ofholmSignificant. -
holmSignificantCopy
public boolean[] holmSignificantCopy()A fresh copy ofholmSignificant. -
hacLag
public int hacLag()hacLag. -
equals
-
hashCode
-
toString
-