qis.compute_pa_excess_compounded_returns¶
- qis.compute_pa_excess_compounded_returns(returns, rates_data, first_date=None, annualize_less_1y=False)[source]¶
Compute annualized excess returns with geometric compounding.
The excess NAV starts at one on the last date before the first period with a known excess return, normally the first return date, and the per-annum return divides by the years elapsed from that same date. When
rates_datastarts after the first return date, the periods before its first quote have no excess return; they are excluded from both the compounding and the elapsed years, with a warning, rather than counted as flat.- Parameters:
returns (Series | DataFrame) – Simple return time series; each column is treated on its own history
rates_data (Series) – Risk-free rate time series (annualized)
first_date (Timestamp) – Inclusive date through which observed excess returns are set to zero
annualize_less_1y (bool) – Annualize periods <1 year
- Returns:
Array of annualized excess returns for DataFrame input, float for Series input. A column without any known excess return after its first date is missing
- Return type: