qis.estimate_ewm_factor_model

qis.estimate_ewm_factor_model(asset_prices, factor_prices, freq='W-WED', span=26, mean_adj_type=MeanAdjType.NONE)[source]

Estimate linear factor model from price data.

Log returns at freq (first period dropped) are fitted with EwmLinearModel.fit using the full factor inversion and the default warm-up and mean seed.

Parameters:
  • asset_prices (Series | DataFrame) – Asset price time series.

  • factor_prices (Series | DataFrame) – Factor price time series.

  • freq (str) – Frequency for return calculation.

  • span (int) – EWM span for model estimation.

  • mean_adj_type (MeanAdjType) – Mean adjustment method.

Returns:

Fitted EWM linear model whose x and y hold the log returns.

Return type:

EwmLinearModel