qis.compute_gaussian_portfolio_risk

qis.compute_gaussian_portfolio_risk(covariance, portfolio_weights, benchmark_weights, date, simulation)[source]

Compute Monte Carlo VaR, benchmark beta and TE from supplied covariance.

Parameters:
  • covariance (DataFrame) – Labelled asset covariance per unit of simulation horizon.

  • portfolio_weights (Series) – Finite, uniquely labelled fractional exposures.

  • benchmark_weights (Series) – Benchmark exposures in the same asset universe.

  • date (Timestamp) – Date of the supplied covariance; no as-of selection is performed here.

  • simulation (GaussianMonteCarlo) – Reusable QIS Gaussian Monte Carlo engine.

Returns:

Monte Carlo VaRs, their ratio, ex-ante beta, tracking error, portfolio and benchmark volatility, closed-form portfolio VaR and relative MC error. Risk measures inherit covariance units; VaR applies the configured horizon. A zero-variance benchmark makes beta and VaR ratio NaN.

Raises:

ValueError – For missing held risk, invalid weights or invalid covariance.

Return type:

dict[str, float]