Professional Documents
Culture Documents
« D D »
«¬ »¼ « »
¬ D ¼
ª D º
«D D »
ORZHUWULDQJXODU « »
«D D D »
« »
D D
¬ D D ¼ 6
WHAT IS A MATRIX?
| A matrix is usually given a “name” so that it can
be referred to easily, e.g.
ª º
X « »
« »
«¬ »¼
| By referring to ;we are therefore referring to the
table of numbers contained within ;
| By convention, the name of the matrix is either
underlined or in bold
7
DIMENSION OF A MATRIX
ª º
X « » 3 rows
« »
«¬ »¼
GLP X u
| In general, for a matrix with m rows and n
columns
GLP X P u Q
8
DIMENSION OF A MATRIX
Matrix $ has dimension 4x4
ª º
« »
A « »
« »
« » Matrix % has dimension 3x4
¬ ¼
ª º
B « »
« »
«¬ »¼
Thus, the dimension of a matrix is determined by its number
of rows and columns
10
IDENTITY MATRIX
Identity matrix is a diagonal matrix where all elements of the main diagonal
are equal to 1
| E.g. then ª º
« »
ª º AT « »
A « »
¬ ¼ « »
« »
¬ ¼
GLP A PuQ GLP A T QuP 12
ADDITION AND SUBTRACTION OF MATRICES
13
ADDITION OF MATRICES
| Commutative Law is true (position of the
matrices with respect to the mathematical
operation does not matter)
AB BA
A + B + C = (A + B) + C = A + (B + C)
14
ADDITION AND SUBTRACTION (EPL EXAMPLE)
Home games
W D L
Man United 3 0 0
Man City 3 0 0
Chelsea 3 0 0
Away games
W D L
Man United 2 1 0
Man City 2 1 0
Chelsea 1 1 1
15
ADDITION AND SUBTRACTION (EPL EXAMPLE)
O= H+A
ª º ª º ª º
O « » « » « »
« » « » « »
«¬ »¼ «¬ »¼ «¬ »¼
16
MULTIPLICATION BY A SCALAR
| Then
D A D DLM
| Similarly
ª º ª º ª º
« » « » « »
¬ ¼ ¬ ¼ ¬ ¼
Zero Matrix
18
MULTIPLICATION OF MATRICES
| If matrix $ has dim(m x n) and matrix % has
dim(n x p), then the product is a matrix & $%
which has
dim(m x p)
| The multiplication can only be made if $ has the
same number of columns as the number of rows
of matrix %
| The elements of the matrix & is given by:
¦D E
M
LM MN
19
MULTIPLICATION OF MATRICES (EXAMPLE)
ª º
ª º « » ª u u u u u u º
« » « » « u u u u u u »
¬ ¼ ¬ ¼
«¬ »¼
u u u
ª º
« »
¬ ¼
20
MULTIPLICATION OF MATRICES (EXAMPLE)
ª º
ª º « » ª u u u u u u º
« » « » « u u u u u u »
¬ ¼ ¬ ¼
«¬ »¼
u u u
ª º
« »
¬ ¼
21
MULTIPLICATION OF MATRICES (EXAMPLE)
ª º
ª º « » ª u u u u u u º
« » « » « u u u u u u »
¬ ¼ ¬ ¼
«¬ »¼
u u u
ª º
« »
¬ ¼
22
MULTIPLICATION OF MATRICES (EXAMPLE)
ª º
ª º« » ª u u u u u u º
« » « « u u u u u u »
¬ ¼ » ¬ ¼
«¬ »¼
u u u
ª º
« »
¬ ¼
| Note: The elements of each row of the left matrix
is multiplied into the elements of each column of
the right matrix and added
| The dimension of the resultant matrix is given by
the number of rows of the left matrix and the
number of columns of the right matrix 23
MULTIPLICATION OF MATRICES
A B C AC + BC
24
THE INVERSE MATRIX
ª D D º
>$@ «
D D D D ¬ D D »¼
25
ª [ º
«[ »
ª D Q º
DQ
« »
A « » x
« »
« » « »
«¬ DP DPQ »¼ ¬ [Q ¼
GLP Ax P u
26
APPLICATION OF MATRIX MULTIPLICATION
W D L
Man United 5 1 0
Man City 5 1 0
Chelsea 4 1 1
ª º
« »
| Let the “data” matrix be: X
« »
«¬ »¼
ª: º ª º
s «'» « »
| Let the “scores” vector be: « » « »
«¬ / »¼ «¬»¼
27
28
APPLICATION OF MATRIX MULTIPLICATION
| Then, the points that each team has is given by:
P = Xs
| That is,
ª º ª º ª u u u º ªº
P « » « » « u u u » «»
« »« » « » « »
«¬ »¼ «¬»¼ «¬ u u u »¼ «¬»¼
29