This paper extends the applicability of probabilistic graphical models to non Gaussian data. It establishes a characterization of the pairwise Markov property in undirected probabilistic graphical models in terms of copula densities. Building on this characterization, we derive a necessary condition for the pairwise Markov property in Student copula Markov networks. An Expectation-Conditional Maximization algorithm (ECM) is provided to facilitate the penalized maximum likelihood estimation and graph selection. The performance of the proposed algorithm is evaluated through simulation studies, which demonstrate its effectiveness in estimating model parameters and recovering the underlying graph structure.
1 Introduction
A probabilistic graphical model for a random vector X=(X1,…,Xd), d≥2, is a family of multivariate probability distributions associated to a graph which encodes the conditional independence relations among the variables Xi. These conditional independence relations translate into a set of factorization properties that are shared by all members of the family of probability distributions constituting the model. As each factor only includes a subset of the variables, this provides a modular representation of the model, thereby allowing more efficient inference and computations. Graphical models are broadly classified into two main groups: directed graphical models, also referred to as Bayesian networks or belief networks, which use directed edges between the nodes in the graph, and undirected graphical models, also referred to as Markov networks or Markov random fields, which use undirected edges between the nodes.
Inference in undirected graphical models is essentially done using Gaussian distributions, which present a severe limitation in many applications where the marginals are skewed or heavy-tailed. To weaken the Gaussian assumption, [9, 10] used Gaussian copula with nonparametric marginals. They made use of the graphical lasso algorithm of [7]. [5] used a Bayesian approach that assumed the observed mixed-type variables are transformations of latent Gaussian variables whose precision matrix encodes the conditional independence structure of an undirected graph. This essentially corresponds to embedding the Markov network into a Gaussian copula framework. [8] extended this approach to heterogeneous, mixed data from different groups.
The Gaussian copula has null tail dependence coefficients, which means it may be unfitting to applications where the probability of joint extremes events remains high no matter the extreme threshold.
[6] explored an approach of graphical modelling with the multivariate t-distribution. However, the model is not a Markov network stricto sensu. The density does not factor according to the graph, and the absence of an edge between two nodes does not imply conditional independence of the corresponding variables. Instead, the graph was constructed to reflect zeros in the precision matrix, a condition that only implies the Markov property in Gaussian models.
The starting point of our methodology is a characterization of the pairwise Markov property in terms of copula densities, which is then applied to common parametric copula families including Gaussian, Student and Archimedean copulas. In particular, in the Student copula case, we obtain a necessary condition of the pairwise Markov property which expresses as ρij⋅V∖{i,j}2=α(ν), where ρij⋅V∖{i,j} is the partial correlation coefficient of Xi and Xj. We derive an ECM algorithm for model selection in t-copula graphical models, and evaluate its performance with simulated data.
The rest of the paper is organized as follows: In Section 2, we derive the characterization of pairwise Markov property in terms of multivariate copula densities, and apply it to common parametric families such as Gaussian, Student and Archimedian. In Section 3, we present the ECM algorithm for graph selection in t-copula models. A simulation result is presented in Section 4.
2 Characterization of pairwise Markov property through copula densities
Let X=(X1,…,Xd), d≥2, be a continuous random vector with probability density f(x)=f(x1,…,xd). The copula function C associated with X is defined as the joint cumulative distribution function of the random vector (F1(X1),…,Fd(Xd)). It gives a full characterization of the dependence structure of the random variables [13]. If it exists, a copula density is defined as the derivative, c, of the copula distribution function C with respect to the Lebesgue measure:
Let V={1,2,…,d} and denote by XV∖{i,j} the vector defined by all components of X; except the components i and j. For all i,j∈V, c−{i,j} represents the copula density associated with the vector XV∖{i,j}; c−{i} represents the copula density associated with the vector XV∖{i} and c−{j} represents the copula density associated with the vector XV∖{j}.
The following result is well-known. We provide a direct proof as it will be similar for Student copula.
Proposition 1. Assume the dependence structure of X follows a d-dimensional Gaussian copula with zero mean and correlation matrix Σ such that K=Σ−1 is the precision matrix. If Xi⊥Xj∣XV∖{i,j}, then Kij=0.
The pairwise Markov property Xi⊥Xj∣XV∖{i,j} requires that (2) be satisfied for all u∈[0,1]d and in particular for u=(0.5,⋯,0.5) which gives z=(0,⋯,0). Therefore, (2) implies that
∣Σ∣∣Σ−{i,j}∣=∣Σ−{i}∣∣Σ−{j}∣.(12)
We can write Σ, Σ−{i} and Σ−{j} as block matrices:
where z=(z1,…,zd)T is the transpose of z, with zk=Tν−1(uk), k=1,…,d and Tν is the cumulative distribution function of the standard univariate Student law with ν degrees of freedom. We have
Copulas models with few real parameters such as the Archimedian copulas are incompatible with pairwise Markov properties. We illustrate this with the Clayton copula.
The density of the Clayton copula with parameter θ is given by
3 ECM algorithm for graph selection in Student t copula Markov network
3.1 Scale-mixture representation of t-distribution
The Student t-copula with correlation matrix Σ and ν degrees of freedom, CΣ,ν, is an elliptical copula with common marginal distributions. Since all the dependence information is contained in the copula, the marginal distributions do no affect the estimation of Σ and ν or the corresponding conditional independence graph. Therefore, there is no loss of generality in assuming Student marginals or any other marginals. Let us assume Student marginals. This corresponds to a multivariate t distribution.
The d-multivariate t-distribution can be represented as a scale-mixture: If Y∼td(0,Σ,ν) the multivariate t distribution, we can write Y=X/τ, where X∼Nd(0,Σ) is normally distributed, and τ∼Γ(ν/2,ν/2) is a Gamma random variable independent of Y (See for instance [11, 6]).
Since the conditional independence constraint is Kij2=α(ν)KiiKjj, estimates of the precision matrix K and the degree of freedom ν can be obtained by maximizing the penalized log-likelihood of the data, using as penalty λ∣∣K∣∣1, where K is a matrix with entries Kij=Kij2−α(ν)KiiKjj, and the L1 norm of a matrix is the sum of the absolute values of the matrix entries.
3.2 Penalized maximum likelihood estimation via the ECM algorithm
Consider Y1,…,Yn a random sample from a d-dimensional distribution whose associated copula is CΣ,ν, and set Yi=Xi/τi, with Xi∼Nd(0,Σ) and τ1,…,τn is a sequence of latent random variables that are independent and identically Gamma distributed, and independent of the Xi′s. Let K=Σ−1 be the precision matrix. Estimates of K and the degrees of freedom ν will be obtained via an ECM algorithm (see e.g. [12]).
The complete data log likelihood is
ℓ(K,ν)=i=1∑n[logf(xi∣τi,K)+logf(τi∣ν)].
Substituting the Gaussian and Gamma densities, and dropping constants gives
The derivatives of the objective function Q(K,ν)=ℓ(K,ν)−P(K,ν) with respect to K and ν are respectively,
∂K∂Q=∂K∂ℓ−∂K∂P
and
∂ν∂Q=∂ν∂ℓ−∂ν∂P.
Treating the latent variables τ1,…,τn as missing data, we can employ the following ECM algorithm for computing the maximum likelihood estimates of K and ν.
E-step:
Given the current parameter estimates K(t) and ν(t), the E-step computes wi=E(τi∣xi,K(t),ν(t)) and ui=E(logτi∣xi,K(t),ν(t)).
But
τi∣Xi∼Γ(2ν+d,2ν+xiTKxiT).(36)
Therefore, wi=ν(t)+xiTK(t)xiTν(t)+d and ui=ψ(2ν(t)+d)−log(2ν(t)+xiTK(t)xiT).
CM-step:
The CM-step maximizes the penalized expected complete-data log-likelihood with respect to K keeping ν fixed, and with respect to ν, keeping K fixed.
is not feasible. We will use the Alternating Direction Method of Multipliers algorithm (ADMM) (See for example [2, 4]) to find K(t+1)=argmaxKℓ(K,ν)−P(K,ν), written in ADMM form as
(b) JJ(k+1) update: Block coordinate descent [14, 15] will be applied. Off-diagonal and diagonal entries of J will be updated successively while keeping the other fixed. The objective function can be written as
Let tj(p) is the p-th smallest of the breakpoints tj's. Because of the convexity of g, only one of the intervals
(−∞,tj(1)),(tj(1),tj(2)),⋯,(tj(d−2),tj(d−1)),(tj(d−1),∞) contains its corresponding root
Jkk(t+1)=Bkk+ρλα(ν)j=k∑sjJjj.(43)
(c) U(k+1) update: U(k+1)=U(k)+K(k+1)−J(k+1).
4 Simulation Results
We simulated two sets of 2000 observations from a 10-dimensional Student copula distribution where the conditional independence relations were encoded in an A10 graph:
The first generated data uses Student marginals. The second generated data uses a mix of symmetric, left-skewed, right-skewed, and heavy tailed distributions. They include normal, Student, lognormal, gamma, Weibull, chi-squared, beta, and logistic distributions).
We implemented 200 iterations of the ECM algorithm, with initial values ν=1 and K=I, the identity matrix, and a convergence breaking when neither ν nor any element of K changed by more than 10−6 from one iteration to the next.
Results with first dataset:
The algorithm converged after just 24 iterations with ν^=4.22 and
The algorithm did not converge with the breaking rule 10−6, reducing this requirement to 10−4, the algorithm converged after 36 iterations, yielding estimates ν^=3.47 and
The maximum discrepancy between ρij and α(ν) was 99%, the average discrepancy was 40% and the median discrepancy was 39%. Allowing a discrepancy of 20%, 28% percent of the 36 missing edges were correctly identified, while only one true edge (11%) was not recovered. Raising the allowed discrepancy to 50%, 61% of the missing edges were correctly identified, while all true edges were perfectly recovered.
For comparison, with the glasso algorithm, we obtained
[1] Abadir, K. M. and Magnus, J. R. (2005). Matrix Algebra. Cambridge University Press.
[2] Boyd, S., Parikh, N., Chu, E., Peleato, B. and Eckstein, J. (2011). Distributed optimization and statistical learning via the alternating direction method of multipliers. Foundations and Trends in Machine Learning, 3(1), 1–122. doi:10.1561/2200000016.
[3] Brent, R. P. (1973). Algorithms for Minimization without Derivatives. Englewood Cliffs, NJ: Prentice-Hall.
[4] Danaher, P., Wang, P. and Witten, D. M. (2014). The joint graphical lasso for inverse covariance estimation across multiple classes. Journal of the Royal Statistical Society: Series B (Statistical Methodology), 76(2), 373–397. doi:10.1111/rssb.12033.
[5] Dobra, A. and Lenkoski, A. (2011). Copula Gaussian graphical models and their application to modeling functional disability data. The Annals of Applied Statistics, 5(2A), 969–993.
[6] Finegold, M. A. and Drton, M. (2014). Robust graphical modeling with t-distributions. arXiv preprint arXiv:1408.2033.
[7] Friedman, J., Hastie, T., and Tibshirani, R. (2008). Sparse Inverse Covariance Estimation with the Graphical Lasso. Biostatistics, 9(3), 432–441. https://doi.org/10.1093/biostatistics/kxm045
[8] Hermes, S., van Heerwaarden, J., and Behrouzi, P. (2024). “Copula Graphical Models for Heterogeneous Mixed Data.” Journal of Computational and Graphical Statistics, 33(3), 991–1005. https://doi.org/10.1080/10618600.2023.2289545
[9] Liu, H., Lafferty, J. and Wasserman, L. (2009). The nonparanormal: Semiparametric estimation of high-dimensional undirected graphs. Journal of Machine Learning Research, 10, 2295–2328.
[10] Liu, H., Han, F., Yuan, M., Lafferty, J. and Wasserman, L. (2012). High-dimensional semi-parametric Gaussian copula graphical models. The Annals of Statistics, 40(4), 2293–2326.
[11] Liu, C. and Rubin, D. B. (1995). ML estimation of the t distribution using EM and its extensions, ECM and ECME. Statistica Sinica, 5(1), 19–39.
[12] Meng, X.-L. and Rubin, D. B. (1993). Maximum likelihood estimation via the ECM algorithm: A general framework. Biometrika, 80(2), 267–278.
[13] Nelsen, R. B. (2006). An Introduction to Copulas. New York, NY: Springer.
[14] Shi, H.-J. M., Tu, S., Xu, Y. and Yin, W. (2016). A primer on coordinate descent algorithms. arXiv preprint arXiv:1610.00040.
[15] Wright, S. J. (2015). Coordinate descent algorithms. Mathematical Programming, 151, 3–34. doi:10.1007/s10107-015-0892-3.