Class AlphaReport.Attribution
java.lang.Object
com.quantfinlib.alpha.AlphaReport.Attribution
- Enclosing class:
AlphaReport
OLS attribution with standard errors.
-
Constructor Summary
ConstructorsConstructorDescriptionAttribution(double alphaPerBar, double[] betas, List<String> factorNames, double rSquared, double alphaStdError, double alphaHacStdError, double[] betaStdErrors, double[] betaHacStdErrors, int hacLag) Creates the value; array and collection arguments are copied. -
Method Summary
Modifier and TypeMethodDescriptiondoublealphaHacStdError.doublealphaPerBar(intercept: return per bar not explained by the factors).doublealphaStdError(its classical standard error).doubleNewey-West t-stat of the intercept.doublebetaHacStdErrors(int i) ElementiofbetaHacStdErrors(Newey-West standard errors of the betas).double[]A fresh copy ofbetaHacStdErrors.intLength ofbetaHacStdErrors.doublebetas(int i) Elementiofbetas.double[]A fresh copy ofbetas.intLength ofbetas.doublebetaStdErrors(int i) ElementiofbetaStdErrors(classical standard errors of the betas).double[]A fresh copy ofbetaStdErrors.intLength ofbetaStdErrors.booleanfactorNames.format()inthacLag()hacLag.inthashCode()doublerSquared()rSquared.toString()
-
Constructor Details
-
Attribution
public Attribution(double alphaPerBar, double[] betas, List<String> factorNames, double rSquared, double alphaStdError, double alphaHacStdError, double[] betaStdErrors, double[] betaHacStdErrors, int hacLag) Creates the value; array and collection arguments are copied.- Parameters:
alphaPerBar- intercept: return per bar not explained by the factorsalphaStdError- its classical standard erroralphaHacStdError- its Newey-West standard error athacLagbetaStdErrors- classical standard errors of the betasbetaHacStdErrors- Newey-West standard errors of the betas
-
-
Method Details
-
alphaPerBar
public double alphaPerBar()alphaPerBar(intercept: return per bar not explained by the factors). -
betas
public double betas(int i) Elementiofbetas. -
betasLength
public int betasLength()Length ofbetas. -
betasCopy
public double[] betasCopy()A fresh copy ofbetas. -
factorNames
-
rSquared
public double rSquared()rSquared. -
alphaStdError
public double alphaStdError()alphaStdError(its classical standard error). -
alphaHacStdError
public double alphaHacStdError()alphaHacStdError. -
betaStdErrors
public double betaStdErrors(int i) ElementiofbetaStdErrors(classical standard errors of the betas). -
betaStdErrorsLength
public int betaStdErrorsLength()Length ofbetaStdErrors. -
betaStdErrorsCopy
public double[] betaStdErrorsCopy()A fresh copy ofbetaStdErrors. -
betaHacStdErrors
public double betaHacStdErrors(int i) ElementiofbetaHacStdErrors(Newey-West standard errors of the betas). -
betaHacStdErrorsLength
public int betaHacStdErrorsLength()Length ofbetaHacStdErrors. -
betaHacStdErrorsCopy
public double[] betaHacStdErrorsCopy()A fresh copy ofbetaHacStdErrors. -
hacLag
public int hacLag()hacLag. -
alphaTStat
public double alphaTStat()Newey-West t-stat of the intercept. -
format
-
equals
-
hashCode
-
toString
-