New Research In
Physical Sciences
Social Sciences
Featured Portals
Articles by Topic
Biological Sciences
Featured Portals
Articles by Topic
 Agricultural Sciences
 Anthropology
 Applied Biological Sciences
 Biochemistry
 Biophysics and Computational Biology
 Cell Biology
 Developmental Biology
 Ecology
 Environmental Sciences
 Evolution
 Genetics
 Immunology and Inflammation
 Medical Sciences
 Microbiology
 Neuroscience
 Pharmacology
 Physiology
 Plant Biology
 Population Biology
 Psychological and Cognitive Sciences
 Sustainability Science
 Systems Biology
Empirical Bayes hierarchical models for regularizing maximum likelihood estimation in the matrix Gaussian Procrustes problem

Edited by Richard V. Kadison, University of Pennsylvania, Philadelphia, PA, and approved September 26, 2006 (received for review September 30, 2005)
Abstract
Procrustes analysis involves finding the optimal superposition of two or more “forms” via rotations, translations, and scalings. Procrustes problems arise in a wide range of scientific disciplines, especially when the geometrical shapes of objects are compared, contrasted, and analyzed. Classically, the optimal transformations are found by minimizing the sum of the squared distances between corresponding points in the forms. Despite its widespread use, the ordinary unweighted leastsquares (LS) criterion can give erroneous solutions when the errors have heterogeneous variances (heteroscedasticity) or the errors are correlated, both common occurrences with real data. In contrast, maximum likelihood (ML) estimation can provide accurate and consistent statistical estimates in the presence of both heteroscedasticity and correlation. Here we provide a complete solution to the nonisotropic ML Procrustes problem assuming a matrix Gaussian distribution with factored covariances. Our analysis generalizes, simplifies, and extends results from previous discussions of the ML Procrustes problem. An iterative algorithm is presented for the simultaneous, numerical determination of the ML solutions.
The goal of Procrustes analysis is to superpose nonidentical shapes in an optimal manner via scalings, translations, and rotations (1–3). Classical Procrustes analysis uses the unweighted leastsquares (LS) criterion for finding the optimal transformations. LS implicitly assumes that the landmarks describing the forms' shapes are uncorrelated and that they have identical variances (i.e., that they are homoscedastic). However, in many practical applications these assumptions are known to be violated. For instance, when superpositioning macromolecular proteins, individual atoms (the landmarks) are connected via covalent chemical bonds, and thus the variance of a given atom can be correlated with the variance of atoms to which it is connected. Furthermore, certain atoms may have larger mobilities than others, or they may have spatial positions with relatively greater uncertainty due to experimental error. Similarly, when comparing the skulls from different members of a species, some homologous features may be highly variable relative to others. Hence, different landmarks can have widely different variances. Under these conditions, ordinary LS can give misleading results, even with large samples of data (4).
The method of maximum likelihood (ML) is a common alternative to LS and is widely considered to be fundamental for statistical modeling and parameter estimation (5). Given the proper model, ML can provide accurate and robust estimates of parameters in the presence of both heteroscedasticity and correlation. Incorporating heterogeneous variances and nonzero correlations into the ML Procrustes problem involves weighting by two covariance matrices (a landmark and a dimensional covariance matrix). However, estimation of these covariance matrices has been a major stumbling block prohibiting a viable ML Procrustes analysis (1, 3, 6–10). Without special assumptions, simultaneous estimation of the landmark covariance matrix and the translations is generally impossible. By parametrically constraining the landmark covariance matrix using a hierarchical, empirical Bayes likelihood model, we provide a relatively simple solution that permits valid covariance estimation.
In addition to allowing simultaneous estimation of the landmark covariance matrix and the translations, we address several additional challenges that have thus far impeded successful ML inference in the Procrustes problem. (i) As usually described, Procrustes analysis gives degenerate estimates of the covariance matrices even when the translations are known (7). We suggest a method for uniquely identifying the covariance matrices, using the fact that the absolute reference frame in Procrustes analysis is arbitrary. (ii) The dimensional covariance matrix introduces further difficulties for optimal rotation estimation, and current methods involve a circuitous and computationally intensive numerical procedure. We provide a simplified, analytic solution to estimating the optimal rotations when using an arbitrary dimensional covariance matrix. (iii) We give a simplified ML estimator for the scaling factors and also present a hierarchical model for estimating the scalings that can improve estimation in common biological cases. (iv) The ML estimator of the mean form is known to be inconsistent (i.e., it converges to the wrong value as the number of forms increases). Based on the approximate χ^{2} distribution of the Procrustes sum of squared distances, we derive an easily calculable biascorrected ML estimator for the mean. Given that the errors are not large, this estimator is consistent for landmarks with uncorrelated, nonisotropic ellipsoidal variability. (v) Finally, we present a relatively simple and stable iterative algorithm for the simultaneous solution of these unknown parameters.
Formulation of the ML Procrustes Problem
In statistical shape theory, the shape of a geometrical configuration is commonly defined as the geometrical information that is unchanged after translation, rotation, and scaling of the object. Particular instances of an object, which are described by a set of points summarizing the object's shape, we refer to as a “form.” We also define “sizeandshape” as those geometrical aspects of a form that are unchanged after translation and rotation. In its most general formulation, Procrustes analysis involves the optimal matching of two or more form matrices. Here we consider only sets of forms where each form matrix has the same dimensions.
Consider N different forms (X_{i}, i = 1 … N), each with K corresponding points or “landmarks” that depict the form's shape. Each form is defined as a K × D matrix holding K rows of landmarks, where each landmark is a Dvector in ℜ^{D}. For example, when superposing protein structures, the forms are independent protein models and the landmarks are the threedimensional atomic coordinates of each atom in the protein structures. Furthermore, each form is observed in a different, arbitrary, and unknown coordinate system (1, 10, 11). The absolute reference frame for the forms is arbitrary; only relative rotational and translational transformations are of interest. We wish to estimate the optimal orthogonal rotations, translations, and scaling factors that, when applied to this set of form matrices, predict the observed data with the highest likelihood.
Gaussian Perturbation Model with Factored Covariances
To analyze the Procrustes problem from a likelihood perspective, one must choose a statistical model that is assumed to generate the observed data. We assume a perturbation model in which each form X_{i} is distributed according to a Gaussian (normal) probability density (7, 11). In this Gaussian perturbation model, each X_{i} can be considered to be an arbitrarily scaled, rotated, and translated Gaussian perturbation of a mean form M where R_{i} is a D × D rotation matrix, β_{i} is a scaling parameter, t_{i} is a 1 × D row vector for the translational offset, and 1_{K} denotes the K × 1 column vector of ones. The matrix E_{i} is a zeromean matrix of Gaussian random errors E_{i} ≈ N _{K,D} (0, Σ, Ξ) with the same dimensions as the mean form M, where Σ and Ξ are covariance matrices described in detail below. In other words, to generate each of the observed forms in Ddimensional Euclidean space, each landmark in an idealized mean form M is randomly perturbed according to a Gaussian distribution. The perturbations for each landmark may be unequal on average and may be correlated with each other, as specified by the covariance matrices. Each perturbed form is then arbitrarily scaled, rotated, and translated, the results of which constitute the observed data.
Covariance matrices describe the variability and correlations among the landmarks in the forms. In the above model, we use factored covariances by assuming that the overall KD × KD covariance matrix Ω can be decomposed adequately as the Kronecker product of Σ and Ξ (i.e., Ω = Σ ⊗ Ξ). Here, Σ is a K × K covariance matrix for the rows of the forms (the landmarks), and Ξ is a constrained D × D covariance matrix for the columns of the forms (the dimensions). In the protein structure example, the landmark covariance matrix Σ describes the variances and correlations among the atoms. Additionally, the dimensional covariance matrix Ξ describes the variances and correlations between the three coordinate axes, for example, if atomic positions are on average more variable in one dimension than another. We note that, in many cases, the factored covariance model is physically unrealistic, because it assumes that each of the landmarks have the same ellipsoidal principal axes of variability. However, we accept this assumption as a simplifying approximation, and note that it is more general than the assumptions underlying classical LS Procrustes analysis.
Although the product Σ ⊗ Ξ is uniquely identified, Σ and Ξ independently are not, because for all c > 0, Ω = Σ ⊗ Ξ = cΣ ⊗ 1/c Ξ. Thus, to jointly identify both Σ and Ξ, we impose the constraint that trΞ = D. Furthermore, as a generality in Procrustes analysis, the absolute rotational frame of reference is arbitrary, and only the relative rotations among the forms are of interest. As a result, Ξ is only identifiable up to an arbitrary orthogonal similarity transformation (7). However, any given Ξ can be spectrally decomposed such that Ξ = VΔV′. Then, the diagonal matrix of eigenvalues Δ is equivalent to the Ξ that would result if the mean form M were rotated with the orthogonal matrix V′ of left eigenvectors. Thus, for unique identifiability, we require that the axes of the mean form's reference frame be aligned with the principle axes of the dimensional covariance matrix Ξ. This requirement also guarantees that Ξ is diagonal.
Procrustes Matrix Gaussian Likelihood Equation
A likelihood analysis requires an explicit statement of the likelihood function derived from the probability density function that describes the assumed statistical model. The full joint likelihood equation for the Gaussian Procrustes model given in Eq. 1 is obtained from a multivariate matrix normal distribution (12, 13). To simplify the appearance of the likelihood equation, we define the squared Frobenius Mahalanobis matrix norm as ‖U‖_{V,W} ^{2} = tr{VU′WU}, which can be regarded as the sum of the squared elements of U with columns weighted by V and rows weighted by W. Letting U be the determinant of matrix U, the full Procrustes loglikelihood ℓ(β, R, t, M, Ξ, Σ; X) = ℓ_{P} is given by The Procrustes loglikelihood equation above (Eq. 2 ) is the key conceptual contribution underlying the ML analysis that follows. In order to solve the ML Procrustes problem, ML estimators must be derived for each of the unknown parameters in the Procrustes loglikelihood equation. We provide the individual ML estimates for each of these unknowns: the Ξ, Σ, M, and the N β_{i}, t_{i}, and R_{i} (for derivations see Appendices).
Regularization of the Covariance Matrices Allows Simultaneous Estimation
Estimation of the factored covariance matrices has been the primary impediment for a successful, practical implementation of a joint nonisotropic ML treatment of the Procrustes problem (1, 3, 6–10). We first present the unrestricted ML estimators of the covariance matrices and then discuss the difficulties that our approach remedies.
The unrestricted ML estimators of the covariance matrices, Ξ̂_{U} and Σ̂_{U}, are given by straightforward variants of the usual covariance estimators for the matrix normal distribution ( Appendix I ) (4, 13). where X̆ is a rowweighted centered form. ^{†} Because one of the covariance matrices must be normalized for identifiability, we (arbitrarily) choose to normalize Ξ̂_{U} by and use Ξ∼^{−1} in place of Ξ^{−1} in calculating Σ̂_{U} given in Eq. 3 .
Both of these covariance matrix estimators involve an inverse of a covariance matrix, as do several of the other ML solutions, a fact that presents three important and distinct difficulties for ML estimation in the Procrustes problem. First, in general, the ML estimators of the matrix normal covariance matrices only exist when the estimators are invertible, a requirement that obtains when N ≥ (K/D) + 1 and N ≥ (D/K) + 1 (13). In practice, these conditions are usually unsatisfied due to a paucity of available data. Second, Procrustes analysis requires centering the form matrices (e.g., Eq. 6 ), which imparts a common linear constraint on the columns of the forms. Even with ample data, then, the sample landmark covariance matrix is collinear and rank deficient, with at least one zero eigenvalue (3, 6), and consequently it is noninvertible. Third, and most fundamentally, the displacements due to Σ and the translations t_{i} are linearly entangled (see Eq. 1 ), and therefore unrestricted simultaneous estimation of both is impossible (6, 10). This latter problem is especially grave, because the unrestricted Procrustes estimators of the translations t_{i} and of the covariance matrix Σ are strongly interdependent; translations that closely superpose a given landmark decrease the estimated variance, and a small variance in turn preferentially weights the translations to center on that landmark. For example, it is always possible to find translation vectors that will perfectly superpose any selected landmark, thereby rendering its sample variance exactly zero, Σ̂ singular, and the likelihood infinite.
To overcome the first two of these problems it is sufficient to guarantee the invertibility of the estimated landmark covariance matrix, i.e., all eigenvalues must be positive. In the third difficulty, the possibility of an infinite likelihood immediately points to a need for regularization, either of the translations (6) or of the covariance matrix, or of both.
In real data sets, the variances often are unable to take arbitrary values, but rather they describe coupled components of a larger, integrated system. For instance, the atoms in a macromolecule are linked by chemical bonds, and the bones in a skull are physically joined by ligaments and at sutures. In such cases, the variances for each landmark are similar in magnitude, and extremely small or large variances are improbable and physically unrealistic. Thus, the problem of simultaneous estimation of the covariance matrices and the translations can be circumvented by realistically restricting the variances of the landmarks.
An alternative, then, is to view each of the eigenvalues (λ_{j}) of the landmark covariance matrix as a draw from a positive distribution (where λ_{j} > 0). The eigenvalues of the covariance matrix can be considered as variances with all correlations eliminated, e.g., the eigenvalues of a diagonal covariance matrix are the variances themselves. The inverse gamma (Iγ) distribution is used conventionally in Bayesian statistics as a natural proper prior for the variances in a multivariate Gaussian model (14). The flexibility of the Iγ distribution is convenient as it can adopt a wide variety of shapes approximating other distributions. Therefore, we regularize our matrix Gaussian Procrustes model using a hierarchical empirical Bayes approach (an extended likelihood) (5, 15) by assuming that the eigenvalues of the landmark covariance matrix belong to a common Iγ distribution. The full, regularized Procrustes loglikelihood (ℓ_{r}) is then the sum of the Procrustes loglikelihood from Eq. 2 and the loglikelihood of an Iγ distribution of the eigenvalues (see Eq. 15 in Appendix II ): ℓ_{r} = ℓ_{P} + ℓ(λ)_{Iγ}.
Assuming an Iγ distribution for the eigenvalues of the landmark covariance matrix (with scale parameter α and shape parameter γ), the extended ML estimator Σ̂_{Iγ} of Σ is a simple linear function of the unrestricted ML estimate Σ̂_{U} from Eq. 3 (see Appendix II )
In this hierarchical model, the Iγ parameters α and γ are point estimates determined by the data, unlike when using a bona fide Bayesian prior. Eq. 6 can be interpreted as a shrinkage estimator that contracts the eigenvalues of the covariance matrix towards the mode of the inverse gamma distribution. Given positive α and γ parameters, this regularized model constrains all eigenvalues (and variances) of the landmark covariance matrix to be positive, thereby guaranteeing that Σ̂_{Iγ} is invertible. Furthermore, this treatment enables simultaneous estimation of the landmark covariance matrix Σ and the translations by decoupling the strong dependence of their estimators. Thus, the inverse gamma regularization is sufficient to overcome all three of the difficulties listed above. In our experience, the Σ̂_{Iγ} estimator is also well conditioned. We note that our regularized hierarchical estimator of the multivariate Gaussian covariance matrix also has potential for wide applicability beyond Procrustes analysis.
Simplified ML Estimates of the Rotations
Maximizing the Procrustes likelihood with respect to the rotations is equivalent to maximizing the first term of Eq. 2 , which requires weighting by the inverse of the dimensional covariance matrix Ξ. Unfortunately, there is apparently no general algebraic solution to this maximization problem using an arbitrary, symmetric, dimensional weight matrix (2, 11, 16). Koschat and Swayne have proposed a solution for an arbitrary diagonal D × D weight matrix using a computationally intensive, iterative numerical algorithm assuming that Σ = I (16). However, the Koschat–Swayne algorithm is reported to have poor convergence properties and is sensitive to the seed values (16).
In our ML Procrustes treatment, the dimensional weight matrix is not arbitrary; rather, we weight specifically by the inverse of the dimensional covariance matrix (i.e., Ξ̂_{U} ^{−1}). In this case, there is a much simpler, analytic solution to maximizing the estimated ML target for the optimal rotation. Here the dimensionally weighted Procrustes problem reduces conveniently (see Appendix III ) to maximizing The rotations that maximize Eq. 7 can be found with the usual Procrustes singular value decomposition (SVD) solution (11). Let the SVD of an arbitrary matrix D be UΛV′. Then the maximizing rotations R̂_{i} are given by where rotoinversions can be avoided by constraining the determinant of R̂ _{i} to be 1 by using P = I if VU = 1 or P = diag(1, …, 1, −1) if VU = −1.
ML Estimation of the Scaling Factors
When superposing and comparing the shapes of different sized objects, scaling factors must be estimated to remove differences due to size alone. The unconstrained ML estimates of the scaling parameters β_{i} are given by However, unlike the rotations which are generally arbitrary with real data, it may be reasonable to model the scaling factors themselves as random variables drawn from a relevant probability distribution. For instance, the lognormal distribution arises as the limiting distribution of many small, multiplicative random effects, as may be expected for random deviations in size (17). Many biological entities subject to random variations in growth naturally fit a lognormal distribution. Assuming that β_{i} ≈ LN (θ, θ), where then the probabilities P(β_{i}) = P(1/β_{i}), and the mode of the distribution is 1 as required. The ML estimate β̂_{i} for the lognormally distributed scaling factors is the positive root of ( Appendix IV ) The (ln β_{i})/θ term in Eq. 11 can be thought of as a “penalty term” that concentrates the β̂ estimates around unity; otherwise it is identical to the nonparametric solution (Eq. 9 ).
ML Estimate of the Mean Form
Maximizing the likelihood with respect to the mean form M gives the familiar average (11) However, the average X̄ is an asymptotically biased estimate of the mean form M (it is too large) for constant K when superpositioning without scaling (i.e., setting β_{i} = 1 for all i) (1, 7, 18). For the case when Ξ and Σ are diagonal (i.e., no correlations), we offer the following easily computable, biascorrected ML Procrustes estimator M̃ of the mean ( Appendix V ) This biascorrected estimate is consistent (for constant K as N → ∞) provided that the errors are not very large, specifically when tr (Ξ^{−1}X̄′Σ^{−1}X̄) ≥ (D ^{2} + D)/2. For threedimensional forms, for example, this estimator is valid when the landmark variances are less than K/6 times the squared radius of gyration of the average form.
An Iterative Algorithm for ML Procrustes Analysis
In practice, the ML solutions given above must be solved simultaneously via numerical methods, because each of the unknown parameters is a function of the others. We have developed the following iterative algorithm (11, 13, 19) for determining solutions to each of the Procrustes ML estimators.

