Introducing LASSO-type penalisation to generalised joint regression modelling for count data
Abstract
EconStor is a publication server for scholarly economic literature, provided as a non-commercial public service by the ZBW.
Full text
van der Wurp, Hendrik; Groll, Andreas Article — Published Version Introducing LASSO-type penalisation to generalised joint regression modelling for count data AStA Advances in Statistical Analysis Provided in Cooperation with: Springer Nature Suggested Citation: van der Wurp, Hendrik; Groll, Andreas (2021) : Introducing LASSO-type penalisation to generalised joint regression modelling for count data, AStA Advances in Statistical Analysis, ISSN 1863-818X, Springer, Berlin, Heidelberg, Vol. 107, Iss. 1-2, pp. 127-151, https://doi.org/10.1007/s10182-021-00425-5 This Version is available at: https://hdl.handle.net/10419/286862 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) AStA Advances in Statistical Analysis (2023) 107:127–151 https://doi.org/10.1007/s10182-021-00425-5 1 3 ORIGINAL PAPER Introducing LASSO‑type penalisation togeneralised joint regression modelling forcount data HendrikvanderWurp1 · AndreasGroll1 Received: 8 January 2021 / Accepted: 6 October 2021 / Published online: 12 November 2021 © The Author(s) 2021 Abstract In this work, we propose an extension of the versatile joint regression framework for bivariate count responses of the R package GJRM by Marra and Radice (R package version 0.2-3, 2020) by incorporating an (adaptive) LASSO-type penalty. The underlying estimation algorithm is based on a quadratic approximation of the penalty. The method enables variable selection and the corresponding estimates guarantee shrinkage and sparsity. Hence, this approach is particularly useful in high-dimen- sional count response settings. The proposal’s empirical performance is investigated in a simulation study and an application on FIFA World Cup football data. Keywords Count data regression· FIFA world cups· Football penalisation· Joint modelling· Regularisation 1 Introduction Various scenarios with bivariate count data can be thought of, where the two outcomes are expected to depend on one another. In particular, the dependency between two outcomes often can be of a competitive nature. Jointly observed numbers of goals (or more generally, points) in a given football match; or sales numbers of two competing products like car brands in a given sales branch; or the observed count for red and white blood cells in a blood sample are examples where some form of dependency can be expected. Therefore, the inclusion of copula structures may be useful when statistical models are applied in such settings. The historical development of copula models in this context (and especially in sports settings) is diverse. In general, bivariate Poisson modelling approaches are well established and started without any form of dependency. For example, in the case of modelling football scores, independent Poisson distributions were used e.g. by Lee (1997), Karlis and Ntzoufras (2000), Dyte and Clarke (2000), * Hendrik van der Wurp vanderwur[email protected] 1 Department ofStatistics, TU Dortmund University, Dortmund, Germany
128 H.van der Wurp, A.Groll 1 3 Groll etal. (2015) or Ley etal. (2019). However, in recent years many different approaches have been proposed to include dependency. For example, in the context of football, Dixon and Coles (1997) were among the first to explicitly account for dependency between scores of competing teams by expanding the independent Poisson approach by an additional dependence parameter to adjust for certain under and overrepresented match results. An even more flexible approach to this is the usage of copulae, as a lot of different copula families can be applied to consider a wide range of different dependency structures. In football, a first specific copula, namely the bivariate Poisson distribution, was employed by Karlis and Ntzoufras (2003). Moreover, McHale and Scarf (2007) proposed alternative copula models with Poisson margins to model shots-for and shots-against. In general, for the use of copula models for count responses, see e.g. Nikoloulopoulos and Karlis (2010), Trivedi and Zimmer (2017) and the references therein. The Generalised Joint Regression Modelling (GJRM) infrastructure by Marra and Radice (2020), implemented in the GJRM add-on package for R, is a powerful tool for joint regression modelling. But to this point, no classical penalisation approaches for shrinkage of regression coefficient estimates and variable selection are available. In this work, we extend the existing GJRM infrastructure by allowing for a lasso-penalty (Tibshirani 1996; Friedman etal. 2010) and by this means add tools for variable selection and sparsity. The LASSO technique has already been successfully applied in the context of football. For example, in Groll and Abedieh (2013) a penalised generalised linear mixed model has been used for modelling and prediction of European championship match data, and in Groll etal. (2015), a similar LASSO model has been applied on FIFA World Cup data. An L 1 -penalised approach for Bradley-Terry- type models has also been proposed by Schauberger etal. (2017) on data for the German Bundesliga. Here, we will build upon these ideas and introduce L 1 -type penalisation to generalised joint regression modelling for count data, also with a specific emphasis on football applications. The remainder of the manuscript is structured as follows. In Sect.2, we give an overview about the general model specifications and introduce the LASSO-penalty and how it can be embedded into the framework. We investigate the penalised model’s performance in both a simulation study (Sect.3) and the real life situation of FIFA World Cup football data (Sect.4), before we conclude in Sect.5. 2 Methodology In this section, we give a brief overview of the basic methodological framework into which the proposed penalty approach is embedded. It is essentially a more compact version of Sect.2.1 in van der Wurp etal. (2020). Note that in the following all concepts are illustrated for the two-dimensional response case, but can principally easily be extended to higher dimensions.
129 1 3 Introducing LASSO‑type penalisation togeneralised joint… 2.1 Model structure andestimation approach Given a bivariate response of count data y i =(y i1 ,y i2 ) T , i=1, …,n, where some form of dependency is assumed and shall be taken into account (e.g. scores of two competing teams in sports like football or sales numbers of two competing products), the corresponding joint cumulative distribution function (cdf) F(⋅,⋅) of the two underlying discrete outcome variables Y1,Y2∈ℕ0 is given by with F1(⋅) and F2(⋅) denoting the marginal cdfs of Y1 and Y2 , respectively, realising values in (0,1) and C𝜃 ∶[0, 1] 2 →[0, 1 ] is a two-place copula function. C𝜃(⋅,⋅) does not depend on the marginal distributions but rather on its parameter 𝜃 that can be scalar- or vector-valued and controls the dependency strength, depending on the copula class chosen. A list of common copula classes implemented in GJRM can be found in Table1 of Marra and Radice (2019). The most important properties of copula classes as well as details on the most well-known copula families can be found in standard copula literature such as Nelsen (2006). The joint probability mass function (pmf) c𝜃(⋅,⋅) for a chosen copula class C𝜃(⋅,⋅) and discrete, integer-valued responses only exists on the two-dimensional integer grid and is expressed as Although several distributions suitable for count data are implemented in GJRM, here we focus on and use the notation of Poisson distributed marginals as it is deemed adequate for our application. The marginal distribution parameters are therefore 𝜆1 and 𝜆2 and are modelled by a set of covariate vectors, denoted by x1,x2 of length p1 and p2 , respectively. Covariates influencing the copula parameter 𝜃 , which for simplicity and notational convenience in the following is taken to be scalar, are collected in the vector x𝜃 of length p𝜃 . In general, x1,x2,x𝜃 can be of different lengths and may contain partly or completely the same set of covariates. The corresponding regression equations are where 𝜷(1),𝜷(2) and 𝜷(𝜃) are p1 -, p2 - and p𝜃 -dimensional vectors of regression effects, respectively. The marginal regressions (1) and (2) stem from the usual GLM- approach in Poisson regression, while g(𝜃) from (3) denotes a link function that is P (Y1≤y1,Y2≤y2)= C𝜃 ( P(Y1≤y1),P(Y2≤y2) ) =C𝜃(F1(y1),F2(y2)) , c 𝜃 (F 1 (y 1 ),F 2 (y 2 )) = C 𝜃 (F 1 (y 1 ),F 2 (y 2 )) − C 𝜃 (F 1 (y 1 −1),F 2 (y 2 )) −C 𝜃 (F 1 (y 1 ),F 2 (y 2 −1)) + C 𝜃 (F 1 (y 1 −1),F 2 (y 2 −1)) . (1) log (𝜆1)=𝜂1=𝛽 (1) 0 +x (1) 1 𝛽 (1) 1 +⋯+x (1) p1 𝛽 (1) p1 =(x (1) ) T 𝜷 (1), (2) log (𝜆2)=𝜂2=𝛽 (2) 0 +x (2) 1 𝛽 (2) 1 +⋯+x(2) p2 𝛽(2) p2 =(x(2))T𝜷(2) , (3) g (𝜃)=𝜂𝜃=𝛽 (𝜃) 0 +x (𝜃) 1𝜃 𝛽 (𝜃) 1𝜃 +⋯+x(𝜃) p𝜃 𝛽(𝜃) p𝜃 =(x(𝜃))T𝜷(𝜃) ,
130 H.van der Wurp, A.Groll 1 3 suitable for the chosen copula class C𝜃(⋅,⋅) (see Marra and Radice 2019). The vectors x(1) , x(2) x(𝜃) are subsets (not necessarily disjoint) of a complete set of covariates x of length d, with p1+p2+p𝜃=p≥d . It should be noted that the linear predictors from equations (1)–(3) are a substantial simplification of the possibilities allowed for in the GJRM framework. Defining the composed vector of coefficients 𝛽 𝛽 𝛽T ∶= ( (𝛽 𝛽 𝛽 (1) )T,(𝛽 𝛽 𝛽 (2) )T,(𝛽 𝛽 𝛽 (𝜃) )T ) , the log-likelihood of the copula regression model is given by where for i=1, …,n and j=1, 2 , we have The log-likelihood is maximised in GJRM by using a trust region algorithm from the trust package by Geyer (2015). The corresponding required first and second order derivatives are included in the GJRM framework and were provided by Marra and Radice (2020). Moreover, the GJRM infrastructure allows for the implementation of any quadratic penalty on (all or parts of) the regression coefficients 𝛽 𝛽 𝛽 of the form 1 2 𝛽 𝛽 𝛽 T S𝛽 𝛽 𝛽 , where S is a penalty matrix. This particularly includes the usage of splines to allow for nonlinear predictors. In this case, the smooth covariate effect is found in m corresponding entries of 𝛽 𝛽 𝛽 and S , respectively, where m depends on the number of spline basis functions. van der Wurp etal. (2020) tweaked 1 2 𝛽 𝛽 𝛽 T S𝛽 𝛽 𝛽 to incorporate a penalty on the differences between the marginal coefficient vectors 𝛽 𝛽 𝛽(1) and 𝛽 𝛽 𝛽(2) to force them to be equal, a feature that is specifically relevant in competitive settings such as sports applications. The next section discusses the specific construction of a suitable penalty matrix S to incorporate LASSO-type penalties. 2.2 Implementation of(adaptive) LASSO‑type penalisation The model’s aforementioned log-likelihood 𝓁(𝛽 𝛽 𝛽) can be penalised in different ways. A first step in this direction could be ridge regression (Hoerl and Kennard 1970) penalising the squared regression coefficients. However, for better interpretability and stability with respect to multicollinearity issues, we prefer a method that can perform variable selection. Hence, we aim to incorporate a shrinkage penalty via a standard LASSO approach. In general, the penalised likelihood can be written as with 𝜈 denoting a generic penalty strength parameter. Note that the sum in the penalty term in (5) typically does not contain any of the intercepts 𝛽(j) 0 ,j= 1, 2, and 𝛽(𝜃) 0 , as these usually shall not be penalised. (4) 𝓁 (𝜷)= n ∑ i=1 log { c𝜃 ( F1(yi1),F2(yi2) )}, F j(yij)=exp(− exp(𝜂ij)) y ij ∑ m=0 exp(𝜂ij) m m! . (5) 𝓁 p(𝛽 𝛽 𝛽)=𝓁(𝛽 𝛽 𝛽)−𝜈 ∑ l| 𝛽l |,
131 1 3 Introducing LASSO‑type penalisation togeneralised joint… To incorporate this into the GJRM framework, which only allows for quadratic penalty structures, we adapt the approach and notation presented by Oelker and Tutz (2017), where a generic penalty term |𝜉| is quadratically approximated via √ 𝜉2+ c . Their notation leads to separate penalty matrices for each term l∈{1, …,p} that shall be penalised, namely where 𝐚 T l 𝛽 𝛽 𝛽 [k] with 𝐚l∈ℝp can depict any linear transformation on the coefficient vector 𝛽 𝛽 𝛽 in the k-th iteration step of the underlying fitting procedure. The arbitrary small value of c>0 ( c=10−9 in our application and simulation) guarantees a denominator greater than zero. For the specific choice of the standard LASSO, the vectors 𝐚l are chosen such that 𝐚T 0 𝛽 𝛽 𝛽=𝛽 0 , 𝐚T 1 𝛽 𝛽 𝛽=𝛽 1 and so forth. Hence, the matrix in (6) is a matrix of zeros, which only contains a single non-zero value 1 ∕ √ (𝛽[k] l )2+ c on the corresponding diagonal element. The matrices 𝐀l for each variable that is supposed to be penalised are finally simply added up. This can also be written via where 𝐖 is a suitable chosen weight matrix such as with diag[…] denoting a diagonal matrix and “ ◦ ” the Hadamard matrix product. Note that intercepts are not penalised in this setting, which is e.g. reflected by the value of 0 in the first diagonal element. The strength of the LASSO penalty is controlled by the penalty parameter 𝜈 , which needs to be tuned. Note that covariates are standardised to a standard deviation of 1, which is necessary for a balanced and comparable penalisation. This weighting scheme leads to a penalisation of (6) 𝐀 l= 1 √( 𝐚T l 𝛽 𝛽 𝛽[k] ) 2+c ⋅𝐚l𝐚T l , (7) S =𝜈⋅𝐖=𝜈⋅ p ∑ l=1 𝐀l , (8) 𝐖 =diag ⎡ ⎢ ⎢⎢⎢⎣ 0, 1 �� 𝛽[k] 1 � 2 +c ,…,1 �� 𝛽[k] p � 2 +c ⎤ ⎥ ⎥⎥⎥⎦ ◦⎛⎜ ⎜⎜⎝ 00…0 01…0 ⋮⋱ 00…1 ⎞⎟ ⎟⎟⎠ , (9) 𝓁 p(𝛽 𝛽 𝛽)=𝓁(𝛽 𝛽 𝛽)− 1 2𝛽 𝛽 𝛽TS𝛽 𝛽 𝛽 =𝓁(𝛽 𝛽 𝛽)−1 2𝜈⋅ p ∑ i=1 𝛽2 i √( 𝛽[k] i ) 2 +c ,
132 H.van der Wurp, A.Groll 1 3 where the fraction is the approximation of 𝛽 2 i ∕ | 𝛽 [k] i| . Although this is not reducable, it could be argued that this is closely related to the absolute value |𝛽i| , which is the pursued penalisation from (5). The proposed LASSO approximation by Oelker and Tutz (2017) yields “almost identical” (see Chapter3.1 therein) results to the “actual” LASSO. As this approach is straightforward within the infrastructure of GJRM and generally much easier to implement than the actual LASSO (particularly in more complex settings), we deem it to be preferable in the present case. Typically, quadratically approximated LASSO is also faster with respect to computational complexity compared to actual LASSO, which involves numerical techniques as for example coordinate descent. 2.2.1 Group lasso forcategorical predictors For the case of categorical covariates, we follow the group lasso approach from Meier etal. (2008), leading to a group of coefficients being penalised and shrunk towards zero as a single entity (see also Oelker and Tutz 2017, and Groll et al. 2019). Assume that a set of j coefficients 𝛽i+1,…,𝛽i+j correspond to e.g. the respective columns in the design matrix of a dummy-encoded factor variable. With suitably chosen 𝐚l and 𝐀l , the corresponding entries in the weight matrix 𝐖 in (7) and (8) are then replaced by with vi denoting the group weight that corresponds to all coefficients belonging to the same group. It is given by where j refers to the size of the group 𝛽i+1,…,𝛽i+j (i.e. for a dummy-encoded factor variable to the number of levels minus one), and, hence, to the group’s complexity. In this case, for the covariates’ standardisation process we follow theMeier etal. (2008) standardisation technique for groups of categorical predictors. The corresponding block matrices 𝐗g from the design matrix 𝐗 are orthonormalised using a QR-decomposition. Finally, note that the coefficient estimates obtained by the LASSO fitting routine are transformed back in order to correspond to the original scale. (10) 𝐖 =diag ⎡ ⎢ ⎢⎢⎢⎣ …,1 �� 𝛽[k] i � 2 +c ,vi,…,vi,1 �� 𝛽[k] i+j+1 � 2 +c ,… ⎤ ⎥ ⎥⎥⎥⎦ ◦⎛⎜ ⎜⎜⎝ 00…0 01…0 ⋮⋱ 00…1 ⎞⎟ ⎟⎟⎠ , (11) v i= 1 � i+j ∑ r=i+1 � 𝛽[k] r � 2 +c ⋅ √ j ,
133 1 3 Introducing LASSO‑type penalisation togeneralised joint… 2.2.2 Adaptive weights Additionally, following e.g. Zou and Hastie (2006), multiplicative adaptive weights wl can be incorporated, which are based on the (inverse of) the unregularised maximum likelihood estimates, i.e. wl =1∕ | 𝐚T l 𝛽 𝛽 𝛽 ML| (see also Oelker and Tutz 2017). For ordinary lasso, this results in the weight corresponding to equation(8). In the case of group lasso with adaptive weights, the structure from equation (10) is modified by expanding the weights correspondingly. The group weights vi are then calculated via with 𝛽 𝛽 𝛽c,ML denoting the corresponding subvector ( 𝛽 i+1,ML ,…,𝛽 i+j,ML ) T of 𝛽 𝛽 𝛽ML and are hence identical for all coefficients corresponding to the same group. 2.3 Optimising thepenalty parameter Next, different approaches to optimise the penalty parameter 𝜈 are presented. Note that there exists a variety of alternatives, though no obvious best choice exists. First, the AIC from Akaike (1973) has been shown to be a viable option for copula models (see, e.g. Marra and Radice 2017 or van der Wurp etal. 2020). Second, the BIC (Schwarz 1978) can be suitable when a stronger penalisation of the number of coefficients estimated is preferable and, hence, if sparser models are desirable. Third and last, we implemented a K-fold cross validation (CV) approach (with K=10 in both the simulation and application chapters), which uses the unpenalised predictive external log-likelihood 𝓁( 𝛽 𝛽 𝛽 |ytest ,Xtest ) (exLLH) as a goodness-of-fit measure on the unseen test fold, where ytest denotes the response and Xtest the covariate design matrix from the left out fold and 𝛽 𝛽 𝛽 was estimated on all other folds used for training. The resulting fit of each of those approaches is observed together with the corresponding optimal value of 𝜈opt . In the following simulation study, those models and each approach’s tuning for 𝜈 are compared with regard to their performance, which is measured in two dimensions, the first being the SSE on the coefficients and the second being the true-positive and true-negative ratios of coefficients, indicating how many features and noise variables were identified as such (see Sect.3). 𝐖 =diag ⎡ ⎢ ⎢⎢⎢⎣ 0, 1 � 𝛽1,ML ��� 𝛽[k] 1 � 2 +c ,…,1 � 𝛽p,ML ��� 𝛽[k] p � 2 +c ⎤ ⎥ ⎥⎥⎥⎦ ◦⎛⎜ ⎜⎜⎝ 00…0 01…0 ⋮⋱ 00…1 ⎞⎟ ⎟⎟⎠ , v i= 1 �� 𝛽 𝛽 𝛽c,ML �� 2⋅ � i+j ∑ r=i+1 � 𝛽[k] r � 2 +c ⋅ √j
134 H.van der Wurp, A.Groll 1 3 To optimise 𝜈 , a suitable grid of values needs to be chosen. A possible pragmatic strategy is to start with an arbitrary small value of 𝜈 and increase the value stepwise until all penalised coefficients fall below a chosen threshold 𝜀lasso and are set to zero (see next section for more details). A suitable grid from 0 to the found value of 𝜈 is created, putting more emphasis (by using smaller steps) on the lower end. 2.4 Threshold "lasso forapproximative LASSO Note that due to the quadratic approximation of the penalty in equations (6) and (11), coefficient estimates cannot be set exactly to zero. Instead, coefficients that should be zero differ from zero in some late decimals. For this reason, one usually uses rounded coefficients, with the consequence that estimates very close to zero are simply set to zero, and the corresponding covariates are excluded from the model (see, e.g. Table1 in Schauberger and Tutz 2017, and Footnote 18 in Hambuckers etal. 2018). In both our simulations (Sect.3) and the application (Sect.4), a threshold of 𝜀lasso =0.01 turned out to be a good choice for these specific scenarios. As the approximative LASSO is using standardised covariates, the parameter of 𝜀lasso itself is quite easy to interpret. Our choice of 0.01 implies a change of 0.01 in the linear predictor if the corresponding covariate is changed by one standard deviation. Although, principally, the 𝜀lasso could also be tuned, reasonable choices corresponding to the aforementioned interpretation can be made in the context of the individual application. Our choice of 0.01 is both easy to interpret and yields satisfying results in both the application and the corresponding simulation (which was motivated by the application). However, as this parameter can also be seen as kind of a “second layer tuning parameter”, in future research one could think about more sophisticated choices, which lead to good results independent of the specific application at hand, such as e.g. choices based on certain quantiles of the unregularised maximum-likelihood estimates (in the spirit of the adaptive LASSO). This, however, is beyond the scope of the present work. 3 Simulation study In this section, we present a thorough simulation study to show the usefulness of our proposed penalisation approach. A selection of different setups, copula classes and dependency strengths will be investigated. 3.1 Setting We create covariates x1,…,x8 sampled from correlated Gaussian distributions (see Table 1), which are chosen to have an influence on one of the marginal parameters each. Additionally, we create noise variables z1,…,z30 of which each will be used in only one marginal regression approach and additional noise variables z31,…,z35 that will be assigned to both margins simultaneously. This is done to simulate settings where some variables can be assumed to have an influence on both margins at the same time and some do not. The groups (x1,x2,x3) and
141 1 3 Introducing LASSO‑type penalisation togeneralised joint… where the inclusion of 1 corresponds to the use of an intercept. All covariates are team-specific and denoted by (1) and (2) for the respective team, except for the variable Knockout. The copula parameter 𝜃 is only modelled via an intercept, meaning 𝜃 will be a fixed value for all matches. 4.2 Comparison ofpredictive performance This section presents six measures to investigate the predictive performance and is principally a shortened version of van der Wurp etal. (2020), as both the setting and the principal aim of the analysis were rather similar. As prediction of future matches here is the main objective, we focus on out-of- sample data to validate the models. We therefore incorporated a cross-validation approach. Each time four out of five World Cups were used to fit the model (including optimisation of 𝜈 from Sect.2.2). The left-out World Cup was then used to validate the resulting models in multiple dimensions. We take multiple measures into account to observe the quality of predictions. A natural candidate to evaluate the predictive performance of the models is to derive the (predictive log-)likelihood (exLLH) from equation(4) on all observations of the respective left-out World Cup. Closely related to this, we also calculate the Euclidean distance between observation (y1,y2) and prediction 𝜆 𝜆 𝜆i=( 𝜆 i1, 𝜆 i2) T . Note that 𝜆 𝜆 𝜆i=( 𝜆 i1, 𝜆 i2)T is the bivariate mean of the bivariate distribution for a single match i in a given copula model. The corresponding MSE can then be calculated via over a set of n matches. Alternatively, when it comes to modelling football matches, the three match outcomes win, draw and loss are also of particular interest. Hence, we also provide several performance measures that focus on these categorical outcomes. First, we calculate the resulting three-way probabilities 𝜋 il for the i-th match. The index l=1, 2, 3 indicates win, draw and loss from the first mentioned team’s perspective. Alternatively, these outcomes principally could have been also modelled directly by using models for categorical responses. Instead, we model the outcome in terms of goals (y1,y2) by decision to include more information. With 𝜋 il from above, the following measures can be applied: The rank probability score (RPS see, e.g. Schauberger and Groll 2018). For a given match i, let the dummy coding of the true result of win, draw, loss be denoted by Kronecker’s delta 𝛿il . In the case of three possible outcomes, the RPS is defined via Second, the multinomial likelihood (MLLH) is defined as MSE =1 n n ∑ i=1|| 𝐲i− 𝜆 𝜆 𝜆i || 2 2=1 n n ∑ i=1 (yi1− 𝜆i1)2+(yi2− 𝜆i2) 2 RPS i= 1 2 2 ∑ r=1( r ∑ l=1 𝜋 il −𝛿il )2 .
142 H.van der Wurp, A.Groll 1 3 which is essentially the predicted probability 𝜋 il for the true outcome. Third, the classification rate (CR) indicates how many matches have been classified into the three-way outcomescorrectly, assuming that the highest probability refers to a classification. It is calculated via The last dimension of predictive performance is the result of betting strategies for the FIFA World Cup 2018. With given predicted probabilities from our models and corresponding betting odds from bookmakers (taken from oddsportal.com), the expected return per bet can be calculated such as E[returnil]= 𝜋 il ⋅ oddsil −1 . The simplest possible betting strategy, to bet only on outcomes with a positive expected return and only one outcome per match, can be expanded by adding a threshold 𝜀 . Only bets with an expected return of >𝜀 should be placed in this case, indicating a more or less careful (depending on the choice of 𝜀 ) approach. Here, we simply used 𝜀=0 . 4.3 Results All calculations have been performed with adaptive weights and a Group LASSO approach for the factor covariates of the confederations. Before presenting results, we will give a short overview of the used benchmarks and models. The reference model, an independent Poisson approach, using two Poisson distributions with no dependence structure at all, was used as the most simple benchmark. Another benchmark model accounts for the copula structure and is the standard approach via GJRM. van der Wurp etal. (2020) improved these results by incorporating a novel penalty to penalise the differences between corresponding marginal coefficients, which can be assumed to be equal. Due to the computational intensity of the CV approach, we only focus on the promising copula classes, namely Frank (F), which already performed well in prior research. First, the GJRM with LASSO penalty structure from Sect.2.2 is applied and evaluated. Second, we combine this penalty with the one from van der Wurp etal. (2020) to allow for general sparsity and the assumption of equal marginal coefficients at the same time. For the LASSO penalty, multiple tuning approaches for the penalty parameter 𝜈 are used, namely AIC, BIC and the predictive log-likelihood (exLLH). Other CV-based tuning approaches (e.g. CV-measures on the three-way probabilities like RPS, multinomial likelihood and classification rate) could generally also easily be implemented. But before going into detailed results, we will present a short overview about the model’s properties in the regularisation context, showing LASSO path plots and how the presented optimisation approaches for 𝜈 from Sect.2.3 are deciding on penalty strengths. MLLHi =𝜋 𝛿 i1 i1 𝜋 𝛿 i2 i2 𝜋 𝛿 i3 i3, CR i =1(y i =arg max l∈{1,2,3} (𝜋 il )) .
143 1 3 Introducing LASSO‑type penalisation togeneralised joint… While passing through the 𝜈 -grid, the estimation process is given a vector of zeroes as starting values when using the LASSO penalty only. However, when both penalties are active simultaneously, the previous estimates are given as starting values for the next 𝜈 -step. In both our application and simulations, this yielded best results. 4.3.1 LASSO results andproperties To create the exemplary plots and to show the influence of 𝜈 , we use the full dataset of all five World Cups from 2002 to 2018 and the Frank copula class. The resulting path plots are depicted in Fig.4. The penalty’s quadratic properties lead to superlinear growth in coefficients 𝛽i for decreasing 𝜈 . For better readability, it may be advised to show results on the index of 𝜈 instead. ‘Wiggly’ paths (paths that are not increasing monotonously from right to left) are the result of substantial multicollinearity and correlations and are expected in real life data. The tuning for 𝜈 was performed with AIC, BIC and the cross validated predictive log-likelihood. In all applications related to this dataset, tuning by BIC results in the highest penalty strength, usually yielding a very sparse model, often simply the intercept model (see also Fig.4). Tuning by AIC results in the least penalised models, often rather close to unregularised ML estimation. Third, tuning by the cross validated predictive loglikelihood yields models in between, offering a compromise. As prediction strength is deemed important in this setting, we deem this to be the most sensible approach. Figure5 depicts the course of the predictive log-likelihood. The very common structure of lower values for a strong penalty (reading from the right end) that increase for a decreasing penalty strength is clearly visible. And at the left end (small 𝜈 values), the model enters the area of overfitting, resulting in a decreasing likelihood. The AIC curve (depicted in Fig.6) has roughly the expected structure as well. The uptick in increase in degrees of freedom (dfs; here estimated by the number of non-zero coefficients, see also top graph in Fig.6) for the smallest values of 𝜈 manages to overcome the increase of likelihood, resulting in a slightly increased AIC close to the ML estimation. The AIC yields the most complex model. The BIC, on the other hand, prefers stronger penalised models. In all applications to this data set, optimising the BIC actually coincided with minimising the dfs, resulting in the mere intercept model. As discussed earlier, we deem the predictive log-likelihood to be the most sensible approach. This is corroborated by the results from Fig.6. 4.3.2 Prediction results The results for our cross-validation-like approach cycling through all five tournaments can be found in Table3. Rows 1 to 3 are the updated results from van der Wurp etal. (2020), improving the model by first incorporating a (in this scenario rather weak) copula structure and then penalising the differences between marginal coefficients. The small differences between row 1 and 2 indicate that the Frank copula structure is only a small improvement, if at all, in this specific setting.
144 H.van der Wurp, A.Groll 1 3 By extending these approaches with a LASSO penalty, we were able to achieve further improvements regarding the predictive performance measures. Row 4 of Table3 shows a strongly improved MSE and predictive log-likelihood compared to the unpenalised model from row 2. In this application, the CV approach seems superior compared to the AIC and BIC equivalents. We deem this is the most sensible tuning procedure if prediction strength is one of the main goals. Additionally, we focus on the results for MSE and predictive log-likelihood instead of the other measures, as they rely on the three-way probabilities and observations, which the model itself does not take into account. It is notable that if coefficients are forced to be equal (row 3) this yields roughly the same improvements as the LASSO model from row 4. The combination of both approaches, however, which is easily obtained with our extensions to the GJRM infrastructure, yields no further improvements (row 7) but performs decent as well with regard to all measures. As the resulting model (row 7) might be more sparse compared to the LASSO-only version (row 4), due to the vectors of coefficients being equal between the margins, we deem both models to be potential winners with a high value regarding interpretability. By no means, this implies that the penalties Fig. 4 LASSO path plots depending on the penalty strength 𝜈 (left) and (for better readability) by the index points of our 𝜈 -grid (right). The vertical marks are the chosen optimal penalty parameters by internal AIC, predictive log-likelihood and internal BIC, left to right in that order. Intercepts paths are not included, as they are not penalised Fig. 5 Curve for predictive log-likelihood (exLLH) in cross validation, depending on 𝜈 (left) and the index points of our 𝜈 -grid (right), summed up across all observations and folds
145 1 3 Introducing LASSO‑type penalisation togeneralised joint… should be combined in general. It is easy to imagine settings where both penalties are suitable and where only one of them is. As we use the application mostly for illustrative purposes, we abstain from interpreting the obtained estimates in detail. The model’s coefficients can be found in Table4 for the model with both penalties from row 7 and in Table6 in the appendix for the LASSO-only model from row 4. Due to substantial multicollinearities and correlations the coefficients need to be interpreted with caution. The missing coefficient for being the current titleholder (despite France’s miserable performance in 2002, Italy’s in 2010, Spain’s in 2014 and of course Germany’s in 2018) is noted as a tongue-in-cheek remark. Interestingly, in the LASSO-model (see Table6 in the appendix), the titleholder’s curse can be found, but only for the first named team. As we swapped the teams randomly, this is considered to be an artefact and a prime example for the usefulness of both penalties combined. Some other coefficients are quite intuitive, like the negative influence of a match being a knockout-game (bad teams already dropped out at this phase of the tournament) or the negative influence of the FIFA rank (high numerical values indicate bad ranked teams). 4.4 Stage‑wise prediction ofFIFA world cup 2018 To demonstrate possible prediction approaches, we predicted the FIFA World Cup of 2018 in each stage. The group stage of 48 matches was predicted using the four Fig. 6 Curves for degrees of freedom (top row), AIC (2nd row) and BIC (bottom row), depending on 𝜈 (left) and the index points of our 𝜈 -grid (right)
146 H.van der Wurp, A.Groll 1 3 previous tournaments and then added to the training data set to predict the round of 16, continuing this procedure throughout the tournament. The final match was grouped together with the match for the 3rd place. The results can be found in Table5. This corroborates the results from before. In a purely predictive setting, both penalty structures improve the quality of predictions in terms of MSE and predictive log-likelihood. The other measures are based on the three-way-outcome and are not directly taken into account in the fitting process of the model. Especially the betting results are to be taken cautiously, as these are extremely reliant on single events, e.g. South Korea’s win against Germany with bookmaker’s odds of 19.2. All penalties yield a visible improvement in prediction. 5 Conclusions In this work, we proposed and incorporated LASSO penalties into the GJRM framework used to model bivariate count data responses with a copula structure. We also included adaptive weights into the estimation scheme and, additionally, implemented a group LASSO methodology for the handling of categorical predictors. The proposed approach adds previously missing regularisation in this context and is able to provide some control over sparsity. We investigated the penalty’s performance in a simulation study and showed its usage in a real life data set of FIFA World Cup matches. The simulation results are pretty clear: If some variables are expected to be noise, the LASSO penalty can be used to identify relevant model features and detect noise variables. It clearly outperforms the corresponding unpenalised models for all investigated copula classes. Both the AIC the BIC are reasonable choices for tuning the LASSO penalty strength. Additionally, we identified a cross validation approach, which is based on the predictive out-of-sample log-likelihood, as a sensible compromise between the very sparse BIC-results and the barely penalised AIC-results. One aspect that turned out to be problematic in the present application was the presence of substantial multicollinearity among the covariates. Hence, in future work the Table 3 Results for all six performance measures and a selection of models MSE and predictive log-likelihood (exLLH) correspond to the original response, while RPS, predictive multinomial log-likelihood (MLLH), classification rate and betting (gains relative to sum of stakes) correspond to measures on the three-way probabilities Cop Penalty Tuner MSE exLLH RPS MLLH Cl. rate Betting 1 – – – 2.9829 −187.0996 0.2012 0.4011 0.5250 0.0623 2 F – – 3.0154 −187.2698 0.2008 0.4086 0.4969 0.0959 3 F Equal – 2.8191 −183.7188 0.1990 0.4007 0.5219 0.0494 4 F LASSO CV 2.7783 −182.8722 0.2012 0.3885 0.5219 −0.1230 5 F LASSO AIC 2.8567 −184.1996 0.1996 0.3994 0.5125 −0.0609 6 F LASSO BIC 2.9302 −187.3526 0.2331 0.3401 0.3500 0.1298 7 F Equal+LASSO CV 2.7940 −183.7778 0.2038 0.3878 0.5188 0.1648
147 1 3 Introducing LASSO‑type penalisation togeneralised joint… presented LASSO penalty could be generalised to allow for an elastic net approach (see Zou and Hastie 2005), combining LASSO and ridge penalisation. This is known to be particularly useful insituations with collinearity and correlation in the design matrix. As this work was motivated by the application to football data, high dimensional cases with p very large or even larger than n were not investigated. However, principally, the proposed LASSO approach can also be used in such settings, which are common e.g. in gene expression data. Hence, in future research such settings could be further investigated. Moreover, the presented modelling approach is so far restricted to linear or simple polynomial covariate effects only. Hence, in future research it is planned to combine the penalty approach proposed in van der Wurp etal. (2020) with the option to model smooth, nonlinear effects, e.g. via P-splines (see Eilers and Marx 1996, or Wood 2017). In order to maintain the merits of sparsity and variable selection, here the adaptation of existing boosting approaches designed for generalised additive models (see, e.g. Tutz and Binder 2006, Schmid and Hothorn 2008, or Groll and Tutz 2012) or generalised additive models for location, scale and shape (see Mayr etal. 2012; Hofner etal. 2014) seems promising. Table 4 Coefficients for the fitted model with a combination of both LASSO and equalisation penalty Missing values imply an estimate of zero 𝛽 𝛽 (Intercept) 0.830 GDP 0.024 CL.players 0.033 Host1 0.299 UEFA.players 0.039 ConfedCAF 0.089 Nation.coach1 ConfedCONCACAF 0.001 Age.coach −0.007 ConfedCONMEBOL 0.319 Tenure.coach −0.033 ConfedUEFA 0.176 Legionaires Continent1 Max.teammates Odds Sec.max.teammates Population 0.018 Age KnockoutTRUE −0.380 Rank −0.007 Titleholder Table 5 Results for all six performance measures and a selection of models for the stage-wise prediction of FIFA World Cup 2018 MSE and predictive log-likelihood (average per game, exLLH) correspond to the original response, while RPS, predictive multinomial log-likelihood (MLLH), classification rate and betting (gains relative to sum of stakes) correspond to measures on the three-way probabilities Cop Penalty Tuner MSE exLLH RPS MLLH cl. rate betting 1 – – – 2.9577 −2.9528 0.2217 0.3851 0.5313 0.0431 2 F – – 3.0213 −2.9904 0.2242 0.3897 0.4219 −0.3661 3 F Equal – 2.7010 −2.8881 0.2154 0.3784 0.4531 0.0122 4 F LASSO CV 2.7314 −2.8841 0.2197 0.3808 0.5156 0.1127 5 F LASSO AIC 2.8380 −2.9161 0.2219 0.3829 0.4688 0.0779 6 F LASSO BIC 2.6566 −2.8558 0.2396 0.3440 0.3594 0.1298 7 F Equal+LASSO CV 2.6270 −2.8581 0.2091 0.3830 0.5000 0.0652
148 H.van der Wurp, A.Groll 1 3 Appendix See Figs.7, 8, 9 and Table6 Fig. 7 Simulation results of the standard GJRM approach and LASSO-penalised versions of it for different copula models in terms of SSE on the estimated and true coefficients for 100 settings of each correlation strength 𝜏 Fig. 8 Simulation results of the standard GJRM approach and LASSO-penalised versions of it for different copula models in terms of true positive rate, depicting the mean ratio of correctly identified model features for 100 settings of each correlation strength 𝜏
149 1 3 Introducing LASSO‑type penalisation togeneralised joint… Fig. 9 Simulation results of the standard GJRM approach and LASSO-penalised versions of it for different copula models in terms of true negative rate, depicting the mean ratio of correctly identified noise variables for 100 settings of each correlation strength 𝜏 Table 6 Coefficients for the fitted model with LASSO penalisation Missing values imply an estimation of zero 𝛽 𝛽 𝛽(1) 𝛽 𝛽 𝛽(2) 𝛽 𝛽 𝛽(1) 𝛽 𝛽 𝛽(2) (Intercept) 1.338 0.261 GDP 0.007 0.019 CL.players 0.016 0.035 host1 0.194 0.188 UEFA.players 0.050 confedCAF −0.164 0.033 Nation.Coach1 0.077 confedCONCACAF −0.063 −0.015 Age.Coach −0.013 confedCONMEBOL 0.102 0.011 Tenure.Coach −0.041 confedUEFA 0.062 0.125 Legionaires continent1 Max.teammates −0.020 odds 0.642 0.501 Sec.max.teammates Population 0.007 0.038 Age −0.026 KnockoutTRUE −0.349 −0.144 Rank −0.012 Titleholder −0.765
150 H.van der Wurp, A.Groll 1 3 Acknowledgements The authors like to thank M.Oelker for the fruitful discussions regarding potential tuning of the threshold parameter 𝜀lasso of the approximative LASSO. Moreover, the authors are grateful for the comments of two anonymous referees and the associate editor, which helped to substantially improve this work. Funding Open Access funding enabled and organized by Projekt DEAL. Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http:// creat iveco mmons. org/ licen ses/ by/4. 0/. References Akaike, H.: Information theory and the extension of the maximum likelihood principle. In: Second International Symposium on Information Theory, pp. 267–281 (1973) Dixon, M.J., Coles, S.G.: Modelling association football scores and inefficiencies in the football betting market. J. Roy. Stat. Soc. Ser. C (Appl. Stat.) 46(2), 265–280 (1997) Dyte, D., Clarke, S.R.: A ratings based Poisson model for World Cup soccer simulation. J. Oper. Res. Soc. 51(8), 993–998 (2000) Eilers, P.H.C., Marx, B.D.: Flexible smoothing with B-splines and penalties. Stat. Sci. 11, 89–121 (1996) Friedman, J., Hastie, T., Tibshirani, R.: Regularization paths for generalized linear models via coordinate descent. J. Stat. Softw. 33(1), 1 (2010) Geyer, CJ.: Trust: Trust Region Optimization. (2015). https:// CRAN.R- proje ct. org/ packa ge= trust, r package version 0.1-7 Groll, A., Abedieh, J.: Spain retains its title and sets a new record: generalized linear mixed models on European football championships. J. Quant. Anal. Sports 9(1), 51–66 (2013) Groll, A., Tutz, G.: Regularization for generalized additive mixed models by likelihood-based boosting. Methods Inf. Med. 51(2), 168–177 (2012) Groll, A., Schauberger, G., Tutz, G.: Prediction of major international soccer tournaments based on team-specific regularized Poisson regression: an application to the FIFA World Cup 2014. J. Quant. Anal. Sports 11(2), 97–115 (2015) Groll, A., Hambuckers, J., Kneib, T., Umlauf, N.: Lasso-type penalization in the framework of generalized additive models for location, scale and shape. Comput. Stat. Data Anal. 140, 59–73 (2019) Groll, A., Ley, C., Schauberger, G., Van Eetvelde, H.: A hybrid random forest to predict soccer matches in international tournaments. J. Quant. Anal. Sports 15, 271–287 (2019) Hambuckers, J., Groll, A., Kneib, T.: Understanding the economic determinants of the severity of operational losses: A regularized generalized Pareto regression approach. J. Appl. Economet. 33(6), 898–935 (2018) Hoerl, A.E., Kennard, R.W.: Ridge regression: Biased estimation for nonorthogonal problems. Technometrics 12, 55–67 (1970) Hofner, B., Mayr, A., Schmid, M.: gamboostlss: An r package for model building and variable selection in the gamlss framework. (2014). arXiv preprint arXiv: 14071 774 Karlis, D., Ntzoufras, I.: On modelling soccer data. Student 3(4), 229–244 (2000) Karlis, D., Ntzoufras, I.: Analysis of sports data by using bivariate Poisson models. Statistician 52, 381–393 (2003) Lee, A.J.: Modeling scores in the Premier League: is Manchester United really the best? Chance 10, 15–19 (1997)