matrix A =
where · stands for all the elements in the corresponding dimension (this usage should not be confused with multiplication, where the · will be between two arguments, e.g. a·b, meaning a × b).
The transpose of A
Note that the first row of A becomes the first column of A´, while the first column of A becomes the first row of A´.
A is a square matrix if m = n. Elements of A, ahi, such that h = i are the diagonal elements of A. The sum of the diagonal elements of a square matrix is its trace.
Square matrices can be of particular kinds, e.g.
A is a symmetric square matrix if A´ = A.
A is a
diagonal matrix if the off-diagonal
elements are all zero,
A vector is an ordered set of real numbers (scalars) that can be written as
or as a´ = (a1,a2,a3, ...an). Geometrically, the elements of a can be thought of as coordinates of a point in n-dimensional space. We will restrict our discussion of vectors to what are called position vectors, in that they represent the direction and distance from the origin of an n-dimensional coordinate system to the point in space defined by the elements of a (see illustration at right). The 12 2-element (x1, x2) position vectors shown below can be thought of as making up a 12 × 2 matrix A.
Addition (and subtraction)
Matrix multiplication is based on the scalar products of vectors:
|for a =||a21||and b =||b21||a´ b = a11 a21 a31 ·||b21||= a11·b11 + a21·b21 + a31·b31|
This is a scalar number,
equivalent to a matrix of order 1 × 1, that is, with rows equal to those of
the first matrix and columns equal to those of the second matrix.
Why is the square root of a´a equal to the length of vector a?
Consider the vector a´ shown at the right; its length (denoted ||a´||) is given by generalizing the Pythagorean theorem to three dimensions (or more, depending on the number of elements in a).
a11·a11 + a21·a21 + a31·a31
Multiplication of entire matrixes is thus defined: for matrices A and B, their product AB can be thought of as containing elements that are the scalar products of the row vectors of A and the column vectors of B. In order for this to be possible, the number of columns in A must equal the number of rows in B. When this is the case, A and B are said to conform. Matrix multiplication is possible if and only if the number of columns of the first matrix equals the number of rows of the second.
Based on this definition, the results of matrix multiplication depend on the order in which matrices are multiplied.
For matrices A and B,
or, more compactly,
|(a1· · b.1)||(a1· · b.2)|
|(a2· · b.1)||(a2· · b.2)|
|(a3· · b.1)||(a3· · b.2)|
|(a4· · b.1)||(a4· · b.2)|
|(a5· · b.1)||(a5· · b.2)|
or (for N=3)
signifies summation over i=1...N.
What would be the order of A´ A? - of AA´ ?
Some useful geometric properties of matrix multiplication are illustrated HERE (esp. pp. 1-3).
The basic data matrix that is used in (numerical) phenetics is one in which one dimension (rows, say) represents the operational taxonomic units (OTUs) while the other dimension (columns) represents the characters for which data have been collected. For example, consider the data in Table 1 (below) as representing a description of 11 races of bean rust, based on their reactions when inoculated onto a suite of differential bean cultivars.
|Table 1. Disease reactions for 11 Jamaican rust (Uromyces appendiculatus var. appendiculatus) isolates (J1-J20) inoculated on 10 bean (Phaseolus vulgaris) cultivars (first six, US differential vars.; last four, Jamaican landraces): 1, susceptible (sporulation); 0, immune (no sporulation). Data from M. Shaik (1983).|
Covariance and correlation (page 4 ff.)
Euclidean distance (first 2 pages only)
Measures for binary and multi-state data
Measures for mixed data
Legendre, P. & L. Legendre (1998). Numerical Ecology, 2nd ed. New York, Springer-Verlag.
Manly, B. F. J. (1994). Multivariate statistical methods - A primer, 2nd ed. London, Chapman & Hall.
Podani, J. (2000). Introduction to the exploration of Multivariate biological data. Leiden, Backhuys.
|BOT300S Home Page | U of T Botany | University of Toronto |
© 2003 Botany Department, University of Toronto.Please send your comments to firstname.lastname@example.org; last updated 25-Mar-2003