Principal Coordinate Analysis (PCoA) with XLSTAT

Dataset for Principal Coordinate Analysis XLS68.0 KB

Tutorial video
  • ADA Advanced Data Analysis on Multiple tables software

  • System configuration

    • Windows:
      • Versions: 9x/Me/NT/2000/XP/Vista/Win 7
      • Excel: 97 and later
      • Processor: 32 or 64 bits
      • Hard disk: 150 Mb
    • Mac OS X:
      • OS: OS X
      • Excel: X, 2004 and 2011
      • Hard disk: 150Mb.

Benefits

  • Easy and user-friendly
    Easy and user-friendly XLSTAT is flawlessly integrated with Microsoft Excel which is the most popular spreadsheet worldwide. This integration makes it one of the simplest available tools to work with as it utilizes the same philosophy as Microsoft Excel. The program is accessible in a dedicated XLSTAT tab. The analyses are grouped into functional menus. The dialog boxes are user-friendly and setting up an analysis is straightforward.
  • Data and results shared seamlessly
    Data and results shared seamlessly One of the greatest advantages of XLSTAT is the way you can share data and results seamlessly. As the results are stored in Microsoft Excel, anyone can access them. There is no need for the receiver to have an XLSTAT license or any additional viewer which makes your team-work easier and more affordable. In addition, results are easily integrable into other Microsoft Office software such as PowerPoint, so that you can create striking presentation in minutes.
  • Modular
    Modular XLSTAT is a modular product. XLSTAT-Pro is a core statistical module of XLSTAT which includes all the mainstream functionalities in statistics and multivariate analysis. More advanced features contained in add-on modules can be added for specific applications. This way you can adapt the software to your needs making the software more cost-efficient.
  • Didactic
    Didactic The results of XLSTAT are organized by analysis and are easy to navigate. Moreover useful information is provided along with the results to assist you in your interpretation.
  • Affordable
    Affordable XLSTAT is a complete and modular analytical solution that can suit any analytical business needs. It is very reasonably priced so that the return of your investment is almost immediate. Any XLSTAT license comes with top level support and assistance.
  • Accessible - Available in many languages
    Accessible - Available in many languages We have ensured XLSTAT is accessible to everyone by making the program available in many languages, including Chinese, English, French, German, Italian, Japanese, Polish, Portuguese and Spanish.
  • Automatable and customizable
    Automatable and customizable Most of the statistical functions available in XLSTAT can be called directly from the Visual Basic window of Microsoft Excel. They can be modified and integrated to more code to fit to the specificity of your domain. Adding tables and plots as well as modifying existing outputs becomes easy. Furthermore, XLSTAT includes some special tools on the dialog boxes to generate automatically the VBA code in order to reproduce your analysis using the VBA editor or to simply load pre-set settings. This effortless automation of routine analysis will be a huge time saver on your part.

Principal Coordinate Analysis

Principal Coordinate Analysis (PCoA) is a method to represent on a 2 or 3 dimensional chart objects described by a square matrix containing that contains resemblance indices between these objects.

This method is due to Gower (1966). It is sometimes called metric MDS (MDS: Mutidimensional scaling) as opposed to the MDS (or non-metric MDS). Both methods have the same objective and produce similar results if the similarity matrix of square distances are metric and if the dimensionality is sufficient.

Dataset to run a Principal Coordinate Analysis

An Excel sheet containing both the data and the results for use in this tutorial can be downloaded by clicking here.

The data correspond to a survey performed over 10 testers which have been asked to rate (the score ranges from 1 to 5) five chocolate bars, where only the product P1 is already available on the market.

These data are also used in the tutorial on MDS. We will take advantage of that to compare the methods.

In the tutorial on the MDS, we show how to obtain, from these data, a matrix of Euclidean distances. We use here the table of Euclidean distances obtained before the MDS.

Our aim is to show how the products position themselves on a map, given the opinion of the testers.

A proximity matrix is needed to perform a MDS analysis, but here we have a individuals x products table. Therefore we need first to compute the dissimilarities between products, which can be done by using the Similarity / Dissimilarity matrix tool of XLSTAT.

Setting up a Principal Coordinate Analysis

Once XLSTAT is activated, select the XLSTAT / XLSTAT-ADA / Principal Coordinate Analysis command, or click on the corresponding button of the XLSTAT-ADA toolbar (see below).

barpcoa.gif

The dialog box appears. You can then select the data on the Excel sheet and choose the appropriate options as shown below.

The options of the Options tab are left unchanged as there is no risk of having negative eigenvalues in the case of a matrix with euclidean distances.

pcoa1.gif

Click on OK when the settings are completed.

Interpreting the results of a Principal Coordinate Analysis

The following chart is created using the principal coordinates and allows to visualize the proximities between products in 2 dimensions.

pcoa2.gif

The table of squared cosines displayed in the report allows to avoid an error of interpretation: we see that the cosines for P1 and P3 are very low for both F1 and F2, indicating that these points are away from the F1/F2 plane. Looking at the table of coordinates we find that P1 and P3 which seem to be close on the F1/F2 map, are in reality far apart. The 3-dimensional chart produced with XLSTAT-3DPlot allows a better visualization.

pcoa4.gif

It is interesting to compare the outputs of the PCoA to those of the MDS. If the 3-dimensional representation is almost identical, it is quite different for what concerns the 2 dimensional map. This is explained by the difference of methods and of criteria that are optimized. To minimize the stress, MDS allows a deformation, while PCoA (as PCA) only allows rotations and projections: with PCA and PCoA, the 2D view is a projection of the 3D view on a 2D space that keeps as much variance as possible. With MDS, the 2D view is the distortion of the 3D configuration such that the distances between objects are respected as much as possible. The two methods are quite different although they share the same goal. Use MDS if just want a map where the distances and their ranking is respected. Use PCoA if you want a map that does not distort the "true" configuration and that simply rotates/projects it. To avoid wrong interpretations, using the squared cosines, PCoA gives you a way to check if points are truly close when they look like. The solution of PCoA is unique, but MDS might have several local minimums.

mds8.gifpcoa3.gif

Note: A non-standardized (using the covariance matrix) PCA run on the 3-dimensional MDS configuration leads to a representation in 2 dimensions very similar to that obtained after the PCoA.