qis.ModelLayerEwmaRegressionAttribution¶
- class qis.ModelLayerEwmaRegressionAttribution(periodic_returns, weights, regression_table, component_returns, annualised_components, annualised_alpha_covariance, parameter_covariance, freq, span, ewm_lambda, nobs, effective_nobs, hac_lags, confidence_level)[source]¶
Bases:
objectCurrent exponentially weighted model-layer regression attribution.
Unlike
ModelLayerEwmaAlphaAttribution, this is a descriptive endpoint regression, not a sequence of lagged out-of-sample beta estimates. One common set of geometric weights is used to estimate risk-, signal-, integration- and full-model alpha and beta. Bartlett HAC inference is based on the corresponding weighted regression scores, so each displayed alpha is the midpoint of its own confidence interval. The three component-alpha covariances are estimated jointly.- Variables:
periodic_returns (pandas.DataFrame) – Common-sample periodic model-layer log returns.
weights (pandas.Series) – Geometric regression weights, with the latest observation assigned weight one.
regression_table (pandas.DataFrame) – EWMA-WLS alpha, beta, fit and HAC inference by model layer.
component_returns (pandas.DataFrame) – Exact constant-beta log-return decomposition over the common sample.
annualised_components (pandas.Series) – Geometrically weighted annualised component means.
annualised_alpha_covariance (pandas.DataFrame) – Joint covariance of annualised risk, signal and integration alpha, including their cross-equation covariances.
parameter_covariance (pandas.DataFrame) – Joint periodic alpha/beta covariance for the observed layers.
freq (str) – Return and regression frequency.
span (int) – EWMA span in return periods.
ewm_lambda (float) – Geometric decay implied by
span.nobs (int) – Number of observations retained by the weighted regression.
effective_nobs (float) – Kish effective sample size of the geometric weights.
hac_lags (int) – Bartlett-kernel lag count used for inference.
confidence_level (float) – Two-sided normal-reference confidence level.
- Parameters:
periodic_returns (DataFrame)
weights (Series)
regression_table (DataFrame)
component_returns (DataFrame)
annualised_components (Series)
annualised_alpha_covariance (DataFrame)
parameter_covariance (DataFrame)
freq (str)
span (int)
ewm_lambda (float)
nobs (int)
effective_nobs (float)
hac_lags (int)
confidence_level (float)
- __init__(periodic_returns, weights, regression_table, component_returns, annualised_components, annualised_alpha_covariance, parameter_covariance, freq, span, ewm_lambda, nobs, effective_nobs, hac_lags, confidence_level)¶
- Parameters:
periodic_returns (DataFrame)
weights (Series)
regression_table (DataFrame)
component_returns (DataFrame)
annualised_components (Series)
annualised_alpha_covariance (DataFrame)
parameter_covariance (DataFrame)
freq (str)
span (int)
ewm_lambda (float)
nobs (int)
effective_nobs (float)
hac_lags (int)
confidence_level (float)
- Return type:
None
Methods
__init__(periodic_returns, weights, ...)Attributes