PackageCovRegpy: Regularized covariance regression and forecasting inPython
Open Access
- 13 May 2024
- journal article
- research article
- Published by Cambridge University Press (CUP) in Annals of Actuarial Science
- Vol. 18 (2) , 474-508
Abstract
This paper will outline the functionality available in theCovRegpypackage which was written for actuarial practitioners, wealth managers, fund managers, and portfolio analysts in the language ofPython 3.11. The objective is to develop a new class of covariance regression factor models for covariance forecasting, along with a library of portfolio allocation tools that integrate with this new covariance forecasting framework. The novelty is in two stages: the type of covariance regression model and factor extractions used to construct the covariates used in the covariance regression, along with a powerful portfolio allocation framework for dynamic multi-period asset investment management.The major contributions of packageCovRegpycan be found on the GitHub repository for this library in the scripts:CovRegpy.py,CovRegpy_DCC.py,CovRegpy_RPP.py,CovRegpy_SSA.py,CovRegpy_SSD.py, andCovRegpy_X11.py. These six scripts contain implementations of software features including multivariate covariance time series models based on the regularized covariance regression (RCR) framework, dynamic conditional correlation (DCC) framework, risk premia parity (RPP) weighting functions, singular spectrum analysis (SSA), singular spectrum decomposition (SSD), and X11 decomposition framework, respectively.These techniques can be used sequentially or independently with other techniques to extract implicit factors to use them as covariates in the RCR framework to forecast covariance and correlation structures and finally apply portfolio weighting strategies based on the portfolio risk measures based on forecasted covariance assumptions. Explicit financial factors can be used in the covariance regression framework, implicit factors can be used in the traditional explicit market factor setting, and RPP techniques with long/short equity weighting strategies can be used in traditional covariance assumption frameworks.We examine, herein, two real-world case studies for actuarial practitioners. The first of these is a modification (demonstrating the regularization of covariance regression) of the original example from Hoff & Niu ((2012).Statistica Sinica, 22(2), 729–753) which modeled the covariance and correlative relationship that exists between forced expiratory volume (FEV) and age and FEV and height. We examine this within the context of making probabilistic predictions about mortality rates in patients with chronic obstructive pulmonary disease.The second case study is a more complete example using this package wherein we present a funded and unfunded UK pension example. The decomposition algorithm isolates high-, mid-, and low-frequency structures from FTSE 100 constituents over 20 years. These are used to forecast the forthcoming quarter’s covariance structure to weight the portfolio based on the RPP strategy. These fully funded pensions are compared against the performance of a fully unfunded pension using the FTSE 100 index performance as a proxy.Keywords
This publication has 67 references indexed in Scilit:
- Between DB and DC: optimal hybrid PAYG pension schemesEuropean Actuarial Journal, 2019
- Review of new trends in the literature on factor models and mutual fund performanceInternational Review of Financial Analysis, 2019
- Understanding the interplay between covariance forecasting factor models and risk‐based portfolio allocations in currency carry tradesJournal of Forecasting, 2018
- A five-factor asset pricing modelJournal of Financial Economics, 2015
- Multivariate GARCH models: a surveyJournal of Applied Econometrics, 2006
- A portfolio approach to the optimal funding of pensionsEconomics Letters, 2000
- Common risk factors in the returns on stocks and bondsJournal of Financial Economics, 1993
- Singular-spectrum analysis: A toolkit for short, noisy chaotic signalsPhysica D: Nonlinear Phenomena, 1992
- Principal Component Analysis1986
- The arbitrage theory of capital asset pricingJournal of Economic Theory, 1976