
Multidimensional scaling (MDS) is a means of visualizing the level of
similarity of individual cases of a data set. MDS is used to translate distances between each pair of
objects in a set into a configuration of
points mapped into an abstract
Cartesian space.
More technically, MDS refers to a set of related
ordination
Ordination is the process by which individuals are Consecration in Christianity, consecrated, that is, set apart and elevated from the laity class to the clergy, who are thus then authorized (usually by the religious denomination, denominationa ...
techniques used in
information visualization
Data and information visualization (data viz/vis or info viz/vis) is the practice of designing and creating Graphics, graphic or visual Representation (arts), representations of a large amount of complex quantitative and qualitative data and i ...
, in particular to display the information contained in a
distance matrix. It is a form of
non-linear dimensionality reduction.
Given a distance matrix with the distances between each pair of objects in a set, and a chosen number of dimensions, ''N'', an MDS
algorithm
In mathematics and computer science, an algorithm () is a finite sequence of Rigour#Mathematics, mathematically rigorous instructions, typically used to solve a class of specific Computational problem, problems or to perform a computation. Algo ...
places each object into ''N''-
dimension
In physics and mathematics, the dimension of a mathematical space (or object) is informally defined as the minimum number of coordinates needed to specify any point within it. Thus, a line has a dimension of one (1D) because only one coo ...
al space (a lower-dimensional representation) such that the between-object distances are preserved as well as possible. For ''N'' = 1, 2, and 3, the resulting points can be visualized on a
scatter plot.
Core theoretical contributions to MDS were made by
James O. Ramsay of
McGill University
McGill University (French: Université McGill) is an English-language public research university in Montreal, Quebec, Canada. Founded in 1821 by royal charter,Frost, Stanley Brice. ''McGill University, Vol. I. For the Advancement of Learning, ...
, who is also regarded as the founder of
functional data analysis.
Types
MDS algorithms fall into a
taxonomy
image:Hierarchical clustering diagram.png, 280px, Generalized scheme of taxonomy
Taxonomy is a practice and science concerned with classification or categorization. Typically, there are two parts to it: the development of an underlying scheme o ...
, depending on the meaning of the input matrix:
Classical multidimensional scaling
It is also known as Principal Coordinates Analysis (PCoA), Torgerson Scaling or Torgerson–Gower scaling. It takes an input matrix giving dissimilarities between pairs of items and outputs a coordinate matrix whose configuration minimizes a
loss function called ''strain'',
which is given by
where
denote vectors in ''N''-dimensional space,
denotes the scalar product between
and
, and
are the elements of the matrix
defined on step 2 of the following algorithm, which are computed from the distances.
: Steps of a Classical MDS algorithm:
: Classical MDS uses the fact that the coordinate matrix
can be derived by
eigenvalue decomposition from
. And the matrix
can be computed from proximity matrix
by using double centering.
:# Set up the squared proximity matrix