Initialize. Set Σ̂ = I, Ξ∼ = I, and β_{i} = 1 for all i; choose one of the X_{i} to serve as M̂.

Translate. Obtain each X̆_{i} by centering X_{i} according to footnote †.

Rotate. Calculate each R̂_{i} according to Eq. 8 , and set each X_{i} = X̆_{i}R̂_{i}.

Scale. For lognormally distributed scale factors, first find the lognormal shape/location parameter θ with Eq. 19. Newton–Raphson can then be used to find the lognormal scale estimates with an initial guess equal to the arbitrary scale factor estimate Eq. 9 or to the scale factor from the previous iteration.

Estimate the mean. Find the new average M̂ according to Eq. 12 or 13 . Return to step 3 and loop to convergence.

Estimate the inverse gamma distributed eigenvalues. Calculate Σ̂_{U} from Eq. 3 . The Σ̂_{U} covariance matrix must be decomposed, and the positive eigenvalues fit iteratively to an inverse gamma distribution. The rank of the sample covariance matrix is min(ND − D − 3, K − 3). At convergence, the rank is reduced by two due to the collinearity induced by the linear constraints from the scale and shape parameters of the inverse gamma regularization (see Eq. 6 ). The rank is further reduced (by one) due to additional collinearity from centering the form matrices (6). Thus, the maximally obtainable number of positive eigenvalues in our hierarchical treatment is K − 3; this rank deficiency is inherent in the Procrustes sample covariance matrix and cannot be eliminated by increasing the number of forms. Thus, we treat all zero eigenvalues as missing data using an ExpectationMaximization algorithm and include only the fullrank, positive eigenvalues of the sample covariance matrix when estimating the parameters of the inverse gamma distribution. If the covariance matrix is assumed to be diagonal, one must include only the K − 3 largest variances in the inverse gamma fit, as the smallest three are known a priori to be a zerovalued eigenvalues. Estimation of the regularized eigenvalues thus cycles until convergence between two steps: (i) fit the current estimates of the fullrank eigenvalues to an inverse gamma distribution, and (ii) obtain updated estimates of the eigenvalues by modification of the sample eigenvalues analogous to Eq. 6 . λ_{Iγ,j} = (NDλ_{U,j} + 2α)/(2(1 + γ) + ND).

