Forecasting accuracy of machine learning and linear regression: evidence from the secondary CAT bond market
Abstract
EconStor is a publication server for scholarly economic literature, provided as a non-commercial public service by the ZBW.
Full text
Götze, Tobias; Gürtler, Marc; Witowski, Eileen Article — Published Version Forecasting accuracy of machine learning and linear regression: evidence from the secondary CAT bond market Journal of Business Economics Provided in Cooperation with: Springer Nature Suggested Citation: Götze, Tobias; Gürtler, Marc; Witowski, Eileen (2023) : Forecasting accuracy of machine learning and linear regression: evidence from the secondary CAT bond market, Journal of Business Economics, ISSN 1861-8928, Springer, Berlin, Heidelberg, Vol. 93, Iss. 9, pp. 1629-1660, https://doi.org/10.1007/s11573-023-01138-8 This Version is available at: https://hdl.handle.net/10419/312299 Standard-Nutzungsbedingungen: Die Dokumente auf EconStor dürfen zu eigenen wissenschaftlichen Zwecken und zum Privatgebrauch gespeichert und kopiert werden. Sie dürfen die Dokumente nicht für öffentliche oder kommerzielle Zwecke vervielfältigen, öffentlich ausstellen, öffentlich zugänglich machen, vertreiben oder anderweitig nutzen. Sofern die Verfasser die Dokumente unter Open-Content-Lizenzen (insbesondere CC-Lizenzen) zur Verfügung gestellt haben sollten, gelten abweichend von diesen Nutzungsbedingungen die in der dort genannten Lizenz gewährten Nutzungsrechte. Terms of use: Documents in EconStor may be saved and copied for your personal and scholarly purposes. You are not to copy documents for public or commercial purposes, to exhibit the documents publicly, to make them publicly available on the internet, or to distribute or otherwise use the documents in public. If the documents have been made available under an Open Content Licence (especially Creative Commons Licences), you may exercise further usage rights as specified in the indicated licence. https://creativecommons.org/licenses/by/4.0/
Vol.:(0123456789) Journal of Business Economics (2023) 93:1629–1660 https://doi.org/10.1007/s11573-023-01138-8 1 3 ORIGINAL PAPER Forecasting accuracy ofmachine learning andlinear regression: evidence fromthesecondary CAT bond market TobiasGötze1· MarcGürtler1 · EileenWitowski1 Accepted: 9 January 2023 / Published online: 4 March 2023 © The Author(s) 2023 Abstract The main challenge in empirical asset pricing is forecasting the future value of assets traded in financial markets with a high level of accuracy. Because machine learning methods can model relationships between explanatory and dependent variables based on complex, non-linear, and/or non-parametric structures, it is not surprising that machine learning approaches have shown promising forecasting results and significantly outperform traditional regression methods. Corresponding results were achieved for CAT bond premia forecasts in the primary market. However, since secondary market data sets have a panel data structure, it is unclear whether the results of primary market studies can be applied to the secondary market. Against this background, this study aims to build the first out-of-sample forecasting model for CAT bond premia in the secondary market, comparing different modeling approaches. We apply random forest and neural networks as representatives of machine learning methods and linear regression based on a comprehensive data set of CAT bond issues and across various forecasting settings and show that random forest forecasts are significantly more precise. Because the lack of transparency of machine learning methods may limit their applicability, especially for institutional investors, we show ways to identify important variables in the context of random forest price forecasting. Keywords Forecasting· Machine learning· Linear regression· CAT bond secondary market· Transparency JEL Classification C45· C53· C58· G12· G17· G22 We are grateful for suggestions and comments made by Julia Braun, Marvin Zöllner, our colleagues at the Department of Finance at Braunschweig Institute of Technology, and conference participants at the 2021 joint annual conference of the Operations Research Societies of Switzerland (SVOR), Germany (GOR e.V.) and Austria (ÖGOR), and the 2022 annual meeting of the German Insurance Science Association. * Marc Gürtler marc.guer[email protected] Extended author information available on the last page of the article
1630 T.Götze et al. 1 3 1 Introduction In the context of asset price forecasting, machine learning approaches have recently shown promising results, significantly outperforming the forecasting capabilities of traditional regression methods (Bianchi etal. 2021; Gu etal. 2020). While most studies focus on the stock market, there are only few papers that analyze bonds. Bianchi etal. (2021) compared different forecasting models to predict future bond excess returns. They showed that neural networks outperform penalized regression models as well as different regression tree models. Götze etal. (2020) and Makariou etal. (2021) forecast catastrophe (CAT) bond primary market premia and both show that random forests outperform linear regression models. In addition, Götze etal. (2020) established a neural network model, which was also outperformed by the random forest model in terms of forecasting accuracy. Compared to the primary market, a greater amount of information and possible explanatory determinants are available in the secondary market, such as the historical change in premia represented by momentum variables. In such an environment, it is unclear whether the results of the primary market studies are transferable to the secondary market. Against this background, the first objective of this study is to analyze price forecasting accuracies of traditional linear regression and selected machine learning methods in the CAT bond secondary market. In addition, this study contributes to the existing literature by providing the first out-of-sample prediction model for the CAT bond secondary market. Although machine learning methods are possibly superior to linear regression in modeling complex relationships, a major advantage of traditional linear regression over advanced machine learning methods lies in its transparency regarding the functional relationships between the (dependent) price variable and independent variables. Especially in the context of institutional investors or issuers, the transparency of the applied methods is of particular importance because of the regulatory requirements.1 Machine learning methods are often referred to as black boxes, which would contradict this requirement. In addition, especially in the field of machine learning, program codes (e.g., in R), which are made available on the internet by the programming community, are used. To check the implemented methods for plausibility, it must be clarified whether the variable selection made by the model appears plausible. Specifically, it is necessary to clarify which independent variables are of particular importance in forecasting the price variable, so that it is clear on which variables the forecast is based. Consequently, the second objective of this study is to determine the possibility of identifying relevant price influencing variables when applying machine learning methods. 1 For example, the European Insurance and Occupational Pensions Authority (EIOPA) motivates insurance firms to “strive to use explainable AI models” (European Insurance and Occupational Pensions Authority 2021,p. 8). For the banking sector, the Basel Committee on Banking Supervision emphasizes that risk management decisions that are “based entirely on the output of complex quantitative analysis (“black boxes”) may not result in effective and prudent decision-making” (Basel Committee on Banking Supervision 2013,p. 11).
1631 1 3 Forecasting accuracy ofmachine learning andlinear regression:… In the present study, we consider the CAT bond secondary market, analyze the forecasting performance of random forests and artificial neural networks as relevant representatives of machine learning methods, and compare them with the performance of traditional linear regression. CAT bonds can be regarded as capital marketbased reinsurance against natural disasters and represent an alternative to traditional reinsurance. The CAT bond market has increased continuously since its inception in the 1990s. Therefore, CAT bond pricing has become an important topic in the literature on insurance and asset pricing. The literature consists of a wide range of models that examine the relationships between CAT bond premia and relevant influencing factors based on traditional regression methods in the primary market (Lane 2000; Wang 2000, 2004; Galeotti et al. 2013; Braun 2016; Trottier etal. 2018). The only studies that compare traditional regression models and advanced machine learning methods (also related to the primary market) are Götze etal. (2020) and Makariou etal. (2021). However, compared with the primary market, CAT bond secondary market premia display significantly smaller uncertainty in the sense of conditional variance (given the available price information of the previous points in time).2 Consequently, besides the availability of more information due to the panel data structure compared to the primary market, the secondary market for CAT bonds is a low uncertainty environment for which it is still unclear whether the forecasting quality of machine learning methods exceeds the forecasting quality of traditional linear regression. In this respect, the CAT bond secondary market seems to provide an unexplored environment to study the forecasting performance of the procedures. The literature on the relevant factors influencing CAT bond premia in the secondary market is based on traditional linear regressions. Gürtler etal. (2016) conduct the first study in the secondary market of CAT bonds and show that their premia depend on different bond-specific and macroeconomic factors. Herrmann and Hibbeln (2021, 2022) examine the influence of seasonality and liquidity and Götze and Gürtler (2020) investigate the impact of sponsor characteristics on CAT bond premia in the secondary market. However, the identification and plausibility of the factors influencing CAT bond premia within the framework of machine learning methods are missing for both the secondary and primary markets, making these methods unsuitable so far, at least for the institutional sector, due to the lack of transparency. Our study is based on a data set comprising all public CAT bond issues conducted in the period between November 1997 and March 2018. The dependent variable is the monthly secondary market price from Aon Benfield between December 2000 and March 2018. The data set is completed using CAT-bond-specific, sponsor-spe- cific, and macroeconomic data. Furthermore, we use the monthly arrival frequencies for US hurricanes and European winter storms to design a measure of seasonality in the CAT bond market. On this basis, we develop the above-mentioned forecasting 2 The conditional variance of the present secondary market data set amounts to 0.0109, whereas the (conditional) variance of CAT bond premia in the primary market data set of Götze etal. (2020) is 0.0507. This result is also intuitively understandable, as at the time of issue no historical CAT bond price information is available, which entails a higher degree of uncertainty. Against this background, the conditional variance of primary market premia corresponds to unconditional variance.
1632 T.Götze et al. 1 3 models for CAT bond premia in the secondary market, which we test using a rolling sample forecast. The results show that random forest outperforms linear regression and artificial neural network in terms of the sum of squared errors (SSE). This result is confirmed by the Diebold–Mariano (DM) test, in which the difference in performance accuracy is statistically significant. Because we are concerned with the applicability of the best performing method, we pursue the second objective of the study only with the random forest method. Fortunately, approaches to detect variable importance already exist for the random forest. In our study, we used the “number of trees measure” and “node impurity decrease” to determine the importance of the explanatory variables for CAT bond premia. To compare these results with the results of a linear regression, we additionally developed a possibility to identify significant variables within the rolling sample architecture of the study. It turns out that the most important variables for the random forest essentially correspond to the significant variables of the linear regression. In this way, even the effect directions of the important variables can be identified via the linear regression coefficients. The remainder of this paper is organized as follows. Section2 describes the data set, including the sample selection approach, variables, and descriptive statistics. In Sect.3, we describe the model framework and introduce the modeling approaches used. Section4 presents the empirical analysis and out-of-sample results for the secondary market. In addition, we provide insights into the determination of the relevant explanatory variables in the random forest and present which variables are important in the specific case of the CAT bond secondary market. Section5 concludes the paper. 2 Data This section describes the data used to develop the CAT bond secondary market forecasting model. First, we describe the sample selection procedure. Second, the variables used in the empirical analysis are introduced. Third, descriptive statistics of the data are presented. 2.1 Sample selection The initial data set is based on 617 CAT bonds traded in the secondary market and issued between November 1997 and March 2018. The dependent variable in our analysis corresponds to CAT bonds’ secondary market premia, defined as yield spread over LIBOR, on a monthly basis which are available since December 2000. CAT bond-specific explanatory variables such as expected losses and issue volumes and terms are obtained from Aon Benfield3. Data on trigger mechanisms, insured 3 Aon is a reinsurance intermediary and capital advisor. It releases reviews of Insurance-linked Securities annually. See https:// www. aon. com/ reins urance/ thoug htlea dersh ip/ defau lt.
1633 1 3 Forecasting accuracy ofmachine learning andlinear regression:… peril types and locations are obtained from the Artemis Deal Directory4 and Aon Benfield. Data on the bonds’ sponsor are provided by Lane Financial LLC5 and macroeconomic data are extracted from Bloomberg and Thomson Reuters. To prepare the data set for subsequent analyses, all observations with missing or implausible data are excluded. The price of bonds that were labeled “distressed” follow the loss-estimation process, because a triggering event and most likely a default has occurred. Therefore, these bonds are excluded from the data set as of the point in time they became distressed. Furthermore, the analysis is restricted to CAT bonds with a time to maturity of at least half a year. The remaining data set consists of 537 bonds with 11,970 observations of premia. 2.2 Variables The set of variables included in the forecasting models is based on Braun (2016), Gürtler etal. (2016), Götze and Gürtler (2020) and Herrmann and Hibbeln (2022, 2021). We introduce bond-specific, sponsor-specific, macroeconomic, and seasonal variables, as described below. 2.2.1 Bond‑specific variables We include several bond-specific variables. Studies conducted on the primary market have shown, that the Expected Loss (EL) is the most influential determinant of the CAT bond premium (Galeotti etal. 2013; Braun 2016; Gürtler etal. 2016; Trottier etal. 2018). The EL of a CAT bond is calculated by a third-party risk modeling firm, e.g. AIR Worldwide6, as the average loss investors can expect over a given time period, divided by the amount of capital invested. In addition to the EL, we incorporate the Spread at Issue and the variables Bond Issue Volume and Total Issue Volume, which represents the natural logarithm of a bond’s issue volume or the total issue volume of all CAT bonds at the time of observation, respectively, and serve as a proxy for bond liquidity. A dummy variable Trigger Indemnity takes the value of one if the bond’s trigger type is indemnity, and zero otherwise. The variable Maturity captures the impact of a bond’s time to maturity at issuance on premia. Similarly, TTM measures the bond’s (remaining) time to maturity at the time of observation. To reflect the complexity of a CAT bond, we include the variables No. of Locations and No. of Perils to account for the number of different insured locations and the number of insured perils, respectively. In addition, we establish a series of dummy variables for different bond rating categories, peril types, and peril locations. 4 Artemis is a media service for news, analysis and data covering alternative risk transfer, Insurancelinked Securities as CAT bonds and non-traditional reinsurance. Detailed information can be found on https:// www. artem is. bm/. 5 Lane Financial LLC is a consulting firm with focus on the intersection of finance and reinsurance. It publishes reports on insurance and capital market developments, incorporating CAT bond information. For further information see http:// lanefi nanc ialllc. com/. 6 More information available on: https:// www. airworld wide. com/.
1634 T.Götze et al. 1 3 Following Gu etal. (2020), we incorporate a momentum factor. Momentum measures the velocity of price changes and is calculated by using the price differences for a fixed time window, as follows: where yit is the CAT bond premium of bond i at time t. Specifically, the j-month Momentum is positive if the premium of a CAT bond at time t is higher than its premium j months ago. Analogously, a decrease in the premium from time t−j to t leads to a negative momentum value. We consider 1-month, 2-month, 3-month, and 4-month momentums. 2.2.2 Sponsor‑specific variables Present studies show that sponsor characteristics influence CAT bond secondary market premia (Götze and Gürtler 2018, 2020). Consequently, we use the following sponsor-specific variables: Sponsor Diversification, defined as the number of different combinations of peril types and locations insured by CAT bonds of the same sponsor at the observed time and Sponsor Tenure, which describes the tenure of a sponsor (calculated as the difference between the point in time of the first occurrence of the sponsor and the respective observation point in time) and serves as a measure of the sponsor’s experience. The impact of sponsor type on premia is modeled by introducing dummy variables for the sponsor types of Reinsurer, Insurer, and Other. The dummy variable Sponsor Rating NIG takes the value of one for non-investment grade rated sponsors and zero for sponsors with an investment grade rating. Furthermore, we introduce two dummy variables Positive Rating Event and Negative Rating Event based on the sponsor ratings and their placement on the watch list. The variable Positive Rating Event takes a value of one, if (a) the sponsor is upgraded, (b) the sponsor is placed on the watch list for an upgrade, or (c) the sponsor is removed from the watch list for downgrade, and zero otherwise. The definition of Negative Rating Event is analogous. 2.2.3 Macroeconomic variables Macroeconomic variables are used to consider overall market development in our models. CAT bonds are a potential substitute for traditional reinsurance, suggesting that the prices for these two types of risk transfer instruments show some co-move- ment (Braun 2016; Gürtler etal. 2016). Therefore, we incorporate the annual relative change in the Guy Carpenter Global Property Catastrophe Rate-on-Line Reinsurance Price Index (Reins. Index), as described in more detail by Carpenter (2012). We use the change in the price index as a proxy for the reinsurance price cycle. We also include Corporate Credit Spread (Corp. Spread), which is based on the credit spread of US corporate bonds of different rating classes and maturities between one and three years, obtained from the Bank of America Merrill Lynch. The variable Corp. Spread is constructed by matching the spreads with bonds in an identical (1) j-month Momentumit =yit −yit−j,
1635 1 3 Forecasting accuracy ofmachine learning andlinear regression:… rating class.7 Furthermore, we observe the volume-weighted mark-to-market price (weighted price) of outstanding CAT bonds on the secondary market. We then determine the relative change in that price on a monthly basis and label our variable CAT Bond Index, which indicates the investor demand for CAT bonds. By including the Reinsurance Index and the CAT Bond Index, the impact of regulatory changes that may affect the relative attractiveness of CAT bonds is accounted in our models, as both variables are substitutes for risk transfer. In addition, both measures reflect the sponsors’ costs of alternative capital resources, reflecting the current market environment. Finally, we include the monthly returns on the S&P500 to consider equity market development. 2.2.4 Seasonality For the valuation of CAT bonds insuring hurricanes and winter storms, it is relevant to know how many hurricane or storm seasons fall in the time until maturity of the bond (see e.g. Götze and Gürtler (2020) and Herrmann and Hibbeln (2021)). This seasonality effect is particularly relevant for CAT bonds insuring US hurricanes and European winter storms. Furthermore, bonds that approach maturity, bonds with higher ELs, and single-peril bonds are more strongly influenced by seasonality. Thus, we construct two seasonality variables, considering these aspects. Analogous to Herrmann and Hibbeln (2021), we calculate two different seasonal EL variables for CAT bonds exposed to U.S. hurricanes and European winter storms, respectively. To construct the seasonality measure, we use data on the monthly arrival frequencies of U.S. hurricanes and European winter storms provided by AIR. The seasonally adjusted EL is then calculated based on the initial EL of bond i and monthly arrival frequencies8 of catastrophic events aPeril t ′ as follows: Equation (2) is calculated separately for the US Hurricane and European Winter Storm perils. TTMi,t describes the maturity term of bond i in years. Ti refers to the maturity date of bond i. The indicator function I[0,1](Perili) takes a value of one if the CAT bond insures against the respective peril (US hurricane or European winter storm), and zero otherwise, implying that if a bond does not insure US hurricanes or European winter storms, both seasonal EL variables take a value of zero. (2) EL Peril i,t=I[0,1](Perili)⋅ELi⋅ 1 TTM i , t ⋅ T i ∑ t � =t a Peril t� 7 This matching procedure is difficult for CAT bonds in our sample without rating, since a suitable corporate bond index that could be assigned to those bonds cannot be determined intuitively. Thus, we follow Götze and Gürtler (2018), who suggest that the risk characteristics of CAT bonds without a rating resemble those of “B”-rated bonds. Hence, the spreads of “B” corporate bonds are matched to CAT bonds without a rating. 8 According to Herrmann and Hibbeln (2022), we use the distribution of arrival frequencies for US Hurricanes and European Winter Storms modeled by AIR. In this way, each calendar month is assigned a number that describes the relative proportion of arrival frequency during a calendar year.
1636 T.Götze et al. 1 3 2.3 Descriptive statistics Table1 presents the descriptive statistics of the dependent and explanatory variables used in the analysis. All time-invariant variables (EL, Spread at Issue, No. of Perils, No. of Locations, Bond Issue Volume, Maturity, Sponsor type, and the dummy variables for Peril types and locations, bond rating classes, Multiperil, and Trigger Indemnity are reported at the issue level, whereas time-variant variables (seasonal ELs, Total Issue Volume, Sponsor Tenure, Sponsor Diversification, TTM, Momentum variables, the dummy variables for Sponsor Rating NIG, Positive Rating Events and Negative Rating Event, S&P 500, Corp. Spread, Reins. Index, CAT Bond Index) are reported at the observation level. The mean of the premium is 6.74% , which is almost three times greater than the mean of the EL. A bond has an average issue volume of USD 130.69 million and an average maturity of about three years. On average, a CAT bond insures 2 perils and 1.46 locations. Approximately 35% of CAT bonds in our data set contain an indemnity trigger. Most bonds insure perils such as Earthquakes (EQ) and Hurricanes (HU). The most prevalent peril location is North America (NA). The sponsor type is Reinsurer for 52% of the bonds, whereas the sponsor type is Insurer for 44% of the bonds. Approximately 43% of the CAT bonds have a “BB” rating. The sponsors in the data set have a mean Tenure of about nine years and their mean Diversification is 3.77 peril/location combinations. It is also noticeable that the EL variables and the Spread at Issue show a high correlation with the premium, which may indicate some relevance of the variables in explaining the premium. 3 Model description In this section, we explain how the forecast quality of the models is determined and how the specific models are implemented. First, we briefly introduce the model framework. Next, we introduce the models used. In this context, we also explain how the required hyperparameters for the respective models are selected. 3.1 Model framework As explained in the introduction, we consider the CAT bond secondary market because, unlike the primary market, it is subject to much less uncertainty in terms of lower conditional variance. Additionally, the secondary market data set exhibits a much larger sample size than the primary market data set and allows us to include additional explanatory variables that potentially affect the performance of the forecasting models. All considered models are fitted in-sample and then tested on an out-of-sample period. We fit and test all models in 16 different settings (in-sample/out-of-sample period length combinations) that differ in terms of the length of the in-sample period
1643 1 3 Forecasting accuracy ofmachine learning andlinear regression:… Table2 presents a summary of the hyperparameter values selected in this study. 3.4 Neural network model Neural networks have produced good forecasting results for various asset classes (Khandani etal. 2010; Mullainathan and Spiess 2017; Gu etal. 2020). In contrast, neural networks showed worse forecasting performance in predicting premia for CAT bonds in the primary market (see Götze etal. (2020)). For better understanding, we first describe the main elements of the neural network method.18 Analogous to the presentation of the random forest model, we consider the in-sample data set with k1 observations Xi=(yi,x 1 i,…,xpi) (i=1, …,k1) containing the dependent variable y and independent variables x1 ,..., xp . As in a linear regression, a class of functions f(X,𝔹) is considered, which depends on the parameter matrix 𝔹 . This parameter matrix is determined such that f(X,𝔹) optimally approximates the dependent variable y. More precisely, the neural network model consists of the following elements. 𝓁 -layer neural network An 𝓁 -layer neural network is a function f∶ℝp → ℝq , which is a composition of 𝓁 functions fj (j=1, …,𝓁) , where p is the dimension of the input X=(x 1 ,…,xp) (the independent variables) and q is the dimension of the output y:19 In this context, fj∶ℝp j−1→ ℝpj denotes the so-called j-th layer, where pj−1 is the input dimension of layer j and pj is the corresponding output dimension for all j=1, …,𝓁 implying p0=p and p𝓁=q . Furt her, f𝓁 stands for the output layer, whose application to the rest of the function chain leads to the output, that is, the estimation of y. Since the outputs of the “inner” functions f1 ,..., f𝓁−1 are not visible, these functions are called hidden layers. The number 𝓁−1 of hidden layers (or the so-called depth 𝓁 of the “deep” neural network) and the dimensions pj of the layer output (the so-called width of the layer) are hyperparameters that have to be prespecified. Design of the layer functions The layers are transformed affine functions of the form fj(Xj)=gj(𝛽 0 j+Bj⋅Xj) with Xj∈ℝp j− 1 the layer input, 𝛽 0 j∈ℝpj a constant vector (so-called bias) and Bj ∈ℝ p j ×p j− 1 a matrix of coefficients (so-called weights). gj∶ℝ → ℝ is a continuous, monotonically increasing function called the activation function. This function is applied element-wise to the output vector of the affine function. Typical activation functions are the logistic function, the hyperbolic tangent function, and the rectified linear unit (ReLU) function.20. f=f 𝓁 ◦...◦f 2 ◦f 1 , i.e. f(X)=f 𝓁 (...(f 2 (f 1 (X)))...)for X=(x 1 , ..., xp). 18 The following description is a function-oriented representation of a neural network that is inspired by Goodfellow etal. (2016), chapter6. 19 In the present study, we obviously have q=1 . 20 The name “activation function” becomes clear when considering the ReLU function f(z)=max{0, z} , according to which exceeding a threshold value leads to the “activation” of value z. In addition, it should be noted that the neural network model is equivalent to simple linear regression for linear activation functions. In this respect, a non-linear activation function is necessary to consider non-linearities in the model.
1644 T.Götze et al. 1 3 Connection to a neural network From the composition of several functions it is not immediately comprehensible why this should be an (artificial) neural network. In this context, the vector of each layer can be considered as a collection of neurons. Each vector component can be interpreted as a neuron in the sense that it receives inputs from other neurons, weights these inputs, determines an activation value, and passes this on as an output to other neurons. In the present case, information flows are always passed in one direction (i.e., from layer j−1 to layer j), and the resulting network is called a feedforward neural network. A visualization of such a network is shown in Fig.3. Fig. 1 Construction of a decision tree Fig. 2 Decision trees forecasts and random forest forecast Fig. 3 The j-th layer in a neural network
1645 1 3 Forecasting accuracy ofmachine learning andlinear regression:… Forecast procedure with a neural network First, we select the in-sample data set {(yi,x 1 i,…,xpi)|i=1, …,k 1 } . For a randomly given set of parameters 𝛽 0 j and Bj (j=1, …,𝓁) the forecast of yi is determined as yi=f 𝓁 (...(f 2 (f 1 (x 1 i,…,xpi))) for all i=1, …,k1 . As with the random forest method, we assess the forecast error based on the SSE, Subsequently, the parameter set 𝛽 0 j and Bj (j=1, …,𝓁) is adjusted to lead to the minimum prediction error: The minimum (10) is typically determined numerically. In this context, the gradientdescent procedure is a common numerical method. The necessary computation of the gradients is usually performed using the so-called backpropagation algorithm.21 To determine the minimum 𝔹∗ based on a starting matrix 𝔹0 , the gradient descent method generates a sequence of points 𝔹j according to the iteration rule where ∇SSENN(𝔹j) stands for the gradient of the error function and 𝜂j is a prespecified step size, the so-called learning rate. In this way, the parameter matrix 𝔹 is adjusted in the direction of the steepest descent of the error function. A termination condition for the iteration is a gradient lower than a prespecified threshold (i.e., the gradient is nearly zero). Finally, we apply the optimally tuned function f(X,𝔹∗) to predict yi given an out-of- sample realization Xi=(x1i,…,xpi) ( i∈{k1+1, …,k1+k2} ) of the independent variables vector according to yi=f(Xi,𝔹∗) . Hyperparameter choice for the neural network model In the following, we provide an overview of the hyperparameters introduced above that must be determined for a neural network and explain how we specify their respective values. The parameters to be tuned include the number of hidden layers, width of each hidden layer, learning rate, and gradient threshold. Furthermore, the activation function must be specified. Error threshold As mentioned above, the gradient descent method requires a threshold below which the gradient leads to termination of the gradient descent procedure. On the one hand, a (9) SSE NN = k 1 ∑ i=1 (yi−yi)2 . (10) 𝔹∗=(𝛽∗ 01 ,B∗ 1 ,…,𝛽∗ 0𝓁 ,B∗ 𝓁 )=arg min 𝛽0j∈ℝpj, Bj∈ℝpj×ℝpj−1, j= 1, … ,𝓁 (SSE NN ). (11) 𝔹j+ 1 =𝔹j+𝜂j⋅∇SSENN(𝔹j), 21 More information on the backpropagation algorithm can be obtained from Rumelhart etal. (1986).
1646 T.Götze et al. 1 3 low threshold value should be chosen so that the prediction errors are as small as possible. On the other hand, a low threshold value increases the running time of the neural network algorithm tremendously. In summary, the error threshold must be carefully selected considering two conflicting objectives, and depends on the dependent variable of the study. Since the CAT bond premium is a relative variable that should be predicted as accurately as possible (in a tolerable time), we choose a threshold of 10−4 . Number and width of hidden layers With respect to the running time, we abstain from tuning the number of hidden layers and use three hidden layers throughout all time periods of our rolling sample approach. This choice of three hidden layers has achieved good results in several studies (Shen etal. 2021; Gu et al. 2020). In contrast, to tune the width of each hidden layer (based on the respective in-sample data set), we use a grid search approach in which we pass through all width combinations (i,j,l)∈{1, 4, …, 34}×{1, 4, …, 28}×{1, 4, …, 16} for all three hidden layers. Activation function In the present approach, we use the logistic function g(x)=1∕(1+e−x) as the activation function, which is common and recommended (Hastie etal. 2017,p. 392). Training algorithm and learning rate The choice of a constant learning rate 𝜂j as described in the basic version of the gradient descent method often leads to a poor convergence to the minimum. Against this background, we use a variation of the basic version, the so-called resilient backpropagation of (Riedmiller and Rprop 1994). In this variant, the learning rate is dynamically adjusted for each dimension via an iterative procedure. For the iterations, two initial learning rates are randomly chosen. In the next iteration step, the preceding learning rate is multiplied by a high factor a or a low factor b depending on the sign of the gradient. Furthermore, to limit the resulting learning rate, an upper bound 𝜂max and a lower bound 𝜂min are given. Thus, instead of a constant learning rate as a hyperparameter, resilient backpropagation requires the specification of the learning rate factors a and b and the learning rate limits 𝜂max and 𝜂min . In the present study, we use the default parameters of (Fritsch etal. 2019): a=1.2 , b=0.5 , 𝜂min =10 −6 , and 𝜂max =0.1 . A summary of the selected hyperparameter values for both the random forest and neural network is presented in Table2. 4 Empirical analysis 4.1 Out‑of‑sample results andperformance evaluation This section presents the results of the empirical analysis. For the secondary market data set, Table3 shows the performance of the linear regression, random forest, and
1647 1 3 Forecasting accuracy ofmachine learning andlinear regression:… Table 2 Selection of hyperparameter values for random forest and neural network model Panel A Random forest: number of split variables Grid: {1, 2, …,p−pconst} OOS periods IS periods 1 year 2 years 3 years 4 years 1 month 8 14 14 14 36 36 35 36 2 months 3 11 17 18 38 37 38 38 3 months 8 15 14 15 37 40 38 38 4 months 8 11 16 15 37 36 38 36 Random forest: number of trees Grid: {2, 10, 50, 100, 300, 500, 700} Chosen value: 300 Neural network: number of neurons per hidden layer Grids for the three hidden layers: {1, 4,..., 34}, {1, 4,..., 28}, {1, 4,..., 16} 1 month 1, 1, 1 1, 1, 1 7, 4, 1 13, 4, 1 34, 28, 16 34, 28, 13 34, 28, 10 34, 28, 10 2 months 1, 1, 1 1, 1, 1 7, 1, 1 7, 4, 1 34, 28, 16 34, 28, 13 34, 28, 16 34, 28, 10 3 months 1, 1, 1 1, 1, 1 1, 4, 1 19, 4, 1 34, 28, 16 34, 28, 13 34, 28, 7 34, 28, 7 4 months 1, 1, 1 1, 1, 1 10, 4, 1 19, 4, 1 34, 28, 16 34, 28, 13 34, 28, 7 34, 28, 7
1648 T.Götze et al. 1 3 This table presents an overview over the chosen hyperparameter values for the random forest (RF) and the neural network (NN). Panel A gives an overview of the tuned hyperparameter values for the secondary market data set and Panel B shows those hyperparameter values that are chosen from the literature. The hyperparameters are tuned for every in-sample/out-of-sample period length combination. Therefore, the table presents the minimum (first line) and the maximum (second line) of the chosen hyperparameter values Table 2 (continued) Panel B Hyperparameter Hyperparameter value Random forest Node size 5 Neural network Error threshold 10 − 4 Activation function logistic function Training algorithm rprop+ Number of hidden layers 3
1649 1 3 Forecasting accuracy ofmachine learning andlinear regression:… Table 3 Out-of-sample performance on the secondary market data set This table reports the SSE of the out-of-sample estimation for the linear regression model (LR), random forest (RF), and neural network (NN). The RMSE is presented in parentheses. The results across all rolling sample periods are presented OOS periods IS periods 1 year 2 years 3 years 4 years LR RF NN LR RF NN LR RF NN LR RF NN Mean SSE (RMSE) in 10−2 1 month 2.19 1.33 11.76 2.68 1.36 6.15 2.59 1.51 9.01 2.76 1.57 4.28 (1.57) (1.18) (2.70) (1.76) (1.19) (2.48) (1.83) (1.27) (2.68) (1.91) (1.30) (1.66) 2 months 4.78 3.24 21.03 6.38 3.25 17.42 5.52 3.62 13.91 5.80 3.75 15.49 (1.70) (1.36) (2.99) (1.91) (1.36) (3.03) (1.91) (1.47) (2.75) (1.98) (1.50) (3.01) 3 months 7.51 4.94 41.73 7.08 4.83 22.40 8.07 5.37 64.21 8.57 5.63 23.53 (1.81) (1.43) (3.39) (1.78) (1.42) (3.02) (1.92) (1.52) (3.89) (2.00) (1.56) (3.15) 4 months 10.67 7.67 63.79 10.00 7.30 38.16 12.16 8.64 43.76 12.31 8.99 42.56 (1.86) (1.57) (3.89) (1.80) (1.51) (3.36) (2.03) (1.70) (3.55) (2.07) (1.74) (3.60)
1650 T.Götze et al. 1 3 neural network models in the out-of-sample forecast measured by the mean SSE.22 The first row (column) reports the in-sample (out-of-sample) periods of the rolling sample analysis. The results show that for the linear regression model, the combination of a one year in-sample period and a one month out-of-sample period yields the best forecasting result in terms of a mean SSE of 0.0219. The mean SSE increases with an increase in the out-of-sample period, which is not surprising as the uncertainty in the data also increases when extending the out-of-sample period. The mean SSE also increases when extending the in-sample period, which is possibly due to the fact, that less recent information (in the extended in-sample period), on average, provides less accurate estimates of future prices (in the out-of-sample period). In terms of mean forecasting performance, the random forest dominates the linear regression and neural network for each combination of in-sample and out-of-sample period lengths. Similar to the linear regression, the random forest also exhibits the lowest mean SSE of 0.0133 for the one-year in-sample/one-month out-of-sample forecasting constellation, and the SSE tends to increase with an increase in the insample period and out-of-sample period. Interestingly, the neural network behaves differently from the other two methods. The results show that for the neural network model, the combination of a four-year in-sample period and a one-month out-of-sample period yields the best forecasting result with a mean SSE of 0.0428. However, the mean SSE of the neural network does not exhibit a regular pattern when the in-sample period is increased. Consequently, the results do not allow any conclusions in terms of neural networks performing better with more input data. The results show that in all in-sample/out-of- sample period length combinations, neural networks perform worse than random forest and linear regression in terms of mean SSE. To assess the statistical significance of the performance differences, we follow Bianchi etal. (2021) and additionally consider the p-value of the one-sided DM test (Diebold and Mariano 1995) with the Harvey-Leybourne-Newbold correction (Harvey etal. 1997). Under the assumption that the random forest outperforms the linear regression model, we test the null hypothesis of no performance differences against the alternative hypothesis that random forest forecasts are more accurate than linear regression forecasts.23 We calculate the DM test for every in-sample/out-of-sample combination, defining h as the forecasting horizon in months and receiving multiple test statistics for longer out-of-sample periods. For the respective in-sample/out- of-sample combinations, we obtain p-values for the DM statistics and calculate the median over these p-values to present the results in Table4. The null hypothesis is rejected at the 5% level for 22 (out of 40) in-sample/out- of-sample period length combinations and even for 35 periods at the 10% level. The p-values tend to increase with longer forecasting horizons h for the different 22 In-sample results are available from the authors and can be provided upon request. 23 We also applied a DM test with the alternative hypothesis that the random forest outperforms the neural network. The DM test results in p-values below 0.05, strengthening the results shown in Table3 that the random forest outperforms the neural network significantly.
1651 1 3 Forecasting accuracy ofmachine learning andlinear regression:… in-sample/out-of-sample period length combinations, which suggests that random forest forecasts are more susceptible to increasing the forecasting horizon than linear regression forecasts. Thus, the DM test results are in line with the SSEs in Table3, which also indicate decreasing performance differences with increasing out-of- sample periods. Overall, the results show that the random forest forecasts not only appear to be more accurate in terms of mean SSE, but also significantly outperform the linear regression forecasts. As a recommendation for action in the context of forecasting CAT bond premia, it can be stated that, regardless of the considered market environment, the random forest method provides the significantly best forecasting results. To be able to use the “forecast winner” random forest in (institutional) practice, it still needs to be clarified how a certain transparency of the procedure can be achieved. This is the subject of the following subsection. 4.2 Variable importance As mentioned in the introduction, a central point of criticism of machine learning methods is the black-box nature, which contradicts usual transparency requirements that, e.g., regulators are demanding for institutional investors. To achieve transparency and interpretability of the random forest results, we use the available variable importance measures to describe the determinants of CAT bond premia identified by the random forest model. To assess the results, we compare the identified important variables with the variables that are significant (at the upper quartile) in the linear regression model. Specifically, we determine two measures of variable importance for each random forest model. First, we consider the number of trees measure, which describes the total number of trees in which a split occurs on a certain variable (Paluszynska etal. Table 4 Significance of Performance Differences between the Random Forest and Linear Regression Model on the Secondary Market Dataset This table reports the median p-value of the DM test with the alternative hypothesis that random forest model outperforms the linear regression model OOS periods IS periods 1 year 2 years 3 years 4 years 1 month (h = 1) 0.0446 0.0169 0.0159 0.0145 2 months (h = 1) 0.0336 0.0154 0.0167 0.0167 2 months (h = 2) 0.0902 0.0434 0.0334 0.0599 3 months (h = 1) 0.0368 0.0077 0.0079 0.0087 3 months (h = 2) 0.0995 0.0440 0.0275 0.0367 3 months (h = 3) 0.2194 0.1280 0.1368 0.0839 4 months (h = 1) 0.0258 0.0183 0.0191 0.0169 4 months (h = 2) 0.0817 0.0726 0.0334 0.0531 4 months (h = 3) 0.0927 0.1135 0.0813 0.0643 4 months (h = 4) 0.1312 0.0689 0.0819 0.0940
1652 T.Götze et al. 1 3 2020).24 Thus, a higher number of trees measure implies higher importance of a variable. Second, we analyze the node impurity decrease, which describes the total decrease in node impurity from splitting on a certain variable, averaged over all trees of the random forest. In this study, the decrease in node impurity is measured based on the difference between the SSE before and after splitting on a certain variable. A higher impurity decrease can be interpreted as a higher importance of the respective variable as it indicates a higher contribution to reducing SSE. To interpret the variable importance results, both the number of trees measure and node impurity decrease are averaged for each in-sample/out-of-sample period length combination. The results can be seen in Figs.4 and 5. In addition, to analyze variable importance from the linear regression results, we calculate the upper quartile of p-values for each variable and every in-sample/out-of-sample period length combination. The corresponding results are shown in Fig.6.25 Figure4 shows the results based on the number of trees measure. The literature does not provide a clear recommendation regarding when a variable can be considered important in terms of the number of trees measure relative to the number of trees built for training. However, for each forecast combination, we observe a certain group of variables that is used in (almost) every tree, before the number of trees measure decreases continuously across the variables that appear to be less relevant for the premium forecast. Because the literature does not specify a threshold for the number of trees measure above which a variable is considered important, we set a threshold of 292.5 out of 300 trees (i.e., 97.5 %) for this study. For the one-year in-sample period, the bond-specific variables Time to Maturity, Maturity, EL, both seasonal EL variables, Spread at Issue, all four Momentum variables, Bond Issue Volume, Total Issue Volume, Sponsor Tenure, and the macroeconomic variables Corporate Spread, CAT Bond Index, and S&P 500 exhibit a high importance in terms of the number of trees measure. These results complement existing studies using linear regression, showing that EL is the most influential variable in CAT bond premia (Galeotti etal. 2013; Gürtler etal. 2016; Trottier etal. 2018). Additionally, the high variable importance of the seasonality measures supports the linear regression results of Herrmann and Hibbeln (2021). The importance of the macroeconomic variables is in line with the results of Braun (2016), Gürtler etal. (2016), Götze etal. (2020). For the 2 year in-sample period, Fig.4 shows that the Reinsurance Index and Sponsor Diversification have high variable importance, which is consistent with results of Götze and Gürtler (2018, 2020). Neither the three- nor the four-year in-sample periods produce substantially new results. A minor difference compared to the shorter in-sample periods can be seen in the fact that the variables Number of Perils and Earthquake are considered as important for longer in-sample 24 To avoid confusion with the number of trees in the random forest, we always refer to the number of trees measure in the context of variable importance. 25 We only provide variable importance results for one month out-of-sample periods because the variable importance is measured on the fitted in-sample model and does not depend on the out-of-sample horizon. However, note that the in-sample periods slightly differ based on the respectively out-of-sample period, due to our rolling sample forecasting approach where each data sample is moved forward by the length of the out-of-sample data. The remaining plots are available from the authors and can be provided upon request.
1659 1 3 Forecasting accuracy ofmachine learning andlinear regression:… Braun A (2016) Pricing in the primary market for cat bonds: new empirical evidence. J Risk Insur 83(4):811–847 Breiman L (2001) Random forests. Mach Learn 45(1):5–32 Campbell JY, Thompson SB (2007) Predicting excess stock returns out of sample: can anything beat the historical average? Rev Financ Stud 21(4):1509–1531 Carayannopoulos P, Kanj O, Perez MF (2018) Pricing dynamics in the market for catastrophe bonds. Available at SSRN 3106496 Carpenter G (2012) Catastrophes, cold spots and capital. navigation for success in a transitioning market. Guy Carpenter & Company, New York Diebold FX, Mariano RS (1995) Comparing predictive accuracy. J Bus Econ Stat 13(3):253 European Insurance and Occupational Pensions Authority (2021) Artificial intelligence governance principles: towards ethical and trustworthy artificial intelligence in the european insurance sector. EIOPA Report Fritsch S, Guenther F, Guenther MF (2019) Package neuralnet. Training of Neural Networks. Recuperado de https:// cran.rproje ct. org/ web/ packa ges/ neura lnet/ neura lnet. pdf Galeotti M, Gürtler M, Winkelvos C (2013) Accuracy of premium calculation models for cat bonds—an empirical analysis. J Risk Insur 80(2):401–421 Goodfellow I, Bengio Y, Courville A (2016) Deep learning. MIT Press, Cambridge Götze T, Gürtler M (2018) Sponsor-and trigger-specific determinants of cat bond premia: a summary. Zeitschrift für die gesamte Versicherungswissenschaft 107(5):531–546 Götze T, Gürtler M (2020) Hard markets, hard times: on the inefficiency of the cat bond market. J Corp Financ 62:101553 Götze T, Gürtler M, Witowski E (2020) Improving cat bond pricing models via machine learning. J Asset Manag 21(5):428–446 Gu S, Kelly B, Xiu D (2020) Empirical asset pricing via machine learning. Rev Financ Stud 33(5):2223–2273 Gürtler M, Hibbeln M, Winkelvos C (2016) The impact of the financial crisis and natural catastrophes on cat bonds. J Risk Insur 83(3):579–612 Harvey D, Leybourne S, Newbold P (1997) Testing the equality of prediction mean squared errors. Int J Forecast 13(2):281–291 Hastie T, Tibshirani R, Friedman JH (2017) The elements of statistical learning: data mining, inference, and prediction. Springer series in statistics. Springer, New York, second edition, corrected at 12th printing 2017 edition Herrmann M, Hibbeln M (2021) Seasonality in catastrophe bonds and market-implied catastrophe arrival frequencies. J Risk Insur 88(3):785–818 Herrmann M, Hibbeln M (2022) Trading and liquidity in the catastrophe bond market. J Risk Insur (Forthcoming) Hyndman RJ (2014) Measuring forecast accuracy. Business forecasting: practical problems and solutions. Wiley, Amsterdam, pp 177–183 Khandani AE, Kim AJ, Lo AW (2010) Consumer credit-risk models via machine-learning algorithms. J Bank Financ 34(11):2767–2787 Lane M (2000) Pricing risk transfer transactions. Astin Bull 30(2):259–293 López OAM, López AM, Crossa J (2022) Multivariate statistical machine learning methods for genomic prediction. Springer, Berlin Makariou D, Barrieu P, Chen Y (2021) A random forest based approach for predicting spreads in the primary catastrophe bond market. Insur Math Econ 101:140–162 Mullainathan S, Spiess J (2017) Machine learning: an applied econometric approach. J Econ Perspect 31(2):87–106 Paluszynska A, Biecek P, Jiang Y (2020) randomforestexplainer: explaining and visualizing random forests in terms of variable importance Rapach DE, Strauss JK, Zhou G (2010) Out-of-sample equity premium prediction: combination forecasts and links to the real economy. Rev Financ Stud 23(2):821–862 Riedmiller M, Rprop I (1994) Rprop-description and implementation details Rumelhart DE, Hinton GE, Williams RJ (1986) Learning representations by back-propagating errors. Nature 323(6088):533–536 Shen Z, Yang H, Zhang S (2021) Neural network approximation: three hidden layers are enough. Neural Netw 141:160–173 Thornton DL, Valente G (2012) Out-of-sample predictions of bond excess returns and forward rates: an asset allocation perspective. Rev Financ Stud 25(10):3141–3168
1660 T.Götze et al. 1 3 Trottier D-A, Lai V-S, Charest A-S (2018) Cat bond spreads via hara utility and nonparametric tests. J Fixed Income 28(1):75–99 Wang SS (2000) A class of distortion operators for pricing financial and insurance risks. J Risk Insur 67(1):15–36 Wang SS (2004) Cat bond pricing using probability transforms. Geneva Papers: Etudes et Dossiers, Special Issue on “Insurance and the State of the Art in Cat Bond Pricing”, (278):19–29 Publisher’s Note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations. Authors and Affiliations TobiasGötze1· MarcGürtler1 · EileenWitowski1 Tobias Götze [email protected] Eileen Witowski e.wito[email protected] 1 Department ofFinance, Braunschweig Institute ofTechnology, Abt-Jerusalem-Straße 7, 38106Braunschweig, Germany