Biplot: Simultaneous Display of Rows and Columns in Multivariate Data

Statistics
Introduced by
Ruben Gabriel
Year
1971
Type
Multivariate graphical display
Family
Multivariate visualization

What does it do?

A biplot is a low-dimensional graphical display of a multivariate data matrix that shows observations (rows) and variables (columns) together, as points and vectors in one plot.

Introduced by Ruben Gabriel in 1971, it decomposes the processed matrix by singular value decomposition and keeps two dimensions, so that each data entry is approximated by the inner product of a row marker and a column marker. The display is exact only when the matrix itself has rank two; for higher-rank data it is an approximation.

The intuition behind the method

Think of projecting a many-column table onto a flat sheet so that observations and variables can be seen at the same time. A biplot places each observation as a point and each variable as an arrow. The positions of points show which observations resemble each other, and the arrows show how variables relate: in the column-metric form, the angle between two arrows reflects the correlation between the variables, and a point's projection onto an arrow indicates its relative value on that variable. Both readings are only as good as the two-dimensional approximation behind them.

History

Ruben Gabriel introduced the biplot in a 1971 paper in Biometrika. In that paper, a matrix of rank two is displayed with a vector for each row and each column, so that every element is the inner product of its row and column vectors; higher-rank matrices are displayed approximately using a rank-two approximation. The paper emphasises its use in principal component analysis, where it can show inter-unit distances and clustering.

When to use it

Choose a biplot when you have a numeric, ideally interval-scaled, multivariate data matrix and want to explore observations and variables together in one two-dimensional display, for example to look for clusters or to see how variables relate. It suits exploratory work built on principal-component-type decompositions. Check first how much of the total variation the two displayed dimensions capture. This share is the sum of the two largest squared singular values divided by the sum of all squared singular values, both taken from the decomposition step. If the share is small, the plot can mislead, and a higher-dimensional summary or another method is needed. Do not use a standard biplot directly on binary, nominal or count data without transformation or a model-based extension, or on strongly non-linear structure, where correspondence analysis (for contingency tables) or non-linear embedding methods may be more suitable.

Limitations and considerations

  • The quality of the display depends on the share of variation captured by the two plotted dimensions; a low share means much of the matrix is not shown.
  • For matrices of rank above two, every reading is approximate, and the residual error is not represented in the plot.
  • Not directly suited to binary, ordinal or count data without preprocessing or a model-based extension.
  • With many observations, row markers overlap and labels become hard to read.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Shows observations and variables in one two-dimensional plot, so the relation between a point and a variable can be read directly from the display.
  • For a rank-two matrix, the inner products of the markers reproduce the matrix entries exactly, giving the display a precise geometric meaning rather than a purely visual one.
  • In a principal-component-type analysis, the same display shows inter-unit distances, clustering of units, and the variances and correlations of the variables, as the source emphasises.
  • Relies on singular value decomposition, a standard and widely implemented computation, so the display is inexpensive to produce for moderate-sized matrices.

Applications

  • Ecology and environmental science: displaying species-by-site matrices to identify habitat gradients and species assemblages.
  • Genomics and bioinformatics: visualizing gene expression data to detect sample clusters and co-expressed gene groups.
  • Sensory evaluation and food science: relating product samples to sensory attribute profiles in consumer studies.
  • Social sciences and education: exploring item-by-respondent matrices from surveys and psychological assessments.
  • Quality control and process monitoring: identifying which process variables distinguish batches or production runs.

How it works

How it works

1

Each column is centred by subtracting its mean and then divided by its standard deviation, as the formula shows. Scaling prevents variables measured in large units from dominating the decomposition simply because of their units. Because every column is scaled, the inner products between column markers can be read in terms of correlations, but only when the column markers are formed with alpha = 0 (see marker allocation below). If the columns are not scaled, the inner products reflect covariances instead, so the scaling choice must be reported with the display.

Formula
\tilde{X} = (X - \mathbf{1}\bar{x}^\top) \oslash \mathbf{1}s^\top
2

The processed matrix is factored into left singular vectors U, singular values Sigma, and right singular vectors V. Keeping only the two largest singular values and their vectors gives the best rank-2 approximation in the least-squares (Frobenius-norm) sense, so the two-dimensional display captures as much of the matrix's variation as two dimensions can.

Formula
\tilde{X} = U \Sigma V^\top, \quad \hat{X}_2 = U_2 \Sigma_2 V_2^\top
3

The singular values are split between the row and column markers through alpha. With alpha = 1, the row markers are U2 Sigma2, so their inner products reproduce the rank-2 row inner products of the matrix and distances between row points approximate distances between observations (row-metric-preserving form). With alpha = 0, the column markers carry the singular values, so their inner products reflect the structure among the variables (column-metric-preserving form). The symmetric form, alpha = 0.5, splits the singular values equally between the two sets of markers.

Formula
G = U_2 \Sigma_2^\alpha, \quad H = V_2 \Sigma_2^{1-\alpha}, \quad \alpha \in [0,1]
4

Each entry x_ij is approximated by the inner product of the i-th row marker g_i and the j-th column marker h_j. Because the approximation is of the centred and scaled matrix, projecting a row point onto a column arrow indicates that observation's value on the variable relative to the average. The approximation is exact only when the matrix has rank two; otherwise a residual remains that the plot does not show.

Formula
x_{ij} \approx \mathbf{g}_i^\top \mathbf{h}_j

Common pitfalls

  • Treating the Euclidean distance between a point and the tip of an arrow as meaningful; only projections onto an arrow carry the inner-product reading.
  • Reading angles between column arrows as correlations when alpha = 1: in that form the column markers are not scaled by the singular values, and their cosines do not carry the correlation meaning.
  • Ignoring the variance-share figure: a two-dimensional plot of a matrix that is mostly explained by other dimensions can look clean and still be misleading.
  • Comparing displays made with different alpha values, or not reporting which form was used, makes the displays incomparable.

Frequently asked questions

What does the angle between two column arrows represent in a biplot?

In the column-metric-preserving form (alpha = 0), the inner products of the column markers reflect the structure of the centred and scaled variables, so the cosine of the angle between two arrows approximates the correlation between those variables. This reading requires that the columns were standardized in the centring and scaling step; with unscaled columns the same angles reflect covariances instead. Arrows pointing the same way suggest positive correlation, arrows pointing in opposite directions suggest negative correlation, and perpendicular arrows suggest near-zero correlation. The reading is approximate because only two dimensions are shown, and it does not carry the same meaning when alpha = 1.

How do I choose the value of alpha?

The choice of alpha determines which distances are kept faithful. Use alpha = 1 (row-metric-preserving) when the main question is how observations relate to one another. Use alpha = 0 (column-metric-preserving) when the focus is on relationships among variables. Alpha = 0.5 gives a symmetric display that balances the two readings and is often used in exploratory work.

Is the biplot the same as a PCA score plot?

No. A PCA score plot shows only the observation scores on the first two principal components. Those scores correspond to the row markers in the alpha = 1 form. A biplot adds the column markers (variable loadings) to the same display, so that observations and variables can be read together.

Related methods

Sources

  1. Gabriel, K. R. (1971). The biplot graphic display of matrices with application to principal component analysis. Biometrika, 58(3), 453–467.

    Open DOI reference