Bayesian semiparametric analysis of multivariate continuous responses, with variable selection
Georgios Papageorgiou, Benjamin C. Marshall

TL;DR
This paper introduces a Bayesian semiparametric framework for multivariate response regression that handles unknown mean, variance, and correlation structures, incorporating variable selection and demonstrated through simulations and real data applications.
Contribution
It develops a novel Bayesian approach with Dirichlet process mixtures and spike-slab priors for flexible modeling and variable selection in multivariate regression.
Findings
Effective in high-dimensional settings
Accurate variable selection demonstrated
Good performance on real datasets
Abstract
This article presents an approach to Bayesian semiparametric inference for Gaussian multivariate response regression. We are motivated by various small and medium dimensional problems from the physical and social sciences. The statistical challenges revolve around dealing with the unknown mean and variance functions and in particular, the correlation matrix. To tackle these problems, we have developed priors over the smooth functions and a Markov chain Monte Carlo algorithm for inference and model selection. Specifically, Dirichlet process mixtures of Gaussian distributions are used as the basis for a cluster-inducing prior over the elements of the correlation matrix. The smooth, multidimensional means and variances are represented using radial basis function expansions. The complexity of the model, in terms of variable selection and smoothness, is then controlled by spike-slab priors.…
| 0.1 | 0.3 | 0.5 | 0.7 | 0.9 | 0.1 | 0.3 | 0.5 | 0.7 | 0.9 | ||
|---|---|---|---|---|---|---|---|---|---|---|---|
| 50 | 94.41 | 89.19 | 82.81 | 69.72 | 53.22 | 50 | 93.83 | 81.73 | 69.97 | 59.49 | 50.17 |
| 150 | 99.42 | 96.71 | 93.41 | 88.14 | 79.25 | 150 | 99.35 | 97.36 | 92.99 | 86.91 | 78.25 |
| 0.1 | 0.3 | 0.5 | 0.7 | 0.9 | 0.1 | 0.3 | 0.5 | 0.7 | 0.9 | ||
| 50 | 97.82 | 83.28 | 69.96 | 58.47 | 49.67 | 50 | 103.06 | 81.67 | 70.86 | 58.08 | 49.73 |
| 150 | 99.41 | 97.00 | 92.01 | 85.33 | 77.17 | 150 | 97.49 | 96.12 | 91.39 | 85.30 | 77.36 |
| 0.1 | 0.3 | 0.5 | 0.7 | 0.9 | 0.1 | 0.3 | 0.5 | 0.7 | 0.9 | ||
|---|---|---|---|---|---|---|---|---|---|---|---|
| 50 | 101.06 | 98.32 | 92.09 | 82.99 | 68.22 | 50 | 100.55 | 94.00 | 85.39 | 74.03 | 60.29 |
| 150 | 102.15 | 97.77 | 90.27 | 78.80 | 62.66 | 150 | 100.62 | 93.61 | 83.91 | 72.03 | 58.36 |
| 0.1 | 0.3 | 0.5 | 0.7 | 0.9 | 0.1 | 0.3 | 0.5 | 0.7 | 0.9 | ||
| 50 | 97.93 | 91.59 | 82.38 | 75.41 | 65.03 | 50 | 95.99 | 88.28 | 81.78 | 73.69 | 65.30 |
| 150 | 100.34 | 92.14 | 82.34 | 70.71 | 58.14 | 150 | 98.32 | 89.23 | 79.15 | 68.92 | 59.04 |
| 0.1 | 0.3 | 0.5 | 0.7 | 0.9 | 0.1 | 0.3 | 0.5 | 0.7 | 0.9 | ||
|---|---|---|---|---|---|---|---|---|---|---|---|
| 50 | 66.22 | 65.19 | 58.12 | 53.17 | 49.68 | 50 | 61.74 | 55.34 | 47.99 | 50.15 | 53.66 |
| 150 | 43.24 | 45.74 | 50.00 | 52.91 | 54.16 | 150 | 42.29 | 49.70 | 53.00 | 53.50 | 61.98 |
| 0.1 | 0.3 | 0.5 | 0.7 | 0.9 | 0.1 | 0.3 | 0.5 | 0.7 | 0.9 | ||
| 50 | 53.46 | 51.28 | 55.13 | 57.24 | 60.15 | 50 | 45.62 | 45.44 | 46.41 | 50.38 | 59.00 |
| 150 | 42.47 | 47.91 | 49.78 | 51.67 | 62.42 | 150 | 42.96 | 49.09 | 46.92 | 53.02 | 72.28 |
| 0.1 | 0.3 | 0.5 | 0.7 | 0.9 | 0.1 | 0.3 | 0.5 | 0.7 | 0.9 | |
|---|---|---|---|---|---|---|---|---|---|---|
| 2 | 7.91 | 7.79 | 7.43 | 6.89 | 5.44 | 6.53 | 6.04 | 5.59 | 4.62 | 3.63 |
| 4 | 8.33 | 8.14 | 7.72 | 7.13 | 5.45 | 6.62 | 6.32 | 5.96 | 5.48 | 4.27 |
| 6 | 8.48 | 8.38 | 7.90 | 7.36 | 5.93 | 6.53 | 6.27 | 6.13 | 5.73 | 4.62 |
| 10 | 8.03 | 7.87 | 7.46 | 7.22 | 5.78 | 6.65 | 6.40 | 6.21 | 5.80 | 4.79 |
| 1 | 2 | 4 | 6 | 10 | 1 | 2 | 4 | 6 | 10 | |
|---|---|---|---|---|---|---|---|---|---|---|
| 50 | 1.64 | 10.42 | 25.74 | 59.77 | 253.38 | 3.07 | 15.29 | 44.60 | 112.34 | 526.81 |
| 150 | 2.96 | 25.49 | 63.02 | 148.93 | 639.28 | 5.36 | 36.64 | 106.06 | 270.72 | 1270.04 |
| 1 | 2 | 4 | 6 | 10 | ||||||
| 50 | 9.50 | 37.09 | 147.99 | 466.96 | 2683.43 | |||||
| 150 | 16.29 | 82.03 | 308.95 | 908.60 | 4890.23 | |||||
| Mean | 0.18 | -0.31 | -0.61 |
|---|---|---|---|
| SD | 0.37 | 0.37 | 0.36 |
| 5% | -0.42 | -0.87 | -0.95 |
| 95% | 0.77 | 0.26 | 0.17 |
| Cluster | 0.56 | 0.50 | 0.52 |
| M | V | Al | An | S | |
| M | 1.00 | ||||
| V | 0.55 | 1.00 | |||
| Al | 0.55 | 0.61 | 1.00 | ||
| An | 0.41 | 0.49 | 0.71 | 1.00 | |
| S | 0.39 | 0.44 | 0.66 | 0.61 | 1.00 |
| M | V | Al | An | S | |
| M | 1.00 | ||||
| V | 0.55 | 1.00 | |||
| Al | 0.55 | 0.61 | 1.00 | ||
| An | 0.41 | 0.49 | 0.71 | 1.00 | |
| S | 0.39 | 0.44 | 0.66 | 0.61 | 1.00 |
| M | V | Al | An | S | |
| M | |||||
| V | 0.33 | ||||
| Al | 0.23 | 0.28 | |||
| An | 0.00 | 0.08 | 0.43 | ||
| S | 0.03 | 0.02 | 0.36 | 0.25 |
| M | V | Al | An | S | |
|---|---|---|---|---|---|
| M | 1 | ||||
| V | 1 | 1 | |||
| Al | 1 | 1 | 1 | ||
| An | 0 | 0 | 1 | 1 | |
| S | 0 | 0 | 1 | 1 | 1 |
| M | V | An | S | |
| M | 1.00 | |||
| V | 1.00 | 1.00 | ||
| An | 0.35 | 0.61 | 1.00 | |
| S | 0.22 | 0.21 | 0.98 | 1.00 |
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Bayesian semiparametric analysis of multivariate continuous responses, with variable selection
Georgios Papageorgiou and Benjamin C. Marshall
Department of Economics, Mathematics and Statistics
Birkbeck, University of London, UK
Abstract
This article presents an approach to Bayesian semiparametric inference for Gaussian multivariate response regression. We are motivated by various small and medium dimensional problems from the physical and social sciences. The statistical challenges revolve around dealing with the unknown mean and variance functions and in particular, the correlation matrix. To tackle these problems, we have developed priors over the smooth functions and a Markov chain Monte Carlo algorithm for inference and model selection. Specifically, Dirichlet process mixtures of Gaussian distributions are used as the basis for a cluster-inducing prior over the elements of the correlation matrix. The smooth, multidimensional means and variances are represented using radial basis function expansions. The complexity of the model, in terms of variable selection and smoothness, is then controlled by spike-slab priors. A simulation study is presented, demonstrating performance as the response dimension increases. Finally, the model is fit to a number of real world datasets. An R package, scripts for replicating synthetic and real data examples, and a detailed description of the MCMC sampler are available in the supplementary materials online.
Keywords: Clustering; Covariance matrix models; Model averaging; Multivariate response regression; Seemingly unrelated regression models; Semiparametric regression
1 Introduction
Many systems are too complex to be adequately described by a single response variable. For example, in medical investigations, understanding how the body reacts to certain drugs requires multiple blood tests. Similarly, in the social sciences, multiple exams are needed in order to build a complete picture of a student’s academic ability. Scientific investigations into these systems therefore produce multiple outcome variables. Typically the outcomes are correlated and ignoring this correlation can result in loss of optimality. Multivariate response models are needed for the analysis of data arising from these and many other experimental setups. Our main goal here is to develop Bayesian multivariate response models for continuous responses with nonparametric models for the mean vectors and covariance matrices, assuming a multivariate Gaussian likelihood.
Modelling unconstrained means nonparametrically, as general functions of the covariates, is straight forward and by now fairly standard. In the work that we present here, nonparametric effects are represented as linear combinations of radial basis functions. Generally, our approach is to utilize a large number of basis functions because this enables flexible estimation of true effects that are locally adaptive. Potential over-fitting is mitigated by utilizing spike-slab priors for variable selection and regularization (see e.g. O’Hara and Sillanpää, (2009) for a review on variable selection methods).
Modelling covariance matrices nonparametrically is not as straight forward as modelling the means, due the positive definiteness constraint that complicates matters. To overcome this constraint and model the elements of the covariance matrix in terms of regressors, a first, necessary step is to decompose the covariance matrix into a product of matrices. Such decompositions include the spectral and Cholesky, and variations of the latter. Pinheiro and Bates, (1996) review the spectral and Cholesky decompositions with several different parametrisations. Based on the spectral decomposition and the matrix logarithmic transformation, Chiu et al., (1996) model the structure of a covariance matrix in terms of explanatory variables. Pourahmadi, (1999) and Chen and Dunson, (2003) describe two modifications of the Cholesky decomposition that result in statistically meaningful, unconstrained reparametrisation of the covariance matrix, provided that there is a natural ordering in the responses (Pourahmadi,, 2007), as it happens in longitudinal studies, where the time of observation provides this natural ordering.
The spectral and the modified Cholesky decompositions, outside the context of longitudinal studies, lack simple statistical interpretation, making it difficult for practitioners to incorporate prior beliefs into the model. A decomposition, however, that is statistically simple and intuitive, comes from the separation strategy of Barnard et al., (2000), according to which is separated into a diagonal matrix of variances and a correlation matrix , \mbox{\boldmath\Sigma}=\mbox{\boldmathS}^{1/2}\mbox{\boldmathR}\mbox{\boldmathS}^{1/2}. This decomposition makes it easy to model the variances in terms of covariates as the only constrained on them is the positiveness. Here we use a -link and linear predictors that are constructed in the same way as for the mean parameters.
Chan et al., (2006) describe several reasons why allowing the variances to be general functions of the covariates is meaningful. First, prediction intervals obtained from heteroscedastic regression models can be more realistic than those obtained by assuming constant error variance, or as Müller and Mitra, (2013) put it, it can result in more honest representation of uncertainties. Second, it allows the practitioner to examine and understand which covariates drive the variances, and in the multivariate response case, examine if the same or different subsets of covariates are associated with the variances of the responses. Third, modelling the variances in terms of covariates results in more efficient estimation of the mean functions. Lastly, it produces more accurate standard errors for the estimates of unknown parameters.
Our approach for variable selection and model averaging can be thought of as a generalization of the approach of George and McCulloch, (1993) who describe methods for univariate linear regression and the approach of Chan et al., (2006) and Papageorgiou, (2018) who focused on methods for flexible mean and variance modelling for a single response. The current article is a generalization of the work of Chan et al., (2006) and Papageorgiou, (2018) from univariate to multivariate responses. Whereas in the univariate case one has to fit a single smooth mean and a single smooth variance function, in the multivariate case, multiple such functions have to be fit. However, the representation of these functions, and their prior distributions, are constructed in the same way as in the univariate case. The most important challenge that one has to face when dealing with multivariate regression is modelling the correlation matrix and sampling from its posterior. In this article, we discuss three intuitive correlation matrix priors and strategies for posterior sampling. In addition, we develop an efficient stochastic search variable selection algorithm by using Zellner’s g-prior (Zellner,, 1986) that allows integrating out the regression coefficients in the mean function. Further, in our Markov chain Monte Carlo (MCMC) algorithm, we generate the variable selection indicators in blocks (Chan et al.,, 2006; Papageorgiou,, 2018) and choose the MCMC tuning parameters adaptively (Roberts and Rosenthal,, 2001).
Of course, the separation of the variances from the correlations alone does not solve the problem of positive definiteness, as the constraint has now been transferred from the covariance matrix to the correlation matrix \mbox{\boldmathR}=\{r_{kl}\}. Here, we place a normal prior on the Fisher’s transformation of the nonredundant elements of , \log\{(1+r_{kl})/(1-r_{kl})\}/2\sim N(\mu_{R},\sigma^{2}_{R})I[\mbox{\boldmathR}\in\mathcal{C}], where denotes the space of correlation matrices and denotes the indicator function that restricts the range of the correlations and induces dependence among them (Daniels and Kass,, 1999). We rely on the ‘shadow prior’ of Liechty et al., (2004) to maintain positive definiteness. The model is intuitive and easy to interpret, allowing practitioners to represent their substantive prior knowledge.
However, the normal model for the correlations is quite restrictive, and this can have a negative impact on the estimated correlations, especially in small samples (Daniels and Kass,, 1999). Here, to achieve a nonparametric model for the correlation matrix, we consider mixtures of normal distributions \log\{(1+r_{kl})/(1-r_{kl})\}/2\sim\sum_{h}\pi_{h}N(\mu_{R,h},\sigma^{2}_{R})I[\mbox{\boldmathR}\in\mathcal{C}] for the transformed . This is in the spirit of the ‘grouped correlations model’ of Liechty et al., (2004) who also propose a ‘grouped variables model’. The latter clusters the variables instead of the correlations and it is more structured than the nonparametric grouped correlations model. Here, we consider both the grouped correlations and variables models.
In what follows, we work with generic Dirichlet process (Ferguson,, 1973) mixtures of normal distributions for the correlations, utilizing the stick breaking construction (Sethuraman,, 1994). However, one of the attractive features of the grouped correlations and variables models is that they allow the researcher to represent prior information and beliefs about the strength of correlations among variables and the general structure of the correlation matrix. See Liechty et al., (2004) and Tsay and Pourahmadi, (2017) for examples on structured correlation matrices.
Our work is related to two further strands of the literature. The first one is known as ‘seemingly unrelated regressions’ (SUR) and it originates from the work of Zellner, (1962). The second one is known as ‘generalized additive models for location, scale and shape’ (GAMLSS) and it originates from the work of Rigby and Stasinopoulos, (2005).
Concerning SUR, Zellner, (1962) showed how efficiency gains can be achieved by simultaneous estimation of linear regression equations, accommodating potentially correlated error terms. This gain in efficiency, measured in terms of reduction in the variance of the estimates of regression coefficients, can be substantial when the correlations among the error terms are high and covariates in different regression equations are not highly correlated. As the methodology presented in this article is a Bayesian semi-parametric version of Zellner’s model, similar gains are to be expected from our approach too, and these are investigated in a simulation study presented in Section 4.
GAMLSS, and the Bayesian analogue termed as BAMLSS (Umlauf et al.,, 2018), provides a general framework for the analysis of data in a very wide class of univariate distributions, utilizing flexible models for the parameters of the response distribution. The popularity of these methods stems from the fact that for most realistic problems, the assumption that the parameters are linearly dependent on the covariates, or even constant (as in homoscedastic regression), is not tenable. Applying this level of regression flexibility to multivariate response models is currently an active area of research. Smith and Kohn, (2000) implemented the multivariate normal regression model with smooth additive terms in the mean function and with homoscedastic errors. Klein et al., (2015) present applications of the GAMLSS framework to bivariate regression with normal and -distributed errors, and on Dirichlet regression. Klein and Kneib, (2016) used copulas in bivariate response models, relating the parameters of the marginals and those of the dependence structure to additive predictors. Here, we focus attention to models with Gaussian errors and we develop a fully multivariate model with nonparametric models for the means, the variances and the correlation matrix, with automatic variable selection based on spike-slab priors.
The remainder of this article is arranged as follows. Section 2 develops the proposed model in more detail. Posterior sampling is discussed in Section 3. Section 4 presents results from a simulation study that examines the efficiency gains one may have when fitting multivariate models instead of univariate ones. We also look into the performance of the method in automatically choosing the appropriate level of function complexity. Lastly, the simulation study reports the run-times needed to fit the described models. In Section 5 we present two applications of the model. In the first application, the objective is to understand how the human body responds to a drug overdose. This is a common setting, where there are multiple outcomes each depending on a number of covariates. The statistical task is to understand how responses and covariates relate to each other. The second application is taken from the social sciences. Statistically, the problem can be seen as graphical modelling, where the conditional independence properties of the inverse covariance matrix are combined with flexible regression modelling. The article concludes with a brief discussion. All the methods we used in this article are freely available in the R package BNSP (Papageorgiou,, 2019).
2 Multivariate response model
Let \mbox{\boldmathy}_{i}=(y_{i1},\dots,y_{ip})^{\top} denote a -dimensional response vector and \mbox{\boldmathx}_{i} and \mbox{\boldmathz}_{i} denote covariate vectors, observed on the th sampling unit, . Below we detail how the mean and covariance matrix of \mbox{\boldmathy}_{i} are modelled in terms of covariates. Here, \mbox{\boldmathx}_{i} denotes the vector of covariates for the mean and \mbox{\boldmathz}_{i} that for the covariance. Hence, we do not assume the covariates for the mean are necessarily the same as those for the covariance. Typically, \mbox{\boldmathz}_{i} is a subset of \mbox{\boldmathx}_{i}.
The model for the mean of the th response, , is expressed as
[TABLE]
where \mbox{\boldmathx}_{i}^{\ast}=(1,\mbox{\boldmathx}_{i}^{\top})^{\top} and \mbox{\boldmath\beta}_{j}^{\ast}=(\beta_{0j},\mbox{\boldmath\beta}_{j}^{\top})^{\top}. As we detail below, the linear predictor may include parametric and nonparametric terms. Even though it may appear from (1) that all regression equations have the same set of predictors, the introduction of binary indicators for variable selection will allow each response to have its own set of covariates.
The implied model for the mean of vector \mbox{\boldmathY}_{i} is
[TABLE]
where
[TABLE]
The mean vector can also be written as \mbox{\boldmath\mu}_{i}=\mbox{\boldmathX}_{i}^{\ast}\mbox{\boldmath\beta}^{\ast}, where \mbox{\boldmathX}_{i}^{\ast} and \mbox{\boldmath\beta}^{\ast} have the same structure as \mbox{\boldmathX}_{i} and above, but with \mbox{\boldmathx}_{i} and \mbox{\boldmath\beta}_{j} replaced by \mbox{\boldmathx}_{i}^{\ast} and \mbox{\boldmath\beta}_{j}^{\ast}, .
We let \mbox{\boldmath\Sigma}_{i} denote the covariance matrix of the th response vector
[TABLE]
We factorize \mbox{\boldmath\Sigma}_{i}=\mbox{\boldmathS}_{i}^{1/2}\mbox{\boldmathR}\mbox{\boldmathS}_{i}^{1/2} into a matrix of correlations and a diagonal matrix of variances \mbox{\boldmathS}_{i}=\text{diag}(\sigma^{2}_{i1},\dots,\sigma^{2}_{ip}). The variances are modelled in terms of covariates \mbox{\boldmathz}_{i} using \sigma^{2}_{ij}=\sigma^{2}_{j}\exp(\mbox{\boldmathz}^{\top}_{i}\mbox{\boldmath\alpha}_{j}), where \mbox{\boldmath\alpha}_{j} is a vector of regression coefficients and is a multiplicative variance term. Let \mbox{\boldmath\sigma}^{2}=(\sigma^{2}_{1},\dots,\sigma^{2}_{p})^{\top} and \mbox{\boldmath\alpha}=(\mbox{\boldmath\alpha}^{\top}_{1},\dots,\mbox{\boldmath\alpha}^{\top}_{p})^{\top}. Clearly, \mbox{\boldmath\Sigma}_{i} depends on \mbox{\boldmathR},\mbox{\boldmathz}_{i},\mbox{\boldmath\alpha}, and \mbox{\boldmath\sigma}^{2}, and this is emphasised by the notation in (2).
The model specification is completed by assuming a normal distribution for the response vector
[TABLE]
Alternatively, the model can be written in the usual form
[TABLE]
where \mbox{\boldmathY}=(\mbox{\boldmathY}_{1}^{\top},\dots,\mbox{\boldmathY}_{n}^{\top})^{\top}, \mbox{\boldmathX}^{\ast}=[(\mbox{\boldmathX}_{1}^{\ast})^{\top},\dots,(\mbox{\boldmathX}_{n}^{\ast})^{\top}]^{\top}, and \mbox{\boldmath\Sigma}=\text{diag}(\mbox{\boldmath\Sigma}_{i},i=1,\dots,n).
In the following subsections we detail how the mean and covariance functions are modelled nonparametrically.
2.1 Mean model
The mean function \mu_{ij}=\mu(\mbox{\boldmathx}_{i},\mbox{\boldmath\beta}_{j}^{\ast}) takes the following general form
[TABLE]
where denotes the regressors with parametrically modelled effects and denotes the regressors with effects that are modelled as smooth functions. Further, denotes the total number of regressors that enter the mean models.
When the assumption of the linearity of the effects of a covariate on the mean function is unrealistic or suspect, it can be relaxed by the use of smooth functions , as these can capture non-linear effects. They are represented using
[TABLE]
where \mbox{\boldmathx}_{ik}=(\phi_{\mu k1}(u_{ik}),\phi_{\mu k2}(u_{ik}),\dots,\phi_{\mu kq_{\mu k}}(u_{ik}))^{\top} and \mbox{\boldmath\beta}_{jk}=(\beta_{jk1},\beta_{jk2},\dots,\beta_{jkq_{\mu k}})^{\top} are the vectors of basis functions and regression coefficients. In the current article, the basis functions of choice are the radial basis functions, given by \mbox{\boldmathx}_{ik}=\left(u_{ik},|u_{ik}-\xi_{k1}|^{2}\log\left(|u_{ik}-\xi_{k1}|^{2}\right),\dots,|u_{ik}-\xi_{kq_{\mu k}-1}|^{2}\log\left(|u_{ik}-\xi_{kq_{\mu k}-1}|^{2}\right)\right)^{\top}, where are the knots.
Now, model (5) can be linearised and expressed as model (1)
[TABLE]
where \mbox{\boldmathx}_{i}=(u_{i1},\dots,u_{iK_{1}},\mbox{\boldmathx}^{\top}_{iK_{1}+1},\dots,\mbox{\boldmathx}^{\top}_{iK})^{\top} and \mbox{\boldmath\beta}_{j}=(\beta_{j1},\dots,\beta_{jK_{1}},\mbox{\boldmath\beta}_{jK_{1}+1}^{\top},\dots,\mbox{\boldmath\beta}_{jK}^{\top})^{\top}.
Our general approach for representing smooth functions is to utilize a large number of basis functions. With this approach, under-fitting may be avoided. Chan et al., (2006) used the same strategy to capture covariate effects that are locally adaptive, that is, effects that vary rapidly in some parts of the covariate space and slowly in some other parts. We deal with potential over-fitting by allowing positive prior probability that the regression coefficients are exactly zero. This is achieved by the introduction of binary variables that allow coefficients to drop out of the model. These, for parametric effects, are denoted as , and for nonparametric effects as . Binary indicators are grouped in the same way as the regression coefficients \mbox{\boldmath\beta}_{j} after (7), \mbox{\boldmath\gamma}_{j}=(\gamma_{j1},\dots,\gamma_{jK_{1}},\mbox{\boldmath\gamma}_{jK_{1}+1}^{\top},\dots,\mbox{\boldmath\gamma}_{jK}^{\top})^{\top}.
Given \mbox{\boldmath\gamma}_{j}, model (7) is expressed as
[TABLE]
where \mbox{\boldmath\beta}_{\gamma_{j}j} consists of all non-zero elements of \mbox{\boldmath\beta}_{j} and \mbox{\boldmathx}_{\gamma_{j}i} of the corresponding elements of \mbox{\boldmathx}_{i}. Likewise, letting \mbox{\boldmath\gamma}=(\mbox{\boldmath\gamma}_{1}^{\top},\dots,\mbox{\boldmath\gamma}_{p}^{\top})^{\top}, the mean model implied by (3) and (4) may be expressed as E(\mbox{\boldmathY}_{i})=\mbox{\boldmathX}_{\gamma i}^{\ast}\mbox{\boldmath\beta}_{\gamma}^{\ast} and E(\mbox{\boldmathY})=\mbox{\boldmathX}_{\gamma}^{\ast}\mbox{\boldmath\beta}_{\gamma}^{\ast}.
2.2 Covariance model
A first step in modelling the covariance matrices \mbox{\boldmath\Sigma}_{i} in terms of covariates is to employ the separation strategy of Barnard et al., (2000), according to which \mbox{\boldmath\Sigma}_{i} is expressed as a diagonal matrix of variances, \mbox{\boldmathS}_{i}=\text{diag}(\sigma^{2}_{i1},\dots,\sigma^{2}_{ip}), and a correlation matrix ,
[TABLE]
The next subsections consider models for the diagonal elements of \mbox{\boldmathS}_{i} and for the correlation matrix .
2.2.1 Diagonal variance matrices
Modelling the diagonal matrices \mbox{\boldmathS}_{i} in terms of covariates is straight forward as the only requirement on these elements is that they are nonnegative. Hence, an additive model with a log-link may be utilised
[TABLE]
where and denote covariates with parametric and nonparametric effects on the log-variance, respectively. Further, denotes the total number of effects that enter the variance models. Additionally, are smooth functions of covariates, represented as linear combinations of radial basis functions and regression coefficients. By analogy to (6), we write f_{\sigma,j,k}(v_{ik})=\mbox{\boldmathz}_{ik}^{\top}\mbox{\boldmath\alpha}_{jk}. Hence, by analogy to (7), model (9) may be written as
[TABLE]
where \mbox{\boldmathz}_{i}=(v_{i1},\dots,v_{iQ_{1}},\mbox{\boldmathz}^{\top}_{iQ_{1}+1},\dots,\mbox{\boldmathz}^{\top}_{iQ})^{\top} and \mbox{\boldmath\alpha}_{j}=(\alpha_{j1},\dots,\alpha_{jQ_{1}},\mbox{\boldmath\alpha}_{jQ_{1}+1}^{\top},\dots,\mbox{\boldmath\alpha}_{jQ}^{\top})^{\top}.
Consider now vectors of indicator variables for selecting the elements of \mbox{\boldmathz}_{i} that enter the th variance regression model. In line with the indicator variables for the mean model, these are denoted by \mbox{\boldmath\delta}_{j}=(\delta_{j1},\dots,\delta_{jQ_{1}},\mbox{\boldmath\delta}_{jQ_{1}+1}^{\top},\dots,\mbox{\boldmath\delta}_{jQ}^{\top})^{\top}. Given \mbox{\boldmath\delta}_{j}, model (10) becomes
[TABLE]
or equivalently
[TABLE]
Let \mbox{\boldmath\sigma}^{2}_{j}=(\sigma_{1j}^{2},\dots,\sigma_{nj}^{2})^{\top}. Then, the model for \mbox{\boldmath\sigma}^{2}_{j} can be expressed as
[TABLE]
where the design matrix \mbox{\boldmathZ}_{\delta_{j}}=[\mbox{\boldmathz}_{\delta_{j}1},\dots,\mbox{\boldmathz}_{\delta_{j}n}]^{\top} consists of rows, with the th row containing the elements of \mbox{\boldmathz}_{i} that corresponds to the non-zero elements of \mbox{\boldmath\delta}_{j}.
2.2.2 Common correlations model
Turning our attention to the correlation matrix , the first prior model we consider, termed the ‘common correlations model’, takes the following form
[TABLE]
Here denotes the space of correlation matrices, is the indicator function that ensures the correlation matrix is positive definite and is the normalizing constant
[TABLE]
Function may be taken to be the Fisher’s transformation , considered within Bayesian hierarchical modelling by Daniels and Kass, (1999). With this choice, . Another choice is the identity function that simplifies the model formulation.
Making the simplifying model choice of and ignoring the normalizing constant, (12) reduces to
[TABLE]
where the product is over the nonredundant, upper triangular, elements of and the kernel is that of a normal density with mean and variance . Although it may appear that are independent, this is not the case as the indicator function restricts the range of the correlations and induces dependence among them. The ‘common correlations model’ is intuitive and easy to interpret, however it can can be quite restrictive since all correlations are tied to a common mean and a common variance . For this reason, we consider two models that are more flexible, the ‘grouped correlations’ and ‘grouped variables’ models.
2.2.3 Grouped correlations model
The ‘grouped correlations model’ includes a clustering on the elements of , and it takes the form
[TABLE]
where denotes the number of correlation groups and denotes the mean of the th group, .
Consider, for example, the case depicted in Figure 1: a correlation matrix of a five-dimensional response, where the nonredundant correlations are partitioned into groups, namely, , , and the singleton group , where each group has its own mean. Making the same simplifying choices as those that gave rise to (13), prior (2.2.3) for the current scenario can be written as
[TABLE]
2.2.4 Grouped variables model
The ‘grouped variables model’ is another clustering model that clusters the variables instead of the correlations. The prior takes the form
[TABLE]
where is the number of groups in which the variables are partitioned, creating clusters for the correlations.
A clustering on the variables is more structured than a clustering on the correlations. In other words, a clustering on the variables implies a clustering on the correlations. The converse, however, is not necessarily true. Revisiting Figure 1, we see that the responses are grouped into two clusters, the first group consisting of variables , and the second one of variables . These two groups create three groups of correlations, two of which describe the correlations within each group and one that describes the correlation between the two groups.
2.3 Prior specification
Let \tilde{\boldsymbol{X}}=\mbox{\boldmath\Sigma}^{-\frac{1}{2}}\mbox{\boldmathX}^{\ast}. The prior for \mbox{\boldmath\beta}_{\gamma}^{\ast} is specified as (Zellner,, 1986)
[TABLE]
Further, the prior for is specified as inverse Gamma, .
For the vector \mbox{\boldmath\gamma}_{j}=(\gamma_{j1},\dots,\gamma_{jK_{1}},\mbox{\boldmath\gamma}_{jK_{1}+1}^{\top},\dots,\mbox{\boldmath\gamma}_{jK}^{\top})^{\top},j=1,\dots,p, of indicator variables, we specify independent binomial priors for each of its subvectors,
[TABLE]
where for parametric effects, , and for nonparametric effects, We work with Beta priors for , , , although sparsity inducing, zero-inflated Beta priors, are also an attractive option.
Continuing with the priors on the covariance parameters, we specify independent normal priors for \mbox{\boldmath\alpha}_{\delta_{j}j}
[TABLE]
Further, the priors we consider for , are the half-normal, , and the inverse Gamma,
For the subvectors of \mbox{\boldmath\delta}_{j}=(\delta_{j1},\dots,\delta_{jQ_{1}},\mbox{\boldmath\delta}_{jQ_{1}+1}^{\top},\dots,\mbox{\boldmath\delta}_{jQ}^{\top})^{\top},j=1,\dots,p, we specify independent binomial priors
[TABLE]
where for parametric effects, , and for nonparametric effects, We specify independent Beta priors for , .
For we consider inverse Gamma and half-normal priors, denoted as and .
Lastly, we describe the priors on the parameters of the correlation models. Starting with the ‘common correlations model’ in (12), we place the following priors on its parameters
[TABLE]
We take the ‘grouped correlations model’ to be arising from the ‘common correlations model’, by treating the prior on as another unknown model parameter. In symbols, , where is an unknown distribution. Here, we place a Dirichlet process (DP) prior on (Ferguson,, 1973). Due to the almost sure discreteness of the DP, the prior admits the following representation
[TABLE]
where is an indicator function, . The prior weights are constructed utilising the so called stick-breaking process (Sethuraman,, 1994). Let be independent draws from a distribution. We have, , for , . We take the concentration parameter to be unknown and we assign to it a gamma prior with mean . Further, are generated from the so called base distribution, here taken to be .
The ‘grouped correlations model’ in (2.2.3) is obtained by first writing
[TABLE]
where \mbox{\boldmath\mu}_{R} and denote the vectors of group means and the stick-breaking weights, respectively. In practice, we truncate to include components. In this case, the prior weights are constructed as before, except for the th one that is now constructed as . Further, we introduce allocation variables to indicate the component in which is assigned to, . The stick-breaking weights provide the prior on the allocation variables: . With these observations, it is clear how model (2.2.3) follows.
The development on the ‘grouped variables model’ is very similar, with the clustering now performed on the variables rather than the correlations.
In the simulation study and applications that we present in Sections 4 and 5, we use the following priors, unless otherwise stated within the relevant sections. For we specify as a -variate analogue of the prior of Liang et al., (2008). For all inclusion probabilities, and , we define Beta, that is uniform priors. The prior on all is specified to be IG. Further, for all , we define the prior to be HN. In addition, we specify and . Lastly, the DP base distribution is taken to be the standard normal while the concentration is taken to have a prior.
3 Posterior Sampling
To carry out posterior sampling we consider two likelihood functions and use the one that is more computationally convenient for each step of the MCMC algorithm.
We first consider the full likelihood, that is, the one that involves all model parameters. The contribution of \mbox{\boldmathY}_{i},i=1,\dots,n, using decomposition (8), may be expressed as
[TABLE]
where \mbox{\boldmathr}_{i}=\mbox{\boldmathY}_{i}-\mbox{\boldmathX}_{i}^{\ast}\mbox{\boldmath\beta}^{\ast} and \tilde{\boldsymbol{S}}_{i}=(\mbox{\boldmathS}_{i}^{-1/2}\mbox{\boldmathr}_{i})(\mbox{\boldmathS}_{i}^{-1/2}\mbox{\boldmathr}_{i})^{\top}. Hence, the likelihood function, based on all observations, is
[TABLE]
where .
To improve mixing of the MCMC algorithm, we can integrate out vector \mbox{\boldmath\beta}^{\ast} from the likelihood (16), to obtain
[TABLE]
where
[TABLE]
with \tilde{\boldsymbol{Y}}=\mbox{\boldmath\Sigma}^{-\frac{1}{2}}\mbox{\boldmathY} and the total number of columns in . We compute using the following, more convenient, expression
[TABLE]
where \check{\boldsymbol{X}}_{\gamma i}=\mbox{\boldmathS}_{i}^{-1/2}\mbox{\boldmathX}_{\gamma i}^{\ast} and \check{\boldsymbol{y}}_{i}=\mbox{\boldmathS}_{i}^{-1/2}\mbox{\boldmathY}_{i}.
Sampling from the posterior of the parameters of the correlation matrices poses the greatest challenge. Consider, for instance, sampling from the posterior of parameter of the ‘common correlations model’, given in (12), using the Metropolis-Hastings algorithm. Letting and denote current and proposed values, the acceptance probability will involve the ratio of the normalising constants , which can be very computationally demanding to calculate. Posterior sampling, however, may be simplified by utilising the ‘shadow prior’ (Liechty et al.,, 2004). The basic idea is to introduce latent variables between the correlations and the mean , by which prior (12) becomes
[TABLE]
where
[TABLE]
Further, variables are assumed to be independently distributed as
[TABLE]
and is taken to be a small constant. Sampling from the posterior of \mbox{\boldmath\theta}=\{\theta_{kl}\} still involves the ratio of the normalising constants, \nu(\mbox{\boldmath\theta}^{P},\tau^{2})/\nu(\mbox{\boldmath\theta}^{C},\tau^{2}), but that, as was argued by Liechty et al., (2004), for small , can reasonably be approximated by one. In addition, now sampling for the posterior of given is straight forward. Hence, the computational burden is greatly alleviated.
We now provide details on the step of the MCMC algorithm that updates . This step uses the prior in (18) and the likelihood in (16). Hence, the posterior of is
[TABLE]
To obtain a proposal density and sample from (20) we utilize the method of Zhang et al., (2006) and Liu and Daniels, (2006). We start by considering a symmetric, positive definite and otherwise unconstrained matrix in place of , assumed to have an inverse Wishart prior \mbox{\boldmathE}\sim\text{IW}(\zeta,\mbox{\boldmath\Psi}), with mean equal to the realization of from the previous iteration of the sampler. Given the inverse Wishart prior on , we obtain the following, easy to sample from, inverse Wishart posterior
[TABLE]
We decompose \mbox{\boldmathE}=\mbox{\boldmathD}^{1/2}\mbox{\boldmathR}\mbox{\boldmathD}^{1/2} into a diagonal matrix of variances \mbox{\boldmathD}=\text{diag}(d^{2}_{1},\dots,d^{2}_{p}), and a correlation matrix . The Jacobian associated with this transformation is J(\mbox{\boldmathE}\rightarrow\mbox{\boldmathD},\mbox{\boldmathR})=\prod_{k=1}^{p}(d_{k})^{p-1}=|\mbox{\boldmathD}|^{(p-1)/2}. It follows that the joint density for (\mbox{\boldmathD},\mbox{\boldmathR}) is
[TABLE]
Sampling from (22) at iteration proceeds by sampling \mbox{\boldmathE}^{(u+1)} from (21) and decomposing \mbox{\boldmathE}^{(u+1)} into (\mbox{\boldmathD}^{(u+1)},\mbox{\boldmathR}^{(u+1)}). Further, the pair (\mbox{\boldmathD}^{(u+1)},\mbox{\boldmathR}^{(u+1)}) is accepted as a sample from (20) with probability
[TABLE]
where, in , \mbox{\boldmath\Psi}=(\zeta-p-1)\mbox{\boldmathE}^{(u)}. We treat as a tuning parameter and we automatically adjust its value (Roberts and Rosenthal,, 2009) so as to obtain an acceptance probability of (Roberts and Rosenthal,, 2001). Further details on the MCMC steps are provided in the Appendix and the supplementary materials online.
4 Simulation study
The first purpose in this simulation study is to quantify, in a simple scenario, the gains that one may have, in terms of reduced bias and variance, when estimating a posterior mean function by fitting the multivariate model of the highest available response dimension instead of a lower dimensional model. The second one is to report the run-times needed to fit models of increasing response dimension. To achieve these goals, it suffices to consider data-generating mechanisms with simple mean and variance functions. Simulation studies that illustrate the performance of the univariate version of the current model in capturing complex mean and variance functions have been presented by Chan et al., (2006) and Papageorgiou, (2018), and hence will not be revisited here. Additionally, we evaluate the model’s ability to select important variables with its spike-slab priors, and whether the variable selection ability depends on the dimension of the response. Lastly, we compare the performance of the models presented here with the performance of other models for sparse multivariate regression that have appeared in the literature.
The data-generating mechanism that we consider consists of ten orthogonal covariates, , each generated from a uniform distribution in the interval, and ten responses, , that are generated from a multivariate normal distribution with mean \mbox{\boldmath\mu}=(\beta_{01}+\beta_{11}x_{1},0,\dots,0)^{\top} and covariance \mbox{\boldmath\Sigma}(\rho). The first element of the mean is a linear function of , while all other elements are zero. The covariance matrix is taken to have diagonal elements equal to one and all off diagonal elements equal to .
The main interest here is on the quality of the estimate of the mean function of the first dimension. We examine how this quality, as measured by the posterior bias and variance, depends on the dimension of the response, the value of the correlation coefficient , and the chosen linear predictor. The effect of the dimension of the response is evaluated by fitting one-, two-, four-, six-, and ten-dimensional response models to the dataset that includes the ten responses. The effect of the correlation coefficient is examined by letting take values in the set . The effect of the choice of the linear predictor is evaluated by fitting mean models that include only the relevant covariate, , models that include the first three covariates, , and models that include all available covariates, .
For example, a four-dimensional response model considers and ignores . The mean functions of the responses are modelled using one of the following three options
[TABLE]
, where the first specification is correct for the first response and wrong for the other three responses, while the second and third are wrong for all responses. Further, we fit models with constant variance functions , and the common correlations model given in (12). Both the variance and correlation model specifications are the correct ones.
The regression coefficients are taken to be and . The chosen value of achieves a signal-to-noise ratio (SNR) equal to one, where SNR is defined as , with SST the total sum of squares SST= and SSE the error sum of squares SSE=. In addition, two values for the sample size are considered, .
For all models we run the MCMC sampler for sweeps, discarding the first as burn in, and of the remaining keeping one in two. This results in samples for , obtained by replacing the regression coefficients in the chosen linear predictor by the corresponding sampled values. We recall that the choices of the linear predictor are given in (23). Our final estimate of is taken to be the median of the sampled values, which we denote by , where subscript denotes the dimension of the response, . We quantify uncertainty about these estimates by forming credible intervals where the end-points of these intervals are the and quantiles of the sampled values.
We compare the models in terms of their bias and variance in estimating . As we estimate for a range of values, we summarize the bias by computing the sum of squared deviations of the estimates from the targets, . Further, the variance of the estimates is summarized by computing the sum of the squared lengths of the credible intervals, . To obtain representative results and independent of the generated dataset, we repeat the above process on replicate datasets for each sample size by correlation combination.
Results for the first choice of the mean model, , are presented in Tables 1 and 2. Table 1 compares models by reporting the ratio (as a percentage), that we refer to as the relative bias, while Table 2 compares models by reporting the ratio , that we refer to as the relative variance, . In Table 1 we see a clear decreasing trend of the relative bias as the correlation between the responses increases. Although the gains are low when the correlation between the responses is low, we observe a rapid decrease in the relative bias as the correlation increases, for all sample sizes and for all . We also observe that for , relative bias is lower than for , especially for and for correlations higher than . However, relative bias for and is very similar to that for . Similar patterns are observed for the relative variances in Table 2. There is a clear decreasing trend as the correlation increases, for all sample sizes and all dimensions. This decrease is more pronounced for high correlations between the responses, as one would expect given the results of Zellner, (1962). Results for the second and third mean models, as displayed in (23), are available in the supplement. Generally, the patterns of relative bias and variance are the same as those seen above, however, the gains are generally more pronounced.
It is always useful to compare new methods, such as the one presented here, with methods that have appeared in the literature. Here we make comparisons, in terms of posterior bias, with the method for multivariate regression of Rothman et al., (2010), that has been implemented in the R package MRCE (Rothman,, 2017). Rothman et al., (2010) present a method for sparse multivariate regression with covariance estimation (henceforth abbreviated as MRCE) that estimates regression coefficients by maximizing a multivariate normal likelihood with lasso penalties for the regression coefficients and the elements of the precision matrix. To each of the simulated datasets we fit MRCE models of response dimension and compute the total bias, , where is either or , depending on the mean model choice, and are the MRCE coefficient estimates for the second and third mean models. We note that comparisons are based on the second and third the mean models, but not the first one, as both approaches have a mechanism for inducing sparseness. Results, in the form of ratios expressed as percentages, for the second mean model, the two sample sizes and the five correlation coefficients are presented in Table 3. We see that all entries are well below , with the minimum at and the maximum at . Results for the third mean model are available in the supplement, and they are generally more pronounced than those of Table 3, ranging from to . A major advantage, however, of the MRCE approach is that the resulting algorithm is less computationally intensive than the MCMC sampler and thus model fitting is typically very fast.
To evaluate the variable selection performance of the proposed model, and to check its possible dependence on the response dimension, the correlation coefficient, the sample size, and the mean model choice, we compute the posterior probabilities that at least one of the irrelevant regressors, or is included in the mean model of the first response. Results, for the second mean model choice, expressed as percentages, are displayed in Table 4. We note that this evaluation depends on the choice of the prior for the inclusion probabilities, described in Section 2.3. The current evaluation is based on a Beta prior, but the inclusion probabilities can be made smaller by changing the parameters of the Beta prior in a way that decreases the prior probability of inclusion. We further note that the relevant predictor, was almost always included in the model, regardless of the choice of the Beta prior. For this reason, we do not provide results on the inclusion probabilities of this regressor. When fitting one-dimensional models, the irrelevant regressors were included of the time when , and of the time when . From this observation and from Table 4, it is clear that the probabilities of inclusion decrease as the sample size increases. From Table 4, it is also clear that, for fixed dimension , the probabilities decrease as the correlation coefficient increases. There is no clear pattern between inclusion probabilities and the dimension of the fitted model. Results for the third mean model choice are available in the supplementary materials. They follow the same pattern as the results of Table 4, with the probabilities being, as expected, a bit higher.
We conclude this section by reporting run-times of the models. We note that the MCMC sampler has been implemented in the C programming language and that the current simulations were run on an Intel Core i7 3.40GHz processor. Run-times are reported in Table 5. These range from sec for a univariate, simple linear regression model to about min, or sec, for a ten-dimensional response model. For both sample sizes, and all mean models, increasing the number of responses increases the run-time in a manner that is consistent with a cubic polynomial. Further, for all response dimensions, increasing the sample size increases the run-time linearly. This last point is not obvious from Table 5 as there are only two sample sizes, however, this was observed in other simulation studies not reported here.
5 Applications
This section describes two applications of the multivariate response model. The first application investigates how the human cardiovascular system responds to a particular kind of drug overdose. Due to the complexity of the cardiovascular system, a multivariate response measurement has been taken, thus the scientific objectives demand flexible regression models within a multivariate framework. The second application shows how the multivariate model can be used to semi-parametrically condition on additional information when fitting graphical models. We elaborate on a particularly nice example of this type of modelling described in Whittaker, (2009, p.1). The data used in the first application comes from Johnson and Wichern, (2014). Data for the second application comes from Whittaker, (2009) who in turn cites Mardia et al., (1979) as the original source.
5.1 Multiple response regression
The cardiovascular system of patients who had overdosed on amitriptyline (used to treat headaches and depression) was measured by taking a blood pressure reading (bp, ) and also by recording each patients’ PRQRS wave - as produced by an electrocardiogram. The PRQRS wave was broken down into two parts; the PR part (pr, ) and the QRS part (qrs, ). Hence, in this example, the number of responses is . Covariates include the size of the overdose that was measured in terms of the amount of the drug taken (amt), total blood plasma level (tot) and the amount of amitriptyline found inside the plasma (ami). The objective of this analysis is to obtain graphical and numerical summaries of the effects of the drug overdose, along with a quantification of the uncertainty around those summaries.
To avoid numerical instability as a result of the variables being measured on different scales, we work with centred and scaled versions of the responses. In addition, a new covariate defined as is introduced, and the explanatory variables are taken to be centred and scaled versions of , henceforth simply refer to as amt, tot, and ratio. The specific form of the model is
[TABLE]
with the means \mbox{\boldmath\mu}(\mbox{\boldmathx}_{i},\mbox{\boldmath\beta}^{\ast})=\left(\mu(\mbox{\boldmathx}_{i},\mbox{\boldmath\beta}_{1}^{\ast}),\mu(\mbox{\boldmathx}_{i},\mbox{\boldmath\beta}_{2}^{\ast}),\mu(\mbox{\boldmathx}_{i},\mbox{\boldmath\beta}_{3}^{\ast})\right)^{\top} given the following shared representation
[TABLE]
where and denote the three explanatory variables. The functions are represented as
[TABLE]
The same number of knots, , or equivalently basis functions, was chosen for all three semi-parametric terms. For each function , the same prior probability for the inclusion of , was used. These decisions were motivated by not having any reason to want to build in differing levels of functional complexity across the responses, nor across the explanatory variables.
Initial plots suggest little to no change in the variances of the response variables, although it is doubtful whether the eye or a model would be able to detect this with . For this reason was taken to consist of constant terms
[TABLE]
The grouped variables prior was placed on , with the upper limit on the number of clusters set to . This choice was guided by the the fact that responses pr and qrs are both measurements of the same biological feature (the PRQRS curve) and it would make sense for them to be similarly related to bp . By choosing to be equal to the number of responses, we allow for the possibility that such a grouping is not supported by the data.
The MCMC sampler was run for a total iterations discarding the first as burn in and thereafter retaining every second sample. Results are displayed in Figure 2. The first row displays the fitted curves for input amt and the three responses, bp, pr, and qrs. There is some evidence of nonlinear relationships, with the corresponding % credible intervals being very wide, reflecting a high level of uncertainty due to the high variance in the responses and the small sample size. Figure 2, row two, plots the fitted function for covariate tot and the three responses. Again, we observe some evidence of nonlinear relationships, with very wide % credible intervals. Lastly, the third row plots the fitted functions for covariate ratio. These plots highlight the way in which the credible intervals adapt to data sparsity. Where there is less data, the % credible interval is much wider.
The posterior summaries of the correlations in are given in Table 6. Displayed are the posterior means, standard deviations, point-wise credible intervals and probabilities of being allocated in the same cluster. The credible intervals are wide, reflecting the high degree of uncertainty in the values of the residual correlations. The posterior over the clustering structure places pr with qrs of the time, and places bp with pr and qrs and of the time, respectively.
5.2 Graphical Models
The multivariate normal allows for conditional independence results to be inferred from the structure found in the precision (inverse covariance) matrix. In particular, suppose vectors \mbox{\boldmathX}_{a},\mbox{\boldmathX}_{b},\mbox{\boldmathX}_{c} are jointly normal. It follows that \mbox{\boldmathX}_{a} is independent of \mbox{\boldmathX}_{b} given \mbox{\boldmathX}_{c}, if and only if, the (two identical) blocks of precision parameters relating \mbox{\boldmathX}_{a} with \mbox{\boldmathX}_{b} are all zero. This relation between conditional independence and the precision matrix is proven by considering how the multivariate normal density factorises when the precision matrix contains blocks of zeros.
Whittaker, (2009) presents an application of this technique. The data consist of scores on tests given to school children. The tests are mechanics (M), statistics (S), vectors (V), analysis (An) and algebra (Al). Matrices (a), (b) and (c) in Table 7 contain the empirical correlation matrix, scaled negative precision matrix and the suggested independence structure. The independence structure was arrived at by setting to zero all precision terms smaller in absolute value than . The same inference would be made for . The interpretation of this structure is that test results on M and V are independent of results on An and S given results on Al.
Putting aside worries about how to choose a threshold value in some principled way, we might also wish to explicitly condition on additional information about the school children. If the variables describing this additional information are not normally distributed, then they cannot be added directly into the graphical model. The model presented in this article allows a solution to this problem. We demonstrate this methodology by explicitly conditioning on Al and repeating the above analysis on the reduced correlation matrix describing the associations between the remaining test results. The analysis described previously suggests we ought to find that there is near zero precision term between the pairs (M, An), (M, S), (V, An) and (V, S).
The model we fit takes the form of
[TABLE]
Here \mbox{\boldmathY}_{i}\in\mathbb{R}^{4} is a vector containing the scores (M, V, An, S) for the th child. The mean vector, \mbox{\boldmath\mu}(\mbox{\boldmathx}_{i},\mbox{\boldmath\beta}^{\ast}), is a function of the single explanatory variable Al:
[TABLE]
where is the Algebra test score. In this example, there are sufficient data to warrant allowing the variances to vary smoothly with Al. We chose a structure that mirrors the mean model:
[TABLE]
To complete the specification, a prior needs to be placed over \mbox{\boldmathR}\in\mathbb{R}^{4\times 4}. In light of the objectives of this analysis, and motivated by the results obtained previously, we apply the grouped variables prior, with , expecting to find two groups: and .
The MCMC sampler was run for iterations, discarding as burn in and thereafter retaining every second sample. Figure 3 presents the estimated functions and credible intervals. There is evidence of non-linear dependency of the means on Al. The credible intervals are much tighter in this example, reflecting the larger sample size. The credible intervals can also be seen to adapt to the amount of available data.
The posterior probabilities that the elements of the precision matrix exceed the threshold are displayed in Table 7, matrix (d). These are estimated by inverting and scaling every sampled correlation matrix , and counting the number of times its elements exceed . The results do conform to a large extent to what was expected. The precision term relating V and M is almost certainly larger than , with posterior probability essentially one. Likewise, the term relating An with S is greater in magnitude than with probability . On the other hand, the terms relating the pairs (An, S) and (M, V) all have posterior probabilities of exceeding far below one. Interestingly, there is still a chance that An and V are dependent, even after conditioning on Al, thus displaying the utility of being able to check the assumptions behind a graphical model, by explicitly conditioning - in a semiparametric way - on part of the response vector.
6 Discussion
The article describes a framework for the analysis of multivariate normal responses, with nonparametric models for the means, the variances and the correlation matrix. By utilizing spike-slab priors, the described framework allows covariates that enter the mean and variance functions to automatically drop out of the model. This automatic variable selection can be of great importance when one has to deal with high dimensional datasets.
Our framework builds on the intuitive separation strategy that factorizes the covariance matrix into a diagonal matrix of variances and a correlation matrix. We have described parametric and nonparametric models for the correlation matrix, based on normal and DP mixtures of normals for the (transformed) elements of the correlation matrix. Even though we emphasised DP mixtures in the applications we presented, this certainly is not the only choice. In fact, since the models are intuitive and easy to understand, it is easy for practitioners to incorporate prior knowledge about the correlation structure into the model. In a simulation study we illustrated the efficiency gains that one may have when fitting a multivariate models. Hence, the method can be useful in practice, since multiple responses naturally arise in many applications.
Scheipl et al., (2012) present a different flavour of spike-slab priors for function selection in univariate structured additive regression models. Their model can include varying coefficient terms, smooth interactions between covariates, spatial effects and cluster-specific random effects. Allowing for such diverse effects within a multivariate setting is certainly worth pursuing as it would increase the practical utility of the methods presented here.
7 Appendix: MCMC algorithm
At the first step of our sampler, we update the elements of \mbox{\boldmath\gamma}_{jk},j=1,\dots,p,k=1,\dots,K. This is done as suggested by Chan et al., (2006), hence details are omitted, but are available in the supplement.
At the second step, pairs (\mbox{\boldmath\delta}_{jk},\mbox{\boldmath\alpha}_{jk}),j=1,\dots,p,k=1,\dots,Q, are updated simultaneously. Again, this is done as in Chan et al., (2006), who built on the work of Gamerman, (1997), but with the introduction of a free parameter that we select adaptively (Roberts and Rosenthal,, 2009) in order to achieve an acceptance probability of (Roberts and Rosenthal,, 2001).
The full conditional of is given by
[TABLE]
where denotes either the IG or half-normal prior. To sample from the above, we follow a random walk algorithm.
The full conditional for parameter is obtained from the marginal (17) and the IG prior
[TABLE]
To sample from the above, we utilize a normal approximation. Let . We utilize a normal proposal density where is the mode of , found using a Newton-Raphson algorithm, is the second derivative of evaluated at the mode, and is a tuning variance parameter that we choose adaptively
Concerning parameter , the full conditional corresponding to the IG prior is another inverse Gamma density, IG(a_{\alpha j}+N(\delta_{j})/2,b_{\alpha j}+\mbox{\boldmath\alpha}_{\delta_{j}j}^{\top}\mbox{\boldmath\alpha}_{\delta_{j}j}/2).
Further, using likelihood (16) and prior (15), we find the posterior \mbox{\boldmath\beta}^{\ast}_{\gamma} to be
[TABLE]
The next step of the algorithm updates . This step has been described in the main body of the article.
Further, to sample from the full conditional of , write f(\mbox{\boldmathr}|\mbox{\boldmath\theta},\tau^{2})=\nu(\mbox{\boldmath\theta},\tau^{2})N(g(\mbox{\boldmathr});\mbox{\boldmath\theta},\tau^{2}\mbox{\boldmathI}) for the likelihood in (18). Further, the prior for is given in (19), \mbox{\boldmath\theta}\sim N(\mu_{R}\mbox{\boldmath1},\sigma^{2}_{R}\mbox{\boldmathI}). Hence, it is easy to show that the posterior is
[TABLE]
At iteration , we sample \mbox{\boldmath\theta}^{(u+1)} utilizing as proposal the normal distribution that appears on the right hand side of (24). The proposed \mbox{\boldmath\theta}^{(u+1)} is accepted with probability
[TABLE]
which, for a small value of can reasonably be assumed to be unity (Liechty et al.,, 2004; Yu et al.,, 2014; Liechty et al.,, 2009).
We update from , where is the mean of the elements of vector .
Lastly, we update utilizing the following full conditional
[TABLE]
Proposed values are obtained from where denotes the current value and denotes a tuning parameter.
8 Supplementary Materials
Supplement
: Additional tables with simulation results and a detailed MCMC sampler. (.pdf file)
R package BNSP
: An R package that implements the MCMC algorithm and various functions for processing the posterior samples. The package is also available on CRAN. (.tar.gz)
Examples
: Folder containing R scripts for replicating simulations and data examples.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1Barnard et al., (2000) Barnard, J., Mc Culloch, R., and Meng, X.-L. (2000). Modeling covariance matrices in terms of standard deviations and correlations, with application to shrinkage. Statistica Sinica , 10(4):1281–1311.
- 2Chan et al., (2006) Chan, D., Kohn, R., Nott, D., and Kirby, C. (2006). Locally adaptive semiparametric estimation of the mean and variance functions in regression models. Journal of Computational and Graphical Statistics , 15(4):915–936.
- 3Chen and Dunson, (2003) Chen, Z. and Dunson, D. B. (2003). Random effects selection in linear mixed models. Biometrics , 59(4):762–769.
- 4Chiu et al., (1996) Chiu, T. Y. M., Leonard, T., and Tsui, K.-W. (1996). The matrix-logarithmic covariance model. Journal of the American Statistical Association , 91(433):198–210.
- 5Daniels and Kass, (1999) Daniels, M. J. and Kass, R. E. (1999). Nonconjugate Bayesian estimation of covariance matrices and its use in hierarchical models. Journal of the American Statistical Association , 94(448):1254–1263.
- 6Ferguson, (1973) Ferguson, T. S. (1973). A Bayesian analysis of some nonparametric problems. The Annals of Statistics , 1(2):209–230.
- 7Gamerman, (1997) Gamerman, D. (1997). Sampling from the posterior distribution in generalized linear mixed models. Statistics and Computing , 7(1):57–68.
- 8George and Mc Culloch, (1993) George, E. I. and Mc Culloch, R. E. (1993). Variable selection via Gibbs sampling. Journal of the American Statistical Association , 88(423):881–889.