Estimate the landmark covariance matrix. Calculate Σ̂_{Iγ} from Eq. 6 using the α̂ and γ̂ inverse gamma parameters determined in the previous step.

Estimate the dimensional covariance matrix. Calculate Ξ∼ from Eq. 5 . Return to step 6 and loop to convergence.

Align the superposition with Ξ∼. Let the spectral decomposition of Ξ∼ be VΔV′. Rotate the entire superposition, including the average form M̂, with the matrix V′ of left eigenvectors (i.e. set M̂ = M̂V′) so that Ξ∼ is equivalent to the diagonal matrix Δ.

Loop. Return to step 2 until convergence (e.g., stop if the relative difference between rotation matrices between iterations fall below a specified tolerance, such as 10^{−7}).
We have implemented this algorithm in THESEUS, a UNIX C program intended for likelihood analysis of biological macromolecules (25). Because of the complexity of the problem, the efficiency of the algorithm is difficult to determine generally. If Σ is assumed to be diagonal, then the algorithm is very efficient (O(NK)). In our experience, even with large threedimensional problems, when assuming a diagonal landmark covariance matrix (e.g., K = 200 and N = 500), the algorithm converges rapidly after a few dozen iterations (from milliseconds to a few seconds on a 500 MHz G4 laptop). When using full, arbitrary covariance matrices on a lowdimensional problem, the algorithm is O(K ^{3}), as the limiting step is the inversion of the landmark covariance matrix Σ̂; in this case, the calculation may take a few minutes.
Comparison with Previous Analyses
Our likelihood analysis offers several ML Procrustes estimators, including the covariance matrices (Ξ∼ and Σ̂), a biascorrected average form (M̃), lognormally distributed scaling factors (β̂_{i}), and simplified estimates of the rotations (R̂_{i}) when weighting the dimensions. Several of our solutions differ significantly from corresponding solutions to similar problems proposed previously in the Procrustes literature (1, 7, 8, 10, 11, 16). Unlike the unconstrained covariance estimators reported in Goodall and recounted by others (1, 7, 8, 11), each of our covariance estimators is itself a function of the other covariance matrix. Equations 10.2 and 10.3 of Goodall (11) are only valid when either Ξ or Σ is constrained to be equal to the identity matrix. Additionally, to find the optimal rotations when weighting with a factored dimensional covariance matrix, Goodall proposes a method using the Koschat–Swayne algorithm (16). Goodall's method aims to maximize numerically the same estimated likelihood target as our method, corresponding to the first term of Eq. 2 . In contrast to the Goodall and Koschat–Swayne treatments, our analytic solution (Eq. 8 ) is shown to be valid for a nondiagonal dimensional weight matrix Ξ^{−1} and for Σ ≠ I. Finally, we present estimates of the scaling factors that differ from that reported in Goodall (10). When X̆_{i}R_{i} is identical to the mean form M, the scaling factor must necessarily equal unity, since no scaling is required when the mean form is superposed on itself. Unlike the scale factor estimator given in Goodall (equation 2.4), both of our ML estimators (Eqs. 9 and 11 ) conform to this logically necessary condition.
Several authors have reported that the Procrustes estimate of the mean form (corresponding to the estimated ML estimator, Eq. 12 ) is inconsistent (1, 7), being too large as the number of forms approaches infinity. The inconsistency of the average form is a result of ignoring the uncertainty introduced by using estimates of the rotations and translations in Eq. 12 , rather than using their true values, which are unknown. However, we note that Eq. 23 implies that the average X̄ is in fact a consistent estimator of the mean M (assuming nonisotropic and uncorrelated errors) in the limit as both the numbers of landmarks (K) and forms (N) increase together, since then the bias factor approaches 1 in probability.
Performance of ML Procrustes Analysis with Simulated Data
We conducted simulations to investigate the ability of our ML Procrustes method to correctly infer known parameters of a family of forms. One common application of Procrustes methods in structural biology is superposing the atomic coordinates of multiple protein structures, each adopting a similar yet variable molecular conformation. To create an artificial data set, 400 perturbed protein structures were generated randomly, assuming a matrix Gaussian error distribution with a known mean form and known covariance matrices. At this stage of the simulation, the resulting family of perturbed structures consists of a known superposition, since the structures have not yet been subjected to arbitrary rotations and translations. As the final step in creating our test set of forms, we randomly translated and rotated each of the perturbed structures.
We then applied our ML Procrustes procedure to this simulated data set, obtaining estimates of the coordinates of the mean structure, the covariance matrices, and the original superposition. To illustrate the robustness of the ML method to violations of the assumptions, in this superposition analysis we assumed a diagonal landmark covariance matrix, even though the true covariance matrix contains large correlations. For comparison, we also performed a standard LS Procrustes analysis on the same data set. Results of a representative simulation are shown in Fig. 1.
Visual inspection clearly shows the remarkably close correspondence between the ML superposition and the known “true” superposition (Fig. 1). In contrast, the LS superposition is largely inaccurate, with a marked excess of positional variability in the regions of the structure with the least true variance. A residuals plot of the LS superpositions shows the telltale signs of extremely heteroscedastic data, indicating that the LS assumption of homoscedastic data has been violated (Fig. 2, which is published as supporting information on the PNAS web site). In contrast, a residuals plot of the ML superposition shows a very even spread for each landmark, as would be expected if the covariance matrices were estimated accurately. Similarly, probability plots of the residuals indicate large deviations from normality for the LS method, whereas ML recovers the true Gaussian distribution very well (Fig. 3, which is published as supporting information on the PNAS web site). A χ^{2} analysis comparing the inferred covariance matrices to the known covariance matrices also indicates the superior accuracy of ML vs LS superpositioning (reduced χ^{2} = 0.83, P = 1.0 vs. χ^{2} = 14,293, P = 0.0, respectively). Finally, both methods recovered the mean structure with good accuracy, although the ML method was slightly better than LS (0.074 vs 0.11 Å root mean squared error, respectively). Simulations with a large set of forms (400 here) should reflect the asymptotic behavior of the methods. However, qualitatively similar results are also obtained when superposing much smaller numbers of simulated structures (even as few as N = 2, see Data Sets 1 and 2, which are published as supporting information on the PNAS web site).
The Procrustes likelihood analysis described here should be of widespread applicability for quantitative comparison of shape. Unlike LS, our ML analysis results in approximately Gaussian distributed residuals, opening the possibility for the application of standard statistical analyses that rely on Gaussian errors for their validity. Additionally, because of the greatly improved estimation of the covariance matrices, it should be possible to accurately analyze major modes of covariation in a family of forms via principal components analysis (18).
Acknowledgments
We thank Meredith Betterton, Ian Dryden, Colin Goodall, Subhash Lele, and Norm Pace for helpful comments and suggestions. This work was supported by the Arnold and Mable Beckman Foundation and National Institutes of Health Grant GM59414. D.L.T. was supported by Postdoctoral Fellowship Grant PF0411801GMC from the American Cancer Society.
Appendices
In the following derivations, all loglikelihoods with respect to a given parameter are stated up to an arbitrary constant. Likelihoods are maximized by standard application of matrix derivatives (20), by finding the first derivative of the loglikelihood function with respect to the parameter of interest, setting it to zero, and solving for the parameter.
Appendix I: ML Estimates of the Factored Covariance Matrices.
We first define the error displacement matrix E_{i} as the matrix of differences from the mean M for each translated, scaled, and rotated form X_{i} The loglikelihood for the rowwise covariance matrix Σ is Taking the derivative with respect to Σ and setting it equal to zero gives where A ⊙ B denotes the Hadamard (elementwise) product of two matrices A and B. Thus, after simplification and multiplication by Σ twice, we have Σ̂ = (1/ND) Σ_{i} ^{N} E _{i}Ξ^{−1} E′_{i}, which is equivalent to Eq. 3 . Derivation of the ML estimator of Ξ proceeds similarly.
Appendix II: Inverse Gamma Distributed Variances.
The probability distribution function for an inverse gamma distribution of the eigenvalues of the rowwise covariance matrix is The corresponding loglikelihood of the eigenvalues is The unrestricted loglikelihood for Σ can be written as (compare Appendix I ) The Procrustes extended loglikelihood (5, 15) assuming inverse gamma distributed eigenvalues ℓ(Σ)_{Iγ} is simply the sum ℓ(λ)_{Iγ} + ℓ(Σ). Taking the derivative of ℓ(Σ)_{Iγ} with respect to Σ and setting it equal to zero gives which, after pre and postmultiplication by Σ^{−1} and rearrangement, gives Eq. 6 .
Appendix III: ML Rotations with Dimensional Weighting by Ξ^{−1}.
If all structures have been centered, the likelihood equations simplify. For centered form matrices, the loglikelihood with respect to the rotations is The nuisance parameters Ξ, Σ, and M are in general unknown, and as a consequence the likelihood given in Eq. 15 cannot be maximized directly. Therefore, as in Goodall (11), we use the method of estimated likelihood (5, 21, 22) to construct a modified target likelihood function by replacing these nuisance parameters with their ML estimates (Ξ̂, Σ̂, and M̂, respectively). To simplify the derivation here, we choose Σ to be the normalized member of the factored covariance matrices. After substitution with ML estimates, Eq. 15 can be expanded as the estimated likelihood ℓ_{e}(R) = ℓ(R, Ξ̂, Σ̂, M̂) After substitution with Eq. 12 for the estimate of the mean form M̂, the ML estimate of the dimensional covariance matrix Ξ̂_{U} can be expressed as Substitution of Eq. 17 into Eq. 16 gives In the final term of Eq. 18 the two matrices cancel reducing to NKD/2. Hence, when maximizing the estimated likelihood ℓ_{e}(R) with respect to the rotations (holding other nuisance parameters fixed), both the last two terms of Eq. 18 are constant. Maximization of the first term alone (as given in Eq. 8 ) provides a ML estimate of the rotation R_{i}.
Appendix IV: ML Procrustes Estimate of Lognormally Distributed Scale Factors.
In the lognormal distribution given in Eq. 11 , the shape and location parameter both equal θ to constrain the mode of the distribution to 1. Given a sample of N scale factors β_{i}, the ML estimate of θ is The loglikelihood for the scale factors β given a lognormal LN:(θ,θ) distribution is The Procrustes extended loglikelihood ℓ_{P,LN} (5, 15) assuming lognormally distributed scale factors is then given by the sum of ℓ(β_{i})_{LN} and ℓ_{P} (from Eq. 2 ). With respect to β_{i} the joint loglikelihood is Taking the derivative of ℓ(β)_{P,LN} with respect to β_{i}, setting it equal to zero, and multiplying through by −β_{i} yields Eq. 11 .
Appendix V: BiasCorrected ML Procrustes Estimate of the Mean Form.
In the following, we assume that Ξ and Σ are both diagonal, and that β_{i} = 1 for all i. The sum of squared distances from the mean for each landmark (G _{j}) in a set of optimally superimposed forms is given by where x _{i,j} is the jth 1 × D row vector in the optimally translated and rotated form matrix X̆_{i}R_{i}, such that X̆_{i}R_{i} = [x′_{i,1} …x′_{i,j}]′. It can be shown from standard multivariate analysis that (12) where similarly μ_{j} is the jth row vector in the mean form matrix M. Assuming that G _{j} is approximately χ^{2} distributed (1, 23, 24), then G _{j} ≈ σ_{j} ^{2}χ_{Fj} ^{2} with F _{j} degrees of freedom. For each of the K landmark row vectors in the N forms there are D degrees of freedom. However, for each of the N forms, D degrees of freedom are lost due to translational estimation, and ½ D(D − 1) degrees are lost due to rotational estimation (1, 24). Thus, by distributing the lost degrees of freedom over each of the K row vectors in proportion to the contribution of each landmark to the minimization criterion (w _{j} = μ_{j}Ξ^{−1}μ′_{j}/[σ_{j} ^{2} tr(Ξ^{−1}M′Σ^{−1}M)]), we have It then follows trivially that (17) Combining Eqs. 20 – 22 yields the asymptotic result as N → ∞ The final factor on the right hand side of Eq. 23 is an estimate of the asymptotic bias of the average. Setting μ_{j} = Bx̄_{j} (implying M = BX̄) and solving for B gives Eq. 13 .
Appendices
In the following derivations, all loglikelihoods with respect to a given parameter are stated up to an arbitrary constant. Likelihoods are maximized by standard application of matrix derivatives (20), by finding the first derivative of the loglikelihood function with respect to the parameter of interest, setting it to zero, and solving for the parameter.
Appendix I: ML Estimates of the Factored Covariance Matrices.
We first define the error displacement matrix E_{i} as the matrix of differences from the mean M for each translated, scaled, and rotated form X_{i} The loglikelihood for the rowwise covariance matrix Σ is Taking the derivative with respect to Σ and setting it equal to zero gives where A ⊙ B denotes the Hadamard (elementwise) product of two matrices A and B. Thus, after simplification and multiplication by Σ twice, we have Σ̂ = (1/ND) Σ_{i} ^{N} E _{i}Ξ^{−1} E′_{i}, which is equivalent to Eq. 3 . Derivation of the ML estimator of Ξ proceeds similarly.
Appendix II: Inverse Gamma Distributed Variances.
The probability distribution function for an inverse gamma distribution of the eigenvalues of the rowwise covariance matrix is The corresponding loglikelihood of the eigenvalues is The unrestricted loglikelihood for Σ can be written as (compare Appendix I ) The Procrustes extended loglikelihood (5, 15) assuming inverse gamma distributed eigenvalues ℓ(Σ)_{Iγ} is simply the sum ℓ(λ)_{Iγ} + ℓ(Σ). Taking the derivative of ℓ(Σ)_{Iγ} with respect to Σ and setting it equal to zero gives which, after pre and postmultiplication by Σ^{−1} and rearrangement, gives Eq. 6 .
Appendix III: ML Rotations with Dimensional Weighting by Ξ^{−1}.
If all structures have been centered, the likelihood equations simplify. For centered form matrices, the loglikelihood with respect to the rotations is The nuisance parameters Ξ, Σ, and M are in general unknown, and as a consequence the likelihood given in Eq. 15 cannot be maximized directly. Therefore, as in Goodall (11), we use the method of estimated likelihood (5, 21, 22) to construct a modified target likelihood function by replacing these nuisance parameters with their ML estimates (Ξ̂, Σ̂, and M̂, respectively). To simplify the derivation here, we choose Σ to be the normalized member of the factored covariance matrices. After substitution with ML estimates, Eq. 15 can be expanded as the estimated likelihood ℓ_{e}(R) = ℓ(R, Ξ̂, Σ̂, M̂) After substitution with Eq. 12 for the estimate of the mean form M̂, the ML estimate of the dimensional covariance matrix Ξ̂_{U} can be expressed as Substitution of Eq. 17 into Eq. 16 gives In the final term of Eq. 18 the two matrices cancel reducing to NKD/2. Hence, when maximizing the estimated likelihood ℓ_{e}(R) with respect to the rotations (holding other nuisance parameters fixed), both the last two terms of Eq. 18 are constant. Maximization of the first term alone (as given in Eq. 8 ) provides a ML estimate of the rotation R_{i}.
Appendix IV: ML Procrustes Estimate of Lognormally Distributed Scale Factors.
In the lognormal distribution given in Eq. 11 , the shape and location parameter both equal θ to constrain the mode of the distribution to 1. Given a sample of N scale factors β_{i}, the ML estimate of θ is The loglikelihood for the scale factors β given a lognormal LN:(θ,θ) distribution is The Procrustes extended loglikelihood ℓ_{P,LN} (5, 15) assuming lognormally distributed scale factors is then given by the sum of ℓ(β_{i})_{LN} and ℓ_{P} (from Eq. 2 ). With respect to β_{i} the joint loglikelihood is Taking the derivative of ℓ(β)_{P,LN} with respect to β_{i}, setting it equal to zero, and multiplying through by −β_{i} yields Eq. 11 .
Appendix V: BiasCorrected ML Procrustes Estimate of the Mean Form.
In the following, we assume that Ξ and Σ are both diagonal, and that β_{i} = 1 for all i. The sum of squared distances from the mean for each landmark (G _{j}) in a set of optimally superimposed forms is given by where x _{i,j} is the jth 1 × D row vector in the optimally translated and rotated form matrix X̆_{i}R_{i}, such that X̆_{i}R_{i} = [x′_{i,1} …x′_{i,j}]′. It can be shown from standard multivariate analysis that (12) where similarly μ_{j} is the jth row vector in the mean form matrix M. Assuming that G _{j} is approximately χ^{2} distributed (1, 23, 24), then G _{j} ≈ σ_{j} ^{2}χ_{Fj} ^{2} with F _{j} degrees of freedom. For each of the K landmark row vectors in the N forms there are D degrees of freedom. However, for each of the N forms, D degrees of freedom are lost due to translational estimation, and ½ D(D − 1) degrees are lost due to rotational estimation (1, 24). Thus, by distributing the lost degrees of freedom over each of the K row vectors in proportion to the contribution of each landmark to the minimization criterion (w _{j} = μ_{j}Ξ^{−1}μ′_{j}/[σ_{j} ^{2} tr(Ξ^{−1}M′Σ^{−1}M)]), we have It then follows trivially that (17) Combining Eqs. 20 – 22 yields the asymptotic result as N → ∞ The final factor on the right hand side of Eq. 23 is an estimate of the asymptotic bias of the average. Setting μ_{j} = Bx̄_{j} (implying M = BX̄) and solving for B gives Eq. 13 .
Footnotes
 *To whom correspondence should be sent at the present address: Brandeis University, MS013, Waltham, MA 02454. Email: dtheobald{at}brandeis.edu

Author contributions: D.L.T. and D.S.W. designed research; D.L.T. performed research; D.L.T. contributed new reagents/analytic tools; D.L.T. and D.S.W. analyzed data; and D.L.T. and D.S.W. wrote the paper.

The authors declare no conflict of interest.

This article is a PNAS direct submission.

↵ † Rowwise weighted centering can be applied to an uncentered structure X_{i} by X̆_{i} = X_{i} + 1_{K}t̂_{i}, where t̂_{i} is the ML estimate of the translation. The ML translation is independent of the rotations R_{i}, the scaling factors β_{i}, and the dimensional covariance matrix Ξ, and it is given by −(1′_{K}Σ^{−1}X_{i}/1′_{K}Σ^{−1}1_{K}), where X _{i} is an uncentered structure (11).
 Abbreviations:
 LS,
 least squares;
 ML,
 maximum likelihood.

Freely available online through the PNAS open access option.
 © 2006 by The National Academy of Sciences of the USA
References

↵
 Dryden IL ,
 Mardia KV

↵
 Gower JC ,
 Dijksterhuis GB

↵
 Lele S ,
 Richtsmeier JT

↵
 Mardia K ,
 Goodall C
 Patil G ,
 Rao C

↵
 Pawitan Y
 ↵
 ↵

↵
 Glasbey C ,
 Horgan G ,
 Gibson G ,
 Hitchcock D

↵
 Goodall C

↵
 Goodall C
 Mardia KV ,
 Gill CA

↵
 Goodall C

↵
 Arnold SF

↵
 Dutilleul P

↵
 Broemeling L
 ↵
 ↵

↵
 Evans M ,
 Hastings N ,
 Peacock JB
 ↵

↵
 Dempster AP ,
 Laird NM ,
 Rubin DB
 ↵

↵
 Royall R
 ↵

↵
 Langron SP ,
 Collins AJ

↵
 Sibson R

↵
 Theobald DL ,
 Wuttke DS
Citation Manager Formats
More Articles of This Classification
Physical Sciences
Applied Mathematics
Biological Sciences
Biophysics
Related Content
 No related articles found.
Cited by...
Similar Articles
You May Also be Interested in
Sign up for Article Alerts
Jump to section
 Article
 Abstract
 Formulation of the ML Procrustes Problem
 Gaussian Perturbation Model with Factored Covariances
 Procrustes Matrix Gaussian Likelihood Equation
 Regularization of the Covariance Matrices Allows Simultaneous Estimation
 Simplified ML Estimates of the Rotations
 ML Estimation of the Scaling Factors
 ML Estimate of the Mean Form
 An Iterative Algorithm for ML Procrustes Analysis
 Comparison with Previous Analyses
 Performance of ML Procrustes Analysis with Simulated Data
 Acknowledgments
 Appendices
 Footnotes
 References
 Figures & SI
 Authors & Info