G03FCF performs non-metric (ordinal) multidimensional scaling.
For a set of
objects, a distance or dissimilarity matrix
can be calculated such that
is a measure of how ‘far apart’ the objects
and
are. If
variables
have been recorded for each observation this measure may be based on Euclidean distance,
, or some other calculation such as the number of variables for which
. Alternatively, the distances may be the result of a subjective assessment. For a given distance matrix, multidimensional scaling produces a configuration of
points in a chosen number of dimensions,
, such that the distance between the points in some way best matches the distance matrix. For some distance measures, such as Euclidean distance, the size of distance is meaningful, for other measures of distance all that can be said is that one distance is greater or smaller than another. For the former metric scaling can be used, see
G03FAF, for the latter, a non-metric scaling is more appropriate.
For non-metric multidimensional scaling, the criterion used to measure the closeness of the fitted distance matrix to the observed distance matrix is known as
STRESS.
STRESS is given by,
where
is the Euclidean squared distance between points
and
and
is the fitted distance obtained when
is monotonically regressed on
, that is
is monotonic relative to
and is obtained from
with the smallest number of changes. So
STRESS is a measure of by how much the set of points preserve the order of the distances in the original distance matrix. Non-metric multidimensional scaling seeks to find the set of points that minimize the
STRESS.
An alternate measure is squared
STRESS,
,
in which the distances in
STRESS are replaced by squared distances.
In order to perform a non-metric scaling, an initial configuration of points is required. This can be obtained from principal coordinate analysis, see
G03FAF. Given an initial configuration, G03FCF uses the optimization routine
E04DGF/E04DGA to find the configuration of points that minimizes
STRESS or
. The routine
E04DGF/E04DGA uses a conjugate gradient algorithm. G03FCF will find an optimum that may only be a local optimum, to be more sure of finding a global optimum several different initial configurations should be used; these can be obtained by randomly perturbing the original initial configuration using routines from
Chapter G05.
If on entry
or
, explanatory error messages are output on the current error message unit (as defined by
X04AAF).
After a successful optimization the relative accuracy of
STRESS should be approximately
, as specified by
IOPT.
The optimization routine
E04DGF/E04DGA used by G03FCF has a number of options to control the process. The options for the maximum number of iterations (
Iteration Limit) and accuracy (
Optimality Tolerance) can be controlled by
ITER and
IOPT respectively. The printing option (
Print Level) is set to
to give no printing. The other option set is to stop the checking of derivatives (
) for efficiency. All other options are left at their default values. If however
is used, only the maximum number of iterations is set. All other options can be controlled by the option setting mechanism of
E04DGF/E04DGA with the defaults as given by that routine.
Missing values in the input distance matrix can be specified by a negative value and providing there are not more than about two thirds of the values missing the algorithm may still work. However the routine
G03FAF does not allow for missing values so an alternative method of obtaining an initial set of coordinates is required. It may be possible to estimate the missing values with some form of average and then use
G03FAF to give an initial set of coordinates.
The data, given by
Krzanowski (1990), are dissimilarities between water vole populations in Europe. Initial estimates are provided by the first two principal coordinates computed.