qis.plot_sharpe_difference_table¶
- qis.plot_sharpe_difference_table(multi_portfolio_data, base_portfolio_id=0, time_period=None, freq='ME', af=None, n_lags=3, ax=None, **kwargs)[source]¶
Draw a two-decimal HAC Sharpe comparison table and return its numeric data.
- Parameters:
multi_portfolio_data (MultiPortfolioData) – Portfolio collection; only its portfolio NAVs are compared.
base_portfolio_id (int) – Zero-based base portfolio position, omitted from the displayed rows.
time_period (TimePeriod | None) – Inclusive NAV window, with its first sampled NAV used as the baseline.
freq (str | None) – Sampling frequency; ME by default, None for native observations.
af (float | None) – Periods per year; required with freq=None, otherwise inferred from freq.
n_lags (int | None) – Bartlett truncation; defaults to 3 retained return observations. Explicit None uses the Sharpe test’s automatic lag rule.
ax (Axes | None) – Optional axes for composing the table into an existing report.
**kwargs – Display options forwarded to plot_df_table, including a custom title.
- Returns:
(figure, numeric table). Figure is None when ax is supplied. Float cells display two decimal places; numeric results retain precision. Counts display as integers. The default title identifies the base and actual common return window.
- Return type: