Geostatistics Lessons
Multivariate Statistics
Cite

Cite this lesson

Citation format

Barnett, R. M. (2017). Projection Pursuit Multivariate Transform. In J. L. Deutsch (Ed.), Geostatistics Lessons. Retrieved from https://geostatisticslessons.com/lessons/ppmt

Barnett, Ryan M. “Projection Pursuit Multivariate Transform.” Geostatistics Lessons, edited by J. L. Deutsch, 2017, https://geostatisticslessons.com/lessons/ppmt.

Barnett, Ryan M. 2017. “Projection Pursuit Multivariate Transform.” In Geostatistics Lessons, edited by J. L. Deutsch. https://geostatisticslessons.com/lessons/ppmt.

@incollection{ppmt,
  author = {Barnett, Ryan M.},
  editor = {Deutsch, J. L.},
  title = {Projection {Pursuit} {Multivariate} {Transform}},
  booktitle = {Geostatistics Lessons},
  year = {2017},
  url = {https://geostatisticslessons.com/lessons/ppmt}
}

Download PDF(3954KB) (opens in a new tab)

Projection Pursuit Multivariate Transform

  • Ryan M. Barnett, University of Alberta

Learning Objectives

  • Understand why multivariate Gaussian transforms are used for geostatistical modeling.
  • Review essential steps of the projection pursuit multivariate transform (PPMT).
  • Interpret PPMT results with data of varying dimensions to consolidate understanding of the technique.
  • Understand how to transform data with the PPMT in practice for simulation (source code available).
Code and data notebook ↗

Introduction

Linear decorrelation transforms, such as principal component analysis (PCA) and min/max autocorrelation factors (MAF) are popular geostatistical tools for modeling multiple geological variables. Readers unfamiliar with these methods are encouraged to review the associated lessons as they provide the foundation for methods in this lesson. Linear decorrelation transforms are commonly applied within geostatistical simulation workflows that follow five primary steps:

  1. Standardization or a normal score transform is used to center the variables and improve interpretability
  2. A linear transform is used to decorrelate the variables
  3. A normal score transform is applied to the decorrelated variables, making them univariate Gaussian
  4. Realizations of the transformed variables are simulated independently, assuming they follow the uncorrelated multivariate Gaussian (multiGaussian) distribution
  5. The normal score, linear and standardization back-transforms restore the original correlation and units to the realizations

There are potential issues with this workflow. First, the normal score transform may re-introduce correlation to the decorrelated variables. Second, and more significantly, dependence may exist in the decorrelated variables. A correlation coefficient parameterizes a multiGaussian distribution such as the schematic illustration below, but does not parameterize data with complexities such as non-linearity, heteroscedasticity and constraints.

Schematic illustration of bivariate complexities.
Figure 1: Schematic illustration of bivariate complexities.

Any dependence that is not parameterized by the correlation coefficient will not be removed by linear decorrelation transforms. If remnant dependence is significant when applying Step 3 above, the back-transformed realizations are unlikely to reproduce the original multivariate dependencies, as well as univariate properties such as the histogram. This motivates multiGaussian transforms, which facilitate the following workflow:

  1. A multiGaussian transform makes the variables uncorrelated and multiGaussian
  2. Realizations of the transformed variables are simulated under the assumption of independence
  3. The multiGaussian back-transform restores the original multivariate dependencies and units to the realizations

The key to this workflow is that an uncorrelated and multiGaussian distribution is independent by definition so that the assumption in Step 2 is valid. Unlike linear decorrelation, the multiGaussian transform removes multivariate complexities before reintroducing them to simulated realizations. This workflow was introduced by (Leuangthong & Deutsch, 2003), where the stepwise conditional transform (Rosenblatt, 1952) was used.

Although suitable in some cases, the binning nature of stepwise often creates challenges for greater than 2 to 4 variables. This served as primary motivation for the projection pursuit multivariate transform (Barnett, Manchuk, & Deutsch, 2014), which applies a modified form of the transform that is internal to projection pursuit density estimation (Friedman, 1987; Hwang, Lay, & Lippman, 1994). Relative to stepwise, the PPMT may be applied to additional variables and requires fewer implementation parameters. This lesson begins by outlining the major steps of the PPMT. After demonstrating the transform, practical considerations relating to its use within a multiGaussian simulation workflow are discussed.

Transform Steps

The PPMT is composed of two major steps, pre-processing and projection pursuit. Pre-processing is used to make the data marginally Gaussian and remove linear dependence, before projection pursuit makes the data multiGaussian through removing complex dependence. Readers are referred to (Barnett et al., 2014) and (Barnett, Manchuk, & Deutsch, 2016) for additional information.

Pre-processing

Consider kk geological variables Z1,...,ZkZ_1,...,Z_k that are sampled at nn locations to provide the data matrix Z:zα,i,α=1,...,n,i=1,...,k\mathbf{Z}: z_{\alpha,i}, \alpha=1,...,n, i=1,...,k. The first pre-processing step applies the normal score transform (Bliss, 1934; Verly, 1983). Although it is used extensively in geostatistics, the normal score transform is formally defined and schematically illustrated below since it is also used within projection pursuit: Y:yα,i=G−1(Fi(zα,i)), for α=1,...,n,i=1,...,k\mathbf{Y}: y_{\alpha,i} = G^{ - 1} \left( F_i (z_{\alpha,i} ) \right), \text{ for } \alpha = 1,...,n, i = 1,...,k

where probabilities pp are matched between the cumulative distribution function (CDF) of each variable FiF_i and the standard Gaussian distribution GG. The resulting Y\mathbf{Y} data is univariate standard Gaussian (or standard normal), which beyond being a targeted final data property, also improves robustness of the covariance matrix that is calculated in the next step. The standard Gaussian distribution has a mean of zero and variance of one, which simplifies calculations that follow.

Schematic illustration of the normal score transform.
Figure 2: Schematic illustration of the normal score transform.

The second pre-processing step is data sphereing, which transforms the data to be uncorrelated with unit variance. Begin by calculating the covariance matrix: Σ:Ci,j=1n∑α=1nyα,iyα,j, for i,j=1,...,k\boldsymbol{\Sigma}: C_{i,j}=\frac{1}{n} \sum_{\alpha=1}^n y_{\alpha,i}y_{\alpha,j}, \text{ for } i,j=1,...,k

Spectral decomposition of Σ\boldsymbol{\Sigma} is then performed yielding the orthogonal eigenvector matrix V:vi,j,i,j=1,...,k\mathbf{V}:v_{i,j},i,j=1,...,k and the diagonal eigenvalue matrix D:di,i,i=1,...,k\mathbf{D}:d_{i,i},i=1,...,k: Σ=VDVT\boldsymbol{\Sigma} = \mathbf{V}\mathbf{D}\mathbf{V}^T

For a nonsingular covariance matrix, the sphereing transform (specifically, spectral decomposition sphereing) is given as: X=YVD−1/2VT\mathbf{X}= \mathbf{YVD}^{-1/2}\mathbf{V}^T

The rotated data has an identity covariance matrix, meaning that X1,...,XkX_1,...,X_k have a variance of one and are uncorrelated. The VT\mathbf{V}^T term rotates the variables back to their original basis, which minimizes the mixing of Y1,...,YkY_1,...,Y_k amongst X1,...,XkX_1,...,X_k, through maximizing the loading of the YiY_i variable onto its corresponding XiX_i variable. Similarly, subsequent projection pursuit transforms the variables to be multiGaussian in a manner that minimizes their mixing. This ‘gentle’ transformation of the data means that unique characteristics of the original variables (e.g., their respective variograms) are relatively well-preserved in the uncorrelated multiGaussian data, making their reproduction more likely following independent geostatistical simulation and back-transformation.

The PPMT is demonstrated with nickel laterite data, where only two variables are used initially for visual clarity. The scatter plots below display the pre-processing steps, where nickel (Ni) and iron (Fe) are normal score and sphere transformed. The influence of outlier values on the correlation coefficient (ρ\rho) is evident when comparing the original and normal score data. Sphereing is shown to remove correlation, but not the complex dependencies that exist between Ni and Fe. These complexities are addressed with projection pursuit.

Scatter plots of the original, normal score and sphered data.
Figure 3: Scatter plots of the original, normal score and sphered data.

Projection Pursuit

Consider a kkx11 unit length vector θ\boldsymbol{\theta} and the associated projection of the data upon it, p=Xθ\mathbf{p} = \mathbf{X}\boldsymbol{\theta}. Any θ\boldsymbol{\theta} should yield a p\mathbf{p} that is univariate Gaussian if X\mathbf{X} is multiGaussian. With this in mind, define a test statistic (termed projection index) I(θ)I(\boldsymbol{\theta}), which measures univariate non-Gaussianity. For any θ\boldsymbol{\theta} where the associated p\mathbf{p} is perfectly Gaussian, I(θ)I(\boldsymbol{\theta}) is zero. Projection pursuit uses an optimized search to find the θ\boldsymbol{\theta} that maximizes I(θ)I(\boldsymbol{\theta}), meaning that it finds the vector with the most non-Gaussian projection of X\mathbf{X}. Readers are referred to (Friedman, 1987) for additional details on the projection index and optimized search.

After determining the optimum θ\boldsymbol{\theta}, X\mathbf{X} is transformed to X~\mathbf{\tilde X}, where the projection p~=X~θ\mathbf{\tilde p} = \mathbf{\tilde X}\boldsymbol{\theta} is standard Gaussian. This is accomplished using several steps. Begin by calculating the orthogonal matrix:

U=[θ,ϕ1,ϕ2,...,ϕk−1]\mathbf{U} = [\boldsymbol{\theta} ,\boldsymbol{\phi} _1,\boldsymbol{\phi} _2 ,...,\boldsymbol{\phi} _{k - 1} ]

where each kkx11 unit vector ϕi\boldsymbol{\phi} _i is calculated using the Gram-Schmidt algorithm (Reed & Simon, 1972). The multiplication of X\mathbf{X} and U\mathbf{U}, results in a transformation where the first column is the projection p=Xθ\mathbf{p}=\mathbf{X}\boldsymbol{\theta}:

XU=[p,Xϕ1,Xϕ2,...,Xϕk−1]\mathbf{XU} = [\mathbf{p},\mathbf{X}\boldsymbol{\phi} _1,\mathbf{X}\boldsymbol{\phi} _2,...,\mathbf{X}\boldsymbol{\phi} _{k - 1}]

Next, let Θ\Theta be a transformation that yields a standard Gaussian projection p~\mathbf{\tilde p}, while leaving the remaining orthogonal directions intact:

Θ(XU)=[p~,Xϕ1,Xϕ2,...,Xϕk−1]\Theta (\mathbf{XU}) = [\mathbf{\tilde p},\mathbf{X}\boldsymbol{\phi} _1,\mathbf{X}\boldsymbol{\phi} _2,...,\mathbf{X}\boldsymbol{\phi} _{k - 1}]

To be clear, Θ\Theta is simply a normal score transform of the first column of XU\mathbf{XU}. Multiplying this result by UT\mathbf{U}^T returns Θ(XU)\Theta (\mathbf{XU}) to the original basis:

X~=Θ(XU)UT\mathbf{\tilde X} = \Theta (\mathbf{XU}) \mathbf{U}^T

The transformed multivariate data X~\mathbf{\tilde X} will now yield a Gaussian projection along θ\boldsymbol{\theta} and therefore have a projection index of I(θ)=0I(\boldsymbol{\theta})=0. The optimized search for the maximum projection index may be repeated on X~\mathbf{\tilde X} to find other complex directions.

Scatter plots in the multi-panel figure below display select projection pursuit iterations, beginning from the sphered data that was displayed above. Readers using a web-browser may view each iteration with the interactive figure that follows. The orientation of the displayed probability density function (PDF) corresponds with the optimum θ\boldsymbol{\theta}, where the PDF is shown to be non-normal and normal before and after transformation. The Y2Y_2 coloring (normal score Fe values) is used to understand the relative movement of data in each transform, displaying that the data is made multiGaussian with minimal mixing. The left panel displays progression of the projection index I(θ)I(\boldsymbol{\theta}) on a logarithmic axis, showing that non-Gaussianity of the projection greatly decreases following 15 iterations. The iterations show an increase in the projection index, which correspond primarily with a local optimum being found on the previous iteration. The highlighted percentiles correspond with stopping criteria that are described in the next section.

Visualization of select projection pursuit iterations and progression of the projection index.
Figure 4: Visualization of select projection pursuit iterations and progression of the projection index.

Scatter and projection of the data. Use the slider at the bottom to view each iteration, before and after transformation.

Open interactive figure

Scatter and projection of the data. Use the slider at the bottom to view each iteration, before and after transformation.

Stopping Criteria

Choosing the target value to which the projection index I(θ)I(\boldsymbol{\theta}) must descend is not straightforward. Increasing kk dimensions makes the discovery and resolution of complexity in the data more difficult. A smaller number of nn observations makes the projections less reliable for detecting meaningful multivariate structure. These characteristics are also observed in random samples from a multiGaussian distribution, where reducing nn and increasing kk creates an increasingly non-Gaussian random sample.

Drawing on this parallel, the target I(θ)I(\boldsymbol{\theta}) for PPMT stopping could be determined by random samples from a multiGaussian distribution. A bootstrapping algorithm is implemented, where mm distributions of matching kk and nn are randomly sampled from the Gaussian CDF. A projection index value I(θ)I(\boldsymbol{\theta}) is then calculated for all mm distributions along kk random orthogonal unit vectors. This process yields an mmxkk distribution of projection indices, which may be used for targeting a very Gaussian distribution (P01 percentile) or barely Gaussian distribution (P99). For example, targeting the P01 percentile would cause the PPMT to terminate after the 14th iteration according to the figure above. This means that the maximum projection index of the transformed data is below 99% of the sampled Gaussian reference projection indices.

Nickel Laterite Example

The PPMT was demonstrated above with only k=2k=2 variables to aid in visual interpretation. It may be used effectively, however, for transforming data of larger kk to be uncorrelated and multiGaussian. The Ni and Fe variables that were previously presented, are drawn from a Ni laterite dataset that also includes SiO2, MgO, Co and Al2O3. In particular, it is important that geostatistical models reproduce the complex relationship that exists between Ni, Fe, SiO2, and MgO.

Scatter between these original variables is displayed in the lower triangle of the below plot, where they are colored by the associated Gaussian kernel density estimate to provide an indication of the multivariate point densities. Observe that the complex relations between these variables are not parameterized by the displayed correlation coefficients. Applying linear decorrelation transforms would remove their correlation, but would not make them independent.

Scatterplots of the original and transformed nickel laterite data.
Figure 5: Scatterplots of the original and transformed nickel laterite data.

The PPMT was applied with a projection index target of the P01 percentile, as well as a maximum of 150 iterations in case that target cannot be achieved. The algorithm terminated after 150 iterations, having only reached the P13 percentile. Kernel density coloring of the transformed scatter plots (upper triangle) approximates the multiGaussian density contours, while the majority of correlation coefficients are zero to the second decimal. Given that the maximum projection index is below 87% of the sampled Gaussian reference projection indices, while the variables are virtually uncorrelated, it is reasonable to simulate them under an assumption of independence.

Practical Considerations

There are several practical considerations for using the PPMT in simulation workflows, as discussed in (Barnett et al., 2016). Both the PPMT transformed data and independently simulated realizations are assumed to follow the standard multiGaussian distribution. Applying the PPMT back-transform should then provide realizations that match the original multivariate distribution. Unfortunately, simulated realizations may not be standard Gaussian. For example, a large variogram range relative to the model domain size leads to realizations with a variance less than one. The resulting mismatch of data and realization distributions in Gaussian units will lead to a mismatch of distributions in original units following back-transformation. Realizations will not reproduce the original multivariate distribution and may not reproduce its marginal distributions (e.g., histograms). Applying histogram corrections (Journel & Xu, 1994) in Gaussian and/or original space may be necessary in such cases.

The variogram model that is used for simulating each PPMT transformed X~i\tilde X_i variable should be fit to the corresponding normal score transformed YiY_i variable (output from the first pre-processing step). Although non-intuitive, this is often necessary since the removal of multivariate dependence between regionalized variables can lead to destructuring of their spatial continuity. Fitting variogram models to the normal score transformed variables has been found to provide the most effective reproduction of the original variograms following simulation and back-transformation. This approach is reasonable since each YiY_i is heavily loaded on X~i\tilde X_i.

Although the PPMT may be applied to data of any reasonable nn samples and kk dimensions, its modeling workflow generally performs better with decreasing kk and increasing nn. With a relatively large kk (e.g., k>10k>10) and relatively small nn (e.g., n<1000n<1000), sampling of multivariate space becomes very sparse. A simulated node may then be located in an area of Gaussian space that is far from the nearest transformed data, increasing the likelihood that the interpolation that is implicit to the back-transform leads to problematic results (e.g., values beyond visual constraints in original space). Using the Gibbs sampler (Geman & Geman, 1984) to populate multivariate space with additional pseudo-data is recommended if such problems are observed. This pseudo-data is input to the PPMT for improving the noted issue, although it is not used for model conditioning.

Summary

MultiGaussian transforms are powerful tools for geostatistical modeling. Multivariate dependencies, including complex relations, are removed by these techniques, allowing for simulation under a valid assumption of independence. The back-transform then restores original units and complexity. Linear decorrelation transforms only remove linear dependence and are unlikely to reproduce complex multivariate features, although they remain appropriate in the absence of such features.

The PPMT transform was discussed in this lesson, which applies a modified version of the multiGaussian transformation that is internal to projection pursuit density estimation. Several important considerations were then listed for applying the PPMT within simulation workflows.

References

Barnett, R. M., Manchuk, J. G., & Deutsch, C. V. (2014). Projection pursuit multivariate transform. Mathematical Geosciences, 46, 337–359. http://doi.org/10.1007/s11004-013-9497-7
Barnett, R. M., Manchuk, J. G., & Deutsch, C. V. (2016). The projection pursuit multivariate transform for improved continuous variable modeling. SPE Journal, 21(6), 2010–2026. http://doi.org/10.2118/184388-PA
Bliss, C. I. (1934). The method of probits. Science, 79, 38–39. http://doi.org/10.1126/science.79.2037.38
Friedman, J. H. (1987). Exploratory projection pursuit. Journal of the American Statistical Association, 82, 249–266.
Geman, S., & Geman, D. (1984). Stochastic relaxation, Gibbs distributions, and the Bayesian restoration of images. IEEE Transactions on Pattern Analysis and Machine Intelligence, 6, 721–741.
Hwang, J., Lay, S., & Lippman, A. (1994). Nonparametric multivariate density estimation: A comparative study. IEEE Transactions on Signal Processing, 42, 2795–2810.
Journel, A. G., & Xu, W. (1994). Posterior identification of histograms conditional to local data. Mathematical Geology, 26, 323–359.
Leuangthong, O., & Deutsch, C. V. (2003). Stepwise conditional transformation for simulation of multiple variables. Mathematical Geology, 35, 155–173.
Reed, M., & Simon, B. (1972). Functional analysis (Vol. 1). New York: Academic Press.
Rosenblatt, M. (1952). Remarks on a multivariate transformation. Annals of Mathematical Statistics, 23, 470–472.
Verly, G. (1983). The multiGaussian approach and its applications to the estimation of local reserves. Mathematical Geology, 15, 259–286. http://doi.org/10.1007/BF01036070

Cite this lesson as:

Barnett, R. M. (2017). Projection Pursuit Multivariate Transform. In J. L. Deutsch (Ed.), Geostatistics Lessons. Retrieved from https://geostatisticslessons.com/lessons/ppmt

Search lesson titles and content.