qis.generate_multi_portfolio_factsheet

qis.generate_multi_portfolio_factsheet(multi_portfolio_data, time_period=None, perf_params=PerfParams(freq='W-WED', freq_vol='W-WED', freq_skewness='ME', freq_drawdown='D', freq_reg='W-WED', freq_excess_return='W-WED', return_type=<ReturnTypes.LOG: 'Log'>, sharpe_convention=<SharpeConvention.PA: 1>, rates_data=None), regime_classifier=<qis.perfstats.regime_classifier.BenchmarkReturnsQuantilesRegime object>, regime_benchmark=None, backtest_name=None, heatmap_freq='YE', add_benchmarks_to_navs=False, figsize=(8.3, 11.7), group_data=None, add_group_exposures_and_pnl=False, add_strategy_factsheets=False, fontsize=5, recent_ra_perf_table_start_date=Timestamp('2020-12-31 00:00:00'), *, base_portfolio_id=0, add_performance_inference_sheet=True, alpha_inference=InterceptInference.BARTLETT_HAC, alpha_coverage=None, add_pairwise_inference_sheets=False, lookthrough_matrix=None, **kwargs)[source]

factsheet comparing several structurally different strategies, as a list of A4 figures.

For portfolios that are not variants of one another - different universes, different mandates - so the report compares outcomes rather than attributing differences to weights. Pass group_data when the universe is large: turnover and exposures are then reported by group instead of per instrument, which is the difference between a readable page and a hundred-line legend.

Parameters:
  • alpha_coverage (HoldingsAlphaCoverage | None) – Optional explicit tiny-weight/proxy policy for holdings alpha. None keeps strict coverage. Enabled policies append coverage/excluded-date audit pages without changing beta warm-up, Sharpe, page one or portfolio NAV.

  • alpha_inference (InterceptInference) – Primary alpha method for the unchanged 6K-test Holm family. Bartlett HAC is default; PREWHITENED_AR1 is opt-in. Alternate same-sample raw p-values are sensitivity only, outside Holm. Forwarded to all detail/embedded strategy pages; does not change Sharpe or page one.

  • base_portfolio_id (int) – Zero-based base position for inference, excluded from comparison rows. All differences are portfolio minus base; the first market benchmark is separately used for both holdings-alpha legs. Does not change any page-one calculation.

  • add_performance_inference_sheet (bool) – Add the default-on three-by-two inference overview after page one, at most six comparisons per page. Full/recent paired Sharpe and marginal holdings-alpha HAC intervals/p-values, plus whole-family Holm adjustments. Incomplete families retain raw results but no adjusted p-values. Also forwarded to appended standalone factsheets, preserving earlier kwargs behaviour.

  • add_pairwise_inference_sheets (bool) – Add one existing expanding/rolling paired diagnostics page per non-base portfolio after the overview. Default False. Detail-page p-values are raw, not Holm-adjusted; this option works independently of the overview flag.

  • lookthrough_matrix (DataFrame | None) – Optional static instrument-by-sleeve fractions. Supplied rows are finite, nonnegative and sum to one; omitted rows use group_data. None preserves categorical reporting. This is an accounting split.

  • multi_portfolio_data (MultiPortfolioData) – the portfolios to compare

  • time_period (TimePeriod) – reporting window. None uses the full common history

  • recent_ra_perf_table_start_date (Timestamp | None) – start of the second risk-adjusted performance table in appended strategy factsheets. Defaults to 31 December 2020; None uses the trailing year

  • perf_params (PerfParams) – annualisation, frequency and rate conventions for the statistics

  • regime_classifier (BenchmarkReturnsQuantilesRegime) – how benchmark returns are mapped to regimes for the conditional panels

  • regime_benchmark (str) – column driving the regime classification. None uses the first benchmark

  • backtest_name (str) – title of the report

  • heatmap_freq (str) – frequency of the periodic-returns heatmap

  • add_benchmarks_to_navs (bool) – include the benchmarks as additional lines in the performance panels

  • figsize (Tuple[float, float]) – page size in inches; the default is A4 portrait

  • group_data (Series) – asset-class label per instrument, indexed by instrument. Given, exposures and turnover are reported by group. More than ten groups are omitted from the regime-Sharpe panels with a warning

  • add_group_exposures_and_pnl (bool) – add the per-group exposure and P&L pages

  • add_strategy_factsheets (bool) – append a full single-strategy factsheet for each portfolio

  • fontsize (int) – base font size, small by default because a factsheet page is dense

  • **kwargs – plotting options, including asset_tail_count: 10 (default) or 20 assets per tail in detailed pages, with all holdings retained in calculations

Returns:

the pages, in order, ready for save_figs_to_pdf()

Return type:

List[Figure]