|
6.
Process or Product Monitoring and Control
6.5. Tutorials
|
|||
| Elementary Matrix Algebra | |||
| Basic definitions and operations of matrix algebra - needed for multivariate analysis |
Vectors and matrices are arrays of numbers. The algebra for symbolic
operations on them is different from the algebra for operations on
scalars, or single numbers. For example there is no division in
matrix algebra, although there is an operation called "multiplying
by an inverse". It is possible to express the exact equivalent of
matrix algebra equations in terms of scalar algebra expressions, but
the results look rather messy.
It can be said that the matrix algebra notation is shorthand for the corresponding scalar longhand. |
||
| Vectors |
A vector is a column of numbers
The scalars ai are the elements of vector a. |
||
| Transpose |
The transpose of a, denoted by a', is the row
arrangement of the elements of a.
|
||
| Sum of two vectors |
The sum of two vectors (say, a and b) is the
vector of sums of corresponding elements.
|
||
| Product of a'b |
The product a'b is a scalar formed by
|
||
| Product of ab' |
The product ab' is a square matrix
|
||
| Product of scalar times a vector |
The product of a scalar k, times a vector a is k
times each element of a
|
||
| A matrix is a rectangular table of numbers |
A matrix is a rectangular table of numbers, with p rows and
n columns. It is also referred to as an array of n
column vectors of length p. Thus
|
||
| Matrix addition and subtraction |
Matrices are added and subtracted on an element-by-element
basis. Thus
|
||
| Matrix multiplication |
Matrix multiplication involves the computation of the sum
of the products of elements from a row of the first matrix (the
premultiplier on the left) and a column of the second matrix (the
postmultiplier on the right). This sum of products is computed for
every combination of rows and columns. For example, if A is a
2 x 3 matrix and B is a 3 x 2 matrix, the product AB is
|
||
| Example of 3x2 matrix multiplied by a 2x3 |
It follows that the result of the product BA is a 3 x 3 matrix
|
||
| General case for matrix multiplication | In general, if A is a k x p matrix and B is a p x n matrix, the product AB is a k x n matrix. If k = n, then the product BA can also be formed. We say that matrices conform for the operations of addition, subtraction or multiplication when their respective orders (numbers of row and columns) are such as to permit the operations. Matrices that do not conform for addition or subtraction cannot be added or subtracted. Matrices that do not conform for multiplication cannot be multiplied. | ||